2018-09-28 12:32:02 -03:00
|
|
|
#pragma once
|
|
|
|
#include <AP_HAL/AP_HAL.h>
|
2019-08-01 02:14:00 -03:00
|
|
|
#include <AP_Filesystem/AP_Filesystem.h>
|
2018-09-28 12:32:02 -03:00
|
|
|
|
2019-08-01 02:14:00 -03:00
|
|
|
#if HAVE_FILESYSTEM_SUPPORT
|
2018-09-28 12:32:02 -03:00
|
|
|
|
|
|
|
#define HAS_UAVCAN_SERVERS
|
|
|
|
|
|
|
|
#include <uavcan/uavcan.hpp>
|
|
|
|
|
|
|
|
//Forward declaring classes
|
|
|
|
class AP_UAVCAN_FileEventTracer;
|
|
|
|
class AP_UAVCAN_FileStorageBackend;
|
|
|
|
class AP_UAVCAN_CentralizedServer;
|
2019-02-06 01:13:30 -04:00
|
|
|
class AP_UAVCAN_RestartRequestHandler;
|
2018-09-28 12:32:02 -03:00
|
|
|
|
|
|
|
class AP_UAVCAN_Servers
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool init(uavcan::Node<0> &node);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void reset();
|
|
|
|
|
|
|
|
AP_UAVCAN_CentralizedServer *_server_instance;
|
|
|
|
AP_UAVCAN_FileEventTracer *_tracer;
|
|
|
|
AP_UAVCAN_FileStorageBackend *_storage_backend;
|
2019-02-06 01:13:30 -04:00
|
|
|
AP_UAVCAN_RestartRequestHandler *_restart_request_handler; // one for all nodes....
|
|
|
|
|
2018-09-28 12:32:02 -03:00
|
|
|
};
|
|
|
|
|
2019-01-16 20:05:56 -04:00
|
|
|
#endif
|