Hummingbird Flight Software
Flight software for the Hummingbird FCU quadcopter flight controller. Designed to run on the Teensy 4.1. Developed with VSCode+PlatformIO.
test
sensors_test
fxos8700_accel_tests.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// FXOS8700 ACCELEROMETER UNIT TESTS
3
//
4
// Code By: Michael Wrona
5
// Created: 27 Aug 2021
6
// ----------------------------------------------------------------------------
14
#ifdef UNIT_TEST
15
#pragma once
16
#include <unity.h>
17
#include <Arduino.h>
18
#include <Wire.h>
19
#include <math.h>
20
#include "
hummingbird_config.h
"
21
#include "
sensor_drivers/fxos8700_accelmag.h
"
22
23
24
void
test_fxos8700_init_2g(
void
);
25
void
test_fxos8700_init_4g(
void
);
26
void
test_fxos8700_init_8g(
void
);
27
void
test_fxos8700_self_test(
void
);
28
29
void
FXOS8700_I2Cwrite8(TwoWire *sensorWire, uint8_t regOfInterest, uint8_t valToWrite);
30
uint8_t FXOS8700_I2Cread8(TwoWire *sensorWire, uint8_t regOfInterest);
31
32
33
34
#endif
// UNIT_TEST
35
fxos8700_accelmag.h
hummingbird_config.h
Generated by
1.9.1