* Mathias Fröhlich -- Thursday 26 May 2005 13:18: [still problems with locations on tile^Wbucket boundaries] > Can you send me a location where it does not work?
lon: 16.5 lat: 48.5833 Proof that it's on a bucket boundary (although obvious): $ calc-tile 16.49999 48.5833 Longitude: 16.49999 Latitude: 48.5833 Tile: 3220129 Path: "e010n40/e016n48/3220129.stg" $ calc-tile 16.5 48.5833 Longitude: 16.5 Latitude: 48.5833 Tile: 3220130 Path: "e010n40/e016n48/3220130.stg" Proof that there's a bug (comments in curly brackets; blank lines inserted): $ fgfs --telnet=4711 --aircraft=ufo --fdm=null >/dev/null 2>&1& [1] 13056 $ telnet localhost 4711 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. { setting lat/lon to some arbitrary position; reading elevation } set /position/latitude-deg 48.5833 /position/latitude-deg = '48.583300' (double) /> set /position/longitude-deg 15.12345 /position/longitude-deg = '15.123450' (double) /> get /position/ground-elev-m /position/ground-elev-m = '586.518298' (double) { OK; works (assuming the elevation is correct) } { now changing to other arbitrary position; reading elev } /> set /position/longitude-deg 15.54321 /position/longitude-deg = '15.543210' (double) /> get /position/ground-elev-m /position/ground-elev-m = '566.886987' (double) { different elevation; looks good } { now going to "problem position"; reading elevation } /> set /position/longitude-deg 16.5 /position/longitude-deg = '16.500000' (double) /> get /position/ground-elev-m /position/ground-elev-m = '566.886987' (double) { huh? same elevation to the 6th digit? Can't be! } { adding 0.0001 to longitude; reading elevation (my workaround) } /> set /position/longitude-deg 16.5001 /position/longitude-deg = '16.500100' (double) /> get /position/ground-elev-m /position/ground-elev-m = '218.889957' (double) { oh, yes; that works } /> quit Connection closed by foreign host. $ BTW: the scenery doesn't show anything unusual and suspicious. Not even the familiar crack line. And starting fgfs with --lon=16.5 --lat=48.5833 works flawlessly. > I have something in my tree which could help, if the problem is at the point > I > expecte it to be ... Cool. (It's not that I'm unwilling to find the bug myself. It just got in my way when I was working on something else, and I didn't want to get distracted by that. A workaround was preferable at that time.) m. _______________________________________________ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d