AP_UAVCAN_Servers.h 685 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include <AP_HAL/AP_HAL.h>
  3. #include <AP_Filesystem/AP_Filesystem.h>
  4. #if HAVE_FILESYSTEM_SUPPORT
  5. #define HAS_UAVCAN_SERVERS
  6. #include <uavcan/uavcan.hpp>
  7. //Forward declaring classes
  8. class AP_UAVCAN_FileEventTracer;
  9. class AP_UAVCAN_FileStorageBackend;
  10. class AP_UAVCAN_CentralizedServer;
  11. class AP_UAVCAN_RestartRequestHandler;
  12. class AP_UAVCAN_Servers
  13. {
  14. public:
  15. bool init(uavcan::Node<0> &node);
  16. private:
  17. void reset();
  18. AP_UAVCAN_CentralizedServer *_server_instance;
  19. AP_UAVCAN_FileEventTracer *_tracer;
  20. AP_UAVCAN_FileStorageBackend *_storage_backend;
  21. AP_UAVCAN_RestartRequestHandler *_restart_request_handler; // one for all nodes....
  22. };
  23. #endif