Page 2 of 2

Re: Crossfire telemetry and GPS data

Posted: Wed Jan 16, 2019 10:17 pm
by jhsa
This is great Mike, thanks.. Question, would it be possible to increase the number of custom telemetry fields in the future?

Thanks

João

Re: Crossfire telemetry and GPS data

Posted: Wed Jan 16, 2019 10:38 pm
by MikeB
It may be possible, but what for?

Mike

Re: Crossfire telemetry and GPS data

Posted: Thu Jan 17, 2019 12:18 am
by jhsa
You never know the future. At the rate things get developed. i wouldn't be surprised if they were needed soon :)

João

Re: Crossfire telemetry and GPS data

Posted: Thu Jan 17, 2019 9:36 am
by MikeB
You may use a Scaler as well if you just need to re-name something. I'll add more custom items if/when they are needed.

Mike

Re: Crossfire telemetry and GPS data

Posted: Thu Jan 17, 2019 10:10 am
by jhsa
That is what I meant. There is the possibility. Thanks Mike

João

Sent from my BLN-L21 using Tapatalk


Re: Crossfire telemetry and GPS data

Posted: Mon Aug 02, 2021 1:47 pm
by grifild
MikeB wrote: Wed Jan 16, 2019 10:38 pm It may be possible, but what for?

Mike
Hi, Mike! Would it be possible to increase the number of custom telemetry fields?
After you add XFIRE protocol for AR9X board I am starting experimenting with Express LRS.
But ELRS sends 10 custom sensors, one that I needed is TX power (TPWR in OpenTX)

Here is screen from TX16S with ERLS and from AR9X with Custom sensors
IMG_20210802_143443.jpg
(599.94 KiB) Not downloaded yet
IMG_20210802_143145.jpg
(637.43 KiB) Not downloaded yet
Also Custom sensor 1 show TX_RSSI1 in strange value, at the erskyTX "239" and at TX16S at the same spot "-16dB". I guess that I need some scaler but what Multiplier and divider should I use for it? I could also record raw telemetry log from debug menu if it's needed.

Thank you

Re: Crossfire telemetry and GPS data

Posted: Mon Aug 02, 2021 3:04 pm
by MikeB
Try the test version I've just posted. For the RSSI value, it looks like the value is a signed, 8-bit value, so just try subtracting 256.
There should be 10 custom sensors, and the Tx power one (Cus7), should have the correct value.

Mike

Re: Crossfire telemetry and GPS data

Posted: Mon Aug 02, 2021 5:32 pm
by grifild
Wow it was fast :) Everything works! For RSSI I created scaler with offset -256 and now it matches the RSSI values at the OSD
One small issue about TX power it shows 0 for 50mw and 250mw.
10mw, 25mw, 100mw, 500mw and 1000mw shown right.
And also new sensors from 7 to 10 are present only in the drop-down menus and are not present at first screen of Telemetry => Sensors, where they can be renamed.


Thank you very much!

Re: Crossfire telemetry and GPS data

Posted: Mon Aug 02, 2021 8:34 pm
by MikeB
Try the one I've just posted, names should be available. The TxPower uses a table of values to look up the actual power from the index returned by the Rx. I've added 250, as I can see in openTx, but I've had to guess that 50 follows in the table, openTx source code doesn't show it.

Mike

Re: Crossfire telemetry and GPS data

Posted: Mon Aug 02, 2021 10:59 pm
by grifild
Perfect, thank you names available for all custom sensors! 250mw power also shows correctly.
And about power 50mw it's well known bug in Crossfire protocol. I found this quote from one of ELRS developer at ELRS Discord server:
We need it as an enum option in the CRSF protocol. Currently it doesn't exist
Also found that new custom sensors not available in the Telemetry => Logging menu, just in case if you want to add it in future test version for other radios also :)

Thank you one more time for fast response and great firmware for my 10 years old TX