DSM Telemetry support

More
02 Jul 2013 03:10 - 02 Jul 2013 03:11 #11700 by RW9UAO
Replied by RW9UAO on topic DSM Telemetry support
in dx8 all info divided for a 5-6 screen pages.
your GPS info page without any changes. another i make like this:
Last edit: 02 Jul 2013 03:11 by RW9UAO.

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

More
02 Jul 2013 03:46 #11704 by PhracturedBlue
Replied by PhracturedBlue on topic DSM Telemetry support
If you provide your code in whatever state, it would save me from needing to reinvent the wheel.
Otherwise I'll clone what you have.

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

More
02 Jul 2013 03:48 #11705 by RW9UAO
Replied by RW9UAO on topic DSM Telemetry support
pls wait 6-7 hour, this code in a home PC.

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

More
02 Jul 2013 04:08 - 02 Jul 2013 04:09 #11707 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
Possible we need start to divide telemetry processing/setup by protocol. Every protocol has different set of sensors and different options set for sensors.

At the future, with several telemetry protocol it will be even more mixed and difficult to work.

It will be easy to work with telemetry if after protocol change we will have definite set of sensors, setup options and pages.
Last edit: 02 Jul 2013 04:09 by vlad_vy.

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

More
02 Jul 2013 04:57 #11708 by PhracturedBlue
Replied by PhracturedBlue on topic DSM Telemetry support
my plan is to store a mask indicating which data each protocol supports and to use that mask to determine which pages (or sections of pages on the devo8/12) to make available.
This way i don't directly tie the display code to the protocol stack, which I don't want to do/

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

More
02 Jul 2013 12:59 - 02 Jul 2013 13:02 #11735 by RW9UAO
Replied by RW9UAO on topic DSM Telemetry support
hi to all.
here is my addition marked by 'RW9UAO'
docs.google.com/file/d/0B1Bo-wTTor5LQjYz...MUE/edit?usp=sharing
73!
Last edit: 02 Jul 2013 13:02 by RW9UAO.

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

More
04 Jul 2013 02:32 #11833 by PhracturedBlue
Replied by PhracturedBlue on topic DSM Telemetry support
I've checked in a complete revamp of the telemetry system. It adds different displays for DSM vs Devo. I had to completely rework how updates are detected so the code behavior may be different.

The code has only been lightly tested for devo8 and dsm and only in the emulator, so it is likely there are a lot of bugs remaining. I'll try to start testing it on a real radio, but I expect all sorts of things I missed to pop up.

The DSM page is based on RW9UAO's layout. I only enabled the flightlog page so far.

Anyhow, if someone wants to be a guinea-pig, I'm interested in feedback.

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

More
04 Jul 2013 04:10 - 04 Jul 2013 04:12 #11842 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
I don't see any changes in emulator, Devo 12 and Devo 8. What I do wrong?
Last edit: 04 Jul 2013 04:12 by vlad_vy.

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

More
04 Jul 2013 04:50 #11845 by PhracturedBlue
Replied by PhracturedBlue on topic DSM Telemetry support
select protocol = DSM2
press and enable Telemetry
press 'Bind' to actuvate protocol.
go to main page
press left/right to get to telemetry page

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

More
04 Jul 2013 05:16 #11847 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
I can't select 'Temp' at layout config page.

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

More
04 Jul 2013 05:25 #11850 by PhracturedBlue
Replied by PhracturedBlue on topic DSM Telemetry support
Yep. that is because there is currently one more source on the DSM telemetry than the Devo telemetry. One of the things left to do is to figure out how to handle that properly.

In the meantime, you can trade 'Temp' for something else by, for instance, swapping the order of TELEM_DSM_FLOG_TEMP1 and TELEM_DSM_FLOG_HOLDS in telemetry.h

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

More
04 Jul 2013 07:21 - 04 Jul 2013 09:23 #11857 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
telemetry.h

struct telem_dsm_sensors {
u16 amps; - 16bit signed integer
u16 airspeed;
u16 altitude; - 16bit signed integer
};

struct telem_dsm_gforce {
u16 x; - 16bit signed integer
u16 y; - 16bit signed integer
u16 z; - 16bit signed integer
u16 xmax; - 16bit signed integer
u16 ymax; - 16bit signed integer
u16 zmax; - 16bit signed integer
u16 zmin; - 16bit signed integer
};

