* Melchior FRANZ -- Friday 28 April 2006 19:35:
> I've now put everything in place in sg & fgfs that was need to replace
> the old waypoint dialog with something fancier. I intend to throw out
> auto_gui.[ch]xx, 

Committed. Please report any problems. I have yet to look for usage of
the old waypoint commands in the KAP140 etc. I'll add fgcommand wrappers
for the old commands if necessary.



> TODO:
> 
> * allow to insert waypoints *in* the list (currently always appended)
> * allow lon/lat waypoints in addition to airports & fixes

Done.


There are no more route/waypoint fgcommands left. All commands are given
over one single property that the route manager monitors via listener:

  /autopilot/route-manager/input

Waypoint targets can be written directly and are appended to the route:

  (<iaco>|<fix>|<lon>,<lat>)[@<alt>]

Examples:

  [EMAIL PROTECTED]
  EBASE
  -122.3,[EMAIL PROTECTED]


Some commands are available, too:

  @clear             ... clear route
  @pop               ... remove first entry
  @delete0           ... delete 1st entry (same as @pop)
  @insert2:[EMAIL PROTECTED]  ... insert "[EMAIL PROTECTED]" as 3rd entry
  [EMAIL PROTECTED]           ... append "[EMAIL PROTECTED]"

These are simply written to the same input property:

  setprop("/autopilot/route-manager/input", "@clear");


Spaces are optional before the index in @delete and @insert and after
the colon, waypoint specs are case insensitive (commands are not!):

  @insert 3: ebase   ... set fix "EBASE" as 4th entry


The altitude is still ignored (as it was before). I'll work on that
once I know how it was meant to work.

m.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to