Crossfire telemetry and GPS data

erskyTx runs on many radios and upgrade boards
ersky9x was a port of er9x for use on the sky9x board.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Crossfire telemetry and GPS data

Post 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
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Crossfire telemetry and GPS data

Post by MikeB »

It may be possible, but what for?

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Crossfire telemetry and GPS data

Post 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
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Crossfire telemetry and GPS data

Post 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
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Crossfire telemetry and GPS data

Post by jhsa »

That is what I meant. There is the possibility. Thanks Mike

João

Sent from my BLN-L21 using Tapatalk

My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

grifild
Posts: 22
Joined: Tue May 25, 2021 12:35 pm
Country: -

Re: Crossfire telemetry and GPS data

Post 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
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Crossfire telemetry and GPS data

Post 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
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
grifild
Posts: 22
Joined: Tue May 25, 2021 12:35 pm
Country: -

Re: Crossfire telemetry and GPS data

Post 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!
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Crossfire telemetry and GPS data

Post 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
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
grifild
Posts: 22
Joined: Tue May 25, 2021 12:35 pm
Country: -

Re: Crossfire telemetry and GPS data

Post 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

Post Reply

Return to “erskyTx (was ersky9x)”