Skip to content

Commit

Permalink
AP_AHRS: Keep your message to 50 characters or less
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed May 7, 2023
1 parent 46c7456 commit 13742d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/AP_AHRS/AP_AHRS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2299,7 +2299,7 @@ bool AP_AHRS::attitudes_consistent(char *failure_msg, const uint8_t failure_msg_
// check roll and pitch difference
const float rp_diff_rad = primary_quat.roll_pitch_difference(ekf2_quat);
if (rp_diff_rad > ATTITUDE_CHECK_THRESH_ROLL_PITCH_RAD) {
hal.util->snprintf(failure_msg, failure_msg_len, "EKF2 Roll/Pitch inconsistent by %d deg", (int)degrees(rp_diff_rad));
hal.util->snprintf(failure_msg, failure_msg_len, "EKF2 Roll/Pitch inconsist %d deg", (int)degrees(rp_diff_rad));
return false;
}

Expand All @@ -2326,7 +2326,7 @@ bool AP_AHRS::attitudes_consistent(char *failure_msg, const uint8_t failure_msg_
// check roll and pitch difference
const float rp_diff_rad = primary_quat.roll_pitch_difference(ekf3_quat);
if (rp_diff_rad > ATTITUDE_CHECK_THRESH_ROLL_PITCH_RAD) {
hal.util->snprintf(failure_msg, failure_msg_len, "EKF3 Roll/Pitch inconsistent by %d deg", (int)degrees(rp_diff_rad));
hal.util->snprintf(failure_msg, failure_msg_len, "EKF3 Roll/Pitch inconsist %d deg", (int)degrees(rp_diff_rad));
return false;
}

Expand All @@ -2351,7 +2351,7 @@ bool AP_AHRS::attitudes_consistent(char *failure_msg, const uint8_t failure_msg_
// check roll and pitch difference
const float rp_diff_rad = primary_quat.roll_pitch_difference(dcm_quat);
if (rp_diff_rad > ATTITUDE_CHECK_THRESH_ROLL_PITCH_RAD) {
hal.util->snprintf(failure_msg, failure_msg_len, "DCM Roll/Pitch inconsistent by %d deg", (int)degrees(rp_diff_rad));
hal.util->snprintf(failure_msg, failure_msg_len, "DCM Roll/Pitch inconsist %d deg", (int)degrees(rp_diff_rad));
return false;
}

Expand Down

0 comments on commit 13742d2

Please sign in to comment.