mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 19:58:13 +00:00
Revert "AFHDS2A telemetry AA and AC"
This reverts commit 3c76ce9f39c3d4e48a2a7d9482fc152533a189aa.
This commit is contained in:
parent
3c76ce9f39
commit
6f4522caa6
@ -89,13 +89,12 @@ static void AFHDS2A_update_telemetry()
|
|||||||
if (option & 0x80)
|
if (option & 0x80)
|
||||||
{// forward 0xAA and 0xAC telemetry to TX, skip rx and tx id to save space
|
{// forward 0xAA and 0xAC telemetry to TX, skip rx and tx id to save space
|
||||||
pkt[0]= TX_RSSI;
|
pkt[0]= TX_RSSI;
|
||||||
debug("T(%02X)=",packet[0]);
|
debug("T=");
|
||||||
for(uint8_t i=9;i < AFHDS2A_RXPACKET_SIZE; i++)
|
for(int i=9;i < AFHDS2A_RXPACKET_SIZE; i++)
|
||||||
{
|
{
|
||||||
pkt[i-8]=packet[i];
|
pkt[i-8]=packet[i];
|
||||||
debug(" %02X",packet[i]);
|
debug(" %02X",packet[i]);
|
||||||
}
|
}
|
||||||
pkt[29]=packet[0]; // 0xAA Normal telemetry, 0xAC Extended telemetry
|
|
||||||
telemetry_link=2;
|
telemetry_link=2;
|
||||||
debugln("");
|
debugln("");
|
||||||
return;
|
return;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#define VERSION_MAJOR 1
|
#define VERSION_MAJOR 1
|
||||||
#define VERSION_MINOR 2
|
#define VERSION_MINOR 2
|
||||||
#define VERSION_REVISION 1
|
#define VERSION_REVISION 1
|
||||||
#define VERSION_PATCH_LEVEL 77
|
#define VERSION_PATCH_LEVEL 76
|
||||||
|
|
||||||
//******************
|
//******************
|
||||||
// Protocols
|
// Protocols
|
||||||
@ -320,7 +320,6 @@ enum MultiPacketTypes
|
|||||||
MULTI_TELEMETRY_SPORT_POLLING = 9,
|
MULTI_TELEMETRY_SPORT_POLLING = 9,
|
||||||
MULTI_TELEMETRY_HITEC = 10,
|
MULTI_TELEMETRY_HITEC = 10,
|
||||||
MULTI_TELEMETRY_SCANNER = 11,
|
MULTI_TELEMETRY_SCANNER = 11,
|
||||||
MULTI_TELEMETRY_AFHDS2A_AC = 12,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Macros
|
// Macros
|
||||||
@ -876,7 +875,7 @@ Serial: 100000 Baud 8e2 _ xxxx xxxx p --
|
|||||||
technically DSM bind data is only 10 bytes but multi sends 16
|
technically DSM bind data is only 10 bytes but multi sends 16
|
||||||
like with telemtery, check length field)
|
like with telemtery, check length field)
|
||||||
|
|
||||||
Type 0x06 Flysky AFHDS2 telemetry data type 0xAA
|
Type 0x06 Flysky AFHDS2 telemetry data
|
||||||
length: 29
|
length: 29
|
||||||
data[0] = RSSI value
|
data[0] = RSSI value
|
||||||
data[1-28] telemetry data
|
data[1-28] telemetry data
|
||||||
@ -889,14 +888,8 @@ Serial: 100000 Baud 8e2 _ xxxx xxxx p --
|
|||||||
data[3-7] telemetry data
|
data[3-7] telemetry data
|
||||||
Full description at the bottom of Hitec_cc2500.ino
|
Full description at the bottom of Hitec_cc2500.ino
|
||||||
|
|
||||||
Type 0x0B Spectrum Scanner telemetry data
|
Type 0x0B Spectrum Scanner telemetry data
|
||||||
length: 6
|
length: 6
|
||||||
data[0] = start channel (2400 + x*0.333 Mhz)
|
data[0] = start channel (2400 + x*0.333 Mhz)
|
||||||
data[1-5] power levels
|
data[1-5] power levels
|
||||||
|
|
||||||
Type 0x0C Flysky AFHDS2 telemetry data type 0xAC
|
|
||||||
length: 29
|
|
||||||
data[0] = RSSI value
|
|
||||||
data[1-28] telemetry data
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
@ -171,7 +171,7 @@ volatile uint8_t rx_ok_buff[RXBUFFER_SIZE];
|
|||||||
volatile uint8_t discard_frame = 0;
|
volatile uint8_t discard_frame = 0;
|
||||||
|
|
||||||
// Telemetry
|
// Telemetry
|
||||||
#define MAX_PKT 30
|
#define MAX_PKT 29
|
||||||
uint8_t pkt[MAX_PKT];//telemetry receiving packets
|
uint8_t pkt[MAX_PKT];//telemetry receiving packets
|
||||||
#if defined(TELEMETRY)
|
#if defined(TELEMETRY)
|
||||||
#ifdef INVERT_TELEMETRY
|
#ifdef INVERT_TELEMETRY
|
||||||
|
@ -188,9 +188,9 @@ static void multi_send_status()
|
|||||||
void AFHDSA_short_frame()
|
void AFHDSA_short_frame()
|
||||||
{
|
{
|
||||||
#if defined MULTI_TELEMETRY
|
#if defined MULTI_TELEMETRY
|
||||||
multi_send_header(pkt[29]==0xAA?MULTI_TELEMETRY_AFHDS2A,MULTI_TELEMETRY_AFHDS2A_AC, 29);
|
multi_send_header(MULTI_TELEMETRY_AFHDS2A, 29);
|
||||||
#else
|
#else
|
||||||
Serial_write(pkt[29]); // Telemetry packet 0xAA or 0xAC
|
Serial_write(0xAA); // Telemetry packet
|
||||||
#endif
|
#endif
|
||||||
for (uint8_t i = 0; i < 29; i++) // RSSI value followed by 4*7 bytes of telemetry data
|
for (uint8_t i = 0; i < 29; i++) // RSSI value followed by 4*7 bytes of telemetry data
|
||||||
Serial_write(pkt[i]);
|
Serial_write(pkt[i]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user