2016-08-25 04:48:27 -03:00
|
|
|
#include "GCS_Plane.h"
|
|
|
|
#include "Plane.h"
|
|
|
|
|
2017-02-13 06:58:12 -04:00
|
|
|
bool GCS_Plane::cli_enabled() const
|
2016-08-25 04:48:27 -03:00
|
|
|
{
|
2017-02-13 06:58:12 -04:00
|
|
|
#if CLI_ENABLED == ENABLED
|
|
|
|
return plane.g.cli_enabled;
|
|
|
|
#else
|
|
|
|
return false;
|
|
|
|
#endif
|
2016-08-25 04:48:27 -03:00
|
|
|
}
|
|
|
|
|
2017-02-13 06:58:12 -04:00
|
|
|
AP_HAL::BetterStream* GCS_Plane::cliSerial() {
|
|
|
|
return plane.cliSerial;
|
2016-08-25 04:48:27 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
void GCS_Plane::send_airspeed_calibration(const Vector3f &vg)
|
|
|
|
{
|
2017-02-13 06:58:12 -04:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|