AND only works one way?

General Help and support for the Taranis Radio.
Post Reply
User avatar
nicholgd
Posts: 70
Joined: Tue Sep 03, 2013 4:29 pm
Country: -
Location: Herefordshire

AND only works one way?

Post by nicholgd »

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
Geoff N

User avatar
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?

Post by Rob Thomson »

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.
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!
User avatar
nicholgd
Posts: 70
Joined: Tue Sep 03, 2013 4:29 pm
Country: -
Location: Herefordshire

Re: AND only works one way?

Post by nicholgd »

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.
Geoff N
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: AND only works one way?

Post by MikeB »

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.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
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?

Post by Scott Page »

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. :)
10-12-2014 4-32-26 PM.png
10-12-2014 4-32-03 PM.png

User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: AND only works one way?

Post by Kilrah »

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? :?
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: AND only works one way?

Post by ReSt »

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
G550Ted
Posts: 389
Joined: Tue Dec 27, 2011 6:15 pm
Country: -
Location: Savannah, GA, USA

Works OK with r2940

Post by G550Ted »

Tested with different sounds and switch selections and the AND function in a CS works in all combinations.

Ted
User avatar
nicholgd
Posts: 70
Joined: Tue Sep 03, 2013 4:29 pm
Country: -
Location: Herefordshire

Re: AND only works one way?

Post by nicholgd »

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.
Attachments
d60.eepe
(76.03 KiB) Downloaded 326 times
Geoff N

Post Reply

Return to “General help (FrSky Taranis radio)”