Move#

group drv_move

High level move commands for DotBot: move straight, rotate.

Author

Alexandre Abadie alexandre.abadie@inria.fr

Copyright

Inria, 2023

Functions

void db_move_init()#

Initialize qdec and motors.

void db_move_straight(uint16_t distance, int8_t speed)#

Move straight by a given distance at a given speed.

Parameters:
  • distance[in] Distance in centimeters

  • speed[in] Move speed, -100 to 100

void db_move_rotate(uint16_t angle, int8_t speed)#

Rotate by a given angle at a given speed.

Parameters:
  • angle[in] Angle of clockwise rotation in degrees

  • speed[in] Rotation speed, -100 to 100