RISCfuture Posted November 8, 2016 Report Share Posted November 8, 2016 Hey, was hoping I could get a little help figuring out my offset mask. I have a PFC C2 that I'm using with PFChid. I'd like the NAV light switch to only toggle the nav light, not the nav + beacon lights. I'd also like the switch to only operate if its state agrees with the P3D internal switch state, so that they don't fall out of sync. My macro is as follows: [Macros] 1=GoAround=C65861 2=Nav+ 2.1=W0D0C&0001!0 C66379 2.2=W0D0C&0001=0 C1126 3=Nav- 3.1=W0D0C&0001!0 C1126 3.2=W0D0C&0001=0 C66379 4=Battery+ 4.1=W281C=0 C66241 4.2=W281C!0 C1126 5=Battery- 5.1=W281C=0 C1126 5.2=W281C!0 C66241 6=CarbHeater+=C1126 7=CarbHeater-=C1126 8=CarbHeater2+=C1126 9=CarbHeater2-=C1126 This isn't working. If I change the relevant part of the macro to 2=Nav+=C66379 3=Nav-=C66379 it works but of course the physical and virtual switches can get out of sync. Help appreciated! Link to comment Share on other sites More sharing options...
Pete Dowson Posted November 8, 2016 Report Share Posted November 8, 2016 You don't need a macro, and messing about with the FS light controls is fraught. Much simpler: just assign the switch to an FSUIPC offset control. To switch the light on, assign to Offset word setbits with the offset set to 0x0D0C and a parameter of 1 To switch it off, assign to Offset word clrbits with the offset set to x0D0C and a parameter of 1 Pete Link to comment Share on other sites More sharing options...
RISCfuture Posted November 9, 2016 Author Report Share Posted November 9, 2016 OK, here's the latest... still doesn't work though. Am I getting the syntax right? 2=Nav+=x06000D0C,1 3=Nav-=x0A000D0C,1 4=Battery+=x0200281C,1 5=Battery-=x0200281C,0 Link to comment Share on other sites More sharing options...
RISCfuture Posted November 9, 2016 Author Report Share Posted November 9, 2016 OK, figured that out (need a "C" before the "x"); now onto figuring out why the battery turns itself off right after I flip the switch (short on-off)... Link to comment Share on other sites More sharing options...
Pete Dowson Posted November 9, 2016 Report Share Posted November 9, 2016 5 hours ago, RISCfuture said: OK, here's the latest... still doesn't work though. Am I getting the syntax right? If you merely need to assign to switches, why are you doing it by editing the INI file? It is far far easier just to assign these controls in the FSUIPC options, using the control names, letting FSUIPC figure out the syntax. (Why do you need these in Macros in any case?) 4 hours ago, RISCfuture said: now onto figuring out why the battery turns itself off right after I flip the switch (short on-off)... Without knowing how you are assigning things to the macros, I can't help, but it sounds like you are assigning the on/off macros to the push/release of a momentary switch or button. Using a momentary one you'd be better of just using the normmal toggle action.TOGGLE MASTER BATTERY. Pete Link to comment Share on other sites More sharing options...
RISCfuture Posted November 10, 2016 Author Report Share Posted November 10, 2016 Ah, as mentioned before, this is a PFC C2, not a normal input device. AFAIK, the C2 only exposes 2 buttons to the normal FSUIPC button interface (the rocker on the right side of the yoke) -- everything else if auto-configured by PFChid.dll and editable through macro files only. Link to comment Share on other sites More sharing options...
Pete Dowson Posted November 10, 2016 Report Share Posted November 10, 2016 7 hours ago, RISCfuture said: Ah, as mentioned before, this is a PFC C2, not a normal input device. AFAIK, the C2 only exposes 2 buttons to the normal FSUIPC button interface (the rocker on the right side of the yoke) I seem to remember that those are momentary contact. So you need to use Toggle controls. Pete 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