Extra 3 position switch
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Re: Extra 3 position switch
I will try do the mod tomorrow - if I have time!
Can you send me an svn tree / patch as in use the sky board.
Sent from my GT-I9300 using Tapatalk 2
Can you send me an svn tree / patch as in use the sky board.
Sent from my GT-I9300 using Tapatalk 2
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
-
- Posts: 35
- Joined: Sun Sep 02, 2012 8:57 pm
- Country: -
Re: Extra 3 position switch
Hi rob..
Actually nothing is modified other than the P3 string just to make the change clear..
line 214 en.h in translations.
#define TR_POTS_VSRCRAW "P1\0 ""P2\0 ""3P\0 "
the idea is, as the calibratedStick array holds the pot values it should be working without any modifications as it outputs -1024 0 and +1024 when calibrated with the 3 pos switches.
This is just as it seems to me but may be I am totally wrong.
But still I think it should work.
Thanks
Actually nothing is modified other than the P3 string just to make the change clear..
line 214 en.h in translations.
#define TR_POTS_VSRCRAW "P1\0 ""P2\0 ""3P\0 "
the idea is, as the calibratedStick array holds the pot values it should be working without any modifications as it outputs -1024 0 and +1024 when calibrated with the 3 pos switches.
This is just as it seems to me but may be I am totally wrong.
But still I think it should work.
Thanks
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: Extra 3 position switch
Right.
It seems to me that this issue will be easily solved!
http://code.google.com/p/open9x/issues/detail?id=166
Just some #ifdef to add. I will try to get rid of it tomorrow.
Bertrand.
PS: For the string, "3P" or "3P2"?
It seems to me that this issue will be easily solved!
http://code.google.com/p/open9x/issues/detail?id=166
Just some #ifdef to add. I will try to get rid of it tomorrow.
Bertrand.
PS: For the string, "3P" or "3P2"?
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Re: Extra 3 position switch
Working on that logic....
Should 3POS be.. 3P1?
Sent from my GT-I9300 using Tapatalk 2
Should 3POS be.. 3P1?
Sent from my GT-I9300 using Tapatalk 2
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Re: Extra 3 position switch
Actually... Which pot needs to be swapped out?
Top left?
Top right?
Front left?
Sent from my GT-I9300 using Tapatalk 2
Top left?
Top right?
Front left?
Sent from my GT-I9300 using Tapatalk 2
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
-
- Posts: 35
- Joined: Sun Sep 02, 2012 8:57 pm
- Country: -
Re: Extra 3 position switch
hi rob..Rob Thomson wrote:Actually... Which pot needs to be swapped out?
Top left?
Top right?
Front left?
Sent from my GT-I9300 using Tapatalk 2
actually you can replace any pot you like and change the string accordingly..
ex: if you change pot 1
#define TR_POTS_VSRCRAW "3P\0 ""P2\0 ""P3\0 "
I just put 3P here as the strings are fixed width non-null terminated once. anyway we can change it as we want, later once we got it clarified.
as bertrand also said, if its working its just a matter of changing the strings as we want and that can be done with simple compilation option..
ex : 3POS= P13POS ,P23POS ,P33POS
Thanks for the interest.
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Re: Extra 3 position switch
It will be better to not resort to code change to get the feature.
Best option would be that If you enable 3pos, a system preference allows you to set the pot that is swapped.
Either that, or a standard pot for the mod.
This would be simplest for end users who want to change their systems.
Sent from my Nexus 7 using Tapatalk 2
Best option would be that If you enable 3pos, a system preference allows you to set the pot that is swapped.
Either that, or a standard pot for the mod.
This would be simplest for end users who want to change their systems.
Sent from my Nexus 7 using Tapatalk 2
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Re: Extra 3 position switch
Or... Does the companion compile option set the pot to use?
Think I just got what you meant!
Sent from my Nexus 7 using Tapatalk 2
Think I just got what you meant!
Sent from my Nexus 7 using Tapatalk 2
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: Extra 3 position switch
Absolutely. I don't like to add system options (which use flash, EEPROM and RAM) for hardware changes. At least on stock board.
Agree about 3P1 and 3P2 of course!
Bertrand.
Agree about 3P1 and 3P2 of course!
Bertrand.
-
- Posts: 35
- Joined: Sun Sep 02, 2012 8:57 pm
- Country: -
Re: Extra 3 position switch
yeah.. thats what i mean. at the compilation time we can choose which pot.Rob Thomson wrote:Or... Does the companion compile option set the pot to use?
Think I just got what you meant!
Sent from my Nexus 7 using Tapatalk 2
sorry for my bad English as I am not a native speaker..
I just used only 3P in the above example as it will not change the string length and disturb the other string segments.bertrand35 wrote: PS: For the string, "3P" or "3P2"?
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: Extra 3 position switch
In fact we are allowed 4 chars there (and that 4 chars are mandatory).KanishkaRC wrote: I just used only 3P in the above example as it will not change the string length and disturb the other string segments.
Bertrand.
-
- Posts: 35
- Joined: Sun Sep 02, 2012 8:57 pm
- Country: -
Re: Extra 3 position switch
Hi I updated the patches in the
http://code.google.com/p/open9x/issues/detail?id=166
I checked with all translations and its working fine.
New make file is also attached and option to select the pot is given
3POS= POT1, POT2, POT3
Now 3 position switches are named as 3PO1 and 3PO2. hope its ok.
Thanks
http://code.google.com/p/open9x/issues/detail?id=166
I checked with all translations and its working fine.
New make file is also attached and option to select the pot is given
3POS= POT1, POT2, POT3
Now 3 position switches are named as 3PO1 and 3PO2. hope its ok.
Thanks
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Re: Extra 3 position switch
Sweet. Will do my best to pull my radio open today and test.
Guess the next question is...
Can we make this do a virtual ID3 ID4 ID5?
Sent from my Nexus 7 using Tapatalk 2
Guess the next question is...
Can we make this do a virtual ID3 ID4 ID5?
Sent from my Nexus 7 using Tapatalk 2
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
-
- Posts: 35
- Joined: Sun Sep 02, 2012 8:57 pm
- Country: -
Re: Extra 3 position switch
Yes, I think its possible to do. only thing is its gonna change the Keys enumeration so need to keep an eye on other associated functions with them.
Bertrand would be in a better position to answer it with more insight I guess.
May be at first we can make sure this works and hopefully we can finish virtual switches too as needed.
Bertrand would be in a better position to answer it with more insight I guess.
May be at first we can make sure this works and hopefully we can finish virtual switches too as needed.
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: Extra 3 position switch
Right. It's very easy to do. The problem will be the compatibility with other EEPROMs and companion9x. Because if ID3 / ID4 / ID5 are inserted, I would see them near ID0 / ID1 / ID2 ...
Bertrand.
Bertrand.
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Re: Extra 3 position switch
Guess the hard part is how this is worked out... the code would have to take into account variations between resistors values.
This mod will really make the 9X perfect for me. I never use the pots, but always feel I need another 3POS!
Rob
This mod will really make the 9X perfect for me. I never use the pots, but always feel I need another 3POS!
Rob
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Re: Extra 3 position switch
Well.. on the plus side this works for a 3POS system perfectly!
I did my mod using two 2.7k resistors. (had them)
The actual P3 in my case is just being used as the source. This works exactly as expected.
Rob
I did my mod using two 2.7k resistors. (had them)
The actual P3 in my case is just being used as the source. This works exactly as expected.
Rob
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
-
- Posts: 35
- Joined: Sun Sep 02, 2012 8:57 pm
- Country: -
Re: Extra 3 position switch
Thanks all,
Glad we could do this to make it useful for everybody.
Glad we could do this to make it useful for everybody.
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Re: Extra 3 position switch
Do just a case now of waiting for the extra id values and companion to catch up.
Bertrand... Do you need me to add a task to the list?
Sent from my GT-I9300 using Tapatalk 2
Bertrand... Do you need me to add a task to the list?
Sent from my GT-I9300 using Tapatalk 2
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: Extra 3 position switch
The biggest part of the work will be inside companion9x. I will see with Romolo if he has time to help me on that. No need of a new issue, it's already opened.
Bertrand.
Bertrand.
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Re: Extra 3 position switch
I have put up an example template
viewtopic.php?f=38&t=2753&p=38677#p38677
that uses an extra 3POS switch on P3 using custom switches. This setup will be much simpler when the features in this thread are added. But for now.. this is how to do it!
viewtopic.php?f=38&t=2753&p=38677#p38677
that uses an extra 3POS switch on P3 using custom switches. This setup will be much simpler when the features in this thread are added. But for now.. this is how to do it!
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
Re: Extra 3 position switch
hy,
here the complete example
Helle
here the complete example
Helle
- Attachments
-
- Beispiel Zusätzlicher 3 Wege Schalter.pdf
- (76.3 KiB) Downloaded 589 times
Re: Extra 3 position switch
Hi,
This is a great idea and I am thinking of up-grading my transmitter to add a 3 position switch in place of one of the pots. Already have the switch and resistors.
Has Companion9x been updated to reflect the ideas behind this thread? If so how do I define the switches/pot in question?
Thanks
Eric
This is a great idea and I am thinking of up-grading my transmitter to add a 3 position switch in place of one of the pots. Already have the switch and resistors.
Has Companion9x been updated to reflect the ideas behind this thread? If so how do I define the switches/pot in question?
Thanks
Eric
-
- Posts: 236
- Joined: Tue Dec 27, 2011 11:19 pm
- Country: -
- Location: Don Mills, Ontario
Re: Extra 3 position switch
Even if they have not added anything specific for this you can always use the custom switches.
Re: Extra 3 position switch
In openTX just select the pot as source and use a curve to adjust endpoints and middle point
Joao
Joao
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Re: Extra 3 position switch
Unless of course you want the custom switch as a trigger to a flight phase
Sent from my GT-I9300 using Tapatalk 2
Sent from my GT-I9300 using Tapatalk 2
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
-
- Posts: 236
- Joined: Tue Dec 27, 2011 11:19 pm
- Country: -
- Location: Don Mills, Ontario
Re: Extra 3 position switch
That would only let you control a servo with the new switch, not do all the things you can regularly do with one.(D/R, flight modes,etc)
Re: Extra 3 position switch
true..
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Re: Extra 3 position switch
Thanks Guys for all your suggestions!
Rob is right - looking at using the switch to provide additional Flight Modes so -
pmackenzie suggestion is what I need to do!
Cheers
Eric
Rob is right - looking at using the switch to provide additional Flight Modes so -
pmackenzie suggestion is what I need to do!
Cheers
Eric