Browse Source

AP_Follow: zreo velocities if not provided

apm_2208
Randy Mackay 3 years ago
parent
commit
e6f488ccc1
  1. 2
      libraries/AP_Follow/AP_Follow.cpp

2
libraries/AP_Follow/AP_Follow.cpp

@ -349,6 +349,8 @@ void AP_Follow::handle_msg(const mavlink_message_t &msg) @@ -349,6 +349,8 @@ void AP_Follow::handle_msg(const mavlink_message_t &msg)
_target_velocity_ned.x = packet.vel[0]; // velocity north
_target_velocity_ned.y = packet.vel[1]; // velocity east
_target_velocity_ned.z = packet.vel[2]; // velocity down
} else {
_target_velocity_ned.zero();
}
// get a local timestamp with correction for transport jitter

Loading…
Cancel
Save