LibrePilot Forum

Development => GCS General => Topic started by: ggrif on August 28, 2016, 03:50:06 pm

Title: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: ggrif on August 28, 2016, 03:50:06 pm
This is not a complaint or request for help, just an observation/FYI.

I never had much luck with the public release of LP 15.09 and 6 flight mode setup on my Taranis Plus.  The Wizard simply would not accurately recognize the Logical switches I had set up in the Taranis. Sometimes I would finish the wizard with 1 flight mode, or 3 or 5 but rarely all 6.  Most were mapped to the wrong switch or no switch at all.  I eventually figured out that manually setting up the radio was not hard and, more importantly, it fixed the problem, got my 6 flight modes every time  :D

I recently began playing around with some of the Next releases, most recently, r957 and noticed the same issue carries over. Again, easily fixed by manual calibration.

I'm sure the Dev's have more important things to work on and I guess most have figured this out on their own and what the work around is.  Anyway, FWIW.
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: f5soh on August 28, 2016, 04:15:10 pm
Are you talking about the wizard detects how many flight modes position you have ?
If yes, the 15.09 should not have any issues because do not implement this feature...

I recently used the Tx Wizard almost 50 times without flightmode position number issue.
You should setup the transmitter correctly and set a correct spacing between flightmodes positions.
What values in µs do you have for every flightmode switch position ?


Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: MultiBen on August 28, 2016, 04:33:01 pm
I found my flight switch was my error, not putting it in neutral position when the wizard told me to, once I read that, it worked everytime.

Ben
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: f5soh on August 28, 2016, 04:48:54 pm
Strange...
The flightMode position when wizard ask for neutral position should doesn't matter because always adjusted to middle, same for Throttle neutral is also set to 4% of range.

https://bitbucket.org/librepilot/librepilot/src/226f8c4c3d75cc7689a1534efbafa8792740461f/ground/gcs/src/plugins/config/configinputwidget.cpp?at=next&fileviewer=file-view-default#configinputwidget.cpp-2016
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: ggrif on August 28, 2016, 04:57:12 pm
Are you talking about the wizard detects how many flight modes position you have ?
If yes, the 15.09 should not have any issues because do not implement this feature...

I recently used the Tx Wizard almost 50 times without flightmode position number issue.
You should setup the transmitter correctly and set a correct spacing between flightmodes positions.
What values in µs do you have for every flightmode switch position ?

Sorry, I don't understand "do not implement this feature"...do you mean it's not possible to setup multiple flight modes - I don't think that is what you meant.

I will attach screenshots of my logical switches and mixes, worked fine in old OP GCS and fine in LP 15.09 but only if setup manually.
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: f5soh on August 28, 2016, 05:04:19 pm
the 15.09 do not implement this feature that auto-detect the number of flightmodes you have in "move to extend" page and set the flightmode number to 2, 3 or 6 according to flightmode positions found during wizard.

With all versions you can have the flightmode num you want, up to 6.

Quote
but only if setup manually.

What do you mean with "setup manually" ?
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: ggrif on August 28, 2016, 05:16:54 pm
What do you mean with "setup manually" ?

On the RC input page, start manual calibration.
Once I finish Wizard and have changed number of flight modes on Flight Mode Switch Settings tab I go to RC Input and click on "Start Manual Calibration".
OK, I understand.  I am very familiar with moving to the "Flight Mode Switch Settings" page and manually changing to the desired number of modes. Done it many times.  I've no idea why I can't get it to work anymore.  I've tried on Mac and Win10.
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: f5soh on August 28, 2016, 05:25:01 pm
If you move the flight mode switch in all 6 positions on the "move to extend" page, min/max values on flightmode channel are set at wizard end.
No need to redo a manual calibration at this point.
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: ggrif on August 28, 2016, 06:06:18 pm
What I'm saying is when I perform the control moves, including the flight mode switch, in the extend page as you state, at best I get 3 flight modes on one switch.  When I move to the Flight Mode Switch Settings tab, change Flight Mode Count from 3 to six, Save,
Switch SG changes from Pos1, Pos2, Pos3 to Pos1, Pos4, Pos6, Switch SE activates Pos6 only and Switch SF activates Pos 6.  The only way I can achieve 6 flight modes is to manually calibrate.

I have run the wizards at least 50 times on 4 different frames (2 Revo, Nano, Falcon) in the past several months and the only way I get more then 3 flight modes is by manual cal.

I guess I'm the only person having this trouble, just my luck.

Thank you for your posts, always appreciate your quick and friendly help.
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: f5soh on August 28, 2016, 06:32:27 pm
When the wizard ask you to move the FlightMode switch he do not know how you setup the flightmode channel in your radio, this assumes you move the flightmode switch and his combinations that give the min value (around 990) and the max value around (around 2022).
While on Tx Wizard if you miss some values (or at least a right min or max value) the flightmode min/max are not complete.

