myflightdeck 2 Posted December 30, 2019 Share Posted December 30, 2019 Hi Hans, I am programming the CRJ to P3d using Mobi Flight Controller. I am using arduino to fire off a lua script using a macro. This works with 99% of the L-vars in your aircraft but I am struggling to get it to work with the PFD views specifically the ASCRJ_LSP_PFD_MODE Since we have 3 views/modes this button (PFD 1, Norm, EICAS), I am trying to figure out how to toggle between the 3. I created 3 files called PFD_MODE_1, PFD_MODE 2, PFD_MODE_3, each with the Macro file associated with them. I am just trying to figure out to create the macro in a way that will specify each view. Since you have all the views in this single L-Var, what do I need to specify to have it fire off the correct view in the PFD when the button is toggled. The file I have now is: [Macros] L:ASCRJ_LSP_PFD_MODE=Toggle Mobi-flight controller calls this file and sends a value of 1 to it (on press). I tried swapping toggle out to 1.00000 or 2.00000 etc. but that did not work. Is there a way to use this LVAR or is there a separate L-Var I can use to swap out the PFD displays? Thanks Link to comment Share on other sites More sharing options...
myflightdeck 2 Posted December 30, 2019 Author Share Posted December 30, 2019 I am wondering if I can set something like this: 1=L:ASCRJ_LSP_PFD_MODE=Set,value Link to comment Share on other sites More sharing options...
Developer Hans Hartmann 3695 Posted December 31, 2019 Developer Share Posted December 31, 2019 There are three possible values: PFD (0) = MFD shows PFD NORM (1) = MFD shows MFD EICAS (2) = MFD shows EICAS #1 Setting them should work. I don't see anything that speaks against it. Link to comment Share on other sites More sharing options...
myflightdeck 2 Posted December 31, 2019 Author Share Posted December 31, 2019 I attempted to set them but upon testing the hardware with arduino it still fails to swap out the screen. This is the command I used: 1=L:ASCRJ_LSP_PFD_MODE=Set,1 I have also tried to set the file as 1=L:ASCRJ_LSP_PFD_MODE=Set and pass the value through mobiflight but it still does not work. I am running up to the same issue with the flaps & throttle. I figured if we can figure this out, I could use the same process for the flaps and throttle. Thanks again for any input and help, happy new year by the way! Link to comment Share on other sites More sharing options...
myflightdeck 2 Posted December 31, 2019 Author Share Posted December 31, 2019 It is strange it is like the value 1 works but the 0 and 2 do nothing. Link to comment Share on other sites More sharing options...
myflightdeck 2 Posted December 31, 2019 Author Share Posted December 31, 2019 oh my gosh, figure it out. my macro inside of mobiflightcontroller was written like this: pfd_mode_1:ASCRJ_LSP_PFD_MODE. I failed to include the "L" the correct way the macro needed to be called was pfd_mode_1:L:ASCRJ_LSP_PFD_MODE The actual macro code was as follows: 1=L:ASCRJ_LSP_PFD_MODE=Set,1 You validation as to the 0,1,2 for the set was a big help. At the end of the day, it was my mistake in missing the L I hope this post might be of help to someone in the future. Thanks Hans! Link to comment Share on other sites More sharing options...
Developer Hans Hartmann 3695 Posted December 31, 2019 Developer Share Posted December 31, 2019 Good that you got it to work. It's MFD Mode btw., I labelled it wrong Link to comment Share on other sites More sharing options...
myflightdeck 2 Posted January 6, 2020 Author Share Posted January 6, 2020 Noted on the mode. I am struggling on the flaps. do they also support a value like 0,1,2,3,4 of so, would you mind posting the values here? What L-Var controls the flaps increasing and decreasing? Thanks again for all the help on this.... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.