NinjaFlight
|
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
#include <fcntl.h>
#include <platform.h>
#include "build_config.h"
#include "debug.h"
#include "common/axis.h"
#include "common/color.h"
#include "common/maths.h"
#include "common/streambuf.h"
#include "common/utils.h"
#include "drivers/sensor.h"
#include "drivers/system.h"
#include "drivers/light_led.h"
#include "drivers/serial.h"
#include "drivers/serial_softserial.h"
#include "drivers/serial_uart.h"
#include "drivers/accgyro.h"
#include "drivers/compass.h"
#include "drivers/inverter.h"
#include "drivers/gyro_sync.h"
#include "rx/rx.h"
#include "rx/spektrum.h"
#include "io/serial.h"
#include "io/ledstrip.h"
#include "io/display.h"
#include "io/transponder_ir.h"
#include "io/serial_msp.h"
#include "sensors/sonar.h"
#include "sensors/barometer.h"
#include "sensors/compass.h"
#include "sensors/acceleration.h"
#include "sensors/gyro.h"
#include "sensors/battery.h"
#include "sensors/boardalignment.h"
#include "sensors/initialisation.h"
#include "telemetry/telemetry.h"
#include "blackbox/blackbox.h"
#include "flight/anglerate.h"
#include "flight/mixer.h"
#include "flight/failsafe.h"
#include "flight/navigation.h"
#include "config/config.h"
#include "config/feature.h"
#include "system_calls.h"
#include "sitl.h"
#include "ninja.h"
#include <time.h>
#include <termio.h>
#include <sys/stat.h>
Data Structures | |
struct | application |
struct | sitl_serial_port |
Macros | |
#define | SITL_EEPROM_PAGE_SIZE 4096 |
#define | SITL_EEPROM_NUM_PAGES 1 |
Variables | |
int | flash_fd = -1 |
uint8_t | stateFlags |
uint16_t | flightModeFlags |
uint32_t | rcModeActivationMask = 0 |
float | magneticDeclination = 0 |
uint8_t | cliMode |
int16_t | debug [DEBUG16_VALUE_COUNT] |
#define SITL_EEPROM_NUM_PAGES 1 |
#define SITL_EEPROM_PAGE_SIZE 4096 |
int16_t adcGetChannel | ( | uint8_t | chan | ) |
void failureMode | ( | uint8_t | mode | ) |
struct fc_sitl_server_interface * fc_sitl_create_aircraft | ( | struct fc_sitl_client_interface * | cl | ) |
int getLedHsv | ( | void | ) |
uint32_t gyro_sync_get_looptime | ( | void | ) |
bool isAccelerationCalibrationComplete | ( | void | ) |
bool isGyroCalibrationComplete | ( | void | ) |
bool isWS2811LedStripReady | ( | void | ) |
serialPort_t* openSoftSerial | ( | softSerialPortIndex_e | id, |
serialReceiveCallbackPtr | callback, | ||
uint32_t | baudRate, | ||
portOptions_t | options | ||
) |
void recalculateMagneticDeclination | ( | void | ) |
void setAccelerationTrims | ( | flightDynamicsTrims_t * | trims | ) |
void setLedHsv | ( | void | ) |
void setStripColor | ( | const hsvColor_t * | color | ) |
void systemReset | ( | void | ) |
void systemResetToBootloader | ( | void | ) |
serialPort_t* uartOpen | ( | uint8_t | id, |
serialReceiveCallbackPtr | callback, | ||
uint32_t | baudRate, | ||
portMode_t | mode, | ||
portOptions_t | options | ||
) |
serialPort_t* usbVcpOpen | ( | uint8_t | id, |
serialReceiveCallbackPtr | callback, | ||
uint32_t | baudRate, | ||
portMode_t | mode, | ||
portOptions_t | options | ||
) |
void validateAndFixConfig | ( | void | ) |
void ws2811LedStripInit | ( | void | ) |
void ws2811UpdateStrip | ( | void | ) |
uint8_t cliMode |
int16_t debug[DEBUG16_VALUE_COUNT] |
int flash_fd = -1 |
uint16_t flightModeFlags |
float magneticDeclination = 0 |
uint32_t rcModeActivationMask = 0 |
uint8_t stateFlags |