mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
bane of my life
This commit is contained in:
parent
3ba9d2a92a
commit
2c4d45d716
2 changed files with 12 additions and 34 deletions
|
@ -26,6 +26,8 @@ extern "C" {
|
|||
#include "build/debug.h"
|
||||
#include "pg/pg_ids.h"
|
||||
|
||||
#include "common/vector.h"
|
||||
|
||||
#include "fc/core.h"
|
||||
#include "fc/rc_controls.h"
|
||||
#include "fc/runtime_config.h"
|
||||
|
@ -44,6 +46,7 @@ extern "C" {
|
|||
#include "sensors/acceleration.h"
|
||||
#include "sensors/gyro.h"
|
||||
|
||||
|
||||
PG_REGISTER(accelerometerConfig_t, accelerometerConfig, PG_ACCELEROMETER_CONFIG, 0);
|
||||
PG_REGISTER(altHoldConfig_t, altHoldConfig, PG_ALTHOLD_CONFIG, 0);
|
||||
PG_REGISTER(autopilotConfig_t, autopilotConfig, PG_AUTOPILOT, 0);
|
||||
|
@ -107,14 +110,10 @@ extern "C" {
|
|||
float getAltitudeDerivative(void) {return 0.0f;}
|
||||
float getCosTiltAngle(void) { return 0.0f; }
|
||||
float rcCommand[4];
|
||||
|
||||
void GPS_distance_cm_bearing(const gpsLocation_t *from, const gpsLocation_t *to, bool dist3d, uint32_t *dist, int32_t *bearing)
|
||||
{
|
||||
UNUSED(from);
|
||||
UNUSED(to);
|
||||
UNUSED(dist3d);
|
||||
UNUSED(dist);
|
||||
UNUSED(bearing);
|
||||
|
||||
float vector2Norm(const vector2_t *v) {
|
||||
UNUSED(*v);
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
void GPS_distances(const gpsLocation_t *from, const gpsLocation_t *to, float *pNSDist, float *pEWDist)
|
||||
|
@ -167,31 +166,6 @@ void GPS_distances(const gpsLocation_t *from, const gpsLocation_t *to, float *pN
|
|||
return 0.0;
|
||||
}
|
||||
|
||||
float pt2FilterGain(float f_cut, float dT)
|
||||
{
|
||||
UNUSED(f_cut);
|
||||
UNUSED(dT);
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
void pt2FilterInit(pt2Filter_t *filter, float k)
|
||||
{
|
||||
UNUSED(filter);
|
||||
UNUSED(k);
|
||||
}
|
||||
void pt2FilterUpdateCutoff(pt2Filter_t *filter, float k)
|
||||
{
|
||||
UNUSED(filter);
|
||||
UNUSED(k);
|
||||
}
|
||||
|
||||
float pt2FilterApply(pt2Filter_t *filter, float input)
|
||||
{
|
||||
UNUSED(filter);
|
||||
UNUSED(input);
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
float pt3FilterGain(float f_cut, float dT)
|
||||
{
|
||||
UNUSED(f_cut);
|
||||
|
@ -215,7 +189,6 @@ void GPS_distances(const gpsLocation_t *from, const gpsLocation_t *to, float *pN
|
|||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
int16_t debug[DEBUG16_VALUE_COUNT];
|
||||
uint8_t debugMode;
|
||||
|
||||
|
|
|
@ -1190,6 +1190,11 @@ extern "C" {
|
|||
UNUSED(pEWDist);
|
||||
}
|
||||
|
||||
float vector2Norm(const vector2_t *v) {
|
||||
UNUSED(*v);
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
bool canUseGPSHeading;
|
||||
bool compassIsHealthy;
|
||||
bool isNewGPSDataAvailable(void){ return true; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue