dRonin
adbada4
dRonin firmware
|
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 |