mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 17:35:22 +08:00
Added voltage scaling. Need to move this to board_config.h instead
This commit is contained in:
committed by
Lorenz Meier
parent
d21023c966
commit
8bd4a624a7
@@ -983,6 +983,8 @@ Sensors::parameters_update()
|
||||
_parameters.battery_v_div = 5.7013919372f;
|
||||
#elif defined (CONFIG_ARCH_BOARD_SITL)
|
||||
_parameters.battery_v_div = 10.177939394f;
|
||||
#elif defined (CONFIG_ARCH_BOARD_TAP_V1)
|
||||
_parameters.battery_v_div = 9.0f;
|
||||
#else
|
||||
/* ensure a missing default trips a low voltage lockdown */
|
||||
_parameters.battery_v_div = 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user