NMEA: detectio of the optional tag block in front of a sentence, ignoring it for...
[marnav.git] / src / marnav / ais / angle.hpp
blob85bf498dfd1000816e5b571aedd7c0625b55f9ab
1 #ifndef __MARNAV__AIS__ANGLE__HPP__
2 #define __MARNAV__AIS__ANGLE__HPP__
4 #include <marnav/geo/angle.hpp>
6 namespace marnav
8 namespace ais
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);
27 #endif