2023-09-02 02:21:36 -03:00
|
|
|
#include "GCS_config.h"
|
|
|
|
|
|
|
|
#if HAL_GCS_ENABLED
|
|
|
|
|
2020-11-08 23:51:13 -04:00
|
|
|
#include "GCS_Dummy.h"
|
2023-09-02 02:21:36 -03:00
|
|
|
|
2020-11-08 23:51:13 -04:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#define FORCE_VERSION_H_INCLUDE
|
|
|
|
#include <AP_Common/AP_FWVersionDefine.h>
|
2024-02-08 03:07:15 -04:00
|
|
|
#include <AP_CheckFirmware/AP_CheckFirmwareDefine.h>
|
2020-11-08 23:51:13 -04:00
|
|
|
#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)
|
2022-03-21 06:26:58 -03:00
|
|
|
DEV_PRINTF("TOGCS: ");
|
2020-11-08 23:51:13 -04:00
|
|
|
hal.console->vprintf(fmt, arg_list);
|
2022-03-21 06:26:58 -03:00
|
|
|
DEV_PRINTF("\n");
|
2020-11-08 23:51:13 -04:00
|
|
|
#else
|
|
|
|
::printf("TOGCS: ");
|
|
|
|
::vprintf(fmt, arg_list);
|
|
|
|
::printf("\n");
|
|
|
|
#endif
|
|
|
|
}
|
2023-09-02 02:21:36 -03:00
|
|
|
|
|
|
|
#endif // HAL_GCS_ENABLED
|