Initial integration with rmt (only wifi works rn)

This commit is contained in:
2025-07-12 22:45:57 -04:00
parent 6d2d646a0f
commit a6b8b57a3b
19 changed files with 412 additions and 56 deletions

View File

@@ -12,9 +12,4 @@
#define MODULE_ID_KEY "module_id"
#define MODULE_TYPE_KEY "module_type"
enum ModuleType { splitter }; // todo: maybe this should be flatbuffer
#endif //CONFIG_H

View File

@@ -0,0 +1,16 @@
//
// Created by Johnathon Slightham on 2025-07-12.
//
#ifndef MODULE_H
#define MODULE_H
#include <unordered_map>
#include "flatbuffers_generated/RobotModule_generated.h"
inline std::unordered_map<int, int> MODULE_TO_NUM_CHANNELS_MAP {{ModuleType_SPLITTER, 4}, {ModuleType_SERVO_1, 2}, {ModuleType_DC_MOTOR, 1}};
#define PC_ADDR 0
#endif //MODULE_H