mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 09:37:21 +02:00
27 lines
608 B
C++
27 lines
608 B
C++
#ifndef REMOTEDEBUGGING_H
|
|
#define REMOTEDEBUGGING_H
|
|
|
|
#include <memory>
|
|
|
|
#include "MessagingInterface.h"
|
|
#include "control/ActuatorFactory.h"
|
|
#include "control/IActuator.h"
|
|
#include "util/ring_buffer.h"
|
|
|
|
#define LOG_BUFFER_SIZE 50
|
|
|
|
static auto log_buffer = std::make_unique<RingBuffer<std::string>>(LOG_BUFFER_SIZE);
|
|
|
|
|
|
class RemoteDebugging {
|
|
public:
|
|
static std::string get_task_manager();
|
|
static std::string get_logs();
|
|
static int custom_log_write(const char *data, va_list args);
|
|
static void register_calls(MessagingInterface &messaging_interface);
|
|
private:
|
|
|
|
};
|
|
|
|
#endif // REMOTEDEBUGGING_H
|