Skip to content

Commit

Permalink
send velocity setpoint to enable proper takeoff/land
Browse files Browse the repository at this point in the history
  • Loading branch information
mrivi authored and MaEtUgR committed May 29, 2019
1 parent b135503 commit 44b8b4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ bool FlightTaskAuto::_evaluateTriplets()
_triplet_next_wp,
_sub_triplet_setpoint->get().next.yaw,
_sub_triplet_setpoint->get().next.yawspeed_valid ? _sub_triplet_setpoint->get().next.yawspeed : NAN);
_obstacle_avoidance.updateAvoidanceDesiredSetpoints(_position_setpoint, _velocity_setpoint);
_obstacle_avoidance.checkAvoidanceProgress(_position, _triplet_prev_wp, _target_acceptance_radius, _closest_pt);
}

Expand Down
2 changes: 2 additions & 0 deletions src/lib/FlightTasks/tasks/AutoMapper/FlightTaskAutoMapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ bool FlightTaskAutoMapper::update()
_generateVelocitySetpoints();
}

_obstacle_avoidance.updateAvoidanceDesiredSetpoints(_position_setpoint, _velocity_setpoint);

_obstacle_avoidance.injectAvoidanceSetpoints(_position_setpoint, _velocity_setpoint, _yaw_setpoint,
_yawspeed_setpoint);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ bool FlightTaskAutoMapper2::update()
break;
}

_obstacle_avoidance.updateAvoidanceDesiredSetpoints(_position_setpoint, _velocity_setpoint);

_obstacle_avoidance.injectAvoidanceSetpoints(_position_setpoint, _velocity_setpoint, _yaw_setpoint,
_yawspeed_setpoint);

Expand Down

0 comments on commit 44b8b4f

Please sign in to comment.