mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 09:37:21 +02:00
Cleanup includes
This actually gained us 10% more flash space
This commit is contained in:
@@ -3,12 +3,10 @@
|
||||
//
|
||||
|
||||
#include "MessagingInterface.h"
|
||||
|
||||
#include <AngleControlMessageBuilder.h>
|
||||
#include <ConfigManager.h>
|
||||
#include <freertos/queue.h>
|
||||
#include <freertos/semphr.h>
|
||||
|
||||
#include "AngleControlMessageBuilder.h"
|
||||
#include "ConfigManager.h"
|
||||
#include "freertos/queue.h"
|
||||
#include "freertos/semphr.h"
|
||||
#include "MPIMessageBuilder.h"
|
||||
|
||||
MessagingInterface::~MessagingInterface() {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <esp_log.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
#include "esp_log.h"
|
||||
#include "sys/param.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
#include "esp_event.h"
|
||||
|
||||
@@ -5,22 +5,18 @@
|
||||
#ifndef COMMUNICATIONROUTER_H
|
||||
#define COMMUNICATIONROUTER_H
|
||||
|
||||
#include <ConfigManager.h>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <chrono>
|
||||
#include <OrientationDetection.h>
|
||||
#include <WifiManager.h>
|
||||
|
||||
#include "ConfigManager.h"
|
||||
#include "OrientationDetection.h"
|
||||
#include "WifiManager.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
|
||||
#include "TCPServer.h"
|
||||
#include "DataLinkManager.h"
|
||||
#include "constants/tcp.h"
|
||||
#include "constants/module.h"
|
||||
|
||||
#include "flatbuffers_generated/TopologyMessage_generated.h"
|
||||
|
||||
#include "PtrQueue.h"
|
||||
|
||||
class CommunicationRouter {
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
#include <constants/app_comms.h>
|
||||
|
||||
#include "constants/app_comms.h"
|
||||
#include "CommunicationRouter.h"
|
||||
|
||||
class MessagingInterface {
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
|
||||
#ifndef ORIENTATIONDETECTION_H
|
||||
#define ORIENTATIONDETECTION_H
|
||||
#include <flatbuffers_generated/RobotModule_generated.h>
|
||||
|
||||
#include "flatbuffers_generated/RobotModule_generated.h"
|
||||
#include "driver/gpio.h"
|
||||
|
||||
class OrientationDetection {
|
||||
|
||||
@@ -10,16 +10,14 @@
|
||||
#include <unordered_set>
|
||||
|
||||
#include "freertos/FreeRTOS.h"
|
||||
|
||||
#include "IRPCServer.h"
|
||||
|
||||
#include "PtrQueue.h"
|
||||
|
||||
class TCPServer : IRPCServer {
|
||||
class TCPServer final : IRPCServer {
|
||||
public:
|
||||
TCPServer(int port, const std::shared_ptr<PtrQueue<std::vector<uint8_t>>>& rx_queue);
|
||||
~TCPServer();
|
||||
int send_msg(char* buffer, uint32_t length) const;
|
||||
~TCPServer() override;
|
||||
int send_msg(char* buffer, uint32_t length) const override;
|
||||
|
||||
private:
|
||||
bool authenticate_client(int client_sock);
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
#ifndef NETWORKMANAGER_H
|
||||
#define NETWORKMANAGER_H
|
||||
|
||||
#include <esp_netif_types.h>
|
||||
#include <esp_event.h>
|
||||
#include <esp_netif.h>
|
||||
#include <esp_wifi.h>
|
||||
#include <freertos/FreeRTOS.h>
|
||||
#include <freertos/semphr.h>
|
||||
|
||||
#include "esp_netif_types.h"
|
||||
#include "esp_event.h"
|
||||
#include "esp_netif.h"
|
||||
#include "esp_wifi.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/semphr.h"
|
||||
#include "ConfigManager.h"
|
||||
#include "IWifiManager.h"
|
||||
|
||||
|
||||
@@ -2,20 +2,16 @@
|
||||
// Created by Johnathon Slightham on 2025-05-25.
|
||||
//
|
||||
|
||||
#include "mdns.h"
|
||||
|
||||
#include "ConfigManager.h"
|
||||
|
||||
#include "mDNSDiscoveryService.h"
|
||||
|
||||
#include "constants/tcp.h"
|
||||
|
||||
#include <string>
|
||||
#include <format>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
// todo: clean this up (strange to be a constructor) also need to add more details, need to add to routing table
|
||||
#include "mdns.h"
|
||||
#include "ConfigManager.h"
|
||||
#include "mDNSDiscoveryService.h"
|
||||
#include "constants/tcp.h"
|
||||
|
||||
void mDNSDiscoveryService::setup() {
|
||||
mdns_init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user