- Posts: 40
How To apply "two switches" patch for Devo7e soft
- sllewji
- Offline
I'm really too new to the deviation code to have a detailed idea of what needs to be done, but have just enough experience with code maintenance to beleive that the answer may be something along these lines.
Do you have access to the sourcecode for the firmware you have been running? Is it based on Deviation too? If so, it might be possible to reverse engineer it into a patch for the current nightly.
Perhaps one of the deviation gurus will chip in and provide some guidance?
Ian
Please Log in or Create an account to join the conversation.
- blackmoon
- Offline
- Posts: 402
So some skilled ones on this forum could see how he implemented it.
I can't find it on bitbucket.
If I understand you correctly you are using a devo7E whit 2 two-positions switches and 2 three-position.
Thank you.
Edit: sllewji was faster
Edit bis : Found this thread www.deviationtx.com/forum/protocol-devel...-devo7e-binding#7923 , on the last entry Galee provide the link to his fork.
bitbucket.org/galee/galee-devo7e
In the same thread he states :
The deviation firmware does not support chs and cht because the flash size is small...
so I wrote another firmware, if you are chinese too, can visit 5IMX to get newest message.
Please Log in or Create an account to join the conversation.
- sllewji
- Offline
- Posts: 40
Looks like we're operating in parallel here
From cmpang's photos, it looks like he has two three posiiton toggles using the top connections as previously documented, but with two new bottom connections.
(I wish my soldering was as elegant as in those photos!)
I also found galee's repo - but it looks quite a bit different to the layout of deviation.
I'll take a deeper look and see whether I can see where the extra "inverse" switch support is made.
Don't hold your breath though
Ian
Please Log in or Create an account to join the conversation.
- blackmoon
- Offline
- Posts: 402
I'm programming impaired
I looked a little at the code and it's really quite a different layout than the one from PB, I was hopping that he used the 2.x trunk and we could just see the differences between is fork and PB's original...
Please Log in or Create an account to join the conversation.
- cmpang
- Offline
- Posts: 296
As far as I know, he has implemented the three position switches right from his first version on March. So if you can get his source code, that should contains all the necessary coding on the switches.
A bit more about his version. He fully aware the hardware limation on the 7e. In order to benefit so many Chinese users, so he decided to make the GUI entirely for Chinese characters.. let alone all other languages due to memory limation.
Furthermore, he is an experience R/C pilot. As I have mentioned many many times in this forum, Deviation is good but not orientated to the pilot but engineers. Gale has redesign the GUI entirely, making it more user friendly just like any other major manufacturer brands. That is, you can start up a new model within a few minutes even in the flying field.
Having said that, it is inevitably that many of the powerful inter related mixing function (like Virtual Channels) have to be left out due to resource limitation. A very brilliant guy.
May I also introduce another guy SUVSUV who also works on Deviation. He focuses his work mainly on Devo 10. What special about his version is he introduced a new mixer in his GUI based upon the original but fully pilot friendly. Unlike Gale, not a single function has been left out but retained the "in the field" kind of easy to set up a model. At first he maintained both the original and his version in the package but now, as user requested, has abondand the original one all together leaving only the new mixer in the GUI.
So in China and Taiwin, these two versions are the mainstream among the Devo users.
cmPang
Please Log in or Create an account to join the conversation.
- cmpang
- Offline
- Posts: 296
cmPang
Please Log in or Create an account to join the conversation.
- blackmoon
- Offline
- Posts: 402
I was aware of sunsuv's fork, but never tried it, maybe it's time to do so, as I have a Devo10 to.
Even tough I really like the freedom the advanced mixer/gui gives us.
It's a shame that Galee didn't include an English version of his fork, I would like to experiment with it a little.
Please Log in or Create an account to join the conversation.
- cmpang
- Offline
- Posts: 296
Please Log in or Create an account to join the conversation.
- blackmoon
- Offline
- Posts: 402
Please Log in or Create an account to join the conversation.
- Mullson
- Offline
- Posts: 114
And I also want to clarify the importance of making the "original" firmware to be the original designed version intact. I think it's in everyone's interest and concern.
But of course everybody should be free to experiment and develop this marvelous deviation.
End for me I like to make the 7e simple. So for experimentality I use different model setups just like stated before. If I want more then 4 toggles I use something "bigger". But of course it's up to you...
Please Log in or Create an account to join the conversation.
- blackmoon
- Offline
- Posts: 402
I found in sunsuv repository that he added 3-way switches capabilities to the devo7E :
bitbucket.org/sunvsuv/deviationfor6810/c...et/devo7e/channels.c
However I don't know if his modification was (has no information is given, apart a "support 3-way switches in devo7e") :
1. Leaving the two 2-way switches (i.e. Hold and Fmod) and adding a third one that is a 3-way.
2. Replacing one of the 2-way switches by the 3-way one.
Could anyone who understand this more than me, tell me which one it is, and by extension where should one connect the additional switches.
I hope he followed the hardware mod explained in this thread.
Thank you.
Please Log in or Create an account to join the conversation.
- domcars0
- Offline
- Posts: 390
Reading the sunsuv code I think that it's not for 3-way switches.
This is just to enable/disable the Devo 7e extra switches before to compile.
The important line is the 17th in src/target/devo7e/capabilities.h
#define extra_switch_mod // comment out if no extra switch
Devo 10 (+7e) owner. It's mine, please don't touch it with your big fingers
Please Log in or Create an account to join the conversation.
- blackmoon
- Offline
- Posts: 402
Which extra switches, devo7e only has two 2-way switches...
The commit states : "support 3-way switches in devo7e"
If ti was for disabling something why not state :
"disabling support 3-way switches in devo7e"
(là, j'ai pas tout compris à ton explication Dom )
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
domcars0 wrote: Hi,
Reading the sunsuv code I think that it's not for 3-way switches.
This is just to enable/disable the Devo 7e extra switches before to compile.
The important line is the 17th in src/target/devo7e/capabilities.hYou just have to comment it out before to compile if you do not have extra switches. This is easier than to patch the code.#define extra_switch_mod // comment out if no extra switch
There is someone who compiled successfully the sunsuv for devo7E (without extra switch for instance ?). Coz it's expected to extend the nrf21l01 support some V9xx helicopter. If someone can share the binaries, it would be great ....
Please Log in or Create an account to join the conversation.
- cmpang
- Offline
- Posts: 296
2. I have installed Suvsuv's lastest releasse and confirm that he only added two 2-way switches in addition to the stock FMOD and HOLD.
For those who are interested, you can have a look a Gale's code to see if there is a clue how to do it.
I have recently purchased a Walkera QR X350. It requires a 3-position switch in order to immplement the Normal/Position Hold/Return to Home function. I am fortunated enough to have the Gale version on my 7e which otherwise would have to take out my bulky Devo 10 to fly the tiny quad.
cmPang
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
cmpang wrote: 1. In Gale's version, two 3-way switches are being added in addition to the stock FMOD and HOLD 2-way switches.
2. I have installed Suvsuv's lastest releasse and confirm that he only added two 2-way switches in addition to the stock FMOD and HOLD.
For those who are interested, you can have a look a Gale's code to see if there is a clue how to do it.
I have recently purchased a Walkera QR X350. It requires a 3-position switch in order to immplement the Normal/Position Hold/Return to Home function. I am fortunated enough to have the Gale version on my 7e which otherwise would have to take out my bulky Devo 10 to fly the tiny quad.
cmPang
Can you share somewhere your last builted version of the suvsun ?
Please Log in or Create an account to join the conversation.
- blackmoon
- Offline
- Posts: 402
So to resume this :
1. latest PB nightlies do have the two 2-way switches patch already applied.(?)
2. sunsuv build does the same.
3. only Gale has implemented a support for two 3-way supplementary switches on his firmware, that if I'm not mistaken is a rewrite from scratch of deviation to support only Chinese and some others addition/changes, but no longer code compatible with PB's branch.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- How To apply "two switches" patch for Devo7e soft