ardupilot/ArduPlane/GCS_Plane.cpp

14 lines
370 B
C++
Raw Normal View History

2016-08-25 04:48:27 -03:00
#include "GCS_Plane.h"
#include "Plane.h"
void GCS_Plane::send_airspeed_calibration(const Vector3f &vg)
{
for (uint8_t i=0; i<num_gcs(); i++) {
2016-08-25 04:48:27 -03:00
if (_chan[i].initialised) {
if (HAVE_PAYLOAD_SPACE((mavlink_channel_t)i, AIRSPEED_AUTOCAL)) {
plane.airspeed.log_mavlink_send((mavlink_channel_t)i, vg);
}
}
}
}