2018-08-07 01:30:05 +01:00
|
|
|
uint64 timestamp # time since system start (microseconds)
|
2015-05-26 22:48:30 -07:00
|
|
|
uint8 NUM_MOTOR_OUTPUTS = 8
|
|
|
|
|
|
2019-10-21 12:12:07 +02:00
|
|
|
uint8 ACTION_STOP = 0 # stop all motors (disable motor test mode)
|
|
|
|
|
uint8 ACTION_RUN = 1 # run motor(s) (enable motor test mode)
|
2019-10-15 18:56:52 +02:00
|
|
|
|
|
|
|
|
uint8 action # one of ACTION_* (applies to all motors)
|
2019-10-21 12:12:07 +02:00
|
|
|
uint32 motor_number # number of motor to spin [0..N-1]
|
|
|
|
|
float32 value # output power, range [0..1], -1 to stop individual motor
|
|
|
|
|
uint32 timeout_ms # timeout in ms after which to exit test mode (if 0, do not time out)
|
2019-07-03 16:30:21 -04:00
|
|
|
|
2019-10-15 18:56:52 +02:00
|
|
|
uint8 driver_instance # select output driver (for boards with multiple outputs, like IO+FMU)
|
|
|
|
|
|
2019-07-03 16:30:21 -04:00
|
|
|
uint8 ORB_QUEUE_LENGTH = 4
|