34 #include "physical_constants.h"
36 #include "gpsvelocity.h"
37 #include "attitudeactual.h"
42 #define GPS_AIRSPEED_BIAS_KP 0.1f //Needs to be settable in a UAVO
43 #define GPS_AIRSPEED_BIAS_KI 0.1f //Needs to be settable in a UAVO
44 #define SAMPLING_DELAY_MS_GPS 100 //Needs to be settable in a UAVO
45 #define GPS_AIRSPEED_TIME_CONSTANT_MS 500.0f //Needs to be settable in a UAVO
71 GPSVelocityData gpsVelData;
72 GPSVelocityGet(&gpsVelData);
78 AttitudeActualData attData;
79 AttitudeActualGet(&attData);
82 float q[4] ={attData.q1, attData.q2, attData.q3, attData.q4};
108 AttitudeActualData attData;
109 AttitudeActualGet(&attData);
111 float q[4] ={attData.q1, attData.q2, attData.q3, attData.q4};
121 if (fabsf(cosDiff) < cosf(5.0
f*DEG2RAD)) {
122 GPSVelocityData gpsVelData;
123 GPSVelocityGet(&gpsVelData);
132 *v_air_GPS = sqrtf(normDiffGPS2/normDiffAttitude2);
int32_t gps_airspeedInitialize()
void Quaternion2R(float q[4], float Rbe[3][3])
static struct GPSGlobals * gps
void * PIOS_malloc(size_t size)
Airspeed module, reads temperature and pressure from BMP085.
Header for Coordinate conversions library in coordinate_conversions.c.
Includes PiOS and core architecture components.
void gps_airspeedGet(float *v_air_GPS)