I find the OTX stuff interesting and have made some progress on this next bit of programming - the essence of what I want to achieve is two modes, either slope or DLG and when one is active the features not required are deactivated.
I have built a fully-functional version of this where at startup the model is in 'DLG' mode and with some predetermined stick positions and the flick of the momentary switch it will convert to SLOPE mode adding aileron rates and disabling the launch modes - I even built some custom voice calls for 'DLG MODE' and 'SLOPE SOARING MODE' - quite cool.
The first breakthrough is how I add or remove the aileron rates - we always put the rates in the inputs page and you can see I have 100/75/50 for hi/med/low rates - each is triggered now by a logical switch rather than a physical switch (previously SA for elevator and SD for ailerons) - the bottom line called 'catch' is normally there in case there is a switch failure and therefore the bottom line will be the default - In this case, I am using the 'catch' as the default when the rates are turned off.
To activate or deactivate the rates switches I use an 'AND' function which means that a physical switch is active only if the attached logical switch is active - for example if SA(up) and L30 are 'true' SA(up) is 'ON' - to control the logical switch L30 we use four lines of logical switch code which adds up to mean if I hold the Aileron and Elevator stick at -100 and -100 respectively and pull down the momentary switch 'SH', the logical switch L30 becomes true until the momentary switch SH is pulled again.
The next bit I will explain (in another post) is how I disable the launch modes when the rates are active.
You may well be thinking why to bother with this - why not just make a separate DLG and SLOPE programme - well, of course, there is no good reason other than 'because we can' - however, In the back of my mind I am thinking about a generic model that can be tailored to a given set of functions with some under the hood commands (for example when I use my sloper at the park and want to engage a prop).
View attachment 178982
View attachment 178983