10 char text[MAVLINK_MSG_STATUSTEXT_FIELD_TEXT_LEN+1] {};
12 va_start(arg_list, fmt);
13 hal.
util->
vsnprintf((
char *)text,
sizeof(text)-1, fmt, arg_list);
15 text[MAVLINK_MSG_STATUSTEXT_FIELD_TEXT_LEN] = 0;
19 #define FOR_EACH_ACTIVE_CHANNEL(methodcall) \ 21 for (uint8_t i=0; i<num_gcs(); i++) { \ 22 if (!chan(i).initialised) { \ 25 if (!(GCS_MAVLINK::active_channel_mask() & (1 << (chan(i).get_chan()-MAVLINK_COMM_0)))) { \ 67 #undef FOR_EACH_ACTIVE_CHANNEL virtual uint8_t num_gcs() const =0
Interface definition for the various Ground Control System.
#define FOR_EACH_ACTIVE_CHANNEL(methodcall)
struct GCS_MAVLINK::@196 alternative
static uint8_t active_channel_mask(void)
int vsnprintf(char *str, size_t size, const char *format, va_list ap)
virtual GCS_MAVLINK & chan(const uint8_t ofs)=0
virtual void send_statustext(MAV_SEVERITY severity, uint8_t dest_bitmask, const char *text)
void send_named_float(const char *name, float value) const
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
void send_text(MAV_SEVERITY severity, const char *fmt,...)
void send_ekf_origin() const
static uint8_t streaming_channel_mask(void)
GCS_MAVLINK::protocol_handler_fn_t handler
bool install_alternative_protocol(mavlink_channel_t chan, GCS_MAVLINK::protocol_handler_fn_t handler)