Double check what switch positions give min (990) and max (2022) values.
For some reason in your setup you are using 3 different switches
For Max seems you need SF down
For Min seems you need SG up and SE up + SF up

While you setup a "6 positions" flightmode in your taranis you only need a 3pos switch + at least 2 pos switch.
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: ggrif on August 28, 2016, 06:59:57 pm
I use 3 switches only because that's how I learned to setup 6 FM back in the OP days.  It works for me, its how I set up every frame.

Last time I checked 3+2 = 5, how do you get 6 FM from 5 positions?

My Taranis programming skills are non-existent at the moment, I can only follow directions.  Eventually I hope to learn more about this.
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: f5soh on August 28, 2016, 07:17:05 pm
Not 3 + 2  but 3 x 2 = 6

Simply using SG at right hand (3pos) and  SA with 2 pos used

(https://forum.librepilot.org/index.php?action=dlattach;topic=2232.0;attach=4028)


Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: ggrif on August 28, 2016, 07:33:06 pm
OK, thanks.

Do mixes change?
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: f5soh on August 28, 2016, 07:40:34 pm
Mixes should be ok.

You can simply adjust a little for perfect centering but change nothing at result.
If you want to do the change, replace the absolute values 20 to 17 and 60 to 50, this mean -20 to -17 and 20 to 17

Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: ggrif on August 29, 2016, 04:10:21 am
OK, will try this when home again.

Thanks
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: ggrif on August 29, 2016, 05:13:36 pm
Still trying to understand. (This post has turned into a cry for help after all)

Erased and updated from LP15.09 to Next r957. No problem. Vehicle setup, no problem. Setup new model in Taranis input logical switches per your instructions. Added SG to inputs at 100.

Ran Radio wizard, flicked SG numerous times until screen told me I have 6 flight modes. Save, exit.

Only have 3 flight modes, 1,4,6 and they are reversed; min value on input page is 2016, mid 1503, max 991. I don't see a way to reverse this.

If I change flight modes to 3 I get 1,2,3 but reversed. Switch SA has no effect.

Guess I better gin my coursework at OpenTx University.
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: f5soh on August 29, 2016, 06:59:25 pm
Double check your logical switches for SA, if you follow my screenshot the 2 SA states are SA(up) and SA(middle) or down
The wizard detect every pos, even if you set each pos only one time. No need to flicker the switch.

For reversed or not you can play and move the 3 SG pos order later.
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: ggrif on August 30, 2016, 03:38:22 am
Frustrated and feeling very stupid. :o  :-\

Today's experiences:

First, the SA switches I see in your screenshot are SA up three times and SA NOT three times. 

Changed the SA NOT to SA middle. Set SA to Channel 6 in both Inputs and Mixer.

Ran radio wizard.  At Extents screen moved SG from up to mid to down once. Same with SA. Widget on FM switch on screen says 3 flight modes.  Finish Wizard.

Flight Mode Switch Settings tab shows only Pos1 and Pos3 active.  Input page shows values of 991 1247 and 1402 for Channel 5 and 0, 0, 2016 for Channel 6.

Changed last input value for Channel 5 to 2013.  Changed input values for Channel 6 to 991, 1247, 2016. Saved. 

Went to Flight Mode Switch settings, had working Pos1, Pos2 and Pos3 

Changed flight mode number from 3 to 6, saved.  Pos1, Pos4, Pos6 active, Switch SA has no effect.

Deleted SA on Ch6 in both inputs and mixes, ran wizard again.(In past I've always only needed one switch active to implement 6 flight modes)

Widget on FM switch on screen says I have 5 flight modes. Pos1, Pos3, Pos5 are only active FM switches.

Switch SA has no effect.

What stupid mistake am I making.  I'm cross eyed!



Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: f5soh on August 30, 2016, 09:48:03 am
Post your radio settings / logical switches.
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: ggrif on August 30, 2016, 03:57:34 pm
Post your radio settings / logical switches.

Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: f5soh on August 30, 2016, 04:10:28 pm
Duplicate SG-

(https://forum.librepilot.org/index.php?action=dlattach;topic=2232.0;attach=4044)

Seems you lost the previous mixes:

(https://forum.librepilot.org/index.php?action=dlattach;topic=2232.0;attach=4026)
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: ggrif on August 30, 2016, 05:44:15 pm
Do you ever sleep? Thanks.

I lost the other mixes because they didn't seem to work with this set of logical switches

I'll fix the error, add the mixes back in and cross my fingers.
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: ggrif on August 30, 2016, 10:39:49 pm
OK, struggle is over 😜. Thank you Laurent.

If you are ever in California, San Diego area, share a few micro brews?
Title: Re: GCS Radio Wizard not correctly recognizing Logical Switches for Flight Modes
Post by: f5soh on August 30, 2016, 10:51:45 pm
Too far away for just a beer :)

Thanks anyways