DM002 protocol (contains captures)
- planger
- Offline
Channels and details are listed there: github.com/pascallanger/DIY-Multiprotoco...etails.md#dm002---33
Please report.
Pascal
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
goebish wrote: I'll port it to Deviation, for now using an odd TX id will use the first txid/rf set and using an even one will use the 2nd set ...
I am ready to test for 7E
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
diff: github.com/goebish/deviation/commit/3865...8770719a65463d47ea89
protocol: DM002
mapping:
CHANNEL5, // Leds
CHANNEL6, // Flip
CHANNEL7, // Camera 1
CHANNEL8, // Camera 2
CHANNEL9, // Headless
CHANNEL10, // RTH
Not sure what CAMERA 1 & 2 means.
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
goebish wrote: test builds available: www.dropbox.com/sh/fswbehxnvd14cpy/AABQq...FnXWOtd9kvezBDa?dl=0
diff: github.com/goebish/deviation/commit/3865...8770719a65463d47ea89
protocol: DM002
mapping:
CHANNEL5, // Leds
CHANNEL6, // Flip
CHANNEL7, // Camera 1
CHANNEL8, // Camera 2
CHANNEL9, // Headless
CHANNEL10, // RTH
Not sure what CAMERA 1 & 2 means.
Missing DM002.mod file in the 7E build
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- planger
- Offline
I don't think this will work: GET_FLAG(!CHANNEL_LED, DM002_FLAG_LED)
You need your GET_FLAG_INV macro instead (not sure of the name).
Pascal
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
@SeByDocKy, I updated the builds, should be fine now.
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
goebish wrote: Thanks Pascal
@SeByDocKy, I updated the builds, should be fine now.
Yes it's working .... checking the extra channels now
LEd Ok
Headless ok
Flip Ok
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- planger
- Offline
Strange that they appear in the doc if not used anywhere.
Pascal
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
But the yaw command is presenting a lot of deadband, the same as for the original radio ..... No miiracle with the Devo
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
github.com/DeviationTX/deviation/pull/241
Please Log in or Create an account to join the conversation.
- lani
- Topic Author
- Offline
- Posts: 17
Some notes:
* Custom curve with deadband removal of -35..35 fixed the lazy yaw
* Rate modes LOW (default) and HIGH (ch11) are enough, with the plastic controller HIGH was too wild but with Taranis it is just great
* Difficult to achieve perfect trim with the control ranges at least in the HIGH rate (one click left causes left drift, one click back creates right drift). This might be just a feature of the quad but the analogue knobs in the TX could perhaps be mapped to the trims to achieve best effort. I sort of believe the trim steps have a lot smaller effect to the control than actual control steps.
* Bind on powerup seems not to work when selected from OpenTX. Would there be something i need to tweak in the protocol file or multiprotocol config?
However all this was great success, thanks guys!
Few more questions:
* How does the protocol enumeration get updated to the OpenTX software, do they include directly something from the multiprotocol repo?
* In the SPI captures, why was there data on the line at moments when the clock pulse was not active?
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Protocol trims are not implemented, because that would require 3 extra channels, they're set to default (0x7f), try to recalibrate the accelerometer to fix the issue.lani wrote: * Difficult to achieve perfect trim with the control ranges at least in the HIGH rate (one click left causes left drift, one click back creates right drift). This might be just a feature of the quad but the analogue knobs in the TX could perhaps be mapped to the trims to achieve best effort. I sort of believe the trim steps have a lot smaller effect to the control than actual control steps.
I do not have a multimodule, I'm not sure protocol list/id are stored directly in the firmware or in a file on the sdcard.Few more questions:
* How does the protocol enumeration get updated to the OpenTX software, do they include directly something from the multiprotocol repo?
Maybe this pin has other purpose while CSN is high, or maybe it's just left floating while there's no SPI operation.* In the SPI captures, why was there data on the line at moments when the clock pulse was not active?
Please Log in or Create an account to join the conversation.
- lani
- Topic Author
- Offline
- Posts: 17
The multimodule seems to have 16 channels and now the protocol only uses 1..11 so there would be room. In fact, the pitch and roll trims would be enough since yaw works just fine. The accelerometer calibration does not help here, tried it.goebish wrote: Protocol trims are not implemented, because that would require 3 extra channels, they're set to default (0x7f), try to recalibrate the accelerometer to fix the issue.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
You may have to "cheat" to calibrate the acc, eg if your quad has a tendency to drift to the left, calibrate it while it's slightly tilted to the right (use sheets of paper to precisely tilt it).
Anyway, that's up to Pascal to decide
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- DM002 protocol (contains captures)