Re: Ground observer position

Lee Elliott <[email protected]> Sun, 29 May 2005 16:02:03 +0100
Newsgroups gmane.games.flightgear.flightmodel
Message-ID <[email protected]>
On Sunday 29 May 2005 13:38, Sam Heyman wrote:
> Hi,
>
> I am trying to create a new view for my RC UAV. The view I
> would like is a ground observer, standing by the edge of the
> runway, near the aircraft.
>
> This is the view section I have included in my aircraft-set
> file:
>
> <location>
>   <ground-observer-lon-deg>48.6124</ground-observer-lon-deg>
>   <ground-observer-lat-deg>63.1243</ground-observer-lat-deg>
>   <ground-observer-alt-ft>123.5</ground-observer-alt-ft>
> </location>
>
> <view>
>     <name>Ground Observer</name>
>     <type>lookat</type>
>     <config>
>      
> <eye-lat-deg-path>/location/ground-observer-lat-deg></eye-lat-
>deg-path>
> <eye-lon-deg-path>/location/ground-observer-lon-deg</eye-lon-d
>eg>
> <eye-alt-ft-path>/location/ground-observer-alt-ft</eye-alt-ft>
> <eye-roll-deg-path>/sim/tower/roll-deg</eye-roll-deg-path>
> <eye-pitch-deg-path>/sim/tower/pitch-deg</eye-pitch-deg-path>
> <eye-heading-deg-path>/sim/tower/heading-deg</eye-heading-deg-
>path>
>
>       <at-model type="bool">true</at-model>
>       <at-model-idx type="int">0</at-model-idx>
>     </config>
>  </view>
>
>
> Questions:
> ----------------
> 1) When I add this to my file, the aircraft no longer loads
> (not displayed in the aircraft list) - which is not a good
> start!
>
> 2) What should I specify in the location section, so that any
> airport can be chosen and the observer always stands next to
> the runway?
>
> Thanks a lot!
> Sam

The A-10s have what I've called a 'Drop' view.  It's an 
additional lookat view where the view location can be 'dropped' 
behind the aircraft.  Look in the A-10cl-set.xml or 
A-10fl-set.xml files for the setup.

I also played with a similar Ground Observer view by using the 
altitude and altitude-agl values in the property tree, together 
with some basic Nasal, to position the view position 2m above 
the ground immediately below the aircraft.  However, I had some 
problems with the near-plane clipping and didn't progress with 
it.

LeeE

_______________________________________________
Flightgear-flightmodel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-flightmodel
2f585eeea02e2c79d7b1d8c4963bae2d