fpw / avitab

X-Plane plugin that displays a tablet to aid VR usage
GNU Affero General Public License v3.0
301 stars 59 forks source link

Calibrate Mercator charts which have North arbitrarily rotated #134

Closed dave6502 closed 1 year ago

dave6502 commented 1 year ago

Calibration now requires the user enter 3 datapoints. The first 2 datapoints are lat/lon as normal. The 3rd datapoint can be either another lat/lon, or an angle, representing the offset from North on the chart. The 3rd datapoint text field is prefilled with '0', as a default angle for typical North up charts.

Avitab can also now get calibration metadata from a .kml file, saved from Google Earth after a chart has been georeferenced via Image Overlay.

A more complex set of 2D linear equations have been implemented to represent the 2D matrix operations for the Rotate/Translate/Scale transformations between pixel and world coordinates. Added more logging and reporting of calibration success/failure.

I've added some code to hopefully ensure this still works with Navigraph, but am unable to test.

fpw commented 1 year ago

Thanks again, also for the fixes!