forked from Archive/PX4-Autopilot
Sensors: Fix wrong define leading to incorrect battery voltage scaler picked for FMUv1. Found by @xn365
This commit is contained in:
parent
63bc4e0202
commit
5f407f539e
|
@ -850,7 +850,7 @@ Sensors::parameters_update()
|
||||||
_parameters.battery_voltage_scaling = 0.0082f;
|
_parameters.battery_voltage_scaling = 0.0082f;
|
||||||
#elif CONFIG_ARCH_BOARD_AEROCORE
|
#elif CONFIG_ARCH_BOARD_AEROCORE
|
||||||
_parameters.battery_voltage_scaling = 0.0063f;
|
_parameters.battery_voltage_scaling = 0.0063f;
|
||||||
#elif CONFIG_ARCH_BOARD_PX4FMU_V2
|
#elif CONFIG_ARCH_BOARD_PX4FMU_V1
|
||||||
_parameters.battery_voltage_scaling = 0.00459340659f;
|
_parameters.battery_voltage_scaling = 0.00459340659f;
|
||||||
#else
|
#else
|
||||||
/* ensure a missing default trips a low voltage lockdown */
|
/* ensure a missing default trips a low voltage lockdown */
|
||||||
|
|
Loading…
Reference in New Issue