removed invalid checksum. added info text

This commit is contained in:
ishak jmilou.ishak
2024-10-08 13:28:03 +02:00
parent 8a7747ca13
commit 5d11d4866b
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
int KobukiParser::parseKobukiMessage(TKobukiData &output, unsigned char *data) { int KobukiParser::parseKobukiMessage(TKobukiData &output, unsigned char *data) {
int rtrnvalue = checkChecksum(data); int rtrnvalue = checkChecksum(data);
if (rtrnvalue != 0) { if (rtrnvalue != 0) {
std::cerr << "Invalid checksum" << std::endl; // std::cerr << "Invalid checksum" << std::endl;
return -2; return -2;
} }

View File

@@ -52,7 +52,7 @@ int command() {
case ROTATE: { case ROTATE: {
int angle; int angle;
std::cout << "Enter angle to rotate: "; std::cout << "Enter angle to rotate in degrees: ";
std::cin >> angle; std::cin >> angle;
robot.doRotation(angle); robot.doRotation(angle);
} break; } break;