Possible will be better place telemetry sensors at the and of the selection list (at layout config), it's variable length structure for every protocol.
Last edit: 04 Jul 2013 09:23 by vlad_vy.

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

More
04 Jul 2013 12:38 #11865 by PhracturedBlue
Replied by PhracturedBlue on topic DSM Telemetry support
How can altitude be negative? Unless you are in a submarine (in which case you use a different sensor) negative is very, very. bad, right?

I think I'll likely make the gforce sensor data 8-bit. that will allow me to store the same range as voltage (-12.8 to +12.8g). That is a lot of g-force that I wouldn't expect to be exceeded except on a crash in which case it probably doesn't matter.
keeping the data-size small enables more logging data and less ram.

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

More
04 Jul 2013 12:48 #11866 by FDR
Replied by FDR on topic DSM Telemetry support

PhracturedBlue wrote: How can altitude be negative? Unless you are in a submarine (in which case you use a different sensor) negative is very, very. bad, right?

Probably the reference 0 is not at the see level... ;)

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

More
04 Jul 2013 13:22 #11872 by PhracturedBlue
Replied by PhracturedBlue on topic DSM Telemetry support

FDR wrote:

PhracturedBlue wrote: How can altitude be negative? Unless you are in a submarine (in which case you use a different sensor) negative is very, very. bad, right?

Probably the reference 0 is not at the see level... ;)

A negative altitude calibrated at the operator's position also seems...bad....
unless you are standing at the edge of a cliff and flying below yourself. It isn't really an issue though. If their data is signed, Ill keep it that way.

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

  • rbe2012
  • rbe2012's Avatar
  • Offline
  • So much to do, so little time...
More
04 Jul 2013 14:26 #11876 by rbe2012
Replied by rbe2012 on topic DSM Telemetry support
I believe remembering a guy who told me that with gliders which are started from a hill it is usual to fly lower than the starting point but he was interested in the relative height more than the absolute.

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

More
04 Jul 2013 15:33 #11882 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
It is barometric sensor. What do you think it will show at low atmosphere pressure (below 760 mm Hg)? Positive altitude or negative altitude?

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

More
04 Jul 2013 15:57 - 04 Jul 2013 15:59 #11885 by RandMental
Replied by RandMental on topic DSM Telemetry support

PhracturedBlue wrote:

FDR wrote:

PhracturedBlue wrote: How can altitude be negative? Unless you are in a submarine (in which case you use a different sensor) negative is very, very. bad, right?

Probably the reference 0 is not at the see level... ;)

A negative altitude calibrated at the operator's position also seems...bad....
unless you are standing at the edge of a cliff and flying below yourself. It isn't really an issue though. If their data is signed, Ill keep it that way.


Negative GPS altitude is very very valid!!

Our friends in Holland (-30meters) and Israel, especially those near the Dead Sea (-50meters) will get below sea level (negative) altitude from GPS!


.
Last edit: 04 Jul 2013 15:59 by RandMental.

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

More
04 Jul 2013 16:42 - 04 Jul 2013 16:43 #11892 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
I need DX8 log (.tlm) file with negative GPS altitude to find out how encoded the negative altitude. Possible it coded by a bit in the byte 15 of GPS packet 0x16.
Last edit: 04 Jul 2013 16:43 by vlad_vy.

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

More
02 Sep 2013 10:17 - 02 Sep 2013 10:18 #13482 by vlad_vy
Replied by vlad_vy on topic DSM Telemetry support
Just a small addition:

//===============================================================

Data type = 0x12 Altimeter Sensor

0[00] 18(0x12)
1[01] 00
2[02] Altitude MSB (Hex)
3[03] Altitude LSB (Hex) 16bit signed integer, in 0.1m
4[04] Max Altitude MSB (Hex)
5[05] Max Altitude LSB (Hex) 16bit signed integer, in 0.1m
6[05] Unknown
7[07] Unknown
8[08] Unknown
9[09] Unknown
10[0A] Unknown
11[0B] Unknown
12[0C] Unknown
13[0D] Unknown
14[0E] Unknown
15[0F] Unknown

//===============================================================
Last edit: 02 Sep 2013 10:18 by vlad_vy.

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

Time to create page: 0.148 seconds
Powered by Kunena Forum