diff --git a/firmware/common/ais_packet.hpp b/firmware/common/ais_packet.hpp index 47bf902e..eabd88d2 100644 --- a/firmware/common/ais_packet.hpp +++ b/firmware/common/ais_packet.hpp @@ -42,6 +42,7 @@ struct DateTime { template struct LatLonBase { + constexpr LatLonBase( ) : LatLonBase { raw_not_available } { @@ -58,6 +59,8 @@ struct LatLonBase { ) : raw_ { other.raw_ } { } + + LatLonBase& operator=( const LatLonBase &)=default; int32_t normalized() const { return static_cast(raw() << sign_extend_shift) / (1 << sign_extend_shift);