Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mahimayoga committed Dec 19, 2024
1 parent 5e0a392 commit f8718e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/land_detector/FixedwingLandDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ bool FixedwingLandDetector::_get_landed_state()
if (!_vehicle_local_position.v_xy_valid) {
// set _velocity_xy_filtered to 0 if data is invalid
val = 0.0f;

} else {
// Horizontal velocity complimentary filter.
val = 0.97f * _velocity_xy_filtered + 0.03f * sqrtf(_vehicle_local_position.vx * _vehicle_local_position.vx +
_vehicle_local_position.vy * _vehicle_local_position.vy);
_vehicle_local_position.vy * _vehicle_local_position.vy);
}


Expand Down

0 comments on commit f8718e3

Please sign in to comment.