Christian Mayer writes:
>
>Norman Vine wrote:
>>
>> Well if you just wanted to drift with the wind and be 'cheesy'
>> you could use the simgear direct geodetic solver to get a new lat lon
>> based on current position speed and course
>
>The drifting is moddeled correctly and returnes me a "displacement" in
>meters in the north-south and east-west axis (so it'S easy to convert
>that to a direction and a distance). So all I need is a function that
>takes the current position in WGS84 and my displacement and
>returns me a new WGS84 position.

Exactly
 * @param alt (in) meters  -- current altitude above sea-level
 * @param lat1 (in) degrees - current latitude
 * @param lon1 (in) degrees - current longitude
 * @param az1 (in) degrees  - course in degrees
 * @param s (in) distance in meters -  distance in degrees
 * @param lat2 (out) degrees  - new latitude
 * @param lon2 (out) degrees - new longitude
 * @param az2 (out) return course in degrees  - course back to starting
location
 */
int geo_direct_wgs_84 ( double alt, double lat1, double lon1, double az1,
                        double s, double *lat2, double *lon2,  double *az2 );

Need anything else ??

Norman


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to