17 #define MOTOR_COMMAND_MODE_PWM 0
18 #define MOTOR_COMMAND_MODE_VELOCITY 1
19 #define MOTOR_COMMAND_MODE_WAYPOINT 2
20 #define MOTOR_COMMAND_MODE_WAYPOINT_THETA 3
22 #define VELOCITY_MAX 300
41 void motorTimeoutStop(
void);
51 void motorCommandTimerUpdate(
void);
60 void motorBrake(uint32 motor);
71 void motorSetPWM(uint32 motor, int32 dutyCycle);
85 void motorSetPWM_rc(uint32 motor, int32 dutyCycle);
94 int32 motorGetVelocity(uint32 motor);
105 void motorSetVelocity(uint32 motor, int32 velocity);
115 void motorSetVelocity_rc(uint32 motor, int32 velocity);
126 void motorSetTVRV(int32 tv, int32 rv);
136 void motorSetTVRV_rc(int32 tv, int32 rv);
145 void motorGetTVRV(int32* tvPtr, int32* rvPtr);
152 boolean waypointMoveDone(
void);
163 void waypointMove(
Pose* posePtr, int32 speed);
174 void waypointMoveRelative(
Pose* posePtr, int32 speed);
185 void waypointMoveTheta(
Pose* posePtr, int32 speed);
196 void waypointMoveThetaRelative(
Pose* posePtr, int32 speed);
204 void motorVelocityUpdate(
void);