#include <MotorData.h>
◆ MotorData()
◆ reconfigure()
| void MotorData::reconfigure |
( |
uint8_t * |
config_to_send | ) |
|
reconfigures the the motor data if the configuration changes after constructor called.
- Parameters
-
◆ do_zero
Flag to zero the position of the motor
◆ enabled
◆ flip_direction
| bool MotorData::flip_direction |
Should the motor direction be flipped, if true torque commands and position/velocity information will be inverted
◆ gearing
Motor gearing used to convert motor position, velocity, and torque between the motor and joint frames.
◆ id
motor id, should be the same as the joint id.
◆ is_left
Motor side information 1 if on the left, 0 otherwise
◆ is_on
◆ kd
◆ kp
◆ last_command
| float MotorData::last_command |
Last command sent to the motor.
◆ motor_type
| uint8_t MotorData::motor_type |
Type of motor being used.
◆ p_des
| float MotorData::p_des = 0 |
Desired position, not currently used but available for position control
◆ t_ff
| float MotorData::t_ff = 0 |
◆ v_des
| float MotorData::v_des = 0 |
Desired velocity, not currently used but available for velocity control
The documentation for this class was generated from the following files: