Fix RIP bugs, add in UART

This commit is contained in:
Johnathon Slightham
2026-03-31 14:26:37 -04:00
committed by Johnathon Slightham
parent d4602012f1
commit 548e8db484
26 changed files with 704 additions and 434 deletions

View File

@@ -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;