39 #include <px4_platform_common/px4_config.h> 40 #include <px4_platform_common/log.h> 41 #include <px4_platform_common/module_params.h> 42 #include <px4_platform_common/px4_work_queue/WorkItem.hpp> 78 (ParamInt<px4::params::SENS_BOARD_ROT>) _param_sens_board_rot,
80 (ParamFloat<px4::params::SENS_BOARD_X_OFF>) _param_sens_board_x_off,
81 (ParamFloat<px4::params::SENS_BOARD_Y_OFF>) _param_sens_board_y_off,
82 (ParamFloat<px4::params::SENS_BOARD_Z_OFF>) _param_sens_board_z_off
94 {
this,
ORB_ID(sensor_gyro), 0},
95 {
this,
ORB_ID(sensor_gyro), 1},
96 {
this,
ORB_ID(sensor_gyro), 2}
100 {
this,
ORB_ID(sensor_gyro_control), 0},
101 {
this,
ORB_ID(sensor_gyro_control), 1},
102 {
this,
ORB_ID(sensor_gyro_control), 2}
virtual ~VehicleAngularVelocity()
uORB::SubscriptionCallbackWorkItem _sensor_selection_sub
selected primary sensor subscription
void SensorBiasUpdate(bool force=false)
uORB::SubscriptionCallbackWorkItem _sensor_control_sub[MAX_SENSOR_COUNT]
sensor control data subscription
matrix::Dcmf _board_rotation
rotation matrix for the orientation that the board is mounted
Limiting / constrain helper functions.
void ParametersUpdate(bool force=false)
Base publication wrapper class.
uORB::Subscription _sensor_bias_sub
sensor in-run bias correction subscription
#define ORB_ID(_name)
Generates a pointer to the uORB metadata structure for a given topic.
uint32_t _selected_sensor_device_id
static constexpr int MAX_SENSOR_COUNT
bool _sensor_control_available
bool SensorCorrectionsUpdate(bool force=false)
DEFINE_PARAMETERS((ParamInt< px4::params::SENS_BOARD_ROT >) _param_sens_board_rot,(ParamFloat< px4::params::SENS_BOARD_X_OFF >) _param_sens_board_x_off,(ParamFloat< px4::params::SENS_BOARD_Y_OFF >) _param_sens_board_y_off,(ParamFloat< px4::params::SENS_BOARD_Z_OFF >) _param_sens_board_z_off) uORB uORB::Subscription _params_sub
parameter updates subscription
uORB::SubscriptionCallbackWorkItem _sensor_sub[MAX_SENSOR_COUNT]
sensor data subscription
uORB::Subscription _sensor_correction_sub
sensor thermal correction subscription
uint8_t _selected_sensor_control