Skip to content

Commit a441265

Browse files
committedJan 18, 2025·
Yuxiang telemetry
Offset=7, Ratio=3.5
1 parent 7fbca99 commit a441265

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed
 

‎Multiprotocol/Multiprotocol.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define VERSION_MAJOR 1
2020
#define VERSION_MINOR 3
2121
#define VERSION_REVISION 4
22-
#define VERSION_PATCH_LEVEL 17
22+
#define VERSION_PATCH_LEVEL 18
2323

2424
#define MODE_SERIAL 0
2525

‎Multiprotocol/Yuxiang_nrf24l01.ino

+11-7
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Multiprotocol is distributed in the hope that it will be useful,
2626
#define YUXIANG_RF_NUM_CHANNELS 4
2727

2828
#define YUXIANG_WRITE_TIME 1000
29-
#define YUXIANG_TELEM_DEBUG
29+
>>#define YUXIANG_TELEM_DEBUG
3030

3131
enum
3232
{
@@ -163,18 +163,22 @@ uint16_t YUXIANG_callback()
163163
#endif
164164
if(XN297_ReadPayload(packet_in, YUXIANG_PACKET_SIZE))
165165
{ // packet with good CRC and length
166-
#ifdef YUXIANG_TELEM_DEBUG
167-
debug("OK:");
168-
for(uint8_t i=0;i<YUXIANG_PACKET_SIZE;i++)
169-
debug(" %02X",packet_in[i]);
170-
#endif
171166
uint8_t checksum = 0;
172167
for(uint8_t i=0; i<YUXIANG_PACKET_SIZE-1; i++)
173168
checksum += packet_in[i];
174169
if(packet_in[8] == checksum)
175170
{
176171
#ifdef YUXIANG_HUB_TELEMETRY
177-
v_lipo1 = packet_in[4];
172+
if(packet_in[0]==0x78)
173+
{
174+
#ifdef YUXIANG_TELEM_DEBUG
175+
debug("OK:");
176+
for(uint8_t i=0;i<YUXIANG_PACKET_SIZE;i++)
177+
debug(" %02X",packet_in[i]);
178+
#endif
179+
v_lipo1 = packet_in[4];
180+
v_lipo2 = packet_in[6];
181+
}
178182
telemetry_link = 1;
179183
#endif
180184
telemetry_lost = 0;

‎Protocols_Details.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2193,7 +2193,7 @@ Same channels assignement as above.
21932193
Models: E190, F07 UH-1D
21942194

21952195
**Only 2 TX ID, use the RX number to switch**.
2196-
Telemetry is received but content unknown yet.
2196+
Telemetry A1=Batt voltage with a Ratio 3.5 and Offset 7, A2=Low batt with 0=OK, everything else=BAD
21972197

21982198
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
21992199
---|---|---|---|---|---|---|---|---|---|---

0 commit comments

Comments
 (0)
Please sign in to comment.