Skip to content

No watchdog for motor command timeout #10

@bjsowa

Description

@bjsowa

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions