mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 19:23:34 +08:00
vehicle_angular_velocity: sensor_selection callback
- needed to update the main sensor_gyro subscription if the primary stops responding
This commit is contained in:
@@ -68,7 +68,8 @@ VehicleAngularVelocity::Start()
|
||||
ParametersUpdate(true);
|
||||
SensorBiasUpdate(true);
|
||||
|
||||
_sensor_correction_sub.register_callback();
|
||||
// needed to change the active sensor if the primary stops updating
|
||||
_sensor_selection_sub.register_callback();
|
||||
|
||||
return SensorCorrectionsUpdate(true);
|
||||
}
|
||||
@@ -83,7 +84,7 @@ VehicleAngularVelocity::Stop()
|
||||
sub.unregister_callback();
|
||||
}
|
||||
|
||||
_sensor_correction_sub.unregister_callback();
|
||||
_sensor_selection_sub.unregister_callback();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user