#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_mavlink_message_set_float(
message: *mut PamojaMavlinkMessage,
field: *const c_char,
index: usize,
value: f64,
) -> PamojaStatusExpand description
Writes a floating-point field.
§Arguments
message- the message to write.field- the field name.index- the element to write, or0for a scalar field.value- the value to store, narrowed tofloatwhere the field is one.
§Returns
PamojaStatus::Ok on success.
§Errors
Returns PamojaStatus::InvalidArgument if a pointer is null, the message has no such
field, the element is past the end of an array, or the field is an integer.
§Safety
message must be a live message handle and field a null-terminated C string.