mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 04:33:10 +08:00
precland: fix incorrect converting microseconds to seconds
This commit is contained in:
committed by
Kabir Mohammed
parent
749a590c1c
commit
5b030535c8
@@ -116,7 +116,7 @@ PrecLand::on_active()
|
||||
_target_pose_valid = true;
|
||||
}
|
||||
|
||||
if ((hrt_elapsed_time(&_target_pose.timestamp) / 1e-6f) > _param_timeout.get()) {
|
||||
if ((hrt_elapsed_time(&_target_pose.timestamp) / 1e6f) > _param_timeout.get()) {
|
||||
_target_pose_valid = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user