Jump to content
Sign in to follow this  
Guest LukeV

Turboprop starter

Recommended Posts

Guest LukeV

Gday Guys,I am trying to make a starter switch for a turboprop (PC-9). I want it to be dependant on an ignition switch - which I have successfully done - but also want the starter switch to automatically switch back once the turbine has reached stable RPM. Which is what I need help for. This is my code -(L:Starter,bool)(L:Starter,bool)(L:Ignition,bool) 1 == (L:Starter,bool) 1 == (A:ELECTRICAL MASTER BATTERY,bool) 1 == && && if{ 0 (>K:TOGGLE_STARTER1) }%Engine Start Switch (%((L:Starter,bool))%{if}%On%{else}%Off%{end})0 (>K:TOGGLE_AFTERBURNER2) (L:Starter,bool) ! (>L:Starter,bool)Help greatly appreciated..!! :)

Share this post


Link to post
Share on other sites

Hi,you might try this one (not tested)(L:Starter,bool) (A:Turb Eng1 N2,percent) 50 > ! * (>L:Starter,bool) (L:Ignition,bool) 1 == (L:Starter,bool) 1 == (A:ELECTRICAL MASTER BATTERY,bool) 1 == && && if{ (>K:TOGGLE_STARTER1) }or maybe this "polished"(L:Starter,bool) (A:Turb Eng1 N2,percent) 50 > ! *(>L:Starter,bool) (L:Ignition,bool) (L:Starter,bool) (A:ELECTRICAL MASTER BATTERY,bool) and and if{ (>K:TOGGLE_STARTER1) }Notice that bool vars can be tested as is, because always return 0 or 1 (no need to compare to 1 == or 0 == )Hope this helpsTom

Share this post


Link to post
Share on other sites
Guest LukeV

Thanks alot Tom. Works a charm. MUCH appreciated..!!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...