Public Member Functions | Private Member Functions | Private Attributes | List of all members
mavrosflight::Param Class Reference

#include <param.h>

Public Member Functions

int getIndex () const
 
std::string getName () const
 
MAV_PARAM_TYPE getType () const
 
double getValue () const
 
bool handleUpdate (const mavlink_param_value_t &msg)
 
uint16_t pack_param_set_msg (uint8_t system, uint8_t component, mavlink_message_t *msg, uint8_t target_system, uint8_t target_component)
 
 Param ()
 
 Param (mavlink_param_value_t msg)
 
 Param (std::string name, int index, MAV_PARAM_TYPE type, float raw_value)
 
void requestSet (double value, mavlink_message_t *msg)
 

Private Member Functions

template<typename T >
double fromRawValue (float value)
 
double getCastValue (double value)
 
float getRawValue ()
 
float getRawValue (double value)
 
void init (std::string name, int index, MAV_PARAM_TYPE type, float raw_value)
 
void setFromRawValue (float raw_value)
 
template<typename T >
double toCastValue (double value)
 
template<typename T >
float toRawValue (double value)
 

Private Attributes

float expected_raw_value_
 
int index_
 
std::string name_
 
double new_value_
 
MavlinkSerialserial_
 
bool set_in_progress_
 
MAV_PARAM_TYPE type_
 
double value_
 

Detailed Description

Definition at line 48 of file param.h.

Constructor & Destructor Documentation

mavrosflight::Param::Param ( )

Definition at line 42 of file param.cpp.

mavrosflight::Param::Param ( mavlink_param_value_t  msg)

Definition at line 47 of file param.cpp.

mavrosflight::Param::Param ( std::string  name,
int  index,
MAV_PARAM_TYPE  type,
float  raw_value 
)

Definition at line 59 of file param.cpp.

Member Function Documentation

template<typename T >
double mavrosflight::Param::fromRawValue ( float  value)
inlineprivate

Definition at line 75 of file param.h.

double mavrosflight::Param::getCastValue ( double  value)
private

Definition at line 192 of file param.cpp.

int mavrosflight::Param::getIndex ( ) const

Definition at line 69 of file param.cpp.

std::string mavrosflight::Param::getName ( ) const

Definition at line 64 of file param.cpp.

float mavrosflight::Param::getRawValue ( )
private

Definition at line 155 of file param.cpp.

float mavrosflight::Param::getRawValue ( double  value)
private

Definition at line 160 of file param.cpp.

MAV_PARAM_TYPE mavrosflight::Param::getType ( ) const

Definition at line 74 of file param.cpp.

double mavrosflight::Param::getValue ( ) const

Definition at line 79 of file param.cpp.

bool mavrosflight::Param::handleUpdate ( const mavlink_param_value_t msg)

Definition at line 98 of file param.cpp.

void mavrosflight::Param::init ( std::string  name,
int  index,
MAV_PARAM_TYPE  type,
float  raw_value 
)
private

Definition at line 118 of file param.cpp.

uint16_t mavrosflight::Param::pack_param_set_msg ( uint8_t  system,
uint8_t  component,
mavlink_message_t *  msg,
uint8_t  target_system,
uint8_t  target_component 
)
void mavrosflight::Param::requestSet ( double  value,
mavlink_message_t *  msg 
)

Definition at line 84 of file param.cpp.

void mavrosflight::Param::setFromRawValue ( float  raw_value)
private

Definition at line 127 of file param.cpp.

template<typename T >
double mavrosflight::Param::toCastValue ( double  value)
inlineprivate

Definition at line 89 of file param.h.

template<typename T >
float mavrosflight::Param::toRawValue ( double  value)
inlineprivate

Definition at line 82 of file param.h.

Member Data Documentation

float mavrosflight::Param::expected_raw_value_
private

Definition at line 103 of file param.h.

int mavrosflight::Param::index_
private

Definition at line 97 of file param.h.

std::string mavrosflight::Param::name_
private

Definition at line 96 of file param.h.

double mavrosflight::Param::new_value_
private

Definition at line 102 of file param.h.

MavlinkSerial* mavrosflight::Param::serial_
private

Definition at line 94 of file param.h.

bool mavrosflight::Param::set_in_progress_
private

Definition at line 101 of file param.h.

MAV_PARAM_TYPE mavrosflight::Param::type_
private

Definition at line 98 of file param.h.

double mavrosflight::Param::value_
private

Definition at line 99 of file param.h.


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


rosflight
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 20:00:14