DSM Telemetry support

More
25 Apr 2015 09:07 #31600 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
Telemetry.gps.velocity = float_to_int(&packet[1]); ??? Probably Telemetry.gps.velocity = float_to_int(&packet[7]);

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

More
25 Apr 2015 10:05 #31602 by Indigo
Replied by Indigo on topic DSM Telemetry support

vlad_vy wrote: Telemetry.gps.velocity = float_to_int(&packet[1]); ??? Probably Telemetry.gps.velocity = float_to_int(&packet[7]);


Problem solved. New version 8fe505c has been uploaded to Test Builds.

Source

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

More
25 Apr 2015 10:27 #31603 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
Devo GPS telemetry is OK.

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

More
25 Apr 2015 11:31 - 25 Apr 2015 11:48 #31605 by Indigo
Replied by Indigo on topic DSM Telemetry support

PhracturedBlue wrote: I can't say that'll make me happy. Devo adn DSM and FrSky do not use the same format for telemetry. Converting to a common format makes the code more manageable and lets us use common functions everywhere. Storing GPS data differently for different protocols will likely add more code into the main body of deviation, and will certainly make adding new protocols more complicated.
I also don't think you'll save very much at the protocol level. there are likely better places to spend optimization effort. I'd start by looking at the disassembly for the dsm protocol and figure out which functions are largest.
Prove me wrong :)


I believe I can make it fit. The common format will be DSM's raw format which could be displayed using printf("%x") or at least the data conversion done within each protocols telemetry value handling code where each protocol can have it's own display code and code to convert to common value format... but that will take time...

So I don't hold things up, I have restored almost all GPS support to Devo7e (excludes GPS Time).

Pull Request and Source
Last edit: 25 Apr 2015 11:48 by Indigo.

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

More
25 Apr 2015 14:15 #31607 by PhracturedBlue
Replied by PhracturedBlue on topic DSM Telemetry support
I looked at it and provided a response on bitbucket. I only mention it here because I'm not sure bitbucket mail is working (I didn't get a notification of your update)

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

More
25 Apr 2015 23:00 #31622 by Indigo
Replied by Indigo on topic DSM Telemetry support
Thanks PB. The protocol changes are ready for review and merge.

The advantage of combining the 2 x Devo callbacks is being able to turn telemetry on/off without having to rebind. For example you are flying with telemetry off and you suspect radio interference problem so you quickly land aircraft and then switch telemetry on to retrieve telemetry data and review it.

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

More
25 Apr 2015 23:08 #31623 by PhracturedBlue
Replied by PhracturedBlue on topic DSM Telemetry support
the primary reason they aren't combined is that I don't trust the telemtery code to be as reliable as the non-telemtery code. That will only change with a lot more testing than has happened so far.

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

More
26 Apr 2015 07:33 #31634 by Indigo
Replied by Indigo on topic DSM Telemetry support
Ok, thanks PhracturedBlue.

Special thanks to: vlad_vy, Thomas.Heiss, Kernowmcrae, linux-user, cmpang, mwm and anyone else who has spent time testing my telemetry updates and providing feedback. I couldn't have done it without you guys. :)

Final test version fd018d1 has been uploaded to Test Builds.

Link to download page:
[Indigo]Devo/DSMx Telemetry Updates

Source

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

More
26 Apr 2015 08:05 - 26 Apr 2015 08:12 #31635 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
With nightly build FadesA newer go higher 255, no matter how many times I will reboot Tx. FadesB, FadesL and FadesR can go higher.
Last edit: 26 Apr 2015 08:12 by vlad_vy.

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

More
26 Apr 2015 12:10 #31639 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
Sorry, FadesA limited by main receiver, with Spektrum DX8 FadesA also limited 255.

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

More
26 Apr 2015 12:37 - 26 Apr 2015 12:38 #31640 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
Indigo, build fd018d1 has problem, at least with Devo protocol, periodical connection lost. I think your problem can be found at CYRF_ReadDataPacketLen(u8 dpbuffer[], u8 len). Do not try empty whole buffer (16 bytes), but read received number of bytes only. Otherwise something (CYRF?) hung for a long time.

Can you try changed version CYRF_RxPacketIsGood(u8 len)? With forced buffer clean-up in case any errors. It works fine.
www.deviationtx.com/forum/protocol-devel...etry?start=340#31611
Last edit: 26 Apr 2015 12:38 by vlad_vy.

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

More
26 Apr 2015 15:26 #31647 by Indigo
Replied by Indigo on topic DSM Telemetry support
Thanks, new revised version:
deviationtx.com/forum/protocol-developme...etry?start=340#31646

I will create a new build with it shortly...

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

More
26 Apr 2015 15:45 - 26 Apr 2015 16:05 #31648 by Indigo
Replied by Indigo on topic DSM Telemetry support
New "Final" test version 342e9de has been uploaded to Test Builds.

Link to download page:
[Indigo]Devo/DSMx Telemetry Updates

Source
Last edit: 26 Apr 2015 16:05 by Indigo.

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

More
26 Apr 2015 15:55 - 26 Apr 2015 15:56 #31649 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
Sorry, but it do the same. Periodically with Devo protocol connection lost.
Last edit: 26 Apr 2015 15:56 by vlad_vy.

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

More
26 Apr 2015 16:08 - 26 Apr 2015 16:14 #31650 by Indigo
Replied by Indigo on topic DSM Telemetry support
Ok, try downloading again. I added a test: if (length == 0), length = 1;

And if that doesn't work I'll change it to if (length == 0), length = 16;
Last edit: 26 Apr 2015 16:14 by Indigo.

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

More
26 Apr 2015 16:26 #31651 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
Sorry, but it do the same.

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

More
26 Apr 2015 16:42 #31652 by Indigo
Replied by Indigo on topic DSM Telemetry support
Ok, give me time. I'm working out most concise version that works.

I'll post again when ready...

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

More
26 Apr 2015 16:54 - 26 Apr 2015 17:17 #31653 by Indigo
Replied by Indigo on topic DSM Telemetry support
Ok, I think I have a version that works. Please download again and try it yourself.

I'll continue testing this new version...

Edit: looks like it needss further improvement :pinch:
Last edit: 26 Apr 2015 17:17 by Indigo.

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

More
26 Apr 2015 17:13 #31654 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
Sorry, but it do the same.

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

More
26 Apr 2015 21:10 - 26 Apr 2015 21:54 #31677 by Indigo
Replied by Indigo on topic DSM Telemetry support

vlad_vy wrote: Indigo, build fd018d1 has problem, at least with Devo protocol, periodical connection lost. I think your problem can be found at CYRF_ReadDataPacketLen(u8 dpbuffer[], u8 len). Do not try empty whole buffer (16 bytes), but read received number of bytes only. Otherwise something (CYRF?) hung for a long time.

Can you try changed version CYRF_RxPacketIsGood(u8 len)? With forced buffer clean-up in case any errors. It works fine.
www.deviationtx.com/forum/protocol-devel...etry?start=340#31611


Thanks, new revised version -- updated to include an exit paramter to signal end receiving (buffer clean-up time):
www.deviationtx.com/forum/protocol-devel...etry?start=340#31678

Updated build 342e9de with it has been uploaded to Test Builds
Last edit: 26 Apr 2015 21:54 by Indigo.

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

Time to create page: 0.098 seconds
Powered by Kunena Forum