forked from Archive/PX4-Autopilot
sensors: fix overlapping ifdef
This fixes the case where vehicle_angular_rate is no longer started when airspeed is not enabled. Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
parent
26122886ae
commit
7e3dcd7be4
|
@ -63,10 +63,6 @@ Sensors::Sensors(bool hil_enabled) :
|
|||
_parameter_handles.diff_pres_analog_scale = param_find("SENS_DPRES_ANSC");
|
||||
#endif /* ADC_AIRSPEED_VOLTAGE_CHANNEL */
|
||||
|
||||
#if defined(CONFIG_SENSORS_VEHICLE_ANGULAR_VELOCITY)
|
||||
_vehicle_angular_velocity.Start();
|
||||
#endif // CONFIG_SENSORS_VEHICLE_ANGULAR_VELOCITY
|
||||
|
||||
_parameter_handles.air_cmodel = param_find("CAL_AIR_CMODEL");
|
||||
_parameter_handles.air_tube_length = param_find("CAL_AIR_TUBELEN");
|
||||
_parameter_handles.air_tube_diameter_mm = param_find("CAL_AIR_TUBED_MM");
|
||||
|
@ -75,6 +71,10 @@ Sensors::Sensors(bool hil_enabled) :
|
|||
_airspeed_validator.set_equal_value_threshold(100);
|
||||
#endif // CONFIG_SENSORS_VEHICLE_AIRSPEED
|
||||
|
||||
#if defined(CONFIG_SENSORS_VEHICLE_ANGULAR_VELOCITY)
|
||||
_vehicle_angular_velocity.Start();
|
||||
#endif // CONFIG_SENSORS_VEHICLE_ANGULAR_VELOCITY
|
||||
|
||||
param_find("SYS_FAC_CAL_MODE");
|
||||
|
||||
// Parameters controlling the on-board sensor thermal calibrator
|
||||
|
|
Loading…
Reference in New Issue