NinjaFlight
|
#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include <platform.h>
#include "debug.h"
#include "common/maths.h"
#include "common/axis.h"
#include "common/color.h"
#include "common/utils.h"
#include "common/filter.h"
#include "config/tilt.h"
#include "drivers/sensor.h"
#include "drivers/accgyro.h"
#include "drivers/compass.h"
#include "drivers/light_led.h"
#include "drivers/system.h"
#include "drivers/serial.h"
#include "drivers/gyro_sync.h"
#include "drivers/pwm_output.h"
#include "io/rc_adjustments.h"
#include "sensors/sonar.h"
#include "sensors/compass.h"
#include "sensors/acceleration.h"
#include "sensors/gyro.h"
#include "sensors/battery.h"
#include "sensors/initialisation.h"
#include "io/beeper.h"
#include "io/display.h"
#include "io/ledstrip.h"
#include "io/serial.h"
#include "io/serial_msp.h"
#include "io/statusindicator.h"
#include "io/transponder_ir.h"
#include "rx/rx.h"
#include "rx/msp.h"
#include "telemetry/telemetry.h"
#include "blackbox/blackbox.h"
#include "flight/rate_profile.h"
#include "flight/mixer.h"
#include "flight/anglerate.h"
#include "flight/altitudehold.h"
#include "flight/failsafe.h"
#include "flight/gtune.h"
#include "flight/navigation.h"
#include "flight/tilt.h"
#include "sensors/instruments.h"
#include "config/config.h"
#include "config/feature.h"
#include "ninjaflight.h"
Macros | |
#define | TELEMETRY_FUNCTION_MASK (FUNCTION_TELEMETRY_FRSKY | FUNCTION_TELEMETRY_HOTT | FUNCTION_TELEMETRY_SMARTPORT | FUNCTION_TELEMETRY_LTM | FUNCTION_TELEMETRY_MAVLINK) |
Enumerations | |
enum | { ALIGN_GYRO = 0, ALIGN_ACCEL = 1, ALIGN_MAG = 2 } |
Functions | |
bool | ninja_is_calibrating (struct ninja *self) |
void | ninja_calibrate_acc (struct ninja *self) |
void | ninja_calibrate_mag (struct ninja *self) |
Variables | |
uint32_t | currentTime |
#define TELEMETRY_FUNCTION_MASK (FUNCTION_TELEMETRY_FRSKY | FUNCTION_TELEMETRY_HOTT | FUNCTION_TELEMETRY_SMARTPORT | FUNCTION_TELEMETRY_LTM | FUNCTION_TELEMETRY_MAVLINK) |
void ninja_calibrate_acc | ( | struct ninja * | self | ) |
void ninja_calibrate_mag | ( | struct ninja * | self | ) |
bool ninja_is_calibrating | ( | struct ninja * | self | ) |
uint32_t currentTime |