Files
firmware/main/include/RemoteDebugging.h

28 lines
655 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 std::string get_coredump_summary();
static int custom_log_write(const char *data, va_list args);
static void register_calls(MessagingInterface &messaging_interface);
private:
};
#endif // REMOTEDEBUGGING_H