diff options
author | Simon Wilks <sjwilks@gmail.com> | 2015-04-26 23:31:25 +0200 |
---|---|---|
committer | Simon Wilks <sjwilks@gmail.com> | 2015-04-27 13:30:37 +0200 |
commit | 868b9b33ed6d7f521d20d28429cd8c7d57311409 (patch) | |
tree | 80af7f34e25ba7d353f755999086b7f682a69cc2 /src/modules | |
parent | 1420a0c74c6d4acf1d2593e41d3bd6ad984c9985 (diff) | |
download | px4-firmware-868b9b33ed6d7f521d20d28429cd8c7d57311409.tar.gz px4-firmware-868b9b33ed6d7f521d20d28429cd8c7d57311409.tar.bz2 px4-firmware-868b9b33ed6d7f521d20d28429cd8c7d57311409.zip |
Make sure we log the airspeed check to the console as well.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/commander/PreflightCheck.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/commander/PreflightCheck.cpp b/src/modules/commander/PreflightCheck.cpp index b0a587762..4d9bd8ae0 100644 --- a/src/modules/commander/PreflightCheck.cpp +++ b/src/modules/commander/PreflightCheck.cpp @@ -254,13 +254,13 @@ static bool airspeedCheck(int mavlink_fd, bool optional) if ((ret = orb_copy(ORB_ID(airspeed), fd, &airspeed)) || (hrt_elapsed_time(&airspeed.timestamp) > (500 * 1000))) { - mavlink_log_critical(mavlink_fd, "PREFLIGHT FAIL: AIRSPEED SENSOR MISSING"); + mavlink_and_console_log_critical(mavlink_fd, "PREFLIGHT FAIL: AIRSPEED SENSOR MISSING"); success = false; goto out; } if (fabsf(airspeed.indicated_airspeed_m_s > 6.0f)) { - mavlink_log_critical(mavlink_fd, "AIRSPEED WARNING: WIND OR CALIBRATION ISSUE"); + mavlink_and_console_log_critical(mavlink_fd, "AIRSPEED WARNING: WIND OR CALIBRATION ISSUE"); // XXX do not make this fatal yet } |