Skip to main content

aivdm_message_cog_degrees

Function aivdm_message_cog_degrees 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn aivdm_message_cog_degrees( msg: *const AivdmMessage, out_cog: *mut f64, ) -> bool
Expand description

Reads course over ground, in degrees, off a message.

Returns true and writes *out_cog if this message type carries a course and it is marked available; returns false otherwise.

ยงSafety

msg must be NULL or a valid, non-freed handle from aivdm_decode_line. out_cog must be a valid pointer to a writable f64.