mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
edited comments
This commit is contained in:
@@ -800,8 +800,8 @@ void CKobuki::forward(int speedvalue, long double distance) {
|
|||||||
unsigned char message[11] = {
|
unsigned char message[11] = {
|
||||||
0xaa, // Start byte 1
|
0xaa, // Start byte 1
|
||||||
0x55, // Start byte 2
|
0x55, // Start byte 2
|
||||||
0x08, // Payload length
|
0x08, // Payload length (the first 2 bytes dont count)
|
||||||
0x01, // amount of payloads
|
0x01, // payload type (0x01 = control command)
|
||||||
0x04, // Control byte or additional identifier
|
0x04, // Control byte or additional identifier
|
||||||
actual_speed % 256, // Lower byte of speed value
|
actual_speed % 256, // Lower byte of speed value
|
||||||
actual_speed >> 8, // Upper byte of speed value
|
actual_speed >> 8, // Upper byte of speed value
|
||||||
|
Reference in New Issue
Block a user