Seamus Thomas Carroll writes:
>
> To begin a prototyping I was thinking of copying the
> behaviour of autopilot when add to waypoint is called. I have traced the
> code to void AddWayPoint(puObject *cb) in auto_gui.cxx but that is when
> the code gets confusing because the old method of displaying a
> dialog box is used. Is anyone who understands this code willing to step
> me through the process of obtaining waypoints and
> using these waypoints to decide the heading of the plane and overriding
> other inputs while in autopilot?
Just call
int NewWaypoint( string Tgt_Alt );
with an appropriate string
or
SGWayPoint wp( f.get_lon(), f.get_lat(), alt,
SGWayPoint::WGS84, TgtAptId );
globals->get_route()->add_waypoint( wp );
HTH
Norman
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel