AP_Windvane: correct compilation for header changes

This commit is contained in:
Peter Barker 2022-09-22 07:21:36 +10:00 committed by Andrew Tridgell
parent 3d099b0d2f
commit a638060ce5
1 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@
#include "AP_WindVane_SITL.h"
#include "AP_WindVane_NMEA.h"
#include <GCS_MAVLink/GCS.h>
#include <AP_AHRS/AP_AHRS.h>
#include <AP_HAL/AP_HAL.h>
#include <AP_Logger/AP_Logger.h>
@ -274,11 +275,11 @@ void AP_WindVane::update()
} else if (_calibration == 2 && have_speed) {
_speed_driver->calibrate();
} else if (_calibration != 0) {
gcs().send_text(MAV_SEVERITY_INFO, "WindVane: driver not found");
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "WindVane: driver not found");
_calibration.set_and_save(0);
}
} else if (_calibration != 0) {
gcs().send_text(MAV_SEVERITY_INFO, "WindVane: disarm for cal");
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "WindVane: disarm for cal");
_calibration.set_and_save(0);
}