|
NinjaFlight
|
#include <stdint.h>#include <stdbool.h>#include <math.h>#include <limits.h>#include <platform.h>#include "build_config.h"#include "debug.h"#include "common/axis.h"#include "common/maths.h"#include "config/config.h"#include "drivers/sensor.h"#include "drivers/accgyro.h"#include "drivers/compass.h"#include "sensors/gyro.h"#include "sensors/compass.h"#include "sensors/acceleration.h"#include "sensors/barometer.h"#include "rx/rx.h"#include "flight/mixer.h"#include "flight/anglerate.h"#include "unittest_macros.h"#include "gtest/gtest.h"
Macros | |
| #define | BARO |
Functions | |
| void | input_accel (struct instruments *self, int16_t x, int16_t y, int16_t z) |
| void | input_mag (struct instruments *self, int16_t x, int16_t y, int16_t z) |
| void | input_gyro (struct instruments *self, int16_t x, int16_t y, int16_t z, unsigned int duration) |
| void | reset_trims (void) |
| TEST (InsUnitTest, TestAccCalibration) | |
| TEST (InsUnitTest, TestGyroCalibration) | |
| void | print_ins (struct instruments *self) |
| TEST (InsUnitTest, TestGyroIntegration) | |
| TEST (InsUnitTest, TestEulerAngleCalculation) | |
| TEST (InsUnitTest, TestMagYawAngleCalculation) | |
| #define BARO |
| void input_accel | ( | struct instruments * | self, |
| int16_t | x, | ||
| int16_t | y, | ||
| int16_t | z | ||
| ) |

| void input_gyro | ( | struct instruments * | self, |
| int16_t | x, | ||
| int16_t | y, | ||
| int16_t | z, | ||
| unsigned int | duration | ||
| ) |

| void input_mag | ( | struct instruments * | self, |
| int16_t | x, | ||
| int16_t | y, | ||
| int16_t | z | ||
| ) |

| void print_ins | ( | struct instruments * | self | ) |
| void reset_trims | ( | void | ) |

| TEST | ( | InsUnitTest | , |
| TestAccCalibration | |||
| ) |

| TEST | ( | InsUnitTest | , |
| TestGyroCalibration | |||
| ) |

| TEST | ( | InsUnitTest | , |
| TestGyroIntegration | |||
| ) |

| TEST | ( | InsUnitTest | , |
| TestEulerAngleCalculation | |||
| ) |

| TEST | ( | InsUnitTest | , |
| TestMagYawAngleCalculation | |||
| ) |
