msg: Add mapping from uORB index to compensation parameter index

This mapping is required so other applications can use the correct compensation data, even if the uORB ordering changes.
This commit is contained in:
Paul Riseborough 2017-01-22 17:03:17 +11:00 committed by Lorenz Meier
parent f2f5034832
commit ba9e8741c0
1 changed files with 6 additions and 0 deletions

View File

@ -47,3 +47,9 @@ float32 baro_scale_2 # barometric pressure scale factors in the sensor frame
uint8 selected_gyro_instance # gyro uORB topic instance for the voted sensor
uint8 selected_accel_instance # accelerometer uORB topic instance for the voted sensor
uint8 selected_baro_instance # barometric pressure uORB topic instance for the voted sensor
# Mapping from uORB index to parameter index for each sensor type. For example accel_mapping[1] contains the
# compensation parameter system index for the sensor_accel uORB index 1 data.
uint8[3] gyro_mapping
uint8[3] accel_mapping
uint8[3] baro_mapping