On 01/05/2007 04:06 AM, Torsten Dreyer wrote:

> Less dirty and more correct should be:
> relocate to the position of the fix, grab the magnetic variation and 
> calculate 
> the transporter coordinates using bearing and distance. Relocate again to 
> these coordinates. You can safely call this position "magnetic bearing from 
> XYZ, distance NN Miles". 

I agree.

An alternative implementation of the same idea would be to
just call the function that tells you the magnetic variation
of a given point.

Hint:
  http://simgear.sourceforge.net/doxygen/classSGMagVar.html

I just need to figure out how to call it.

=====================================

I have done a fair bit of work on the location-in-air dialog.
The latest Denkerized version is at:
  http://www.av8n.com/fly/fgfs/location-in-air.xml
  http://www.av8n.com/fly/fgfs/location-in-air.diff

New features and other status information:

## In the bottom section of the dialog:
##  *) If you leave the altitude blank,
##    it defaults to your present altitude.
##  *) If you leave the airspeed blank,
##    it defaults to your present airspeed.
##  *) If you leave the heading blank,
##    it defaults to your present heading.
##  *) If you leave the radial blank,
##    it defaults to your present heading.
##    This is particular useful when relocating
##    some distance /ahead/ i.e. relative to
##    present position.
##  *) If you leave the distance blank,
##    it defaults to zero.
##  *) The radial and the heading are now specified
##    in degrees /magnetic/ (not degrees true).

Those may seem like small things, but IMHO they make the dialog
significantly more usable in flight.

## Known bugs:
## *) Apparently the reset routine refuses to
##   apply an offset if the reference point is a lat/lon.
##   Maybe we could work around this ... or we could just
##   beseech the FDM authors to fix it on their end.
## *) That breaks the "present position" feature also.
## *) We should calculate the magnetic variation at the
##   /reference point/ (not at the current position, as
##   we do now, which is quick and dirty).
## *) The "trim" function that goes on inside the "reset"
##   function is a disaster;  for details on this, see below.
## *) Among many disasters, "trim" trashes the throttle settings.
##   /and/ my workaround for this doesn't work.

## Kludges and workarounds (to be removed when circumstances permit):
## *) I installed a kludge so that the "reset" thing
##   doesn't trash the magneto settings.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to