@@ -101,13 +101,13 @@ static inline uint16_t mavlink_msg_boat_engine_status_pack(uint8_t system_id, ui
101101 mavlink_boat_engine_status_t packet ;
102102 packet .time_usec = time_usec ;
103103 packet .fuel_consumption_rate = fuel_consumption_rate ;
104- mav_array_memcpy (packet .oil_pressure , oil_pressure , sizeof ( float ) * 6 );
105- mav_array_memcpy (packet .engine_coolant_temperature , engine_coolant_temperature , sizeof ( float ) * 6 );
106- mav_array_memcpy (packet .engine_rpm , engine_rpm , sizeof ( uint16_t ) * 6 );
107- mav_array_memcpy (packet .engine_state , engine_state , sizeof ( uint8_t ) * 6 );
108- mav_array_memcpy (packet .engine_load , engine_load , sizeof ( uint8_t ) * 6 );
109- mav_array_memcpy (packet .throttle_position , throttle_position , sizeof ( uint8_t ) * 6 );
110- mav_array_memcpy (packet .transmission_state , transmission_state , sizeof ( uint8_t ) * 6 );
104+ mav_array_assign_float (packet .oil_pressure , oil_pressure , 6 );
105+ mav_array_assign_float (packet .engine_coolant_temperature , engine_coolant_temperature , 6 );
106+ mav_array_assign_uint16_t (packet .engine_rpm , engine_rpm , 6 );
107+ mav_array_assign_uint8_t (packet .engine_state , engine_state , 6 );
108+ mav_array_assign_uint8_t (packet .engine_load , engine_load , 6 );
109+ mav_array_assign_uint8_t (packet .throttle_position , throttle_position , 6 );
110+ mav_array_assign_uint8_t (packet .transmission_state , transmission_state , 6 );
111111 memcpy (_MAV_PAYLOAD_NON_CONST (msg ), & packet , MAVLINK_MSG_ID_BOAT_ENGINE_STATUS_LEN );
112112#endif
113113
@@ -207,13 +207,13 @@ static inline uint16_t mavlink_msg_boat_engine_status_pack_chan(uint8_t system_i
207207 mavlink_boat_engine_status_t packet ;
208208 packet .time_usec = time_usec ;
209209 packet .fuel_consumption_rate = fuel_consumption_rate ;
210- mav_array_memcpy (packet .oil_pressure , oil_pressure , sizeof ( float ) * 6 );
211- mav_array_memcpy (packet .engine_coolant_temperature , engine_coolant_temperature , sizeof ( float ) * 6 );
212- mav_array_memcpy (packet .engine_rpm , engine_rpm , sizeof ( uint16_t ) * 6 );
213- mav_array_memcpy (packet .engine_state , engine_state , sizeof ( uint8_t ) * 6 );
214- mav_array_memcpy (packet .engine_load , engine_load , sizeof ( uint8_t ) * 6 );
215- mav_array_memcpy (packet .throttle_position , throttle_position , sizeof ( uint8_t ) * 6 );
216- mav_array_memcpy (packet .transmission_state , transmission_state , sizeof ( uint8_t ) * 6 );
210+ mav_array_assign_float (packet .oil_pressure , oil_pressure , 6 );
211+ mav_array_assign_float (packet .engine_coolant_temperature , engine_coolant_temperature , 6 );
212+ mav_array_assign_uint16_t (packet .engine_rpm , engine_rpm , 6 );
213+ mav_array_assign_uint8_t (packet .engine_state , engine_state , 6 );
214+ mav_array_assign_uint8_t (packet .engine_load , engine_load , 6 );
215+ mav_array_assign_uint8_t (packet .throttle_position , throttle_position , 6 );
216+ mav_array_assign_uint8_t (packet .transmission_state , transmission_state , 6 );
217217 memcpy (_MAV_PAYLOAD_NON_CONST (msg ), & packet , MAVLINK_MSG_ID_BOAT_ENGINE_STATUS_LEN );
218218#endif
219219
@@ -296,13 +296,13 @@ static inline void mavlink_msg_boat_engine_status_send(mavlink_channel_t chan, u
296296 mavlink_boat_engine_status_t packet ;
297297 packet .time_usec = time_usec ;
298298 packet .fuel_consumption_rate = fuel_consumption_rate ;
299- mav_array_memcpy (packet .oil_pressure , oil_pressure , sizeof ( float ) * 6 );
300- mav_array_memcpy (packet .engine_coolant_temperature , engine_coolant_temperature , sizeof ( float ) * 6 );
301- mav_array_memcpy (packet .engine_rpm , engine_rpm , sizeof ( uint16_t ) * 6 );
302- mav_array_memcpy (packet .engine_state , engine_state , sizeof ( uint8_t ) * 6 );
303- mav_array_memcpy (packet .engine_load , engine_load , sizeof ( uint8_t ) * 6 );
304- mav_array_memcpy (packet .throttle_position , throttle_position , sizeof ( uint8_t ) * 6 );
305- mav_array_memcpy (packet .transmission_state , transmission_state , sizeof ( uint8_t ) * 6 );
299+ mav_array_assign_float (packet .oil_pressure , oil_pressure , 6 );
300+ mav_array_assign_float (packet .engine_coolant_temperature , engine_coolant_temperature , 6 );
301+ mav_array_assign_uint16_t (packet .engine_rpm , engine_rpm , 6 );
302+ mav_array_assign_uint8_t (packet .engine_state , engine_state , 6 );
303+ mav_array_assign_uint8_t (packet .engine_load , engine_load , 6 );
304+ mav_array_assign_uint8_t (packet .throttle_position , throttle_position , 6 );
305+ mav_array_assign_uint8_t (packet .transmission_state , transmission_state , 6 );
306306 _mav_finalize_message_chan_send (chan , MAVLINK_MSG_ID_BOAT_ENGINE_STATUS , (const char * )& packet , MAVLINK_MSG_ID_BOAT_ENGINE_STATUS_MIN_LEN , MAVLINK_MSG_ID_BOAT_ENGINE_STATUS_LEN , MAVLINK_MSG_ID_BOAT_ENGINE_STATUS_CRC );
307307#endif
308308}
@@ -323,7 +323,7 @@ static inline void mavlink_msg_boat_engine_status_send_struct(mavlink_channel_t
323323
324324#if MAVLINK_MSG_ID_BOAT_ENGINE_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
325325/*
326- This variant of _send() can be used to save stack space by re-using
326+ This variant of _send() can be used to save stack space by reusing
327327 memory from the receive buffer. The caller provides a
328328 mavlink_message_t which is the size of a full mavlink message. This
329329 is usually the receive buffer for the channel, and allows a reply to an
@@ -347,13 +347,13 @@ static inline void mavlink_msg_boat_engine_status_send_buf(mavlink_message_t *ms
347347 mavlink_boat_engine_status_t * packet = (mavlink_boat_engine_status_t * )msgbuf ;
348348 packet -> time_usec = time_usec ;
349349 packet -> fuel_consumption_rate = fuel_consumption_rate ;
350- mav_array_memcpy (packet -> oil_pressure , oil_pressure , sizeof ( float ) * 6 );
351- mav_array_memcpy (packet -> engine_coolant_temperature , engine_coolant_temperature , sizeof ( float ) * 6 );
352- mav_array_memcpy (packet -> engine_rpm , engine_rpm , sizeof ( uint16_t ) * 6 );
353- mav_array_memcpy (packet -> engine_state , engine_state , sizeof ( uint8_t ) * 6 );
354- mav_array_memcpy (packet -> engine_load , engine_load , sizeof ( uint8_t ) * 6 );
355- mav_array_memcpy (packet -> throttle_position , throttle_position , sizeof ( uint8_t ) * 6 );
356- mav_array_memcpy (packet -> transmission_state , transmission_state , sizeof ( uint8_t ) * 6 );
350+ mav_array_assign_float (packet -> oil_pressure , oil_pressure , 6 );
351+ mav_array_assign_float (packet -> engine_coolant_temperature , engine_coolant_temperature , 6 );
352+ mav_array_assign_uint16_t (packet -> engine_rpm , engine_rpm , 6 );
353+ mav_array_assign_uint8_t (packet -> engine_state , engine_state , 6 );
354+ mav_array_assign_uint8_t (packet -> engine_load , engine_load , 6 );
355+ mav_array_assign_uint8_t (packet -> throttle_position , throttle_position , 6 );
356+ mav_array_assign_uint8_t (packet -> transmission_state , transmission_state , 6 );
357357 _mav_finalize_message_chan_send (chan , MAVLINK_MSG_ID_BOAT_ENGINE_STATUS , (const char * )packet , MAVLINK_MSG_ID_BOAT_ENGINE_STATUS_MIN_LEN , MAVLINK_MSG_ID_BOAT_ENGINE_STATUS_LEN , MAVLINK_MSG_ID_BOAT_ENGINE_STATUS_CRC );
358358#endif
359359}
0 commit comments