fix(precland): Improved log messages (#21289)

This commit is contained in:
akkawimo 2023-03-13 03:39:31 -04:00 committed by GitHub
parent 9be8f81d75
commit 3bae99267b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ void LandingTargetEstimator::update()
/* predict */ /* predict */
if (_estimator_initialized) { if (_estimator_initialized) {
if (hrt_absolute_time() - _last_update > landing_target_estimator_TIMEOUT_US) { if (hrt_absolute_time() - _last_update > landing_target_estimator_TIMEOUT_US) {
PX4_WARN("Timeout"); PX4_INFO("Lost sight of Marker");
_estimator_initialized = false; _estimator_initialized = false;
} else { } else {
@ -129,7 +129,7 @@ void LandingTargetEstimator::update()
if (!update_x || !update_y) { if (!update_x || !update_y) {
if (!_faulty) { if (!_faulty) {
_faulty = true; _faulty = true;
PX4_WARN("Landing target measurement rejected:%s%s", update_x ? "" : " x", update_y ? "" : " y"); PX4_INFO("Landing target measurement rejected:%s%s", update_x ? "" : " x", update_y ? "" : " y");
} }
} else { } else {
@ -264,7 +264,7 @@ void LandingTargetEstimator::_update_topics()
} }
if (!matrix::Vector3f(_uwbDistance.position).isAllFinite()) { if (!matrix::Vector3f(_uwbDistance.position).isAllFinite()) {
PX4_WARN("Position is corrupt!"); PX4_WARN("Marker position reading invalid!");
return; return;
} }