Jump to content
The simFlight Network Forums

PropDrvr

Members
  • Posts

    4
  • Joined

  • Last visited

  • Days Won

    1

PropDrvr last won the day on December 21 2016

PropDrvr had the most liked content!

PropDrvr's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. AeroSoft Twin Otter Engine Start - May be a bit clunky being my first shot at L:VARs but it works. -- 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
  2. 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
  3. 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
  4. 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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.