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:
parent
4eeb983f2d
commit
bc2ba7dccc
@ -37,6 +37,7 @@
|
|||||||
#include <sanitycheck.h>
|
#include <sanitycheck.h>
|
||||||
#include <actuatorsettings.h>
|
#include <actuatorsettings.h>
|
||||||
#include <auxmagsettings.h>
|
#include <auxmagsettings.h>
|
||||||
|
#include <flightbatterysettings.h>
|
||||||
|
|
||||||
#ifdef PIOS_INCLUDE_INSTRUMENTATION
|
#ifdef PIOS_INCLUDE_INSTRUMENTATION
|
||||||
#include <pios_instrumentation.h>
|
#include <pios_instrumentation.h>
|
||||||
@ -62,6 +63,11 @@ uintptr_t pios_user_fs_id = 0;
|
|||||||
uint32_t pios_ws2811_id;
|
uint32_t pios_ws2811_id;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void FlightBatterySettingsDataOverrideDefaults(FlightBatterySettingsData * data)
|
||||||
|
{
|
||||||
|
data->SensorCalibrations.VoltageFactor = 8.8f;
|
||||||
|
data->SensorCalibrations.CurrentFactor = 0.07f;
|
||||||
|
}
|
||||||
|
|
||||||
static HwTinyFISHSettingsData boardHwSettings;
|
static HwTinyFISHSettingsData boardHwSettings;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user