vehicle_angular_velocity: sensor_selection callback

- needed to update the main sensor_gyro subscription if the primary
stops responding
This commit is contained in:
Daniel Agar
2019-08-06 14:23:57 -04:00
parent b945e28e08
commit 7b179776e2
2 changed files with 9 additions and 6 deletions
@@ -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