Results 1 to 8 of 8

Thread: Reliable way to test for 'is aircraft's engine on'?

  1. #1
    Supporting Member
    Join Date
    Sep 2019
    Location
    Yorkshire
    Posts
    138
    Post Thanks / Like
    Total Downloaded
    1.39 GB

    Reliable way to test for 'is aircraft's engine on'?

    I can't find a specific method for boolean 'is this aircraft's engine on?' plus tried using a workround with parameters like RPM but that doesn't help - they don't go to zero when the engine is stopped!?


    Thanks

    M

  2. Likes ATAG_Snapper liked this post
  3. #2
    Supporting Member
    Join Date
    Nov 2015
    Location
    Oak Island, NC
    Posts
    790
    Post Thanks / Like
    Total Downloaded
    80.50 MB

    Re: Reliable way to test for 'is aircraft's engine on'?

    Quote Originally Posted by Marcost View Post
    I can't find a specific method for boolean 'is this aircraft's engine on?' plus tried using a workround with parameters like RPM but that doesn't help - they don't go to zero when the engine is stopped!?


    Thanks

    M
    Stick your tongue in the prop?
    Windows 10 Pro 64-bit
    AMD Ryzen 7 3700X 8-Core, 16-Thread
    32GB RAM
    NVidia GeForce GTX1080 (Asus Rog Strix GTX 1080)
    1 TB SSD
    LG 4K 55" TV
    Gear-Falcon General Purpose Joystick Controller, Gear-Falcon Quadrant and Trim, Gear-Falcon BF-109 Water Radiator Crank

    "Find out what you don't do well, and then DON'T DO IT!" - Alf

  4. #3
    Team Fusion Artist's Avatar
    Join Date
    Mar 2010
    Posts
    2,866
    Post Thanks / Like
    Total Downloaded
    319.97 MB

    Re: Reliable way to test for 'is aircraft's engine on'?

    Quote Originally Posted by Marcost View Post
    I can't find a specific method for boolean 'is this aircraft's engine on?' plus tried using a workround with parameters like RPM but that doesn't help - they don't go to zero when the engine is stopped!?
    AFK, but IIRC you cannot check for 'on' - but if you want to be sure that the engine is off you can check fuelcocks and magnetos: If those are closed/off, the engine cannot be possibly running. We use that for rearm/refuel (see that module for howto check).

  5. Likes ATAG_Snapper, Marcost liked this post
  6. #4
    Supporting Member
    Join Date
    Sep 2019
    Location
    Yorkshire
    Posts
    138
    Post Thanks / Like
    Total Downloaded
    1.39 GB

    Re: Reliable way to test for 'is aircraft's engine on'?

    @ Kendy - Good suggestion, do you have the code for that?

    @ Artist - Ok thank you, will use that although I can see limitations e.g. crash landing where engine is stopped but not shutdown.

    Regards,

    M

  7. #5
    Supporting Member
    Join Date
    Sep 2019
    Location
    Yorkshire
    Posts
    138
    Post Thanks / Like
    Total Downloaded
    1.39 GB

    Re: Reliable way to test for 'is aircraft's engine on'?

    Thanks Artist for the pointer to the RRR script. For completeness:

    Where i is the engine number:

    Fuelcocks: .getParameter(part.ParameterTypes.C_FuelTankSelect or, i)

    (but some aircraft have reversed logic - details in the script!)

    Magnetos:

    .getParameter(part.ParameterTypes.C_Magneto, i)

    (0=off for all aircraft)

    Regards,

    M

  8. #6
    Team Fusion Artist's Avatar
    Join Date
    Mar 2010
    Posts
    2,866
    Post Thanks / Like
    Total Downloaded
    319.97 MB

    Re: Reliable way to test for 'is aircraft's engine on'?

    Quote Originally Posted by Marcost View Post
    @ Artist - Ok thank you, will use that although I can see limitations e.g. crash landing where engine is stopped but not shutdown.
    Yep, the limitations are obvious :-(

    For crash: Check for damage (also exemplified in The RearmRefuel Module)

  9. Likes Marcost liked this post
  10. #7
    Supporting Member Tibsun's Avatar
    Join Date
    Feb 2016
    Location
    Austria
    Posts
    915
    Post Thanks / Like
    Total Downloaded
    220.96 MB

    Re: Reliable way to test for 'is aircraft's engine on'?

    I think a damaged propeller marks a downed aircraft.

  11. Likes Marcost liked this post
  12. #8
    Supporting Member
    Join Date
    Sep 2019
    Location
    Yorkshire
    Posts
    138
    Post Thanks / Like
    Total Downloaded
    1.39 GB

    Re: Reliable way to test for 'is aircraft's engine on'?

    Thanks all, I went for: magnetos off, not airborne, canopy open. Now I can hear the birds in the trees
    Last edited by Marcost; Aug-06-2021 at 13:59.

  13. Likes Artist, farley liked this post

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •