D:/esp32/platformio/shibo/Shibo-main-TOMMY/src/main.cpp

This commit is contained in:
myperworld committed 2025-09-29 21:41:59 +08:00
1 parent 2b2928dbf2
commit 3160a2119f
13 files changed
+6305 -34

No files matched your search

+12 -7
View File
@@ -33,15 +33,20 @@ void detectObstacle();
void resetToDefault();
void safeSyncWritePosEx(byte* id, byte idCount, s16* position, u16* speed, byte* acc);
// 数据处理函数声明
// void processControlData(const JoystickData& data);
// void parseBluetoothData(const String& bluetoothData);
// void onBluetoothDataReceived(const String& data);
// 超声波测距函数
void handleEcho();
void echo_loop();
// void handleEcho();
// void echo_loop();
// 遥控模式 自动巡航模式
typedef enum {
REMOTE_MODE,
CRUISE_MODE
} OperationMode;
extern OperationMode current_mode;
// typedef enum {
// REMOTE_MODE,
// CRUISE_MODE
// } OperationMode;
// extern OperationMode current_mode;
#endif