|
APM:Libraries
|
#include <SoloGimbal_Parameters.h>
Public Member Functions | |
| SoloGimbal_Parameters () | |
| void | reset () |
| bool | initialized () |
| bool | received_all () |
| void | fetch_params () |
| void | get_param (gmb_param_t param, float &value, float def_val=0.0f) |
| void | set_param (gmb_param_t param, float value) |
| void | update () |
| void | handle_param_value (mavlink_message_t *msg) |
| Vector3f | get_accel_bias () |
| Vector3f | get_accel_gain () |
| void | set_accel_bias (const Vector3f &bias) |
| void | set_accel_gain (const Vector3f &gain) |
| Vector3f | get_gyro_bias () |
| void | set_gyro_bias (const Vector3f &bias) |
| Vector3f | get_joint_bias () |
| float | get_K_rate () |
| void | flash () |
| bool | flashing () |
| void | set_channel (mavlink_channel_t chan) |
Static Private Member Functions | |
| static const char * | get_param_name (gmb_param_t param) |
Private Attributes | |
| struct { | |
| float value | |
| gmb_param_state_t state | |
| uint8_t fetch_attempts | |
| bool seen | |
| } | _params [MAVLINK_GIMBAL_NUM_TRACKED_PARAMS] |
| uint32_t | _last_request_ms |
| gmb_flashing_step_t | _flashing_step |
| mavlink_channel_t | _chan |
Static Private Attributes | |
| static const uint32_t | _retry_period = 3000 |
| static const uint8_t | _max_fetch_attempts = 5 |
Definition at line 43 of file SoloGimbal_Parameters.h.
| SoloGimbal_Parameters::SoloGimbal_Parameters | ( | ) |
| void SoloGimbal_Parameters::fetch_params | ( | ) |
Definition at line 68 of file SoloGimbal_Parameters.cpp.
| void SoloGimbal_Parameters::flash | ( | ) |
Definition at line 271 of file SoloGimbal_Parameters.cpp.
| bool SoloGimbal_Parameters::flashing | ( | ) |
Definition at line 276 of file SoloGimbal_Parameters.cpp.
| Vector3f SoloGimbal_Parameters::get_accel_bias | ( | ) |
| Vector3f SoloGimbal_Parameters::get_accel_gain | ( | ) |
| Vector3f SoloGimbal_Parameters::get_gyro_bias | ( | ) |
| Vector3f SoloGimbal_Parameters::get_joint_bias | ( | ) |
| float SoloGimbal_Parameters::get_K_rate | ( | ) |
| void SoloGimbal_Parameters::get_param | ( | gmb_param_t | param, |
| float & | value, | ||
| float | def_val = 0.0f |
||
| ) |
Definition at line 97 of file SoloGimbal_Parameters.cpp.
Referenced by get_accel_bias(), get_accel_gain(), get_gyro_bias(), get_joint_bias(), and get_K_rate().
|
staticprivate |
Definition at line 24 of file SoloGimbal_Parameters.cpp.
Referenced by handle_param_value(), set_channel(), set_param(), and update().
| void SoloGimbal_Parameters::handle_param_value | ( | mavlink_message_t * | msg | ) |
| bool SoloGimbal_Parameters::initialized | ( | ) |
Definition at line 77 of file SoloGimbal_Parameters.cpp.
| bool SoloGimbal_Parameters::received_all | ( | ) |
Definition at line 87 of file SoloGimbal_Parameters.cpp.
Referenced by update().
| void SoloGimbal_Parameters::reset | ( | ) |
Definition at line 17 of file SoloGimbal_Parameters.cpp.
Referenced by SoloGimbal_Parameters().
| void SoloGimbal_Parameters::set_accel_bias | ( | const Vector3f & | bias | ) |
| void SoloGimbal_Parameters::set_accel_gain | ( | const Vector3f & | gain | ) |
|
inline |
| void SoloGimbal_Parameters::set_gyro_bias | ( | const Vector3f & | bias | ) |
| void SoloGimbal_Parameters::set_param | ( | gmb_param_t | param, |
| float | value | ||
| ) |
Definition at line 105 of file SoloGimbal_Parameters.cpp.
Referenced by set_accel_bias(), set_accel_gain(), set_gyro_bias(), and update().
| void SoloGimbal_Parameters::update | ( | void | ) |
|
private |
Definition at line 89 of file SoloGimbal_Parameters.h.
Referenced by set_channel(), set_param(), and update().
|
private |
Definition at line 87 of file SoloGimbal_Parameters.h.
Referenced by flash(), flashing(), handle_param_value(), reset(), and update().
|
private |
Definition at line 86 of file SoloGimbal_Parameters.h.
Referenced by reset(), set_param(), and update().
|
staticprivate |
Definition at line 77 of file SoloGimbal_Parameters.h.
Referenced by update().
| struct { ... } SoloGimbal_Parameters::_params[MAVLINK_GIMBAL_NUM_TRACKED_PARAMS] |
Referenced by fetch_params(), get_param(), handle_param_value(), initialized(), received_all(), reset(), set_param(), and update().
|
staticprivate |
Definition at line 76 of file SoloGimbal_Parameters.h.
Referenced by update().
| uint8_t SoloGimbal_Parameters::fetch_attempts |
Definition at line 82 of file SoloGimbal_Parameters.h.
Referenced by update().
| bool SoloGimbal_Parameters::seen |
Definition at line 83 of file SoloGimbal_Parameters.h.
Referenced by get_param(), and update().
| gmb_param_state_t SoloGimbal_Parameters::state |
Definition at line 81 of file SoloGimbal_Parameters.h.
Referenced by fetch_params(), handle_param_value(), initialized(), received_all(), set_param(), and update().
| float SoloGimbal_Parameters::value |
Definition at line 80 of file SoloGimbal_Parameters.h.
Referenced by set_param(), and update().
1.8.13