1 #ifndef __SEATALK__MESSAGE_10__HPP__
2 #define __SEATALK__MESSAGE_10__HPP__
4 #include <marnav/seatalk/message.hpp>
11 /// @brief Apparent Wind Angle
16 /// Apparent Wind Angle: XXYY/2 degrees right of bow Used for autopilots
17 /// Vane Mode (WindTrim)
20 /// Corresponding NMEA sentence: MWV
22 class message_10
: public message
25 constexpr static const message_id ID
= message_id::apparent_wind_angle
;
28 message_10(const message_10
&) = default;
29 message_10
& operator=(const message_10
&) = default;
31 virtual raw
get_data() const override
;
33 static std::unique_ptr
<message
> parse(const raw
& data
);
36 uint16_t angle
; // 1/10th of degrees right of bow
39 uint16_t get_angle() const noexcept
{ return angle
; }
41 void set_angle(uint16_t t
) noexcept
{ angle
= t
; }