Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 304e00f

Browse files
Dennis Mannhartdagar
Dennis Mannhart
authored andcommitted
ALTITUDE_THRESHOLD lower to 0.3 meters
1 parent 511563d commit 304e00f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/mc_pos_control/mc_pos_control_main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ class MulticopterPositionControl : public ModuleBase<MulticopterPositionControl>
161161
static constexpr int NUM_FAILURE_TRIES = 10;
162162
/**< If Flighttask fails, keep 0.2 seconds the current setpoint before going into failsafe land */
163163
static constexpr uint64_t LOITER_TIME_BEFORE_DESCEND = 200000;
164-
164+
/**< During smooth-takeoff, below ALTITUDE_THRESHOLD the yaw-control is turned off ant tilt is limited */
165+
static constexpr float ALTITUDE_THRESHOLD = 0.3f;
165166

166167
/**
167168
* Hysteresis that turns true once vehicle is armed for MPC_IDLE_TKO seconds.

0 commit comments

Comments
 (0)