|
TeensyNanoExoCode
|
class to store information related to controllers. More...
#include <ControllerData.h>
Public Member Functions | |
| ControllerData (config_defs::joint_id id, uint8_t *config_to_send) | |
| void | reconfigure (uint8_t *config_to_send) |
| reconfigures the the controller data if the configuration changes after constructor called. | |
| uint8_t | get_parameter_length () |
| Get the parameter length for the current controller. | |
class to store information related to controllers.
| ControllerData::ControllerData | ( | config_defs::joint_id | id, |
| uint8_t * | config_to_send | ||
| ) |
| uint8_t ControllerData::get_parameter_length | ( | ) |
Get the parameter length for the current controller.
| void ControllerData::reconfigure | ( | uint8_t * | config_to_send | ) |
reconfigures the the controller data if the configuration changes after constructor called.
| configuration | array |
| const float ControllerData::cal_level_entrance_angle_alpha = 0.01f |
alpha for the low pass on the level entrance calibration
| const float ControllerData::cal_neutral_angle_alpha = 0.01f |
alpha for the low pass on the neutral angle calibration
| bool ControllerData::calibrComplete = false |
| bool ControllerData::calibrStart = false |
| float ControllerData::calibrSum = 0 |
| uint8_t ControllerData::controller |
id of the current controller
| float ControllerData::elbow_cmd = 0 |
| float ControllerData::ff_setpoint |
feed forwared setpoint, only updated in closed loop controllers
| float ControllerData::filtered_cmd |
filtered command, used for filtering motor commands
| float ControllerData::filtered_setpoint = 0 |
filtered setpoint for the controller
| float ControllerData::filtered_squelched_supportive_term = 0 |
low pass on final spring output
| float ControllerData::filtered_torque_reading |
filtered torque reading, used for filtering torque signal
| int ControllerData::fsr_heel_array_elbow[50] = {0} |
| float ControllerData::fsr_heel_max_elbow = 0 |
| float ControllerData::fsr_heel_min_elbow = 0 |
| float ControllerData::fsr_heel_previous_elbow = 0 |
| float ControllerData::fsr_heel_sum_elbow = 0 |
| float ControllerData::fsr_min_max_elbow = 0 |
| int ControllerData::fsr_toe_array_elbow[50] = {0} |
| float ControllerData::fsr_toe_max_elbow = 0 |
| float ControllerData::fsr_toe_min_elbow = 0 |
| float ControllerData::fsr_toe_previous_elbow = 0 |
| float ControllerData::fsr_toe_sum_elbow = 0 |
| int ControllerData::i_elbow = 0 |
| uint16_t ControllerData::iCalibr = 0 |
| bool ControllerData::is_first_fsr_reading_elbow = true |
| bool ControllerData::is_first_run_elbow = true |
| bool ControllerData::isPerturbing = false |
| config_defs::JointType ControllerData::joint |
id of the current joint
| float ControllerData::kf = 1 |
gain for the controller
| float ControllerData::level_entrance_angle = 0.0f |
level entrance angle for the spring term
| float ControllerData::max_measured = 0 |
max measured value
| float ControllerData::max_setpoint = 0 |
max setpoint value
| float ControllerData::neutral_angle = 0.0f |
neutral angle for the spring term
| float ControllerData::output_limit_elbow = 5 |
| uint8_t ControllerData::parameter_set |
temporary value used to store the parameter set while we are pulling from the sd card.
| float ControllerData::parameters[controller_defs::max_parameters] |
Parameter list for the controller see the controller_defs namespace for the specific controller.
| int ControllerData::PIDMLTPLR = 0 |
| float ControllerData::prev_calibrate_level_entrance = false |
previous value of the calibrate level entrance flag
| bool ControllerData::prev_calibrate_trq_sensor = false |
previous value of the calibrate torque sensor flag
| float ControllerData::prev_max_measured = 0 |
previous max measured value
| float ControllerData::prev_max_setpoint = 0 |
previous max setpoint value
| float ControllerData::previous_cmd = 0 |
| uint8_t ControllerData::ptb_frequency = 0 |
| bool ControllerData::ptb_fsrGotHigh = false |
| uint16_t ControllerData::ptb_iiStep = 0 |
| uint16_t ControllerData::ptb_iStep = 0 |
| bool ControllerData::ptb_newIsSwing = true |
| bool ControllerData::ptb_oldIsSwing = true |
| uint16_t ControllerData::ptb_setpoint = 0 |
| bool ControllerData::ptbApplied = false |
| bool ControllerData::ptbDetermined = false |
| bool ControllerData::ptbRandomIsFirstRun = true |
| float ControllerData::reference_angle = 0 |
reference angle for the spring term
| float ControllerData::reference_angle_offset = 0 |
offset for the reference angle
| bool ControllerData::reference_angle_updated = false |
flag to indicate if the reference angle was updated this step
| float ControllerData::setpoint |
controller setpoint, basically the motor command.
| float ControllerData::time_current_ptb = 0 |
| float ControllerData::time_previous_ptb = 0 |