Swapping switches for analog inputs?
- mwm
- Topic Author
- Offline
You'd then change hardware.ini to (speculating here) have something like:
[input-mapping]
aux1=eledr
aux2=aildr
and then your elevator and aileron dual rate switches would vanish, and you'd have two analog inputs - aux1 and 2 - would appear. I'm probably going to do something like this in lieu of simple extra switches for the 6, assuming it works. But if there's interest in making this more general, I can go that way instead.
Any interest in that?
Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.
My remotely piloted vehicle ("drone") is a yacht.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
I don't know if I would sacrify one of my switches on my DEVO 8, but it is an interesting idea.
If it is configurable, then why not?
The only disadvantage I can think of is that it won't help the model file sharing...
Please Log in or Create an account to join the conversation.
- RoGuE_StreaK
- Offline
- Posts: 486
If it's relatively trivial to implement in software, then I say hell yeah, give the choice and let people decide whether they want to sacrifice a switch.
Personally I can't actually think of anything I'd currently use a pot for, but I'm sure I could come up with something.
As a side thought, for the 7E perhaps one of the stock 2-pos could be used for analogue, and just use the extra trim-switches for DR replacements?
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
In the PPM add-on switch systems, we can tweak the Arduino and PPM phasing to deliver a consistent center/end calibration, but it's not precise. We need to deliver a consistent and predictable position result.
Deviation Devo7e 3way switch mod, A7105, NRF24L01
Devo6s 2x2 switch mod, trim mod, haptic, multimodule, A7105, NRF24L01, CC2500
Devo12e 4-in-1 with voice mod -- it speaks!!
Please Log in or Create an account to join the conversation.
- mwm
- Topic Author
- Offline
Yes, it would be in the calibration process.
The affect on file sharing would be interesting. I'd call them AUX#, so you could get the same extra inputs as the 10 and 12 have. But everybody having different switches would make things worse.
I'm pretty sure this won't for on the 7e, but I'll have to think about it. I was figuring if handle it like extra inputs, and just have all the options and ignore the unused ones. Maybe if I can use one input both ways, it would fit.
The six will certainly get this for the P19 inputs - of it works. Not sure about anything else.
Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.
My remotely piloted vehicle ("drone") is a yacht.
Please Log in or Create an account to join the conversation.
- Cereal_Killer
- Offline
Post original from the first additional inputs on a 7E thread:
mwm wrote:
Cereal_Killer wrote: Ok here's a question for MWM or someone else really versed at setting up MUX's...
Can you use the PPM data from a pot / slider you are using this method to add and use it to change trim and or rates of a stick? That would really be awesome!
Yes. Well, sort of. This works on the 10 & 12 with the AUX inputs.
What you want is a mixer in a complex mix that uses one of your extra inputs as a source. For a trim, set the MUX to add, and the scale to something like 10. This will let you adjust the output by +/- 10 based on that input. There's an issue open to add a "center beep" for AUX inputs. That's probably my first-after-PB-does-a-release project, and we ought to be able to make it work on PPM inputs as well.
For a rate, set the MUX to mult, and then adjust the scale and offset to get the range you want. For instance, going from 20 to 100 would let you get rates from 20 to 100%, which seem popular with the toy quads.
Could you wire up a multi-position dial for use as a "rate" switch? Or better yet, a flight mode switch ?
Taranis X9E | DEVO 10 | Devo U7E | Taranis Q7
What I do in real life: rivergoequestrian.com/
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
Why not use the two unused open pins on the CPU, as described in link above?
Please Log in or Create an account to join the conversation.
- mwm
- Topic Author
- Offline
Fernandez wrote: www.deviationtx.com/forum/6-general-disc...evo7e?start=40#34661
Why not use the two unused open pins on the CPU, as described in link above?
Well, I'm not willing risk either of my mcus to my smd soldering skills. And on my 6s, there are connections on the board that go to unused pins, so I don't have to.
But all of these require software changes to support. I've already added code to support those two 6s pins as switches (either 2x2 of 3x1), but I want an analog input. I could just hack it in and use it. But fixing the 6s to allow one of two of them to be analog inputs would be more useful. I asked the question to see if it was worth doing a more general mod so other txs can do these kind of change.
FWIW, I've posted a test build that can do the center beep. Has to be set up on each channel in the mixer, but it's pretty flexible. But without more feedback and testing, it won't go into a pull request.
www.deviationtx.com/forum/builds/4953-channel-beep-facility
Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.
My remotely piloted vehicle ("drone") is a yacht.
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
Deviation Devo7e 3way switch mod, A7105, NRF24L01
Devo6s 2x2 switch mod, trim mod, haptic, multimodule, A7105, NRF24L01, CC2500
Devo12e 4-in-1 with voice mod -- it speaks!!
Please Log in or Create an account to join the conversation.
- Wene001
- Offline
- Posts: 277
Please Log in or Create an account to join the conversation.
- mwm
- Topic Author
- Offline
Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.
My remotely piloted vehicle ("drone") is a yacht.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- Swapping switches for analog inputs?