11 #define MAX_COMMAND 100 int motor_set_speed(motor_t motor, uint8_t speed)
Set the rotation speed of the specified motor.
int motor_set_direction(motor_t motor, motor_direction_t direction)
Set the rotation direction of the specified motor.
motor_direction_t
Alias for motor rotation sense.
motor_t
Alias to select the motor to work on.
motor_sense_t
Alias for motor orientation.
void motor_init(motor_sense_t motor_left_forward_sense, motor_sense_t motor_right_forward_sense)
Initialise the motor driver.
void motor_toggle_direction(motor_t motor)
Revert the rotation direction of the specified motor.
int8_t motor_get_speed(motor_t motor)
Get the rotation speed of the specified motor.
motor_direction_t motor_get_direction(motor_t motor)
Get the current rotation direction of the specified motor.