1 #ifndef MARNAV__AIS__ANGLE__HPP
2 #define MARNAV__AIS__ANGLE__HPP
4 #include <marnav/geo/angle.hpp>
10 /// Enumeration of angle scaling according to http://www.catb.org/gpsd/AIVDM.html
11 enum class angle_scale
{ I1
, I3
, I4
};
13 marnav::geo::latitude
to_geo_latitude(
14 uint32_t latitude_minutes
, std::size_t bits
, angle_scale scale
);
16 uint32_t to_latitude_minutes(
17 const marnav::geo::latitude
& lat
, std::size_t bits
, angle_scale scale
);
19 marnav::geo::longitude
to_geo_longitude(
20 uint32_t longitude_minutes
, std::size_t bits
, angle_scale scale
);
22 uint32_t to_longitude_minutes(
23 const marnav::geo::longitude
& lon
, std::size_t bits
, angle_scale scale
);