1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Helicopter Gauge - winch man sounds on landing

Discussion in 'Gauges' started by craigt47, 6 Dec 2017.

  1. craigt47

    craigt47

    Joined:
    6 Nov 2017
    Messages:
    16
    Country:
    unitedkingdom
    Hi all,

    I am a complete novice at making gauges (I am guessing it will be a gauge required to achieve the below).

    Summary;

    I am trying to create a sound set that triggers based on location and altitude. When the helicopter is in the hover at 50ft, winch man opens the door and starts the following call outs;

    50ft
    40ft
    30ft
    20ft
    15ff
    10ft
    5ft
    4ft
    3ft
    2ft
    1ft
    Contact left (back landing gears)
    Contact right (back landing gears)
    Contact front (front landing gear)

    Other - think this is impossible!
    Right 1m,2m,3m
    Left 1m,2m,3m
    Forward 1m, 2m , 3m
    Back 1m, 2m, 3m

    Outside 1-3m
    Right
    Left
    Forward
    Back
    Hold (when on track)

    So questions;
    1. Before I start this quest, does this even sound possible?
    2. Are there any links to tutors on the basics?

    Many thanks

    Sent from my SM-G935F using Tapatalk
     
  2. Heretic

    Heretic Resource contributor

    Joined:
    1 Feb 2007
    Messages:
    5,596
    Country:
    germany
    Altitude callouts: Yes.
    Contact callouts: Not easy since there is no variable to determine whether a specific wheel has ground contact.
    Spatial positioning callouts would require messing with the GPS and some trigonometry, so again: Not easy.

    You can use my altitude callout gauges as reference:
    https://sites.google.com/site/fsxstuffbybk/gauges

    If you need sound samples, here's a quick tutorial:
    http://fsdeveloper.com/forum/threads/electronic-voice-creating-audio-app.441432/#post-784895
    (Note that you might have to find a suitable test-to-speech service since Ivona is not freely accessible anymore.)

    I've explained the operating principle for sound gauge code here:
    https://www.avsim.com/forums/topic/500597-add-apu-sound-to-aircraft/#comment-3539847


    For XML coding in general, the best way to start is by reverse-engineering existing gauges and trial-and-error.
     
    craigt47 likes this.
  3. lionheart

    lionheart

    Joined:
    24 Oct 2005
    Messages:
    8,289
    Country:
    us-arizona
    'sim on ground' should give you 'touch down'. Sim on ground is a readout in the sim.

    You 'might' be able to figure out something with landing gear compression. Difficult to do each landing gear. Or you could 'fake it' and do a dummy 'rear left is down... rear right is now down. Nose is down.' The person would have to be watching outside to see that its not in correct order, but usually you arent going to be even with the ground to 'see' which touches first.
     
    craigt47 likes this.
  4. craigt47

    craigt47

    Joined:
    6 Nov 2017
    Messages:
    16
    Country:
    unitedkingdom
    Amazing thank you. I will start to look through all the info and get learning!!!! Thank you

    Sent from my SM-G935F using Tapatalk
     
  5. EduHir

    EduHir

    Joined:
    15 Jan 2012
    Messages:
    273
    Country:
    austria
    for the gear:

    (A:GEAR ANIMATION POSITION:0,percent) 50 &lt;= <!-- Nose Gear -->
    (A:GEAR ANIMATION POSITION:1,percent) 50 &lt;= <!-- Left Main Gear -->
    (A:GEAR ANIMATION POSITION:2,percent) 50 &lt;= <!-- Right Main Gear -->

    0 = gear up
    50 = gear down
    51 ... 100 = on ground (compression)

    found here on the forum!

    btw, very nice projecct!
     
    antaris and craigt47 like this.
  6. mike november

    mike november

    Joined:
    29 Dec 2010
    Messages:
    107
    Country:
    germany
    Have something like that in mind for hoisting, will follow this very interested. :) It's a shame that we left our crew chiefs / flight enigineers unemployed until now. :)
     
    craigt47 likes this.
  7. Heretic

    Heretic Resource contributor

    Joined:
    1 Feb 2007
    Messages:
    5,596
    Country:
    germany
    I totally forgot about those variables. Thanks for the reminder, Edi!

    (Also usable for simulating a "Weight On Wheels" switch.)
     
  8. craigt47

    craigt47

    Joined:
    6 Nov 2017
    Messages:
    16
    Country:
    unitedkingdom
    Amazing, I will crack and and give it a go. Might need your help Gents!

    Sent from my SM-G935F using Tapatalk
     
  9. EduHir

    EduHir

    Joined:
    15 Jan 2012
    Messages:
    273
    Country:
    austria
    Maybe you known, maybe not...
    the geocalc

    Code:
    <!-- CALC *** Aircraft GPS distance and bearing update -->
         (A:GPS POSITION LAT,degree) (&gt;C:FS9GPS:GeoCalcLatitude1,degree)
         (A:GPS POSITION LON,degree) (&gt;C:FS9GPS:GeoCalcLongitude1,degree)
    
    <!-- CALC *** DIST and BEAR for APT POST -->
         (L:NavM_POST_Apt_Lat,degree) (&gt;C:FS9GPS:GeoCalcLatitude2,degree)
         (L:NavM_POST_Apt_Lon,degree) (&gt;C:FS9GPS:GeoCalcLongitude2,degree)
    
         (L:NavM_POST_Apt_Lat,degree) 0 !=
         (L:NavM_POST_Apt_Lon,degree) 0 !=
         &amp;&amp;
         if{
           (C:FS9GPS:GeoCalcDistance,NMiles) (&gt;L:NavM_POST_Apt_Distance,NMiles)
           (C:FS9GPS:GeoCalcBearing,degree) (A:GPS MAGVAR,degree) - dnor (&gt;L:NavM_POST_Apt_Bearing,degree)
           (L:NavM_POST_Apt_Distance,nmiles) (L:NavM_POST_Apt_FltPath_added,NMiles) + (&gt;L:NavM_POST_Apt_FltPathL,nmiles)
           (A:PLANE ALTITUDE,feet) (L:NavM_POST_Apt_Elevation,feet) - (&gt;L:NavM_POST_AC_above_Apt,feet)
           }
    
    
     
    antaris likes this.
  10. craigt47

    craigt47

    Joined:
    6 Nov 2017
    Messages:
    16
    Country:
    unitedkingdom
    I don't!!!!! Lol thank you.

    Would it work it the user input gps coordinates before taking off for landing. Then tied the gps to that those coordinates to drive the forward, back, left and right commands? I don't see how you could do it with a pre definded location?

    Sent from my SM-G935F using Tapatalk
     
  11. EduHir

    EduHir

    Joined:
    15 Jan 2012
    Messages:
    273
    Country:
    austria
    Yes. This was only an example how to get distance and bearing.

    A:GPS POSITION LAT, and
    A:GPS POSITION Lon, is the position of the aircraft.

    L:NavM_POST_Apt_Lon, and
    L:NavM_POST_Apt_Lon, rename they to your needs and feed them with the desired coordinates.