mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 19:58:13 +00:00
OMP: prevent telemetry voltage from rolling over
This commit is contained in:
parent
fedd04b724
commit
df45a3ff83
@ -19,7 +19,7 @@
|
|||||||
#define VERSION_MAJOR 1
|
#define VERSION_MAJOR 1
|
||||||
#define VERSION_MINOR 3
|
#define VERSION_MINOR 3
|
||||||
#define VERSION_REVISION 1
|
#define VERSION_REVISION 1
|
||||||
#define VERSION_PATCH_LEVEL 65
|
#define VERSION_PATCH_LEVEL 66
|
||||||
|
|
||||||
//******************
|
//******************
|
||||||
// Protocols
|
// Protocols
|
||||||
|
@ -187,7 +187,11 @@ uint16_t OMP_callback()
|
|||||||
// packet_in = 01 00 98 2C 03 19 19 F0 49 02 00 00 00 00 00 00
|
// packet_in = 01 00 98 2C 03 19 19 F0 49 02 00 00 00 00 00 00
|
||||||
// all bytes are fixed and unknown except 2 and 3 which represent the battery voltage: packet_in[3]*256+packet_in[2]=lipo voltage*100 in V
|
// all bytes are fixed and unknown except 2 and 3 which represent the battery voltage: packet_in[3]*256+packet_in[2]=lipo voltage*100 in V
|
||||||
telemetry_counter++; //LQI
|
telemetry_counter++; //LQI
|
||||||
v_lipo1=((packet_in[3]<<8)+packet_in[2]-400)/50;
|
uint16_t v=((packet_in[3]<<8)+packet_in[2]-400)/50;
|
||||||
|
if(v>255)
|
||||||
|
v_lipo1=255;
|
||||||
|
else
|
||||||
|
v_lipo1=v;
|
||||||
telemetry_link=1;
|
telemetry_link=1;
|
||||||
if(telemetry_lost)
|
if(telemetry_lost)
|
||||||
{
|
{
|
||||||
|
@ -556,6 +556,7 @@ You should definitively upgrade your receivers/sensors to the latest firmware ve
|
|||||||
Model: OMPHOBBY M2 Heli, T720 RC Glider
|
Model: OMPHOBBY M2 Heli, T720 RC Glider
|
||||||
|
|
||||||
Telemetry supported with A1=battery voltage (you need to adjust the offset with a voltmeter since there are some large differences between the models), RX_RSSI = TQly = percentage of received telemetry packets which has nothing to do with well the RX is receiving the TX but instead how well the TX=multi module is receiving the RX.
|
Telemetry supported with A1=battery voltage (you need to adjust the offset with a voltmeter since there are some large differences between the models), RX_RSSI = TQly = percentage of received telemetry packets which has nothing to do with well the RX is receiving the TX but instead how well the TX=multi module is receiving the RX.
|
||||||
|
Telemetry is using the NRF24L01 RF component @250K so depending on your module it might not work well.
|
||||||
|
|
||||||
Option for this protocol corresponds to fine frequency tuning. This value is different for each Module and **must** be accurate otherwise the link will not be stable.
|
Option for this protocol corresponds to fine frequency tuning. This value is different for each Module and **must** be accurate otherwise the link will not be stable.
|
||||||
Check the [Frequency Tuning page](/docs/Frequency_Tuning.md) to determine it.
|
Check the [Frequency Tuning page](/docs/Frequency_Tuning.md) to determine it.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user