Skip to content

Commit 079c5a1

Browse files
MaEtUgRjkflying
authored andcommitted
FlightTaskAuto: allow rc assist to stop descend
Before the autohority was only enough to slow down the descend but not stop to zero vertical velocity.
1 parent 91c0f19 commit 079c5a1

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/lib/flight_tasks/tasks/AutoMapper/FlightTaskAutoMapper.cpp

+1-8
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,7 @@ float FlightTaskAutoMapper::_getLandSpeed()
193193
// user input assisted land speed
194194
if (_param_mpc_land_rc_help.get()) {
195195
_sticks.evaluateSticks(_time_stamp_current);
196-
const float head_room = _constraints.speed_down - land_speed;
197-
198-
speed = land_speed + _sticks.getPositionExpo()(2) * head_room;
199-
200-
// Allow minimum assisted land speed to be half of parameter
201-
if (speed < land_speed * 0.5f) {
202-
speed = land_speed * 0.5f;
203-
}
196+
speed = land_speed + _sticks.getPositionExpo()(2) * land_speed;
204197
}
205198
}
206199

0 commit comments

Comments
 (0)