Robot
The embedded systems for UTRA's autonomous humanoid soccer-playing robot
|
Register-setting functions. More...
![]() |
Functions | |
void | MX28_SetMultiTurnOffset (Dynamixel_HandleTypeDef *hdynamixel, int16_t offset) |
For an actuator in multi-turn mode, this applies a tunable offset to all positions. That is it allows you to change where the actuator considers position 0 to be. For an actuator not in multi-turn mode, this setting has no effect. More... | |
void | MX28_SetResolutionDivider (Dynamixel_HandleTypeDef *hdynamixel, uint8_t divider) |
Unimplemented. This function should change the resolution divider, allowing for more precise or less precise control settings depending on the value. More... | |
void | MX28_SetDGain (Dynamixel_HandleTypeDef *hdynamixel, uint8_t DGain) |
Sets the value of the derivative gain used in the motor's PID controller. More... | |
void | MX28_SetIGain (Dynamixel_HandleTypeDef *hdynamixel, uint8_t IGain) |
Sets the value of the integral gain used in the motor's PID controller. More... | |
void | MX28_SetPGain (Dynamixel_HandleTypeDef *hdynamixel, uint8_t PGain) |
Sets the value of the proportional gain used in the motor's PID controller. More... | |
void | MX28_SetGoalAcceleration (Dynamixel_HandleTypeDef *hdynamixel, float goalAcceleration) |
Sets the goal acceleration. The argument should be in units of degree/s^2. More... | |
Register-setting functions.
This subsection provides a set of functions which provide interfaces for setting motor register values.
void MX28_SetDGain | ( | Dynamixel_HandleTypeDef * | hdynamixel, |
uint8_t | DGain | ||
) |
Sets the value of the derivative gain used in the motor's PID controller.
kD = DGain / 250
hdynamixel | pointer to a Dynamixel_HandleTypeDef structure that contains the configuration information for the motor |
DGain | the derivative gain parameter |
Definition at line 137 of file MX28.c.
void MX28_SetGoalAcceleration | ( | Dynamixel_HandleTypeDef * | hdynamixel, |
float | goalAcceleration | ||
) |
Sets the goal acceleration. The argument should be in units of degree/s^2.
Special: goalAcceleration of 0 means no control over accel (uses max acceleration of motor)
hdynamixel | pointer to a Dynamixel_HandleTypeDef structure that contains the configuration information for the motor |
goalAcceleration | the target acceleration in degree/s^2 |
Definition at line 186 of file MX28.c.
void MX28_SetIGain | ( | Dynamixel_HandleTypeDef * | hdynamixel, |
uint8_t | IGain | ||
) |
Sets the value of the integral gain used in the motor's PID controller.
kI = IGain * 125/256
hdynamixel | pointer to a Dynamixel_HandleTypeDef structure that contains the configuration information for the motor |
IGain | the integral gain parameter |
Definition at line 153 of file MX28.c.
void MX28_SetMultiTurnOffset | ( | Dynamixel_HandleTypeDef * | hdynamixel, |
int16_t | offset | ||
) |
For an actuator in multi-turn mode, this applies a tunable offset to all positions. That is it allows you to change where the actuator considers position 0 to be. For an actuator not in multi-turn mode, this setting has no effect.
hdynamixel | pointer to a Dynamixel_HandleTypeDef structure that contains the configuration information for the motor |
offset | the signed offset argument indicating the offset value to program |
Definition at line 100 of file MX28.c.
void MX28_SetPGain | ( | Dynamixel_HandleTypeDef * | hdynamixel, |
uint8_t | PGain | ||
) |
Sets the value of the proportional gain used in the motor's PID controller.
kP = PGain / 8
hdynamixel | pointer to a Dynamixel_HandleTypeDef structure that contains the configuration information for the motor |
PGain | the proportional gain parameter |
Definition at line 169 of file MX28.c.
void MX28_SetResolutionDivider | ( | Dynamixel_HandleTypeDef * | hdynamixel, |
uint8_t | divider | ||
) |
Unimplemented. This function should change the resolution divider, allowing for more precise or less precise control settings depending on the value.
hdynamixel | pointer to a Dynamixel_HandleTypeDef structure that contains the configuration information for the motor |
divider | the resolution divider setting |