mirror of https://github.com/ArduPilot/ardupilot
25 lines
622 B
C++
25 lines
622 B
C++
|
#include "GCS_Dummy.h"
|
||
|
#include <stdio.h>
|
||
|
|
||
|
#define FORCE_VERSION_H_INCLUDE
|
||
|
#include <AP_Common/AP_FWVersionDefine.h>
|
||
|
#undef FORCE_VERSION_H_INCLUDE
|
||
|
|
||
|
const struct GCS_MAVLINK::stream_entries GCS_MAVLINK::all_stream_entries[] {};
|
||
|
|
||
|
/*
|
||
|
send_text implementation for dummy GCS
|
||
|
*/
|
||
|
void GCS_Dummy::send_textv(MAV_SEVERITY severity, const char *fmt, va_list arg_list, uint8_t dest_bitmask)
|
||
|
{
|
||
|
#if !APM_BUILD_TYPE(APM_BUILD_Replay)
|
||
|
hal.console->printf("TOGCS: ");
|
||
|
hal.console->vprintf(fmt, arg_list);
|
||
|
hal.console->printf("\n");
|
||
|
#else
|
||
|
::printf("TOGCS: ");
|
||
|
::vprintf(fmt, arg_list);
|
||
|
::printf("\n");
|
||
|
#endif
|
||
|
}
|