- Posts: 25
DSM Telemetry support
- RW9UAO
-
- Offline
Less
More
02 Jul 2013 03:10 - 02 Jul 2013 03:11 #11700
by RW9UAO
Replied by RW9UAO on topic DSM Telemetry support
Last edit: 02 Jul 2013 03:11 by RW9UAO.
- PhracturedBlue
-
Topic Author
- Offline
Less
More
- Posts: 4403
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.
Otherwise I'll clone what you have.
- RW9UAO
-
- Offline
Less
More
- Posts: 25
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.
- vlad_vy
-
- Offline
Less
More
- Posts: 3333
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.
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.
- PhracturedBlue
-
Topic Author
- Offline
Less
More
- Posts: 4403
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/
This way i don't directly tie the display code to the protocol stack, which I don't want to do/
- RW9UAO
-
- Offline
Less
More
- Posts: 25
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!
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.
- PhracturedBlue
-
Topic Author
- Offline
Less
More
- Posts: 4403
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.
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.
- vlad_vy
-
- Offline
Less
More
- Posts: 3333
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.
- PhracturedBlue
-
Topic Author
- Offline
Less
More
- Posts: 4403
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
press and enable Telemetry
press 'Bind' to actuvate protocol.
go to main page
press left/right to get to telemetry page
- vlad_vy
-
- Offline
Less
More
- Posts: 3333
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.
- PhracturedBlue
-
Topic Author
- Offline
Less
More
- Posts: 4403
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
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
- vlad_vy
-
- Offline
Less
More
- Posts: 3333
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.
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.
- PhracturedBlue
-
Topic Author
- Offline
Less
More
- Posts: 4403
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.
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.
- FDR
-
- Offline
04 Jul 2013 12:48 #11866
by FDR
Replied by FDR on topic DSM Telemetry support
Probably the reference 0 is not at the see level...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?
- PhracturedBlue
-
Topic Author
- Offline
Less
More
- Posts: 4403
04 Jul 2013 13:22 #11872
by PhracturedBlue
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.
Replied by PhracturedBlue on topic DSM Telemetry support
A negative altitude calibrated at the operator's position also seems...bad....FDR wrote:
Probably the reference 0 is not at the see level...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?
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.
- rbe2012
-
- Offline
- So much to do, so little time...
Less
More
- Posts: 1433
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.
- vlad_vy
-
- Offline
Less
More
- Posts: 3333
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?
- RandMental
-
- Offline
Less
More
- Posts: 521
04 Jul 2013 15:57 - 04 Jul 2013 15:59 #11885
by RandMental
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!
.
Replied by RandMental on topic DSM Telemetry support
PhracturedBlue wrote:
A negative altitude calibrated at the operator's position also seems...bad....FDR wrote:
Probably the reference 0 is not at the see level...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?
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.
- vlad_vy
-
- Offline
Less
More
- Posts: 3333
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.
- vlad_vy
-
- Offline
Less
More
- Posts: 3333
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
//===============================================================
//===============================================================
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.
Time to create page: 1.114 seconds
-
Home
-
Forum
-
Development
-
Protocol Development
- DSM Telemetry support