|
|
|
@ -268,7 +268,7 @@ static void mavlink_test_change_operator_control(uint8_t system_id, uint8_t comp
@@ -268,7 +268,7 @@ static void mavlink_test_change_operator_control(uint8_t system_id, uint8_t comp
|
|
|
|
|
packet1.control_request = packet_in.control_request; |
|
|
|
|
packet1.version = packet_in.version; |
|
|
|
|
|
|
|
|
|
memcpy(packet1.passkey, packet_in.passkey, sizeof(char)*25); |
|
|
|
|
mav_array_memcpy(packet1.passkey, packet_in.passkey, sizeof(char)*25); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memset(&packet2, 0, sizeof(packet2)); |
|
|
|
@ -358,7 +358,7 @@ static void mavlink_test_auth_key(uint8_t system_id, uint8_t component_id, mavli
@@ -358,7 +358,7 @@ static void mavlink_test_auth_key(uint8_t system_id, uint8_t component_id, mavli
|
|
|
|
|
mavlink_auth_key_t packet1, packet2; |
|
|
|
|
memset(&packet1, 0, sizeof(packet1)); |
|
|
|
|
|
|
|
|
|
memcpy(packet1.key, packet_in.key, sizeof(char)*32); |
|
|
|
|
mav_array_memcpy(packet1.key, packet_in.key, sizeof(char)*32); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memset(&packet2, 0, sizeof(packet2)); |
|
|
|
@ -589,7 +589,7 @@ static void mavlink_test_param_request_read(uint8_t system_id, uint8_t component
@@ -589,7 +589,7 @@ static void mavlink_test_param_request_read(uint8_t system_id, uint8_t component
|
|
|
|
|
packet1.target_component = packet_in.target_component; |
|
|
|
|
packet1.param_index = packet_in.param_index; |
|
|
|
|
|
|
|
|
|
memcpy(packet1.param_id, packet_in.param_id, sizeof(int8_t)*15); |
|
|
|
|
mav_array_memcpy(packet1.param_id, packet_in.param_id, sizeof(int8_t)*15); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memset(&packet2, 0, sizeof(packet2)); |
|
|
|
@ -683,7 +683,7 @@ static void mavlink_test_param_value(uint8_t system_id, uint8_t component_id, ma
@@ -683,7 +683,7 @@ static void mavlink_test_param_value(uint8_t system_id, uint8_t component_id, ma
|
|
|
|
|
packet1.param_count = packet_in.param_count; |
|
|
|
|
packet1.param_index = packet_in.param_index; |
|
|
|
|
|
|
|
|
|
memcpy(packet1.param_id, packet_in.param_id, sizeof(int8_t)*15); |
|
|
|
|
mav_array_memcpy(packet1.param_id, packet_in.param_id, sizeof(int8_t)*15); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memset(&packet2, 0, sizeof(packet2)); |
|
|
|
@ -732,7 +732,7 @@ static void mavlink_test_param_set(uint8_t system_id, uint8_t component_id, mavl
@@ -732,7 +732,7 @@ static void mavlink_test_param_set(uint8_t system_id, uint8_t component_id, mavl
|
|
|
|
|
packet1.target_component = packet_in.target_component; |
|
|
|
|
packet1.param_value = packet_in.param_value; |
|
|
|
|
|
|
|
|
|
memcpy(packet1.param_id, packet_in.param_id, sizeof(int8_t)*15); |
|
|
|
|
mav_array_memcpy(packet1.param_id, packet_in.param_id, sizeof(int8_t)*15); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memset(&packet2, 0, sizeof(packet2)); |
|
|
|
@ -901,11 +901,11 @@ static void mavlink_test_gps_status(uint8_t system_id, uint8_t component_id, mav
@@ -901,11 +901,11 @@ static void mavlink_test_gps_status(uint8_t system_id, uint8_t component_id, mav
|
|
|
|
|
memset(&packet1, 0, sizeof(packet1)); |
|
|
|
|
packet1.satellites_visible = packet_in.satellites_visible; |
|
|
|
|
|
|
|
|
|
memcpy(packet1.satellite_prn, packet_in.satellite_prn, sizeof(int8_t)*20); |
|
|
|
|
memcpy(packet1.satellite_used, packet_in.satellite_used, sizeof(int8_t)*20); |
|
|
|
|
memcpy(packet1.satellite_elevation, packet_in.satellite_elevation, sizeof(int8_t)*20); |
|
|
|
|
memcpy(packet1.satellite_azimuth, packet_in.satellite_azimuth, sizeof(int8_t)*20); |
|
|
|
|
memcpy(packet1.satellite_snr, packet_in.satellite_snr, sizeof(int8_t)*20); |
|
|
|
|
mav_array_memcpy(packet1.satellite_prn, packet_in.satellite_prn, sizeof(int8_t)*20); |
|
|
|
|
mav_array_memcpy(packet1.satellite_used, packet_in.satellite_used, sizeof(int8_t)*20); |
|
|
|
|
mav_array_memcpy(packet1.satellite_elevation, packet_in.satellite_elevation, sizeof(int8_t)*20); |
|
|
|
|
mav_array_memcpy(packet1.satellite_azimuth, packet_in.satellite_azimuth, sizeof(int8_t)*20); |
|
|
|
|
mav_array_memcpy(packet1.satellite_snr, packet_in.satellite_snr, sizeof(int8_t)*20); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memset(&packet2, 0, sizeof(packet2)); |
|
|
|
@ -3357,7 +3357,7 @@ static void mavlink_test_object_detection_event(uint8_t system_id, uint8_t compo
@@ -3357,7 +3357,7 @@ static void mavlink_test_object_detection_event(uint8_t system_id, uint8_t compo
|
|
|
|
|
packet1.bearing = packet_in.bearing; |
|
|
|
|
packet1.distance = packet_in.distance; |
|
|
|
|
|
|
|
|
|
memcpy(packet1.name, packet_in.name, sizeof(char)*20); |
|
|
|
|
mav_array_memcpy(packet1.name, packet_in.name, sizeof(char)*20); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memset(&packet2, 0, sizeof(packet2)); |
|
|
|
@ -3408,7 +3408,7 @@ static void mavlink_test_debug_vect(uint8_t system_id, uint8_t component_id, mav
@@ -3408,7 +3408,7 @@ static void mavlink_test_debug_vect(uint8_t system_id, uint8_t component_id, mav
|
|
|
|
|
packet1.y = packet_in.y; |
|
|
|
|
packet1.z = packet_in.z; |
|
|
|
|
|
|
|
|
|
memcpy(packet1.name, packet_in.name, sizeof(char)*10); |
|
|
|
|
mav_array_memcpy(packet1.name, packet_in.name, sizeof(char)*10); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memset(&packet2, 0, sizeof(packet2)); |
|
|
|
@ -3453,7 +3453,7 @@ static void mavlink_test_named_value_float(uint8_t system_id, uint8_t component_
@@ -3453,7 +3453,7 @@ static void mavlink_test_named_value_float(uint8_t system_id, uint8_t component_
|
|
|
|
|
memset(&packet1, 0, sizeof(packet1)); |
|
|
|
|
packet1.value = packet_in.value; |
|
|
|
|
|
|
|
|
|
memcpy(packet1.name, packet_in.name, sizeof(char)*10); |
|
|
|
|
mav_array_memcpy(packet1.name, packet_in.name, sizeof(char)*10); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memset(&packet2, 0, sizeof(packet2)); |
|
|
|
@ -3498,7 +3498,7 @@ static void mavlink_test_named_value_int(uint8_t system_id, uint8_t component_id
@@ -3498,7 +3498,7 @@ static void mavlink_test_named_value_int(uint8_t system_id, uint8_t component_id
|
|
|
|
|
memset(&packet1, 0, sizeof(packet1)); |
|
|
|
|
packet1.value = packet_in.value; |
|
|
|
|
|
|
|
|
|
memcpy(packet1.name, packet_in.name, sizeof(char)*10); |
|
|
|
|
mav_array_memcpy(packet1.name, packet_in.name, sizeof(char)*10); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memset(&packet2, 0, sizeof(packet2)); |
|
|
|
@ -3543,7 +3543,7 @@ static void mavlink_test_statustext(uint8_t system_id, uint8_t component_id, mav
@@ -3543,7 +3543,7 @@ static void mavlink_test_statustext(uint8_t system_id, uint8_t component_id, mav
|
|
|
|
|
memset(&packet1, 0, sizeof(packet1)); |
|
|
|
|
packet1.severity = packet_in.severity; |
|
|
|
|
|
|
|
|
|
memcpy(packet1.text, packet_in.text, sizeof(int8_t)*50); |
|
|
|
|
mav_array_memcpy(packet1.text, packet_in.text, sizeof(int8_t)*50); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memset(&packet2, 0, sizeof(packet2)); |
|
|
|
|