MAVLink app: Fix usage of static struct, make streams list const

This commit is contained in:
Lorenz Meier
2015-04-25 08:02:31 +02:00
parent 6c9e5d1ecf
commit 1d283bf3c1
3 changed files with 3 additions and 3 deletions

View File

@@ -822,7 +822,7 @@ MavlinkReceiver::handle_message_set_attitude_target(mavlink_message_t *msg)
/* Publish attitude setpoint if attitude and thrust ignore bits are not set */
if (!(_offboard_control_mode.ignore_attitude)) {
static struct vehicle_attitude_setpoint_s att_sp = {};
struct vehicle_attitude_setpoint_s att_sp = {};
att_sp.timestamp = hrt_absolute_time();
mavlink_quaternion_to_euler(set_attitude_target.q,
&att_sp.roll_body, &att_sp.pitch_body, &att_sp.yaw_body);