mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 05:43:33 +08:00
mavlinkreceiver: set att target: remove memset
This commit is contained in:
@@ -694,7 +694,6 @@ MavlinkReceiver::handle_message_set_attitude_target(mavlink_message_t *msg)
|
|||||||
mavlink_msg_set_attitude_target_decode(msg, &set_attitude_target);
|
mavlink_msg_set_attitude_target_decode(msg, &set_attitude_target);
|
||||||
|
|
||||||
static struct offboard_control_mode_s offboard_control_mode = {};
|
static struct offboard_control_mode_s offboard_control_mode = {};
|
||||||
memset(&offboard_control_mode, 0, sizeof(offboard_control_mode));
|
|
||||||
|
|
||||||
/* Only accept messages which are intended for this system */
|
/* Only accept messages which are intended for this system */
|
||||||
if ((mavlink_system.sysid == set_attitude_target.target_system ||
|
if ((mavlink_system.sysid == set_attitude_target.target_system ||
|
||||||
|
|||||||
Reference in New Issue
Block a user