Hi,
I have a custom function
CF10 CSA Play soud Siren
And a custom switch
CSA. AND SA- SD-
Basically play a sound when switching to low rates in a certain flight mode.
With SA in the middle position and SD moved from top or bottom the sound plays Ok. But with SD in the middle position and SA moved up and down no sound is played?. But the display does show cf10 active in bold.
Opentx-2940. I'm waiting for opentx 2 to settle a bit before converting.
Geoff
AND only works one way?
AND only works one way?
Geoff N
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Re: AND only works one way?
I would think this ia probably the same in version 1 of opentx.
its because the processinf of the logic moves fron left to right. Not right to left.
its because the processinf of the logic moves fron left to right. Not right to left.
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: AND only works one way?
So its not really a a AND function but more of a Conditional ?
If switch "A" is true first and switch "B" becomes true then output equels true
But
If switch "B" = true and switch "A" becomes true then output stays false.
I think it should be noted in the manual some where.
Thanks for the info.
If switch "A" is true first and switch "B" becomes true then output equels true
But
If switch "B" = true and switch "A" becomes true then output stays false.
I think it should be noted in the manual some where.
Thanks for the info.
Geoff N
- MikeB
- 9x Developer
- Posts: 18010
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: AND only works one way?
It also sounds wrong to me. I feel it should work both ways round. Maybe it is fixed in V2, but needs someone running it to check.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
- Scott Page
- Posts: 864
- Joined: Wed Dec 28, 2011 3:32 am
- Country: United States
- Location: Tri-Cities, Washington State
Re: AND only works one way?
The AND function works perfectly for me with OpenTX 1.52. It doesn't matter which order I flip the switches back light comes on when both are in down position. I also tried changing the order of the two arguments in the line - no change. Works perfectly.
Perhaps you could post our EEPE for examination.
I used the backlight as my indicator as I don't need a sound over and over.
Perhaps you could post our EEPE for examination.
I used the backlight as my indicator as I don't need a sound over and over.
Re: AND only works one way?
Then it might be a bug specific to sound playback, so to verify his claim you should try and do just the same
Unfortunately can't be simulated. Anybody still using 2940?
Unfortunately can't be simulated. Anybody still using 2940?
Re: AND only works one way?
Verified that on a 9x with self compiled version r2942 with some private modifications and it works as i would expect.
(My compile options were: Stock board with M128, Heli, Templates, double keys, audio, voice, graphics, batt graph, ppm center adjustable, ppm limits symetrical, prec1, flight phases, curves, gvars)
Used Custom function 1 and custom switch 1
Custom switch got active when and only when both switches were active (one 2pos and one 3 pos switch) independant of the sequence of switching and the position of the switches in the custom function.
Reinhard
(My compile options were: Stock board with M128, Heli, Templates, double keys, audio, voice, graphics, batt graph, ppm center adjustable, ppm limits symetrical, prec1, flight phases, curves, gvars)
Used Custom function 1 and custom switch 1
Custom switch got active when and only when both switches were active (one 2pos and one 3 pos switch) independant of the sequence of switching and the position of the switches in the custom function.
Reinhard
Works OK with r2940
Tested with different sounds and switch selections and the AND function in a CS works in all combinations.
Ted
Ted
Re: AND only works one way?
Hi , Sorry not been able to get to PC recently.
I tried a simple model and the AND funtion works as it should do.
I've attached my eepe file .The switches are being used in two ways 1/ to switch flight modes and 2/ to announce the flight mode an 3/ to play a sound when dual rates are engaged only in the Normal flight mode. If I'm flying in “Climb” flight mode and switch to Normal flight mode I want a warning sound played if I with low rates already enabled.
I tried a simple model and the AND funtion works as it should do.
I've attached my eepe file .The switches are being used in two ways 1/ to switch flight modes and 2/ to announce the flight mode an 3/ to play a sound when dual rates are engaged only in the Normal flight mode. If I'm flying in “Climb” flight mode and switch to Normal flight mode I want a warning sound played if I with low rates already enabled.
- Attachments
-
- d60.eepe
- (76.03 KiB) Downloaded 333 times
Geoff N