mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 06:43:34 +08:00
Takeoff: address @RomanBapst's review comments
This commit is contained in:
committed by
Lorenz Meier
parent
1c776f16ec
commit
ea48cd4970
@@ -152,7 +152,7 @@ bool FlightTask::_checkTakeoff()
|
||||
bool position_triggered_takeoff = false;
|
||||
|
||||
if (PX4_ISFINITE(_position_setpoint(2))) {
|
||||
//minimal altitude either 20cm or what is necessary for correct estimation e.g. optical flow
|
||||
// minimal altitude either 20cm or what is necessary for correct estimation e.g. optical flow
|
||||
float min_altitude = 0.2f;
|
||||
const float min_distance_to_ground = _sub_vehicle_local_position->get().hagl_min;
|
||||
|
||||
|
||||
@@ -347,7 +347,7 @@ void FlightTaskManualAltitude::_updateSetpoints()
|
||||
|
||||
bool FlightTaskManualAltitude::_checkTakeoff()
|
||||
{
|
||||
// stick is deflected above the middle 15% of the range
|
||||
// stick is deflected above 65% throttle (_sticks(2) is in the range [-1,1])
|
||||
return _sticks(2) < -0.3f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user