Hummingbird Flight Software
Flight software for the Hummingbird FCU quadcopter flight controller. Designed to run on the Teensy 4.1. Developed with VSCode+PlatformIO.
Variables
constants.h File Reference
#include "hummingbird_config.h"

Go to the source code of this file.

Variables

constexpr float CONSTS_PIDIV4 = 0.7853981634f
 Global constants such as grav. More...
 
constexpr float CONSTS_PIDIV2 = 1.5707963268f
 
constexpr float CONSTS_PI = 3.14159265359f
 
constexpr float CONSTS_2PI = 6.28318530718f
 
constexpr float CONSTS_GRAV = 9.80665f
 
constexpr float CONSTS_WGS84_A = 6378137.0f
 
constexpr float CONSTS_WGS84_B = 6356752.3142f
 
constexpr float CONSTS_WGS84_E = 0.0818191908425f
 
constexpr float CONSTS_WGS84_INVF = 298.257223563f
 
constexpr float CONSTS_ENV_AIRDENS = 1.225f
 
constexpr float CONSTS_ENV_TLAPSERATE = 0.0065f
 
constexpr float CONSTS_ENV_SLPRES = 101325.0f
 
constexpr float CONSTS_ENV_SLTEMP = 288.15f
 
constexpr float CONSTS_ENV_R = 287.26f
 
constexpr float CONSTS_ENV_MAGDECL = -0.000602662f
 
constexpr float CONSTS_ENV_MAGINCL = 1.24428537f
 

Variable Documentation

◆ CONSTS_2PI

constexpr float CONSTS_2PI = 6.28318530718f
constexpr

◆ CONSTS_ENV_AIRDENS

constexpr float CONSTS_ENV_AIRDENS = 1.225f
constexpr

◆ CONSTS_ENV_MAGDECL

constexpr float CONSTS_ENV_MAGDECL = -0.000602662f
constexpr

◆ CONSTS_ENV_MAGINCL

constexpr float CONSTS_ENV_MAGINCL = 1.24428537f
constexpr

◆ CONSTS_ENV_R

constexpr float CONSTS_ENV_R = 287.26f
constexpr

◆ CONSTS_ENV_SLPRES

constexpr float CONSTS_ENV_SLPRES = 101325.0f
constexpr

◆ CONSTS_ENV_SLTEMP

constexpr float CONSTS_ENV_SLTEMP = 288.15f
constexpr

◆ CONSTS_ENV_TLAPSERATE

constexpr float CONSTS_ENV_TLAPSERATE = 0.0065f
constexpr

◆ CONSTS_GRAV

constexpr float CONSTS_GRAV = 9.80665f
constexpr

◆ CONSTS_PI

constexpr float CONSTS_PI = 3.14159265359f
constexpr

◆ CONSTS_PIDIV2

constexpr float CONSTS_PIDIV2 = 1.5707963268f
constexpr

◆ CONSTS_PIDIV4

constexpr float CONSTS_PIDIV4 = 0.7853981634f
constexpr

Global constants such as grav.

accel, gas constants, air density, etc.

Resources ~ Magnetic Field Calculator (NOAA): https://www.ngdc.noaa.gov/geomag/calculators/magcalc.shtml#declination

◆ CONSTS_WGS84_A

constexpr float CONSTS_WGS84_A = 6378137.0f
constexpr

◆ CONSTS_WGS84_B

constexpr float CONSTS_WGS84_B = 6356752.3142f
constexpr

◆ CONSTS_WGS84_E

constexpr float CONSTS_WGS84_E = 0.0818191908425f
constexpr

◆ CONSTS_WGS84_INVF

constexpr float CONSTS_WGS84_INVF = 298.257223563f
constexpr