Skip to content

Commit

Permalink
Remove rotational velocity threshold tightening
Browse files Browse the repository at this point in the history
  • Loading branch information
mahimayoga committed Jan 7, 2025
1 parent 1ea1051 commit fcd3295
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/modules/land_detector/FixedwingLandDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ bool FixedwingLandDetector::_get_landed_state()
const float vel_xy_max_threshold = airspeed_invalid ? 0.7f * _param_lndfw_vel_xy_max.get() :
_param_lndfw_vel_xy_max.get();

// make rotation threshold tighter if groundspeed is invalid
const float max_rotation_threshold = _vehicle_local_position.v_xy_valid ? math::radians(_param_lndfw_rot_max.get()) :
math::radians(_param_lndfw_rot_max.get()) * 0.5f;
const float max_rotation_threshold = math::radians(_param_lndfw_rot_max.get()) ;

// Crude land detector for fixedwing.
landDetected = _airspeed_filtered < _param_lndfw_airspd.get()
Expand Down
2 changes: 1 addition & 1 deletion src/modules/land_detector/land_detector_params_fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ PARAM_DEFINE_FLOAT(LNDFW_TRIG_TIME, 2.f);
* @decimal 1
* @group Land Detector
*/
PARAM_DEFINE_FLOAT(LNDFW_ROT_MAX, 0.06f);
PARAM_DEFINE_FLOAT(LNDFW_ROT_MAX, 0.5f);

0 comments on commit fcd3295

Please sign in to comment.