mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 21:33:34 +08:00
Replacing SETPOINT_TYPE_VELOCITY use with velocity and position valid
booleans in setpoint struct
This commit is contained in:
committed by
Lorenz Meier
parent
9993b24bf9
commit
6ff1b2d896
@@ -374,10 +374,7 @@ MissionBlock::mission_item_to_position_setpoint(const struct mission_item_s *ite
|
||||
if(_navigator->get_vstatus()->is_vtol && _param_vtol_wv_loiter.get()){
|
||||
sp->disable_mc_yaw_control = true;
|
||||
}
|
||||
break;// get rid of this
|
||||
case NAV_CMD_FOLLOW_TARGET:
|
||||
sp->type = position_setpoint_s::SETPOINT_TYPE_VELOCITY;
|
||||
break;
|
||||
break;
|
||||
|
||||
default:
|
||||
sp->type = position_setpoint_s::SETPOINT_TYPE_POSITION;
|
||||
|
||||
Reference in New Issue
Block a user