mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
testing
This commit is contained in:
@@ -14,11 +14,11 @@ int main()
|
||||
{
|
||||
unsigned char *null_ptr(0);
|
||||
robot.startCommunication("/dev/ttyUSB0", true, null_ptr);
|
||||
sleep(1);
|
||||
|
||||
std::thread safety([&robot]() { robot.robotSafety(); }); // use a lambda function to call the member function
|
||||
safety.detach();
|
||||
thread movementThread(movement);
|
||||
|
||||
thread movementThread(movement);
|
||||
movementThread.join(); //so the program doesnt quit
|
||||
return 0;
|
||||
}
|
||||
@@ -47,7 +47,7 @@ int movement()
|
||||
else if (text == 2)
|
||||
{
|
||||
// 1 is full circle
|
||||
robot.doRotation(0.25);
|
||||
robot.Rotate(90);
|
||||
}
|
||||
else if (text == 3)
|
||||
{
|
||||
|
Reference in New Issue
Block a user