mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Integrate RPC with RMT
This commit is contained in:
@@ -1 +1 @@
|
||||
idf_component_register(INCLUDE_DIRS "include")
|
||||
idf_component_register(INCLUDE_DIRS "include" PRIV_REQUIRES "flatbuffers")
|
||||
|
||||
@@ -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
|
||||
|
||||
16
components/constants/include/constants/module.h
Normal file
16
components/constants/include/constants/module.h
Normal 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
|
||||
Reference in New Issue
Block a user