mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
added parameters
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user