Sensors: Fix wrong define leading to incorrect battery voltage scaler picked for FMUv1. Found by @xn365

This commit is contained in:
Lorenz Meier 2015-11-07 16:27:32 +01:00
parent 63bc4e0202
commit 5f407f539e
1 changed files with 1 additions and 1 deletions

View File

@ -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 */