- Posts: 25
DSM Telemetry support
- RW9UAO
- Offline
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Otherwise I'll clone what you have.
Please Log in or Create an account to join the conversation.
- RW9UAO
- Offline
- Posts: 25
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
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.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
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.
- RW9UAO
- Offline
- Posts: 25
here is my addition marked by 'RW9UAO'
docs.google.com/file/d/0B1Bo-wTTor5LQjYz...MUE/edit?usp=sharing
73!
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
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.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
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.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
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.
- vlad_vy
- Offline
- Posts: 3333
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.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
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.
- FDR
- Offline
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?
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
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.
Please Log in or Create an account to join the conversation.
- rbe2012
- Offline
- So much to do, so little time...
- Posts: 1433
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- RandMental
- Offline
- Posts: 521
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!
.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
//===============================================================
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
//===============================================================
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- DSM Telemetry support