Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No watchdog for motor command timeout #10

Open
bjsowa opened this issue Dec 19, 2018 · 0 comments
Open

No watchdog for motor command timeout #10

bjsowa opened this issue Dec 19, 2018 · 0 comments
Assignees

Comments

@bjsowa
Copy link
Contributor

bjsowa commented Dec 19, 2018

After sending a single command to move the motors forward the firmware will not stop the motors unless it receives a command to stop. There should be a timeout for the last received command

Here's the code I used to reproduce the problem

#!/usr/bin/python3
import serial

MOTORS_PREFIX = 0x10
POSTFIX = [0x0D, 0x0A]

command = bytearray()
command.append(MOTORS_PREFIX)
command.extend([0x7F, 0x7F, 0x7F, 0x7F])
command.extend(POSTFIX)

uart = serial.Serial("/dev/ttyAMA0", baudrate=115200)

uart.write(command)
@bjsowa bjsowa assigned bjsowa and Frzoen and unassigned bjsowa Dec 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants