mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 06:43:34 +08:00
sensor_correction.msg rename {gyro,accel,baro}_select to match uORB convention
This commit is contained in:
@@ -828,8 +828,8 @@ MulticopterAttitudeControl::sensor_correction_poll()
|
||||
}
|
||||
|
||||
/* update the latest gyro selection */
|
||||
if (_sensor_correction.gyro_select <= sizeof(_sensor_gyro_sub) / sizeof(_sensor_gyro_sub[0])) {
|
||||
_selected_gyro = _sensor_correction.gyro_select;
|
||||
if (_sensor_correction.selected_gyro_instance <= sizeof(_sensor_gyro_sub) / sizeof(_sensor_gyro_sub[0])) {
|
||||
_selected_gyro = _sensor_correction.selected_gyro_instance;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user