#pragma once #include namespace roro::gnss { // "50.86920° N": five decimals, about a metre. std::string formatDecimal(double degrees, bool latitude); // "50° 52' 09.1\" N" (Settings → Coordinates, Q64). std::string formatDms(double degrees, bool latitude); // The 6-character Maidenhead locator ("JO20ef"), as radio amateurs give their square. std::string maidenhead(double latitude, double longitude); // Where a satellite goes on the Sky view: the zenith in the centre, the horizon on the circle, // north up and east right (as seen looking at the sky from above, like a map). struct SkyPoint { int x, y; }; SkyPoint skyPosition(int azimuthDeg, int elevationDeg, int cx, int cy, int radius); } // namespace roro::gnss