Class to store all the data related to the exo.
More...
#include <ExoData.h>
|
| | ExoData (uint8_t *config_to_send) |
| |
| void | reconfigure (uint8_t *config_to_send) |
| | reconfigures the the exo data if the configuration changes after constructor called.
|
| |
| template<typename F > |
| void | for_each_joint (F &&func) |
| | performs a function for each joint
|
| |
| template<typename F > |
| void | for_each_joint (F &&func, float *args) |
| |
| uint8_t | get_used_joints (uint8_t *used_joints) |
| |
| JointData * | get_joint_with (uint8_t id) |
| | Get the joint pointer for a joint id.
|
| |
| void | print () |
| | Prints all the exo data.
|
| |
| void | set_status (uint16_t status_to_set) |
| | Set the status object.
|
| |
| uint16_t | get_status (void) |
| | Get the status object.
|
| |
| void | set_default_parameters () |
| | Set the default controller parameters for the current controller. These are the first row in the controller csv file.
|
| |
| void | start_pretrial_cal () |
| | Start the pretrial calibration process.
|
| |
Class to store all the data related to the exo.
◆ ExoData()
| ExoData::ExoData |
( |
uint8_t * |
config_to_send | ) |
|
◆ for_each_joint() [1/2]
template<typename F >
| void ExoData::for_each_joint |
( |
F && |
func | ) |
|
|
inline |
performs a function for each joint
- Parameters
-
| pointer | to the function that should be done for each used joint |
◆ for_each_joint() [2/2]
template<typename F >
| void ExoData::for_each_joint |
( |
F && |
func, |
|
|
float * |
args |
|
) |
| |
|
inline |
◆ get_joint_with()
| JointData * ExoData::get_joint_with |
( |
uint8_t |
id | ) |
|
Get the joint pointer for a joint id.
- Parameters
-
- Returns
- JointData* Pointer to JointData class for joint with id
◆ get_status()
| uint16_t ExoData::get_status |
( |
void |
| ) |
|
Get the status object.
- Returns
- uint16_t status_defs::messages::status_t
◆ get_used_joints()
| uint8_t ExoData::get_used_joints |
( |
uint8_t * |
used_joints | ) |
|
◆ print()
◆ reconfigure()
| void ExoData::reconfigure |
( |
uint8_t * |
config_to_send | ) |
|
reconfigures the the exo data if the configuration changes after constructor called.
- Parameters
-
◆ set_default_parameters()
| void ExoData::set_default_parameters |
( |
| ) |
|
Set the default controller parameters for the current controller. These are the first row in the controller csv file.
◆ set_status()
| void ExoData::set_status |
( |
uint16_t |
status_to_set | ) |
|
Set the status object.
- Parameters
-
| status_to_set | status_defs::messages::status_t |
◆ start_pretrial_cal()
| void ExoData::start_pretrial_cal |
( |
| ) |
|
Start the pretrial calibration process.
◆ battery_value
| float ExoData::battery_value |
Could be Voltage or SOC, depending on the battery type
◆ config
pointer to the configuration array
◆ config_len
| uint8_t ExoData::config_len |
len of the configuration array
◆ error_code
current error code for the system
◆ error_joint_id
| int ExoData::error_joint_id |
◆ estop
◆ left_leg
◆ mark
used for timing, currently only used by the nano
◆ right_leg
◆ sync_led_state
| bool ExoData::sync_led_state |
◆ user_paused
| bool ExoData::user_paused |
if the user has paused the system
The documentation for this class was generated from the following files: