mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 16:23:34 +08:00
vehicle_global_position: remove velocity fields (duplicates of local vx, vy, vz)
* attitude_estimator_q: get velocity from local position (if available)
This commit is contained in:
@@ -229,7 +229,7 @@ void FollowTarget::on_active()
|
||||
// 3 degrees of facing target
|
||||
|
||||
if (PX4_ISFINITE(_yaw_rate)) {
|
||||
if (fabsf(fabsf(_yaw_angle) - fabsf(_navigator->get_global_position()->yaw)) < math::radians(3.0F)) {
|
||||
if (fabsf(fabsf(_yaw_angle) - fabsf(_navigator->get_local_position()->yaw)) < math::radians(3.0F)) {
|
||||
_yaw_rate = NAN;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user