1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

LP-512 tinyFISH FC: provide usable default flight battery settings calibrations (requires LP-523)

This commit is contained in:
Vladimir Zidar 2017-05-30 22:27:24 +02:00
parent 4eeb983f2d
commit bc2ba7dccc

View File

@ -37,6 +37,7 @@
#include <sanitycheck.h>
#include <actuatorsettings.h>
#include <auxmagsettings.h>
#include <flightbatterysettings.h>
#ifdef PIOS_INCLUDE_INSTRUMENTATION
#include <pios_instrumentation.h>
@ -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;