From 92be35a8da717659429c1b6f443c1529f4aacc80 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Wed, 2 Oct 2024 18:08:12 +0200 Subject: [PATCH] edited comments --- src/C++/Driver/src/CKobuki.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/C++/Driver/src/CKobuki.cpp b/src/C++/Driver/src/CKobuki.cpp index 8c4ada5..ffde869 100755 --- a/src/C++/Driver/src/CKobuki.cpp +++ b/src/C++/Driver/src/CKobuki.cpp @@ -800,8 +800,8 @@ void CKobuki::forward(int speedvalue, long double distance) { unsigned char message[11] = { 0xaa, // Start byte 1 0x55, // Start byte 2 - 0x08, // Payload length - 0x01, // amount of payloads + 0x08, // Payload length (the first 2 bytes dont count) + 0x01, // payload type (0x01 = control command) 0x04, // Control byte or additional identifier actual_speed % 256, // Lower byte of speed value actual_speed >> 8, // Upper byte of speed value