Flysky Altimeter telemetry

More
14 Jun 2019 08:11 #74529 by propnut
Flysky Altimeter telemetry was created by propnut
I raised this question some time ago on the general thread. Currently the Flysky protocol supports a Variometer/Altimeter. This sensor is discovered perfectly on the Flysky i10 and works great but I would really like to use it on my Devo 10. The last time I asked if support for this telemetry could be included the answer came back as yes but unfortunately it still does not appear to be there. Is there still any possibility of adding this support ?

Many thanks

Please Log in or Create an account to join the conversation.

More
14 Jun 2019 15:25 #74534 by hexfet
Replied by hexfet on topic Flysky Altimeter telemetry
Please try the test build ( 63c8836) here . Discussion was here .

Please Log in or Create an account to join the conversation.

More
17 Jun 2019 19:39 #74557 by propnut
Replied by propnut on topic Flysky Altimeter telemetry
Hi Hexfet

Ok I tried the build and indeed it does see that the sensor is there now but reports it as being a temperature sensor. Bizarrely enough if I hold the sensor in my hand the reported temperature goes up so Flysky must be sharing circuitry between the altitude and temperature sensors but how I have no idea. Is there any way of getting it to detect it correctly as an altitude variometer.

Thanks

Please Log in or Create an account to join the conversation.

More
18 Jun 2019 00:21 #74561 by hexfet
Replied by hexfet on topic Flysky Altimeter telemetry
The sensor only reports temperature and pressure. The altitude is calculated from that, but hadn't added that code.

Test build is updated ( c0b217e ).

Was the displayed temperature anywhere close to the actual temp?

Please Log in or Create an account to join the conversation.

More
18 Jun 2019 09:05 #74564 by propnut
Replied by propnut on topic Flysky Altimeter telemetry
The temperature is pretty much perfect. The new build is now identifying that there is an altitude sensor there on row 6 of the telemetry page but the value stays at 0m.

Please Log in or Create an account to join the conversation.

More
19 Jun 2019 00:25 #74570 by hexfet
Replied by hexfet on topic Flysky Altimeter telemetry
Test build is updated ( 34ea590 ). Had to make some adjustments to the altitude calculation.

The altitude is displayed AGL. Long press on UP at the top of the telemetry test page will reset it to 0.

Please Log in or Create an account to join the conversation.

More
20 Jun 2019 19:37 #74578 by propnut
Replied by propnut on topic Flysky Altimeter telemetry
Unfortunately the receiver will no longer bind to the radio. When I press bind I get a flash in the receiver suggesting that a bind has occurred but then the receiver just starts a slow blink. I get voltage telemetry but no activity out of any of the channels.

Please Log in or Create an account to join the conversation.

More
21 Jun 2019 16:31 #74584 by hexfet
Replied by hexfet on topic Flysky Altimeter telemetry
Test build is updated ( 4598caf ). My guess is the altitude calculation was taking too long and disrupting the protocol timing. After looking into it I think a linear approximation is fine for RC altitudes. And since only a relative value is displayed the temperature compensation isn't really important.

Please Log in or Create an account to join the conversation.

More
21 Jun 2019 19:33 #74585 by propnut
Replied by propnut on topic Flysky Altimeter telemetry
Unfortunately still no bind and now no telemetry is being shown. When I revert back to build c0b217e bind works again.

Please Log in or Create an account to join the conversation.

More
21 Jun 2019 21:20 #74586 by hexfet
Replied by hexfet on topic Flysky Altimeter telemetry
Thanks for noting the last working version. Made it easy to compare and spot the issue. Test build is updated ( 218342d ).

Please Log in or Create an account to join the conversation.

More
22 Jun 2019 13:49 #74589 by propnut
Replied by propnut on topic Flysky Altimeter telemetry
Hey..good news. Bind working perfectly AND I am now getting altitude. Only thing is the multiplier is out. So when it is at 1m it is saying 0.01m and 2m = 0.02m so that figure or factor needs to be multiplied by 100. Also when I turn off the receiver the RSSI and Battery telemetry fields go black but the temperature and alt stay non-inverted.

Please Log in or Create an account to join the conversation.

More
24 Jun 2019 20:45 #74601 by hexfet
Replied by hexfet on topic Flysky Altimeter telemetry
That's good news. Test build is updated ( 9603540 ). Scale factor for altitude is adjusted.

The A7105 radio chip does not provide a software means for detecting that a new receive packet has arrived. Deviation reads the receive buffer on every protocol cycle. Likely the temp and alt telemetry stays active because the last telemetry packet contained that data, and it continues to be read after the receiver is turned off.

Please Log in or Create an account to join the conversation.

Time to create page: 0.292 seconds
Powered by Kunena Forum