Skip to content

Commit 988ea05

Browse files
committed
Updated to latest rebased ship landing headers
1 parent 669b5a3 commit 988ea05

File tree

293 files changed

+3592
-1321
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

293 files changed

+3592
-1321
lines changed

auterion/auterion.h

Lines changed: 123 additions & 5 deletions
Large diffs are not rendered by default.

auterion/mavlink.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef MAVLINK_H
77
#define MAVLINK_H
88

9-
#define MAVLINK_PRIMARY_XML_HASH -5355200518231792310
9+
#define MAVLINK_PRIMARY_XML_HASH -5246141009207413442
1010

1111
#ifndef MAVLINK_STX
1212
#define MAVLINK_STX 253

auterion/mavlink_msg_beacon_position.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ static inline void mavlink_msg_beacon_position_send_struct(mavlink_channel_t cha
310310

311311
#if MAVLINK_MSG_ID_BEACON_POSITION_LEN <= MAVLINK_MAX_PAYLOAD_LEN
312312
/*
313-
This variant of _send() can be used to save stack space by re-using
313+
This variant of _send() can be used to save stack space by reusing
314314
memory from the receive buffer. The caller provides a
315315
mavlink_message_t which is the size of a full mavlink message. This
316316
is usually the receive buffer for the channel, and allows a reply to an

auterion/mavlink_msg_boat_actuator_status.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ static inline uint16_t mavlink_msg_boat_actuator_status_pack(uint8_t system_id,
7777
#else
7878
mavlink_boat_actuator_status_t packet;
7979
packet.time_usec = time_usec;
80-
mav_array_memcpy(packet.engine_leg_trim_position, engine_leg_trim_position, sizeof(float)*6);
81-
mav_array_memcpy(packet.rudder_position, rudder_position, sizeof(float)*6);
82-
mav_array_memcpy(packet.engine_leg_trim_state, engine_leg_trim_state, sizeof(uint8_t)*6);
83-
mav_array_memcpy(packet.rudder_state, rudder_state, sizeof(uint8_t)*6);
80+
mav_array_assign_float(packet.engine_leg_trim_position, engine_leg_trim_position, 6);
81+
mav_array_assign_float(packet.rudder_position, rudder_position, 6);
82+
mav_array_assign_uint8_t(packet.engine_leg_trim_state, engine_leg_trim_state, 6);
83+
mav_array_assign_uint8_t(packet.rudder_state, rudder_state, 6);
8484
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_BOAT_ACTUATOR_STATUS_LEN);
8585
#endif
8686

@@ -159,10 +159,10 @@ static inline uint16_t mavlink_msg_boat_actuator_status_pack_chan(uint8_t system
159159
#else
160160
mavlink_boat_actuator_status_t packet;
161161
packet.time_usec = time_usec;
162-
mav_array_memcpy(packet.engine_leg_trim_position, engine_leg_trim_position, sizeof(float)*6);
163-
mav_array_memcpy(packet.rudder_position, rudder_position, sizeof(float)*6);
164-
mav_array_memcpy(packet.engine_leg_trim_state, engine_leg_trim_state, sizeof(uint8_t)*6);
165-
mav_array_memcpy(packet.rudder_state, rudder_state, sizeof(uint8_t)*6);
162+
mav_array_assign_float(packet.engine_leg_trim_position, engine_leg_trim_position, 6);
163+
mav_array_assign_float(packet.rudder_position, rudder_position, 6);
164+
mav_array_assign_uint8_t(packet.engine_leg_trim_state, engine_leg_trim_state, 6);
165+
mav_array_assign_uint8_t(packet.rudder_state, rudder_state, 6);
166166
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_BOAT_ACTUATOR_STATUS_LEN);
167167
#endif
168168

@@ -236,10 +236,10 @@ static inline void mavlink_msg_boat_actuator_status_send(mavlink_channel_t chan,
236236
#else
237237
mavlink_boat_actuator_status_t packet;
238238
packet.time_usec = time_usec;
239-
mav_array_memcpy(packet.engine_leg_trim_position, engine_leg_trim_position, sizeof(float)*6);
240-
mav_array_memcpy(packet.rudder_position, rudder_position, sizeof(float)*6);
241-
mav_array_memcpy(packet.engine_leg_trim_state, engine_leg_trim_state, sizeof(uint8_t)*6);
242-
mav_array_memcpy(packet.rudder_state, rudder_state, sizeof(uint8_t)*6);
239+
mav_array_assign_float(packet.engine_leg_trim_position, engine_leg_trim_position, 6);
240+
mav_array_assign_float(packet.rudder_position, rudder_position, 6);
241+
mav_array_assign_uint8_t(packet.engine_leg_trim_state, engine_leg_trim_state, 6);
242+
mav_array_assign_uint8_t(packet.rudder_state, rudder_state, 6);
243243
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_BOAT_ACTUATOR_STATUS, (const char *)&packet, MAVLINK_MSG_ID_BOAT_ACTUATOR_STATUS_MIN_LEN, MAVLINK_MSG_ID_BOAT_ACTUATOR_STATUS_LEN, MAVLINK_MSG_ID_BOAT_ACTUATOR_STATUS_CRC);
244244
#endif
245245
}
@@ -260,7 +260,7 @@ static inline void mavlink_msg_boat_actuator_status_send_struct(mavlink_channel_
260260

261261
#if MAVLINK_MSG_ID_BOAT_ACTUATOR_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
262262
/*
263-
This variant of _send() can be used to save stack space by re-using
263+
This variant of _send() can be used to save stack space by reusing
264264
memory from the receive buffer. The caller provides a
265265
mavlink_message_t which is the size of a full mavlink message. This
266266
is usually the receive buffer for the channel, and allows a reply to an
@@ -279,10 +279,10 @@ static inline void mavlink_msg_boat_actuator_status_send_buf(mavlink_message_t *
279279
#else
280280
mavlink_boat_actuator_status_t *packet = (mavlink_boat_actuator_status_t *)msgbuf;
281281
packet->time_usec = time_usec;
282-
mav_array_memcpy(packet->engine_leg_trim_position, engine_leg_trim_position, sizeof(float)*6);
283-
mav_array_memcpy(packet->rudder_position, rudder_position, sizeof(float)*6);
284-
mav_array_memcpy(packet->engine_leg_trim_state, engine_leg_trim_state, sizeof(uint8_t)*6);
285-
mav_array_memcpy(packet->rudder_state, rudder_state, sizeof(uint8_t)*6);
282+
mav_array_assign_float(packet->engine_leg_trim_position, engine_leg_trim_position, 6);
283+
mav_array_assign_float(packet->rudder_position, rudder_position, 6);
284+
mav_array_assign_uint8_t(packet->engine_leg_trim_state, engine_leg_trim_state, 6);
285+
mav_array_assign_uint8_t(packet->rudder_state, rudder_state, 6);
286286
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_BOAT_ACTUATOR_STATUS, (const char *)packet, MAVLINK_MSG_ID_BOAT_ACTUATOR_STATUS_MIN_LEN, MAVLINK_MSG_ID_BOAT_ACTUATOR_STATUS_LEN, MAVLINK_MSG_ID_BOAT_ACTUATOR_STATUS_CRC);
287287
#endif
288288
}

auterion/mavlink_msg_boat_engine_status.h

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

auterion/mavlink_msg_control_status_report.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ static inline void mavlink_msg_control_status_report_send_struct(mavlink_channel
220220

221221
#if MAVLINK_MSG_ID_CONTROL_STATUS_REPORT_LEN <= MAVLINK_MAX_PAYLOAD_LEN
222222
/*
223-
This variant of _send() can be used to save stack space by re-using
223+
This variant of _send() can be used to save stack space by reusing
224224
memory from the receive buffer. The caller provides a
225225
mavlink_message_t which is the size of a full mavlink message. This
226226
is usually the receive buffer for the channel, and allows a reply to an

auterion/mavlink_msg_fluid_level.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static inline void mavlink_msg_fluid_level_send_struct(mavlink_channel_t chan, c
265265

266266
#if MAVLINK_MSG_ID_FLUID_LEVEL_LEN <= MAVLINK_MAX_PAYLOAD_LEN
267267
/*
268-
This variant of _send() can be used to save stack space by re-using
268+
This variant of _send() can be used to save stack space by reusing
269269
memory from the receive buffer. The caller provides a
270270
mavlink_message_t which is the size of a full mavlink message. This
271271
is usually the receive buffer for the channel, and allows a reply to an

auterion/mavlink_msg_handoff_respond.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ static inline void mavlink_msg_handoff_respond_send_struct(mavlink_channel_t cha
220220

221221
#if MAVLINK_MSG_ID_HANDOFF_RESPOND_LEN <= MAVLINK_MAX_PAYLOAD_LEN
222222
/*
223-
This variant of _send() can be used to save stack space by re-using
223+
This variant of _send() can be used to save stack space by reusing
224224
memory from the receive buffer. The caller provides a
225225
mavlink_message_t which is the size of a full mavlink message. This
226226
is usually the receive buffer for the channel, and allows a reply to an

auterion/mavlink_msg_joystick_state.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ static inline uint16_t mavlink_msg_joystick_state_pack(uint8_t system_id, uint8_
7171
mavlink_joystick_state_t packet;
7272
packet.time_usec = time_usec;
7373
packet.type = type;
74-
mav_array_memcpy(packet.axis_value, axis_value, sizeof(uint16_t)*10);
75-
mav_array_memcpy(packet.button_value, button_value, sizeof(uint8_t)*20);
74+
mav_array_assign_uint16_t(packet.axis_value, axis_value, 10);
75+
mav_array_assign_uint8_t(packet.button_value, button_value, 20);
7676
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_JOYSTICK_STATE_LEN);
7777
#endif
7878

@@ -147,8 +147,8 @@ static inline uint16_t mavlink_msg_joystick_state_pack_chan(uint8_t system_id, u
147147
mavlink_joystick_state_t packet;
148148
packet.time_usec = time_usec;
149149
packet.type = type;
150-
mav_array_memcpy(packet.axis_value, axis_value, sizeof(uint16_t)*10);
151-
mav_array_memcpy(packet.button_value, button_value, sizeof(uint8_t)*20);
150+
mav_array_assign_uint16_t(packet.axis_value, axis_value, 10);
151+
mav_array_assign_uint8_t(packet.button_value, button_value, 20);
152152
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_JOYSTICK_STATE_LEN);
153153
#endif
154154

@@ -221,8 +221,8 @@ static inline void mavlink_msg_joystick_state_send(mavlink_channel_t chan, uint6
221221
mavlink_joystick_state_t packet;
222222
packet.time_usec = time_usec;
223223
packet.type = type;
224-
mav_array_memcpy(packet.axis_value, axis_value, sizeof(uint16_t)*10);
225-
mav_array_memcpy(packet.button_value, button_value, sizeof(uint8_t)*20);
224+
mav_array_assign_uint16_t(packet.axis_value, axis_value, 10);
225+
mav_array_assign_uint8_t(packet.button_value, button_value, 20);
226226
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_JOYSTICK_STATE, (const char *)&packet, MAVLINK_MSG_ID_JOYSTICK_STATE_MIN_LEN, MAVLINK_MSG_ID_JOYSTICK_STATE_LEN, MAVLINK_MSG_ID_JOYSTICK_STATE_CRC);
227227
#endif
228228
}
@@ -243,7 +243,7 @@ static inline void mavlink_msg_joystick_state_send_struct(mavlink_channel_t chan
243243

244244
#if MAVLINK_MSG_ID_JOYSTICK_STATE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
245245
/*
246-
This variant of _send() can be used to save stack space by re-using
246+
This variant of _send() can be used to save stack space by reusing
247247
memory from the receive buffer. The caller provides a
248248
mavlink_message_t which is the size of a full mavlink message. This
249249
is usually the receive buffer for the channel, and allows a reply to an
@@ -262,8 +262,8 @@ static inline void mavlink_msg_joystick_state_send_buf(mavlink_message_t *msgbuf
262262
mavlink_joystick_state_t *packet = (mavlink_joystick_state_t *)msgbuf;
263263
packet->time_usec = time_usec;
264264
packet->type = type;
265-
mav_array_memcpy(packet->axis_value, axis_value, sizeof(uint16_t)*10);
266-
mav_array_memcpy(packet->button_value, button_value, sizeof(uint8_t)*20);
265+
mav_array_assign_uint16_t(packet->axis_value, axis_value, 10);
266+
mav_array_assign_uint8_t(packet->button_value, button_value, 20);
267267
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_JOYSTICK_STATE, (const char *)packet, MAVLINK_MSG_ID_JOYSTICK_STATE_MIN_LEN, MAVLINK_MSG_ID_JOYSTICK_STATE_LEN, MAVLINK_MSG_ID_JOYSTICK_STATE_CRC);
268268
#endif
269269
}

auterion/mavlink_msg_motor_info.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static inline void mavlink_msg_motor_info_send_struct(mavlink_channel_t chan, co
250250

251251
#if MAVLINK_MSG_ID_MOTOR_INFO_LEN <= MAVLINK_MAX_PAYLOAD_LEN
252252
/*
253-
This variant of _send() can be used to save stack space by re-using
253+
This variant of _send() can be used to save stack space by reusing
254254
memory from the receive buffer. The caller provides a
255255
mavlink_message_t which is the size of a full mavlink message. This
256256
is usually the receive buffer for the channel, and allows a reply to an

0 commit comments

Comments
 (0)