mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-31 04:58:30 -04:00
Tools: Replay: Use GCS_Dummy GCS singleton
This commit is contained in:
parent
3e0ed6deae
commit
6a7ed2646c
@ -14,7 +14,7 @@
|
||||
*/
|
||||
|
||||
#include <AP_Param/AP_Param.h>
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
#include <GCS_MAVLink/GCS_Dummy.h>
|
||||
#include "Parameters.h"
|
||||
#include "VehicleType.h"
|
||||
#include "MsgHandler.h"
|
||||
@ -928,12 +928,9 @@ bool Replay::check_user_param(const char *name)
|
||||
return false;
|
||||
}
|
||||
|
||||
class GCS_Replay : public GCS
|
||||
{
|
||||
void send_statustext(MAV_SEVERITY severity, uint8_t dest_bitmask, const char *text) override {
|
||||
::fprintf(stderr, "GCS: %s\n", text);
|
||||
}
|
||||
const struct AP_Param::GroupInfo GCS_MAVLINK::var_info[] = {
|
||||
AP_GROUPEND
|
||||
};
|
||||
GCS_Replay _gcs;
|
||||
GCS_Dummy _gcs;
|
||||
|
||||
AP_HAL_MAIN_CALLBACKS(&replay);
|
||||
|
Loading…
Reference in New Issue
Block a user