mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Fix RIP bugs, add in UART
This commit is contained in:
@@ -50,12 +50,15 @@ public:
|
||||
xTaskCreate(router_thread, "router", 4096, this, 3, &this->m_router_thread);
|
||||
xTaskCreate(link_layer_thread, "router_rmt", 4096, this, 3,
|
||||
&this->m_link_layer_thread);
|
||||
xTaskCreate(leader_election_thread, "router_election", 4096, this, 3,
|
||||
&this->m_leader_election_thread);
|
||||
}
|
||||
|
||||
~CommunicationRouter();
|
||||
|
||||
[[noreturn]] static void router_thread(void *args);
|
||||
[[noreturn]] static void link_layer_thread(void *args);
|
||||
[[noreturn]] static void leader_election_thread(void *args);
|
||||
int send_msg(uint8_t *buffer, size_t length) const;
|
||||
void update_leader();
|
||||
void route(std::unique_ptr<std::vector<uint8_t>>&& buffer) const;
|
||||
@@ -71,6 +74,7 @@ public:
|
||||
private:
|
||||
TaskHandle_t m_router_thread = nullptr;
|
||||
TaskHandle_t m_link_layer_thread = nullptr;
|
||||
TaskHandle_t m_leader_election_thread = nullptr;
|
||||
ConfigManager &m_config_manager;
|
||||
std::unique_ptr<IConnectionManager> m_pc_connection;
|
||||
std::unique_ptr<IRPCServer> m_lossless_server;
|
||||
|
||||
Reference in New Issue
Block a user