mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 14:11:36 +08:00
@@ -763,7 +763,7 @@ int position_estimator_inav_thread_main(int argc, char *argv[])
|
|||||||
float thrust = armed.armed ? actuator.control[3] : 0.0f;
|
float thrust = armed.armed ? actuator.control[3] : 0.0f;
|
||||||
|
|
||||||
if (landed) {
|
if (landed) {
|
||||||
if (alt_disp2 > land_disp2 && thrust > params.land_thr) {
|
if (alt_disp2 > land_disp2 || thrust > params.land_thr) {
|
||||||
landed = false;
|
landed = false;
|
||||||
landed_time = 0;
|
landed_time = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ PARAM_DEFINE_FLOAT(INAV_SONAR_FILT, 0.05f);
|
|||||||
PARAM_DEFINE_FLOAT(INAV_SONAR_ERR, 0.5f);
|
PARAM_DEFINE_FLOAT(INAV_SONAR_ERR, 0.5f);
|
||||||
PARAM_DEFINE_FLOAT(INAV_LAND_T, 3.0f);
|
PARAM_DEFINE_FLOAT(INAV_LAND_T, 3.0f);
|
||||||
PARAM_DEFINE_FLOAT(INAV_LAND_DISP, 0.7f);
|
PARAM_DEFINE_FLOAT(INAV_LAND_DISP, 0.7f);
|
||||||
PARAM_DEFINE_FLOAT(INAV_LAND_THR, 0.3f);
|
PARAM_DEFINE_FLOAT(INAV_LAND_THR, 0.2f);
|
||||||
|
|
||||||
int parameters_init(struct position_estimator_inav_param_handles *h)
|
int parameters_init(struct position_estimator_inav_param_handles *h)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user