PX4 Firmware
PX4 Autopilot Software http://px4.io
sensors Namespace Reference

Classes

struct  ParameterHandles
 
struct  Parameters
 
class  TemperatureCompensation
 class TemperatureCompensation Applies temperature compensation to sensor data. More...
 
class  VotedSensorsUpdate
 class VotedSensorsUpdate More...
 

Functions

void initialize_parameter_handles (ParameterHandles &parameter_handles)
 initialize ParameterHandles struct More...
 
void update_parameters (const ParameterHandles &parameter_handles, Parameters &parameters)
 Read out the parameters using the handles into the parameters struct. More...
 

Variables

constexpr uint8_t MAG_COUNT_MAX = 4
 
constexpr uint8_t GYRO_COUNT_MAX = 3
 
constexpr uint8_t ACCEL_COUNT_MAX = 3
 
constexpr uint8_t BARO_COUNT_MAX = 3
 
constexpr uint8_t SENSOR_COUNT_MAX
 

Function Documentation

◆ initialize_parameter_handles()

void sensors::initialize_parameter_handles ( ParameterHandles parameter_handles)

initialize ParameterHandles struct

Definition at line 45 of file parameters.cpp.

References sensors::ParameterHandles::air_cmodel, sensors::ParameterHandles::air_tube_diameter_mm, sensors::ParameterHandles::air_tube_length, sensors::ParameterHandles::baro_qnh, sensors::ParameterHandles::board_offset, sensors::ParameterHandles::board_rotation, sensors::ParameterHandles::diff_pres_offset_pa, and param_find().

Here is the call graph for this function:

◆ update_parameters()

void sensors::update_parameters ( const ParameterHandles parameter_handles,
Parameters parameters 
)

Variable Documentation

◆ ACCEL_COUNT_MAX

◆ BARO_COUNT_MAX

◆ GYRO_COUNT_MAX

◆ MAG_COUNT_MAX

constexpr uint8_t sensors::MAG_COUNT_MAX = 4

◆ SENSOR_COUNT_MAX

constexpr uint8_t sensors::SENSOR_COUNT_MAX
Initial value:
constexpr uint8_t GYRO_COUNT_MAX
Definition: common.h:47
constexpr uint8_t ACCEL_COUNT_MAX
Definition: common.h:48
constexpr uint8_t MAG_COUNT_MAX
Definition: common.h:46
constexpr _Tp max(_Tp a, _Tp b)
Definition: Limits.hpp:60
constexpr uint8_t BARO_COUNT_MAX
Definition: common.h:49

Definition at line 51 of file common.h.

Referenced by sensors::TemperatureCompensation::PerSensorData::PerSensorData(), sensors::TemperatureCompensation::PerSensorData::reset_temperature(), and sensors::VotedSensorsUpdate::SensorData::SensorData().