Board index FlightGear Support Interfacing

Altitude - Above Ground Level

Connecting two computers, using generic protocol, connecting with Matlab?

Altitude - Above Ground Level

Postby Droogie » Mon May 21, 2018 11:12 am

Hi,
Im using FlightGear only for its out world scenery,
Sending over socket flight properties, (--fdm=null) but i would like to use its "Altitude - Above Ground Level" from scenery database.
how to do this ?
thanks,
Itay
Droogie
 
Posts: 11
Joined: Mon Apr 09, 2018 3:55 pm

Re: Altitude - Above Ground Level

Postby RJ5576 » Mon May 21, 2018 6:34 pm

Would you not use "/position/altitude-agl-ft"?
RJ5576
 
Posts: 86
Joined: Wed Feb 20, 2013 4:24 am
Location: Between KSEA and KPDX
Callsign: RJ5576
Version: 2018.1.1
OS: Linux Mint Sylvia

Re: Altitude - Above Ground Level

Postby Droogie » Mon May 21, 2018 10:23 pm

It stays zeroed, I guess it's because I'm running with my own fdm.
Droogie
 
Posts: 11
Joined: Mon Apr 09, 2018 3:55 pm

Re: Altitude - Above Ground Level

Postby RJ5576 » Mon May 21, 2018 11:13 pm

How about "/position/ground-elev-ft" or "/position/ground-elev-m"?
RJ5576
 
Posts: 86
Joined: Wed Feb 20, 2013 4:24 am
Location: Between KSEA and KPDX
Callsign: RJ5576
Version: 2018.1.1
OS: Linux Mint Sylvia

Re: Altitude - Above Ground Level

Postby Droogie » Tue May 22, 2018 5:26 pm

"/position/ground-elev-ft" sounds good.
This value should be based on data of the loaded scenery?
Just want to be sure, it's the terrain height above sea level on the present position ?
Droogie
 
Posts: 11
Joined: Mon Apr 09, 2018 3:55 pm

Re: Altitude - Above Ground Level

Postby TheEagle » Fri Apr 29, 2022 10:43 pm

/position/ground-elev-ft and -m are the elevation of the terrain below the aircraft with respect to Mean Sea Level - but the altitude-agl-ft can be eaasily calculated from this with a property rule:
Code: Select all
<filter>
  <type>gain>
    <input>
      <expression>
        <difference>
          <property>/position/altitude-ft</property>
          <property>/position/ground-elev-ft</property>
        </difference>
      </expression>
    </input>
    <output>/position/altitude-agl-ft</output>
</filter>
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3414
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 1 guest