//
// Written by Curtis Olson, started January 2004.
//
-// Copyright (C) 2004 Curtis L. Olson - curt@flightgear.org
+// Copyright (C) 2004 Curtis L. Olson - http://www.flightgear.org/~curt
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id$
SGRoute *route;
// automatic inputs
- SGPropertyNode *lon;
- SGPropertyNode *lat;
- SGPropertyNode *alt;
+ SGPropertyNode_ptr lon;
+ SGPropertyNode_ptr lat;
+ SGPropertyNode_ptr alt;
// automatic outputs
- SGPropertyNode *true_hdg_deg;
+ SGPropertyNode_ptr true_hdg_deg;
- SGPropertyNode *wp0_id;
- SGPropertyNode *wp0_dist;
- SGPropertyNode *wp0_eta;
+ SGPropertyNode_ptr wp0_id;
+ SGPropertyNode_ptr wp0_dist;
+ SGPropertyNode_ptr wp0_eta;
- SGPropertyNode *wp1_id;
- SGPropertyNode *wp1_dist;
- SGPropertyNode *wp1_eta;
+ SGPropertyNode_ptr wp1_id;
+ SGPropertyNode_ptr wp1_dist;
+ SGPropertyNode_ptr wp1_eta;
- SGPropertyNode *wpn_id;
- SGPropertyNode *wpn_dist;
- SGPropertyNode *wpn_eta;
+ SGPropertyNode_ptr wpn_id;
+ SGPropertyNode_ptr wpn_dist;
+ SGPropertyNode_ptr wpn_eta;
public:
~FGRouteMgr();
void init ();
+ void postinit ();
void bind ();
void unbind ();
void update (double dt);
bool build ();
- void add_waypoint( SGWayPoint wp ) {
+ void add_waypoint( const SGWayPoint& wp ) {
route->add_waypoint( wp );
}