mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
Make commander error message more verbose
This commit is contained in:
@@ -647,7 +647,7 @@ int prearm_check(const struct vehicle_status_s *status, const int mavlink_fd)
|
|||||||
float accel_scale = sqrtf(acc.x * acc.x + acc.y * acc.y + acc.z * acc.z);
|
float accel_scale = sqrtf(acc.x * acc.x + acc.y * acc.y + acc.z * acc.z);
|
||||||
|
|
||||||
if (accel_scale < 9.75f || accel_scale > 9.85f) {
|
if (accel_scale < 9.75f || accel_scale > 9.85f) {
|
||||||
mavlink_log_info(mavlink_fd, "#audio: Accelerometer calibration recommended.");
|
mavlink_log_info(mavlink_fd, "#audio: Accel calib. recommended (%8.4f).", (double)accel_scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (accel_scale > 30.0f /* m/s^2 */) {
|
if (accel_scale > 30.0f /* m/s^2 */) {
|
||||||
|
|||||||
Reference in New Issue
Block a user