sensor_correction.msg rename {gyro,accel,baro}_select to match uORB convention

This commit is contained in:
Beat Küng
2017-01-19 19:24:52 +01:00
committed by Lorenz Meier
parent 7326fea142
commit 0765ed552c
4 changed files with 9 additions and 9 deletions
@@ -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;
}
}