From bc2ba7dccca90d59eb5ada19a05c1845ea422b99 Mon Sep 17 00:00:00 2001 From: Vladimir Zidar Date: Tue, 30 May 2017 22:27:24 +0200 Subject: [PATCH] LP-512 tinyFISH FC: provide usable default flight battery settings calibrations (requires LP-523) --- flight/targets/boards/tinyfish/firmware/pios_board.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flight/targets/boards/tinyfish/firmware/pios_board.c b/flight/targets/boards/tinyfish/firmware/pios_board.c index 48e74454e..961fa703f 100644 --- a/flight/targets/boards/tinyfish/firmware/pios_board.c +++ b/flight/targets/boards/tinyfish/firmware/pios_board.c @@ -37,6 +37,7 @@ #include #include #include +#include #ifdef PIOS_INCLUDE_INSTRUMENTATION #include @@ -62,6 +63,11 @@ uintptr_t pios_user_fs_id = 0; uint32_t pios_ws2811_id; #endif +void FlightBatterySettingsDataOverrideDefaults(FlightBatterySettingsData * data) +{ + data->SensorCalibrations.VoltageFactor = 8.8f; + data->SensorCalibrations.CurrentFactor = 0.07f; +} static HwTinyFISHSettingsData boardHwSettings;