Browse Source

AP_NavEKF3: delete \n from the log using gcs().send_text

mission-4.1.18
Tatsuya Yamaguchi 7 years ago committed by Randy Mackay
parent
commit
aef9fa4a63
  1. 2
      libraries/AP_NavEKF3/AP_NavEKF3_Control.cpp
  2. 6
      libraries/AP_NavEKF3/AP_NavEKF3_MagFusion.cpp

2
libraries/AP_NavEKF3/AP_NavEKF3_Control.cpp

@ -391,7 +391,7 @@ void NavEKF3_core::checkAttitudeAlignmentStatus()
Vector3f angleErrVarVec = calcRotVecVariances(); Vector3f angleErrVarVec = calcRotVecVariances();
if ((angleErrVarVec.x + angleErrVarVec.y) < sq(0.05235f)) { if ((angleErrVarVec.x + angleErrVarVec.y) < sq(0.05235f)) {
tiltAlignComplete = true; tiltAlignComplete = true;
gcs().send_text(MAV_SEVERITY_INFO, "EKF3 IMU%u tilt alignment complete\n",(unsigned)imu_index); gcs().send_text(MAV_SEVERITY_INFO, "EKF3 IMU%u tilt alignment complete",(unsigned)imu_index);
} }
} }

6
libraries/AP_NavEKF3/AP_NavEKF3_MagFusion.cpp

@ -119,14 +119,14 @@ void NavEKF3_core::controlMagYawReset()
// send initial alignment status to console // send initial alignment status to console
if (!yawAlignComplete) { if (!yawAlignComplete) {
gcs().send_text(MAV_SEVERITY_INFO, "EKF3 IMU%u initial yaw alignment complete\n",(unsigned)imu_index); gcs().send_text(MAV_SEVERITY_INFO, "EKF3 IMU%u initial yaw alignment complete",(unsigned)imu_index);
} }
// send in-flight yaw alignment status to console // send in-flight yaw alignment status to console
if (finalResetRequest) { if (finalResetRequest) {
gcs().send_text(MAV_SEVERITY_INFO, "EKF3 IMU%u in-flight yaw alignment complete\n",(unsigned)imu_index); gcs().send_text(MAV_SEVERITY_INFO, "EKF3 IMU%u in-flight yaw alignment complete",(unsigned)imu_index);
} else if (interimResetRequest) { } else if (interimResetRequest) {
gcs().send_text(MAV_SEVERITY_WARNING, "EKF3 IMU%u ground mag anomaly, yaw re-aligned\n",(unsigned)imu_index); gcs().send_text(MAV_SEVERITY_WARNING, "EKF3 IMU%u ground mag anomaly, yaw re-aligned",(unsigned)imu_index);
} }
// update the yaw reset completed status // update the yaw reset completed status

Loading…
Cancel
Save