![]() |
Hummingbird Flight Software
Flight software for the Hummingbird FCU quadcopter flight controller. Designed to run on the Teensy 4.1. Developed with VSCode+PlatformIO.
|
#include <Arduino.h>
#include <math.h>
#include <Wire.h>
#include "hummingbird_config.h"
#include "debugging.h"
#include "sensor_drivers/fxos8700_accelmag.h"
#include "sensor_drivers/fxas21002_gyro.h"
#include "maths/math_functs.h"
#include "maths/matrices.h"
#include "maths/vectors.h"
#include "filters/median_filter.h"
#include "filters/low_pass_filter.h"
#include "sensor_systems/inertial_nav_system.h"
#include "sensor_systems/battery_monitor.h"
Functions | |
void | setup () |
void | loop () |
Variables | |
unsigned long | prev = 0 |
DEV'S TO-DO ITEMS [] Range checks on accelerometer and magnetometer measurements [] Error handling for sensor initializations [] Range checks on gyro measurements [] Range checks on barometer measurements [x] Finalize median filter class [] Finalize low-pass filter class [] Investigate computing vertical speed with baro. More... | |
unsigned long | prev2 = 0 |
unsigned long | now = 0 |
MedianFilter | Filt (20, 500.0f) |
float | v = 0.0f |
void loop | ( | ) |
void setup | ( | ) |
MedianFilter Filt(20, 500.0f) | ( | 20 | , |
500. | 0f | ||
) |
unsigned long now = 0 |
unsigned long prev = 0 |
DEV'S TO-DO ITEMS [] Range checks on accelerometer and magnetometer measurements [] Error handling for sensor initializations [] Range checks on gyro measurements [] Range checks on barometer measurements [x] Finalize median filter class [] Finalize low-pass filter class [] Investigate computing vertical speed with baro.
sensor [] Implement "Altimeter()" object for computing altitude, temperature, and vertical speed
unsigned long prev2 = 0 |
float v = 0.0f |