added parameters

This commit is contained in:
ishak jmilou.ishak
2025-01-07 14:33:12 +01:00
parent b111e49dff
commit 56f085b73d

View File

@@ -53,8 +53,9 @@ int main() {
} }
void reconnectKobuki() { void reconnectKobuki() {
unsigned char *null_ptr(0);
while (true) { while (true) {
if (robot.startCommunication("/dev/ttyUSB0") != -1) { if (robot.startCommunication("/dev/ttyUSB0", true, null_ptr) != -1) {
std::cout << "Kobuki opnieuw verbonden!" << std::endl; std::cout << "Kobuki opnieuw verbonden!" << std::endl;
break; // Verlaat de loop als de verbinding succesvol is break; // Verlaat de loop als de verbinding succesvol is
} else { } else {