APM:Libraries
Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SoloGimbal_Parameters Class Reference

#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
 

Detailed Description

Definition at line 43 of file SoloGimbal_Parameters.h.

Constructor & Destructor Documentation

◆ SoloGimbal_Parameters()

SoloGimbal_Parameters::SoloGimbal_Parameters ( )

Definition at line 11 of file SoloGimbal_Parameters.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ fetch_params()

void SoloGimbal_Parameters::fetch_params ( )

Definition at line 68 of file SoloGimbal_Parameters.cpp.

◆ flash()

void SoloGimbal_Parameters::flash ( )

Definition at line 271 of file SoloGimbal_Parameters.cpp.

◆ flashing()

bool SoloGimbal_Parameters::flashing ( )

Definition at line 276 of file SoloGimbal_Parameters.cpp.

◆ get_accel_bias()

Vector3f SoloGimbal_Parameters::get_accel_bias ( )

Definition at line 209 of file SoloGimbal_Parameters.cpp.

Here is the call graph for this function:

◆ get_accel_gain()

Vector3f SoloGimbal_Parameters::get_accel_gain ( )

Definition at line 217 of file SoloGimbal_Parameters.cpp.

Here is the call graph for this function:

◆ get_gyro_bias()

Vector3f SoloGimbal_Parameters::get_gyro_bias ( )

Definition at line 240 of file SoloGimbal_Parameters.cpp.

Here is the call graph for this function:

◆ get_joint_bias()

Vector3f SoloGimbal_Parameters::get_joint_bias ( )

Definition at line 256 of file SoloGimbal_Parameters.cpp.

Here is the call graph for this function:

◆ get_K_rate()

float SoloGimbal_Parameters::get_K_rate ( )

Definition at line 264 of file SoloGimbal_Parameters.cpp.

Here is the call graph for this function:

◆ get_param()

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().

Here is the caller graph for this function:

◆ get_param_name()

const char * SoloGimbal_Parameters::get_param_name ( gmb_param_t  param)
staticprivate

Definition at line 24 of file SoloGimbal_Parameters.cpp.

Referenced by handle_param_value(), set_channel(), set_param(), and update().

Here is the caller graph for this function:

◆ handle_param_value()

void SoloGimbal_Parameters::handle_param_value ( mavlink_message_t *  msg)

Definition at line 169 of file SoloGimbal_Parameters.cpp.

Here is the call graph for this function:

◆ initialized()

bool SoloGimbal_Parameters::initialized ( )

Definition at line 77 of file SoloGimbal_Parameters.cpp.

◆ received_all()

bool SoloGimbal_Parameters::received_all ( )

Definition at line 87 of file SoloGimbal_Parameters.cpp.

Referenced by update().

Here is the caller graph for this function:

◆ reset()

void SoloGimbal_Parameters::reset ( )

Definition at line 17 of file SoloGimbal_Parameters.cpp.

Referenced by SoloGimbal_Parameters().

Here is the caller graph for this function:

◆ set_accel_bias()

void SoloGimbal_Parameters::set_accel_bias ( const Vector3f bias)

Definition at line 226 of file SoloGimbal_Parameters.cpp.

Here is the call graph for this function:

◆ set_accel_gain()

void SoloGimbal_Parameters::set_accel_gain ( const Vector3f gain)

Definition at line 233 of file SoloGimbal_Parameters.cpp.

Here is the call graph for this function:

◆ set_channel()

void SoloGimbal_Parameters::set_channel ( mavlink_channel_t  chan)
inline

Definition at line 71 of file SoloGimbal_Parameters.h.

Here is the call graph for this function:

◆ set_gyro_bias()

void SoloGimbal_Parameters::set_gyro_bias ( const Vector3f bias)

Definition at line 249 of file SoloGimbal_Parameters.cpp.

Here is the call graph for this function:

◆ set_param()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

void SoloGimbal_Parameters::update ( void  )

Definition at line 117 of file SoloGimbal_Parameters.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _chan

mavlink_channel_t SoloGimbal_Parameters::_chan
private

Definition at line 89 of file SoloGimbal_Parameters.h.

Referenced by set_channel(), set_param(), and update().

◆ _flashing_step

gmb_flashing_step_t SoloGimbal_Parameters::_flashing_step
private

Definition at line 87 of file SoloGimbal_Parameters.h.

Referenced by flash(), flashing(), handle_param_value(), reset(), and update().

◆ _last_request_ms

uint32_t SoloGimbal_Parameters::_last_request_ms
private

Definition at line 86 of file SoloGimbal_Parameters.h.

Referenced by reset(), set_param(), and update().

◆ _max_fetch_attempts

const uint8_t SoloGimbal_Parameters::_max_fetch_attempts = 5
staticprivate

Definition at line 77 of file SoloGimbal_Parameters.h.

Referenced by update().

◆ _params

struct { ... } SoloGimbal_Parameters::_params[MAVLINK_GIMBAL_NUM_TRACKED_PARAMS]

◆ _retry_period

const uint32_t SoloGimbal_Parameters::_retry_period = 3000
staticprivate

Definition at line 76 of file SoloGimbal_Parameters.h.

Referenced by update().

◆ fetch_attempts

uint8_t SoloGimbal_Parameters::fetch_attempts

Definition at line 82 of file SoloGimbal_Parameters.h.

Referenced by update().

◆ seen

bool SoloGimbal_Parameters::seen

Definition at line 83 of file SoloGimbal_Parameters.h.

Referenced by get_param(), and update().

◆ state

gmb_param_state_t SoloGimbal_Parameters::state

◆ value

float SoloGimbal_Parameters::value

Definition at line 80 of file SoloGimbal_Parameters.h.

Referenced by set_param(), and update().


The documentation for this class was generated from the following files: