PropDrvr Posted April 6, 2011 Report Share Posted April 6, 2011 Hi folks I will paste what I have posted over at the AS forums hoping some kind soul has an answer :) To cut a long story short. All my sim'ing is controlled by hardware switch panels and BU0836X controllers via FSUIPC registered. The one aircraft I have trouble with is the AS Twotter and the starter switch. clicking on the switch with the mouse delivers a single "Toggle_Starter1" or "Toggle_Starter2" command as per normal. If I run through FSUIPC I get a double command on each action as shown below hence no engine start. Thinking it may be a fsuipc control error I set up a keyboard key press in the main FSX config but I get the same result a double input. 377788 [Buttons] 61=PE,30,C66300,0 377788 FS Control Sent: Ctrl=66300, Param=0 377788 *** EVENT: Cntrl= 66300 (0x000102fc), Param= 0 (0x00000000) TOGGLE_STARTER1 377835 *** EVENT: Cntrl= 66300 (0x000102fc), Param= 0 (0x00000000) TOGGLE_STARTER1 379566 Button changed: bRef=0, Joy=4 (E), Btn=30, Released 379566 [Buttons] 109=UE,30,C66300,0 379566 FS Control Sent: Ctrl=66300, Param=0 379566 *** EVENT: Cntrl= 66300 (0x000102fc), Param= 0 (0x00000000) TOGGLE_STARTER1 379613 *** EVENT: Cntrl= 66300 (0x000102fc), Param= 0 (0x00000000) TOGGLE_STARTER1 I have tried to make a macro but it does not seem to be a compatible function. If someone has any clues or has come up against this and cured it I would love your input. Any and all help will be greatly appreciated. Pete Link to comment Share on other sites More sharing options...
Pete Dowson Posted April 6, 2011 Report Share Posted April 6, 2011 The one aircraft I have trouble with is the AS Twotter and the starter switch. clicking on the switch with the mouse delivers a single "Toggle_Starter1" or "Toggle_Starter2" command as per normal. If I run through FSUIPC I get a double command on each action as shown below hence no engine start. Thinking it may be a fsuipc control error I set up a keyboard key press in the main FSX config but I get the same result a double input. Assuming it is only that aircraft which gives this double click result I think that sending the command to FS does the toggling okay, and the aircraft gauge sees this and alters its switch, which in turn sends another control. I wouldn't think there was any way around that without a fix in the gauge. I have tried to make a macro but it does not seem to be a compatible function. Possibly the switch can be operated via Local Panel variables (L:Vars)? Regards Pete Link to comment Share on other sites More sharing options...
PropDrvr Posted April 6, 2011 Author Report Share Posted April 6, 2011 Thanks Pete I will give it a go, who said FS was a hobby, it's more like a non payed full time job :wink: Regards Pete Link to comment Share on other sites More sharing options...
PropDrvr Posted April 7, 2011 Author Report Share Posted April 7, 2011 Sorted, thanks for the jolt Pete, for this old dog rolling over and learning a new trick was something I wasn't really wanting to do, but I got there :) Code for any one else with the AS Twin Otter -- 1 = Starter L On -- 2 = Starter L Off -- 3 = Starter R On -- 4 = Starter R Off -- Set to Zero ipc.writeLvar("L:STARTER",0) -- Starter L On if ipcPARAM == 1 then dh6_starter = "L:starter" val = 0 if ipc.readLvar(dh6_starter) == 0 then val = 1 end ipc.writeLvar(dh6_starter, val) ipc.writeLvar("L:CAT_SWITCH_ON", 1) -- Starter L Off elseif ipcPARAM == 2 then dh6_starter = "L:starter" val = 0 if ipc.readLvar(dh6_starter) == 1 then val = 0 end ipc.writeLvar(dh6_starter, val) ipc.writeLvar("L:CAT_SWITCH_ON", 2) -- Starter R On elseif ipcPARAM == 3 then dh6_starter = "L:starter" val = 2 if ipc.readLvar(dh6_starter) == 0 then val = 3 end ipc.writeLvar(dh6_starter, val) ipc.writeLvar("L:CAT_SWITCH_ON", 3) -- Starter R Off elseif ipcPARAM == 4 then dh6_starter = "L:starter" val = 3 if ipc.readLvar(dh6_starter) == 3 then val = 4 end ipc.writeLvar(Cat_starter, val) ipc.writeLvar("L:CAT_SWITCH_ON", 4) end Link to comment Share on other sites More sharing options...
Pete Dowson Posted April 7, 2011 Report Share Posted April 7, 2011 Code for any one else with the AS Twin Otter Great! Could you do us a favour, please, and post this with a suitable heading it the User Contributions subforum? That way it remains a reource for others. Left here it will scroll off and disappear pretty quickly. Thanks! 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