mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-16 08:29:15 +01:00
LP-512 Set default fusion algorithm for PikoBLX and tinyFISH
This commit is contained in:
parent
48ebb8359e
commit
aba9d56ccc
@ -37,7 +37,7 @@
|
|||||||
#include <sanitycheck.h>
|
#include <sanitycheck.h>
|
||||||
#include <actuatorsettings.h>
|
#include <actuatorsettings.h>
|
||||||
#include <auxmagsettings.h>
|
#include <auxmagsettings.h>
|
||||||
|
#include <revosettings.h>
|
||||||
#ifdef PIOS_INCLUDE_INSTRUMENTATION
|
#ifdef PIOS_INCLUDE_INSTRUMENTATION
|
||||||
#include <pios_instrumentation.h>
|
#include <pios_instrumentation.h>
|
||||||
#endif
|
#endif
|
||||||
@ -62,6 +62,12 @@ uintptr_t pios_user_fs_id = 0;
|
|||||||
uint32_t pios_ws2811_id;
|
uint32_t pios_ws2811_id;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void RevoSettingsDataOverrideDefaults(RevoSettingsData * data)
|
||||||
|
{
|
||||||
|
/* This board has no barometer, so adjust default fusion algorithm to one that does not depend on working baro */
|
||||||
|
data->FusionAlgorithm = REVOSETTINGS_FUSIONALGORITHM_ACRONOSENSORS;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static HwPikoBLXSettingsData boardHwSettings;
|
static HwPikoBLXSettingsData boardHwSettings;
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
#include <actuatorsettings.h>
|
#include <actuatorsettings.h>
|
||||||
#include <auxmagsettings.h>
|
#include <auxmagsettings.h>
|
||||||
#include <flightbatterysettings.h>
|
#include <flightbatterysettings.h>
|
||||||
|
#include <revosettings.h>
|
||||||
#ifdef PIOS_INCLUDE_INSTRUMENTATION
|
#ifdef PIOS_INCLUDE_INSTRUMENTATION
|
||||||
#include <pios_instrumentation.h>
|
#include <pios_instrumentation.h>
|
||||||
#endif
|
#endif
|
||||||
@ -69,6 +69,12 @@ void FlightBatterySettingsDataOverrideDefaults(FlightBatterySettingsData * data)
|
|||||||
data->SensorCalibrations.CurrentFactor = 0.07f;
|
data->SensorCalibrations.CurrentFactor = 0.07f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RevoSettingsDataOverrideDefaults(RevoSettingsData * data)
|
||||||
|
{
|
||||||
|
/* This board has no barometer, so adjust default fusion algorithm to one that does not depend on working baro */
|
||||||
|
data->FusionAlgorithm = REVOSETTINGS_FUSIONALGORITHM_ACRONOSENSORS;
|
||||||
|
}
|
||||||
|
|
||||||
static HwTinyFISHSettingsData boardHwSettings;
|
static HwTinyFISHSettingsData boardHwSettings;
|
||||||
|
|
||||||
static void hwTinyFISHSettingsUpdatedCb(__attribute__((unused)) UAVObjEvent *ev)
|
static void hwTinyFISHSettingsUpdatedCb(__attribute__((unused)) UAVObjEvent *ev)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user