dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
airspeed.c File Reference

Airspeed module. More...

#include "openpilot.h"
#include "physical_constants.h"
#include "atmospheric_math.h"
#include "coordinate_conversions.h"
#include "modulesettings.h"
#include "gpsvelocity.h"
#include "airspeedsettings.h"
#include "gps_airspeed.h"
#include "homelocation.h"
#include "baroairspeed.h"
#include "airspeedactual.h"
#include "attitudeactual.h"
#include "positionactual.h"
#include "baro_airspeed_etasv3.h"
#include "baro_airspeed_analog.h"
#include "pios_thread.h"

Go to the source code of this file.

Macros

#define STACK_SIZE_BYTES   0
 
#define NO_AIRSPEED_SENSOR_PRESENT
 
#define TASK_PRIORITY   PIOS_THREAD_PRIO_LOW
 
#define SAMPLING_DELAY_MS_FALLTHROUGH   50
 
#define GPS_AIRSPEED_BIAS_KP   0.01f
 
#define GPS_AIRSPEED_BIAS_KI   0.01f
 
#define GPS_AIRSPEED_TIME_CONSTANT_MS   500.0f
 
#define BARO_TEMPERATURE_OFFSET   5
 

Functions

static void airspeedTask (void *parameters)
 
void baro_airspeedGet (BaroAirspeedData *baroAirspeedData, uint32_t *lastSysTime, uint8_t airspeedSensorType, int8_t airspeedADCPin)
 
int32_t AirspeedStart ()
 
static void doSettingsUpdate ()
 
int32_t AirspeedInitialize ()
 
 MODULE_INITCALL (AirspeedInitialize, AirspeedStart)
 

Variables

static struct pios_thread * taskHandle
 
static bool module_enabled = false
 
volatile bool gpsNew = false
 
volatile bool settingsUpdated = true
 
static uint8_t airspeedSensorType
 
static uint16_t gpsSamplePeriod_ms
 
static float tasFilterTau = 0.1f
 

Detailed Description

Airspeed module.

Author
The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012.
Tau Labs, http://taulabs.org, Copyright (C) 2013-2014
dRonin, http://dronin.org Copyright (C) 2015
See Also
The GNU Public License (GPL) Version 3

Definition in file airspeed.c.