precland: fix incorrect converting microseconds to seconds

This commit is contained in:
Oleg Kalachev
2018-03-27 19:18:14 +03:00
committed by Kabir Mohammed
parent 749a590c1c
commit 5b030535c8
+1 -1
View File
@@ -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;
}