Hummingbird Flight Software
Flight software for the Hummingbird FCU quadcopter flight controller. Designed to run on the Teensy 4.1. Developed with VSCode+PlatformIO.
fxas21002_gyro_tests.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // FXAS21002 GYRO UNIT TESTS
3 //
4 // Code By: Michael Wrona
5 // Created: 27 Aug 2021
6 // ----------------------------------------------------------------------------
12 #ifdef UNIT_TEST
13 #pragma once
14 
15 #include <unity.h>
16 #include <Wire.h>
17 #include <math.h>
18 #include <Arduino.h>
19 #include "hummingbird_config.h"
21 
22 void test_fxas21002_init_250dps(void);
23 void test_fxas21002_init_500dps(void);
24 void test_fxas21002_init_1000dps(void);
25 void test_fxas21002_init_2000dps(void);
26 void test_fxas21002_self_test(void);
27 
28 
29 void FXAS21002_I2Cwrite8(TwoWire *sensorWire, uint8_t regOfInterest, uint8_t valToWrite);
30 uint8_t FXAS21002_I2Cread8(TwoWire *sensorWire, uint8_t regOfInterest);
31 
32 #endif // UNIT_TEST