>-- Original Message -- >Date: Thu, 22 Jan 2004 11:46:00 -0600 >From: "Curtis L. Olson" <[EMAIL PROTECTED]> >To: FlightGear developers discussions <[EMAIL PROTECTED]> >Subject: Re: [Flightgear-devel] Proposed change to Terrain Following control >Reply-To: FlightGear developers discussions <[EMAIL PROTECTED]>
>Do you have any suggestions for better ways to handle this? For heading >control, -370 degrees is a lot different than -10 degrees. At some point >in the pipeline, we need to be able to remap results. Either we could >bui >d a ton of tiny building blocks (at which point we might be better off >just writing the autopilot entirely in nasal) or we need to have a way to >tell the controller to remap the results at various stanges in the pipeline. I think the add/subtract 360 until in the -180 -- +180 region is an excellent solution. If one does this first to the error (desired heading - current heading) one would get the degrees that the plane should turn. Now one simply uses this value as input to the controller and zero as setpoint to the controller. -- Roy Vegard Ovesen -- Roy Vegard Ovesen _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
