szeliga90 Posted August 26, 2020 Report Share Posted August 26, 2020 Hi. I'm trying to find a FS control/Offset which would allow me to set Fuel pump to High in for example Beechcraft Baron G58. Currently I'm using offset x3125 but that unfortunately only switching between fuel pump off and fuel pump low. I also tried to open the FSUIPC7 console log and find out what event is triggered whenever I will change the switch position using mouse but unfortunately that doesn't detect any event. Is there any way at all to map a joystick button press to set Fuel pump to High or is that something currently missing? Link to comment Share on other sites More sharing options...
Scotfleiger Posted August 27, 2020 Report Share Posted August 27, 2020 @szeliga90 Based on the original MS spec, the control for the Fuel Pump is 66237. This turns on/off all fuel pumps (up to 4). The status of the Fuel Pump switch is indicated by offset 0x3104 (0 off/1 on). You can also use the offset 0x3125 to set the available pumps on/off (bit 0=pump 1, bit 1=pump 2, bit 3=pump 3, bit 4=pump 4). There are also controls 66339-66343 that toggle the electrical fuel pumps (all/1/2/3/4). This has the same effect as above. I can find no Fuel Pump High option and I don't have the B58 in my available aircraft to check. I suggest this setting is outside the defined offset/control range and relies on internal variables (Lvars) not yet exposed through SimConnect. Link to comment Share on other sites More sharing options...
szeliga90 Posted August 27, 2020 Author Report Share Posted August 27, 2020 @Scotfleiger Are you aware whether these Lvars are planned to be exposed in the way FSUIPC7 will be able to use them? If that would be the case is it possible to map them as easy as FS contols/Offsets or would it require something more complicated like lua scripts? Also, the Beechcraft Bonanza G36 which I think is included with standard edition of MSFS has the same type of fuel pump switch. So if it's anything you could check and perhaps find out something more I would be very grateful. Link to comment Share on other sites More sharing options...
Scotfleiger Posted August 27, 2020 Report Share Posted August 27, 2020 9 minutes ago, szeliga90 said: @Scotfleiger Are you aware whether these Lvars are planned to be exposed in the way FSUIPC7 will be able to use them? If that would be the case is it possible to map them as easy as FS contols/Offsets or would it require something more complicated like lua scripts? Also, the Beechcraft Bonanza G36 which I think is included with standard edition of MSFS has the same type of fuel pump switch. So if it's anything you could check and perhaps find out something more I would be very grateful. I am as much in the dark as you regarding Lvars and their inclusion in SimConnect. Normally, default aircraft do not use Lvars, only those from 3rd party developers like PMDG. I will take a look at the G36. Link to comment Share on other sites More sharing options...
Scotfleiger Posted August 27, 2020 Report Share Posted August 27, 2020 @szeliga90 On the G36 the Aux Fuel Pump switch moves from off to high via low. This is the same when using the mouse or the control 66237. The offset 0x3125 goes from 0 to 1 (bit 1). If you look under Options/Controls, filter ALL and search for Fuel you will see those controls I mentioned before. We are limited to these at the moment. 1 Link to comment Share on other sites More sharing options...
szeliga90 Posted August 27, 2020 Author Report Share Posted August 27, 2020 @Scotfleiger Thank you for checking it. That is interesting but I'm getting different results. For me the Aux fuel pump is switching between off and low regardless of which control/offset I'm using. I tried <custom control> 66237, Offset Byte Set (to x01 on button press, to x00 on button released), Offset Byte Setbits/Clearbits to x01 on button press/release and the results are the same for all of them. On top of that if I would manually switch the Aux fuel pump switch to high with the mouse and then try to use controls mentioned above they stop working at all and the switch just stay on high whether i would press the joystick button or release it. Although FSUIPC console indicates that Event TOOGLE_ELECT_FUEL_PUMP1(for offsets)/FUEL_PUMP(for control) took place Link to comment Share on other sites More sharing options...
Pete Dowson Posted August 27, 2020 Report Share Posted August 27, 2020 25 minutes ago, szeliga90 said: I tried <custom control> 66237 Why as a "custom control"? Isn't "FUEL PUMP" listed in the dropdown? That's 66237. Either way, it looks like they've not (yet) exposed the correct controls for this action. But before giving up for now, can you try assigning to FUEL PUMP but with parameters 0, 1, 2 (for off, low, high), just to see. I will do some tests here. But probably this will need to go on the list to report to ASOBO. No point in doing so yet -- we need to collate the responses from all FSUUIPC7 users, test them all after the next update from ASOBO, then report any still outstanding. However, when you look at how many panel operations for FX and P3D aircraft needed either Mouse Macros or L_Var access, I suspect many such things will need to wait until it is clear how those or their equivalents can be dealt with. Even if we had a module running within the MSFS process, AFAIK there's no way for it to connect with the outside (yet)! Pete Link to comment Share on other sites More sharing options...
Scotfleiger Posted August 27, 2020 Report Share Posted August 27, 2020 Pete, I have checked the control 66237 with the G36 (I don't have the B58). It is a toggle function and takes no parameters. It sets/resets bit 1 in offset 0x3125. Link to comment Share on other sites More sharing options...
szeliga90 Posted August 27, 2020 Author Report Share Posted August 27, 2020 I just tried "FUEL PUMP" control (I know its the same as custom control 66237 but as Scotfleiger mentioned specifically 66237 I though will call it like that to be clear that we are on the same page) with different parameters in G58 and regardless of the parameter provided control just toggle fuel pump state between off and low for both pumps. If I set with mouse pump 1 to low and leave pump 2 as off, then regardless of the parameter provided pump 1 would change to off and pump 2 would change to low. If one of the pumps would be set with mouse to high then only the other one will react to "FUEL PUMP" control again regardless of provided parameter Link to comment Share on other sites More sharing options...
John Dowson Posted August 27, 2020 Report Share Posted August 27, 2020 I can confirm this behavior: - FSUIPC offsets and the Fuel Pump control act as toggles between off/low - no parameter to the Fuel Pump control - this just acts as a toggle - FSUIPC correctly updates the fuel pump offsets when in off/low - manually setting the fuel pump(s) to high does not show any events/controls, and does not update the FSUIPC offsets - once the fuel pump(s) are set to high, the FSUIPC offsets and controls no longer have any affect I will raise this with Asobo. John 1 Link to comment Share on other sites More sharing options...
spokes2112 Posted August 27, 2020 Report Share Posted August 27, 2020 The B58 fuel pump hi/lo is fake. In high or low the pump is on, otherwise it is off. It also uses G:Vars (FSX 2D panel) which are not accessible to simconnect/fsuipc/lua. Visual status : (A:General eng1 fuel pump switch,bool) 0 != d (G:Var1) ! * + The click command : (A:General eng1 fuel pump switch,bool) if{ (G:Var1) if{ 0 (>K:TOGGLE_ELECT_FUEL_PUMP1) } els{ 1 (>G:Var1) } } els{ 0 (>G:Var1) 0 (>K:TOGGLE_ELECT_FUEL_PUMP1) } The most confusing code i've ever seen! "If OFF and G:Var is cleared, turn pump ON. If ON set G:Var (for visual HI). If ON and G:Var is true then clear G:Var, finally turn pump OFF " In FS2020 the code in the VC is most likely transposed from the above using L:Vars or S(SP)/L registers. Probably just best to live with OFF/LOW. Roman 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