SierraKiloGulf Posted June 4, 2023 Report Share Posted June 4, 2023 Hey guys, I am trying to set up keybinds for the checklist panel for A2A aircrafts in FSUIPC so I can use the panel in VR. My macro for the checklist is half working... perhaps one of you may know the answer on how to get this to work. I am using P3Dv5 and FSUIPC6 [MACROS] 1=L:NotesPage=DEC 2=L:NotesPage=INC The keybind for the decrease macro works as expected, and the panel goes back each time the button is pressed. The second keybind does not work, and the panel does not move forward in sequence. Does the INC function work with FSUIPC6? If so, why is this not working? If not, how to get to work with another workaround? Link to comment Share on other sites More sharing options...
John Dowson Posted June 4, 2023 Report Share Posted June 4, 2023 Which A2A aircraft are you using? I have looked at the A2A Cherokee and in this aircraft the L:NotesPage lvar doesn't seem to do anything. Assigning to the Kneeboard View control with a parameter of 5 will display the (kneeboard) checklist, and sending the same again will remove the display (i.e. it acts like a toggle). But the checklist it displays is empty... For the A2A pre-flight checklist, I can assign to the control Panel 8 to toggle this on/off. and use the Next Sub View and Prev Sub View controls to move through the checklist pages. You can also try listing the values of the lvars (using the List Local Panel Variables control). See what the value is before you try and in/dec it, and then check the value again after you have sent an inc and dec control. For me, this lvar always has a value of 0, indicating that is is (probably) not writeable, i.e. read-only. Link to comment Share on other sites More sharing options...
SierraKiloGulf Posted June 4, 2023 Author Report Share Posted June 4, 2023 5 hours ago, John Dowson said: Which A2A aircraft are you using? I have looked at the A2A Cherokee and in this aircraft the L:NotesPage lvar doesn't seem to do anything. Assigning to the Kneeboard View control with a parameter of 5 will display the (kneeboard) checklist, and sending the same again will remove the display (i.e. it acts like a toggle). But the checklist it displays is empty... For the A2A pre-flight checklist, I can assign to the control Panel 8 to toggle this on/off. and use the Next Sub View and Prev Sub View controls to move through the checklist pages. You can also try listing the values of the lvars (using the List Local Panel Variables control). See what the value is before you try and in/dec it, and then check the value again after you have sent an inc and dec control. For me, this lvar always has a value of 0, indicating that is is (probably) not writeable, i.e. read-only. I am trying to get the Shift 2 checklist menu for the comanche 250 (and every other a2a aircraft, the checklist menu is the same shortcuts), the Ivar value changes from L:NotesPage=0 to =8 throughout the range of checklists. INC does not do anything, DEC works as expected and sets the L:NotesPage to the previous number. The Ivars are incredibly hard to check as it seems to record everything every second, so I am sifting through a lot of data in the logs instead of just the buttons I press Next sub view does not do what I want, as that is for the pre-flight and not the checklist menu for shift-2. Link to comment Share on other sites More sharing options...
John Dowson Posted June 5, 2023 Report Share Posted June 5, 2023 I think the problem is the parameter you are using with the macro control assignment. For the inc and dec controls, the parameter is used to determine the max and min values respectively. You are using a parameter value of 0 for both the inc and dec controls, and so the dec control is working as expected and decrementing to 0. However, as the max value for the inc control is also 0, it will not increment this value past 0. To correct for this, you need to set the parameter for the inc control to the max value this lvar accepts, which will be the number of pages -1 (as page numbers in the lvar start from 0 not 1). For the cherokee, this is 5 as there are 6 pages. You can also use the Panel 2 control to show/hide this checklist. John Link to comment Share on other sites More sharing options...
SierraKiloGulf Posted June 6, 2023 Author Report Share Posted June 6, 2023 11 hours ago, John Dowson said: I think the problem is the parameter you are using with the macro control assignment. For the inc and dec controls, the parameter is used to determine the max and min values respectively. You are using a parameter value of 0 for both the inc and dec controls, and so the dec control is working as expected and decrementing to 0. However, as the max value for the inc control is also 0, it will not increment this value past 0. To correct for this, you need to set the parameter for the inc control to the max value this lvar accepts, which will be the number of pages -1 (as page numbers in the lvar start from 0 not 1). For the cherokee, this is 5 as there are 6 pages. You can also use the Panel 2 control to show/hide this checklist. John Thanks a million John. I wasn't aware the max value had to be set, this works as expected now! For those that may find it useful, I simply changed the macro to 2=L:NotesPage=INC, 9 for the Comanche, and 5 as John suggested, for the Cherokee. Thanks again! Link to comment Share on other sites More sharing options...
John Dowson Posted June 6, 2023 Report Share Posted June 6, 2023 6 hours ago, SierraKiloGulf said: I simply changed the macro to 2=L:NotesPage=INC, 9 for the Comanche, and 5 as John suggested, for the Cherokee. But doing it that way means you need two macro files. Better to leave the parameter out of the macro file, and add it to the button assignment to the macro, and this will then be passed-in, As the Advanced User guide says: Quote If the parameter part of any of the controls defined in the macro is omitted, the parameter value from the calling macro is substituted. John Link to comment Share on other sites More sharing options...
SierraKiloGulf Posted June 9, 2023 Author Report Share Posted June 9, 2023 On 6/6/2023 at 12:41 AM, John Dowson said: But doing it that way means you need two macro files. Better to leave the parameter out of the macro file, and add it to the button assignment to the macro, and this will then be passed-in, As the Advanced User guide says: John The multiple macro files are by design, to circumvent the 128 macro limit I simply have a script that renames macro file extensions and changes simulator settings based upon which aircraft I am flying. That way I don't need to open the menu and load a profile or change settings for ideal performance. Thanks again for the help John. I Just didn't recall ever needing to set the max value in the past in v3/4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now