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

Go to the source code of this file.

Macros

#define SENSOR_I2C   Wire2
 UBER-EXTREME CAUTION SHOULD BE USED CHANGING PARAMETERS IN THIS FILE. More...
 
#define GPS_I2C   Wire2
 
#define TELEM_PORT   Serial8
 
#define AUX_I2C   Wire
 
#define AUX_SERIAL   Serial4
 
#define VCC_PIN   22
 
#define RED_LED   15
 
#define GRN_LED   14
 

Variables

constexpr float FLOAT_PREC_ZERO = 1e-7F
 Define floating point precision for floats close to zero. More...
 
constexpr float FLOAT_PREC_ZERO_NOISY = 1e-5F
 

Macro Definition Documentation

◆ AUX_I2C

#define AUX_I2C   Wire

AUXILLIARY I2C BUS

Extra I2C bus on the top of the Hummingbird FCU. Used to connect extra I2C devices to the board. Found in hummingbird_config.h

◆ AUX_SERIAL

#define AUX_SERIAL   Serial4

AUXILLIARY SERIAL/UART BUS

UART/serial port used to connect an additional serial device. Found in hummingbird_config.h

◆ GPS_I2C

#define GPS_I2C   Wire2

GPS SERIAL/UART BUS

UART/serial port that the GPS is connected to. Found in hummingbird_config.h<hr>

GPS I2C BUS

I2C bus that the GPS is connected to. Found in hummingbird_config.h

◆ GRN_LED

#define GRN_LED   14

◆ RED_LED

#define RED_LED   15

RGB LED PIN DEFINITIONS

Found in hummingbird_config.h

◆ SENSOR_I2C

#define SENSOR_I2C   Wire2

UBER-EXTREME CAUTION SHOULD BE USED CHANGING PARAMETERS IN THIS FILE.

THEY
AREN'T MEANT TO EVER CHANGE!

This header contains configuration parameters and a few #defines for the Hummingbird FCU.


SENSOR I2C BUS

This is the Teensy 4.1 's I2C bus that the FXOS8700 accelerometer/compass, FXAS21002 gyro, GPS compass, and BMP388 barometer/temperature sensor are connected to. Found in hummingbird_config.h

◆ TELEM_PORT

#define TELEM_PORT   Serial8

TELEMETRY SERIAL/UART BUS

UART/serial port that the XBee radio is connected to. Found in hummingbird_config.h

◆ VCC_PIN

#define VCC_PIN   22

VCC INPUT VOLTAGE ANALOG PIN

This is the pin that is connected to the HFCU's voltage divider circuit to read input voltage.

Variable Documentation

◆ FLOAT_PREC_ZERO

constexpr float FLOAT_PREC_ZERO = 1e-7F
constexpr

Define floating point precision for floats close to zero.

These parameters aretypically used to check if a number is close to zero to prevent divide by zero errors. Found in hummingbird_config.h

◆ FLOAT_PREC_ZERO_NOISY

constexpr float FLOAT_PREC_ZERO_NOISY = 1e-5F
constexpr