oleg-02/src/robot_state.cpp
2026-01-22 23:15:20 +03:00

19 lines
315 B
C++

#include "robot_state.h"
RobotState robot = {
MODE_IDLE,
0,
150,
150
};
const char* modeToStr(RobotMode m) {
switch (m) {
case MODE_IDLE: return "IDLE";
case MODE_MANUAL: return "MANUAL";
case MODE_AUTO: return "AUTO";
case MODE_SERVICE: return "SERVICE";
default: return "?";
}
}