Refactor CLI submodule

Move command parsing to doCommand
Parse command with splitString instead of stringToken
Trim commands
Move cliTestMotor to the bottom
Rename parseInput to handleInput, which is more clear
Move motor test function to motors.ino
This commit is contained in:
Oleg Kalachev
2025-02-17 15:51:58 +03:00
parent 641e711e67
commit 149c62568f
7 changed files with 41 additions and 33 deletions

View File

@@ -34,8 +34,8 @@ void controlTorque();
void showTable();
void sendMotors();
bool motorsActive();
void doCommand(String str);
void cliTestMotor(uint8_t n);
String stringToken(char* str, const char* delim);
void normalizeRC();
void printRCCal();
void processMavlink();