14,7 → 14,7 |
|
#define VERSION_MAJOR 2 |
#define VERSION_MINOR 9 |
#define VERSION_PATCH 3 |
#define VERSION_PATCH 5 |
// 0 = A |
// 1 = B |
// 2 = C |
36,7 → 36,7 |
// 18 = S |
|
#ifndef FOLLOW_ME |
#define FC_SPI_COMPATIBLE 73 // <------------------ |
#define FC_SPI_COMPATIBLE 74 // <------------------ |
#else |
#define FC_SPI_COMPATIBLE 0xFF |
#endif |
65,6 → 65,28 |
#define FC_STATUS3_REDUNDANCE 0x01 |
#define FC_STATUS3_BOAT 0x02 |
|
#define OSD_FLAG_MASK1 (0x04 + 0x20 + 0x40 + 0x80) |
#define OSD_FLAG_MASK2 (0x01 + 0x02 + 0x08 + 0x10) |
|
// .NCFlags |
#define NC_FLAG_FREE 0x01 |
#define NC_FLAG_PH 0x02 |
#define NC_FLAG_CH 0x04 |
#define NC_FLAG_RANGE_LIMIT 0x08 |
#define NC_FLAG_NOSERIALLINK 0x10 |
#define NC_FLAG_TARGET_REACHED 0x20 |
#define NC_FLAG_MANUAL_CONTROL 0x40 |
#define NC_FLAG_GPS_OK 0x80 |
|
|
// NC calculates |
//OSDStatusFlags = (FC.StatusFlags & OSD_FLAG_MASK1) | (FC.StatusFlags2 & OSD_FLAG_MASK2); |
//OSDStatusFlags2 = (FC.StatusFlags & ~OSD_FLAG_MASK1) | (FC.StatusFlags2 & ~OSD_FLAG_MASK2); |
|
//calculate Back: |
//FC.StatusFlags = (OSDStatusFlags & OSD_FLAG_MASK1) | (OSDStatusFlags2 & ~OSD_FLAG_MASK1); |
//FC.StatusFlags2 = (OSDStatusFlags & OSD_FLAG_MASK2) | (OSDStatusFlags2 & ~OSD_FLAG_MASK2); |
|
// FC ERRORS FLAGS |
#define FC_ERROR0_GYRO_NICK 0x01 |
#define FC_ERROR0_GYRO_ROLL 0x02 |
219,7 → 241,7 |
u8 Poti[8]; |
u8 RC_Quality; |
u8 RC_RSSI; |
u8 BAT_Voltage; |
u16 BAT_Voltage; |
u16 BAT_Current; |
u16 BAT_UsedCapacity; |
u8 StatusFlags; |