14,7 → 14,7 |
|
#define VERSION_MAJOR 0 |
#define VERSION_MINOR 25 |
#define VERSION_PATCH 10 |
#define VERSION_PATCH 12 |
// 0 = A |
// 1 = B |
// 2 = C |
35,7 → 35,7 |
#define VERSION_SERIAL_MINOR 0 |
|
#ifndef FOLLOW_ME |
#define FC_SPI_COMPATIBLE 24 |
#define FC_SPI_COMPATIBLE 25 |
#else |
#define FC_SPI_COMPATIBLE 0xFF |
#endif |
88,25 → 88,25 |
#define NCERR_FLAG_EEPROM_NOT_FOUND 0x00000080 |
|
// Parameter.GlobalConfig |
#define FC_CFG_HOEHENREGELUNG 0x01 |
#define FC_CFG_HOEHEN_SCHALTER 0x02 |
#define FC_CFG_HEADING_HOLD 0x04 |
#define FC_CFG_KOMPASS_AKTIV 0x08 |
#define FC_CFG_KOMPASS_FIX 0x10 |
#define FC_CFG_GPS_AKTIV 0x20 |
#define FC_CFG_ACHSENKOPPLUNG_AKTIV 0x40 |
#define FC_CFG_DREHRATEN_BEGRENZER 0x80 |
#define FC_CFG_HOEHENREGELUNG 0x01 |
#define FC_CFG_HOEHEN_SCHALTER 0x02 |
#define FC_CFG_HEADING_HOLD 0x04 |
#define FC_CFG_KOMPASS_AKTIV 0x08 |
#define FC_CFG_KOMPASS_FIX 0x10 |
#define FC_CFG_GPS_AKTIV 0x20 |
#define FC_CFG_ACHSENKOPPLUNG_AKTIV 0x40 |
#define FC_CFG_DREHRATEN_BEGRENZER 0x80 |
|
//Parameter.ExtraConfig |
#define CFG2_HEIGHT_LIMIT 0x01 |
#define CFG2_VARIO_BEEP 0x02 |
#define CFG_SENSITIVE_RC 0x04 |
#define CFG_3_3V_REFERENCE 0x08 |
#define CFG_NO_RCOFF_BEEPING 0x10 |
#define CFG_GPS_AID 0x20 |
#define CFG_TEACHABLE_CAREFREE 0x40 |
//Parameter.ExtraConfig |
#define CFG2_HEIGHT_LIMIT 0x01 |
#define CFG2_VARIO_BEEP 0x02 |
#define CFG_SENSITIVE_RC 0x04 |
#define CFG_3_3V_REFERENCE 0x08 |
#define CFG_NO_RCOFF_BEEPING 0x10 |
#define CFG_GPS_AID 0x20 |
#define CFG_TEACHABLE_CAREFREE 0x40 |
#define CFG_IGNORE_MAG_ERR_AT_STARTUP 0x80 |
|
|
#define LIMIT_MIN(value, min) {if(value <= min) value = min;} |
#define LIMIT_MAX(value, max) {if(value >= max) value = max;} |
#define LIMIT_MIN_MAX(value, min, max) {if(value <= min) value = min; else if(value >= max) value = max;} |