PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Functions | |
static void | usage () |
Print out the usage information. More... | |
static void | stop () |
mpu9x50 stop measurement More... | |
static void | task_main_trampoline (int argc, char *argv[]) |
task main trampoline function More... | |
static void | task_main (int argc, char *argv[]) |
mpu9x50 measurement thread primary entry point More... | |
static bool | create_pubs () |
create and advertise all publicatoins More... | |
static void | update_reports () |
update all sensor reports with the latest sensor reading More... | |
static void | publish_reports () |
publish all sensor reports More... | |
static void | parameters_update () |
update all parameters More... | |
static void | parameters_init () |
initialize all parameter handles and load the initial parameter values More... | |
static void | parameter_update_poll () |
poll parameter update More... | |
static void * | data_ready_isr (void *context) |
MPU9x50 data ready interrupt service routine. More... | |
void | start () |
Attempt to start driver on all available I2C busses. More... | |
|
static |
create and advertise all publicatoins
Definition at line 367 of file mpu9x50_main.cpp.
References _mag, mag_report, orb_advertise_multi(), ORB_ID, and ORB_PRIO_HIGH.
Referenced by task_main().
|
static |
MPU9x50 data ready interrupt service routine.
[out] | context | address of the context data provided by user whill registering the interrupt servcie routine |
Definition at line 178 of file mpu9x50_main.cpp.
References hrt_absolute_time().
Referenced by task_main().
|
static |
poll parameter update
Definition at line 191 of file mpu9x50_main.cpp.
References orb_check(), orb_copy(), ORB_ID, and parameters_update().
Referenced by task_main().
|
static |
initialize all parameter handles and load the initial parameter values
Definition at line 336 of file mpu9x50_main.cpp.
References _params_handles, param_find(), and parameters_update().
Referenced by task_main().
|
static |
update all parameters
Definition at line 205 of file mpu9x50_main.cpp.
References _accel_sc, _gyro_sc, _mag_sc, _params_handles, param_get(), accel_calibration_s::x_offset, gyro_calibration_s::x_offset, mag_calibration_s::x_offset, accel_calibration_s::x_scale, gyro_calibration_s::x_scale, mag_calibration_s::x_scale, accel_calibration_s::y_offset, gyro_calibration_s::y_offset, mag_calibration_s::y_offset, gyro_calibration_s::y_scale, accel_calibration_s::y_scale, mag_calibration_s::y_scale, accel_calibration_s::z_offset, gyro_calibration_s::z_offset, mag_calibration_s::z_offset, gyro_calibration_s::z_scale, accel_calibration_s::z_scale, and mag_calibration_s::z_scale.
Referenced by FixedwingPositionControl::FixedwingPositionControl(), VtolType::get_mode(), FixedwingPositionControl::init(), parameter_update_poll(), parameters_init(), RoverPositionControl::run(), FixedwingPositionControl::Run(), Simulator::send(), FixedwingPositionControl::vehicle_status_poll(), and RoverPositionControl::~RoverPositionControl().
|
static |
publish all sensor reports
Definition at line 436 of file mpu9x50_main.cpp.
References _data, _mag, OK, ORB_ID, and orb_publish().
Referenced by task_main().
void mpu9x50::start | ( | ) |
Attempt to start driver on all available I2C busses.
This function will return as soon as the first sensor is detected on one of the available busses or if no sensors are detected.
Attempt to start driver on all available I2C busses.
Definition at line 565 of file mpu9x50_main.cpp.
References task_main_trampoline(), and warn.
Referenced by mpu9x50_main().
|
static |
mpu9x50 stop measurement
Definition at line 585 of file mpu9x50_main.cpp.
Referenced by mpu9x50_main().
|
static |
mpu9x50 measurement thread primary entry point
Definition at line 465 of file mpu9x50_main.cpp.
References _accel_lpf, _data, _device, _gyro_lpf, _imu_sample_rate, _isr_data_ready_timestamp, create_pubs(), data_ready_isr(), ORB_ID, orb_subscribe(), parameter_update_poll(), parameters_init(), publish_reports(), SPI_INT_GPIO, and update_reports().
Referenced by task_main_trampoline().
|
static |
task main trampoline function
mpu9x50 main entrance
Definition at line 559 of file mpu9x50_main.cpp.
References task_main().
Referenced by start().
|
static |
update all sensor reports with the latest sensor reading
Definition at line 401 of file mpu9x50_main.cpp.
References _accel_sc, _data, _gyro_sc, _mag, _mag_sc, sensor_gyro_s::scaling, sensor_accel_s::scaling, sensor_accel_s::temperature, sensor_gyro_s::temperature, sensor_gyro_s::timestamp, sensor_accel_s::timestamp, sensor_accel_s::x, sensor_gyro_s::x, gyro_calibration_s::x_offset, accel_calibration_s::x_offset, mag_calibration_s::x_offset, sensor_gyro_s::x_raw, sensor_accel_s::x_raw, accel_calibration_s::x_scale, gyro_calibration_s::x_scale, mag_calibration_s::x_scale, sensor_gyro_s::y, sensor_accel_s::y, gyro_calibration_s::y_offset, accel_calibration_s::y_offset, mag_calibration_s::y_offset, sensor_gyro_s::y_raw, sensor_accel_s::y_raw, accel_calibration_s::y_scale, gyro_calibration_s::y_scale, mag_calibration_s::y_scale, sensor_gyro_s::z, sensor_accel_s::z, accel_calibration_s::z_offset, gyro_calibration_s::z_offset, mag_calibration_s::z_offset, sensor_accel_s::z_raw, sensor_gyro_s::z_raw, gyro_calibration_s::z_scale, accel_calibration_s::z_scale, and mag_calibration_s::z_scale.
Referenced by task_main().
|
static |
Print out the usage information.
Definition at line 593 of file mpu9x50_main.cpp.
Referenced by mpu9x50_main().
|
static |
accel report
Definition at line 100 of file mpu9x50_main.cpp.
|
static |
|
static |
instance handle for accel devices
Definition at line 95 of file mpu9x50_main.cpp.
|
static |
accelerameter data publication
Definition at line 94 of file mpu9x50_main.cpp.
|
static |
accel scale
Definition at line 103 of file mpu9x50_main.cpp.
Referenced by parameters_update(), and update_reports().
|
static |
IMU measurement data.
Definition at line 90 of file mpu9x50_main.cpp.
Referenced by uORB::PublicationData< vehicle_global_position_s >::get(), uORB::PublicationMultiData< sensor_baro_s >::get(), uORB::SubscriptionData< vehicle_land_detected_s >::get(), publish_reports(), uORB::PublicationData< vehicle_global_position_s >::set(), uORB::PublicationMultiData< sensor_baro_s >::set(), uORB::SubscriptionData< vehicle_land_detected_s >::SubscriptionData(), task_main(), uORB::PublicationData< vehicle_global_position_s >::update(), uORB::PublicationMultiData< sensor_baro_s >::update(), TemperatureCalibrationCommon< 3, 3 >::update(), uORB::SubscriptionData< vehicle_land_detected_s >::update(), and update_reports().
|
static |
SPI device path that mpu9x50 is connected to.
Definition at line 78 of file mpu9x50_main.cpp.
Referenced by mpu9x50_main(), and task_main().
|
static |
gyro report
Definition at line 99 of file mpu9x50_main.cpp.
|
static |
|
static |
instance handle for gyro devices
Definition at line 93 of file mpu9x50_main.cpp.
|
static |
gyro data publication
Definition at line 92 of file mpu9x50_main.cpp.
|
static |
gyro scale
Definition at line 102 of file mpu9x50_main.cpp.
Referenced by parameters_update(), and update_reports().
|
static |
|
static |
flag indicating if mpu9x50 app is running
Definition at line 81 of file mpu9x50_main.cpp.
Referenced by mpu9x50_main().
|
static |
Definition at line 169 of file mpu9x50_main.cpp.
Referenced by task_main().
|
static |
mag report
Definition at line 101 of file mpu9x50_main.cpp.
Referenced by create_pubs(), publish_reports(), and update_reports().
|
static |
instance handle for mag devices
Definition at line 97 of file mpu9x50_main.cpp.
|
static |
compass data publication
Definition at line 96 of file mpu9x50_main.cpp.
|
static |
mag scale
Definition at line 104 of file mpu9x50_main.cpp.
Referenced by parameters_update(), and update_reports().
struct { ... } mpu9x50::_params_handles |
parameter handles
Referenced by parameters_init(), and parameters_update().
|
static |
parameter update subscription
Definition at line 98 of file mpu9x50_main.cpp.
|
static |
handle to the task main thread
Definition at line 87 of file mpu9x50_main.cpp.
|
static |
flag indicating if measurement thread should exit
Definition at line 84 of file mpu9x50_main.cpp.
param_t mpu9x50::accel_lpf_enum |
Definition at line 129 of file mpu9x50_main.cpp.
param_t mpu9x50::accel_x_offset |
Definition at line 110 of file mpu9x50_main.cpp.
param_t mpu9x50::accel_x_scale |
Definition at line 111 of file mpu9x50_main.cpp.
param_t mpu9x50::accel_y_offset |
Definition at line 112 of file mpu9x50_main.cpp.
param_t mpu9x50::accel_y_scale |
Definition at line 113 of file mpu9x50_main.cpp.
param_t mpu9x50::accel_z_offset |
Definition at line 114 of file mpu9x50_main.cpp.
param_t mpu9x50::accel_z_scale |
Definition at line 115 of file mpu9x50_main.cpp.
bool mpu9x50::exit_mreasurement = false |
Definition at line 133 of file mpu9x50_main.cpp.
param_t mpu9x50::gyro_lpf_enum |
Definition at line 128 of file mpu9x50_main.cpp.
param_t mpu9x50::gyro_x_offset |
Definition at line 116 of file mpu9x50_main.cpp.
param_t mpu9x50::gyro_x_scale |
Definition at line 117 of file mpu9x50_main.cpp.
param_t mpu9x50::gyro_y_offset |
Definition at line 118 of file mpu9x50_main.cpp.
param_t mpu9x50::gyro_y_scale |
Definition at line 119 of file mpu9x50_main.cpp.
param_t mpu9x50::gyro_z_offset |
Definition at line 120 of file mpu9x50_main.cpp.
param_t mpu9x50::gyro_z_scale |
Definition at line 121 of file mpu9x50_main.cpp.
param_t mpu9x50::imu_sample_rate_enum |
Definition at line 130 of file mpu9x50_main.cpp.
param_t mpu9x50::mag_x_offset |
Definition at line 122 of file mpu9x50_main.cpp.
param_t mpu9x50::mag_x_scale |
Definition at line 123 of file mpu9x50_main.cpp.
param_t mpu9x50::mag_y_offset |
Definition at line 124 of file mpu9x50_main.cpp.
param_t mpu9x50::mag_y_scale |
Definition at line 125 of file mpu9x50_main.cpp.
param_t mpu9x50::mag_z_offset |
Definition at line 126 of file mpu9x50_main.cpp.
param_t mpu9x50::mag_z_scale |
Definition at line 127 of file mpu9x50_main.cpp.