mirror of
https://github.com/okalachev/flix.git
synced 2026-01-11 05:26:53 +00:00
Fix actuator_output mavlink message generation
This commit is contained in:
@@ -42,7 +42,7 @@ void sendMavlink() {
|
|||||||
sendMessage(&msg);
|
sendMessage(&msg);
|
||||||
|
|
||||||
float actuator[32];
|
float actuator[32];
|
||||||
memcpy(motors, actuator, 4 * sizeof(float));
|
memcpy(actuator, motors, sizeof(motors));
|
||||||
mavlink_msg_actuator_output_status_pack(SYSTEM_ID, MAV_COMP_ID_AUTOPILOT1, &msg, time, 4, actuator);
|
mavlink_msg_actuator_output_status_pack(SYSTEM_ID, MAV_COMP_ID_AUTOPILOT1, &msg, time, 4, actuator);
|
||||||
sendMessage(&msg);
|
sendMessage(&msg);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user