mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 04:14:58 +00:00
change values
This commit is contained in:
@@ -14,8 +14,8 @@ int main()
|
|||||||
robot.startCommunication("/dev/ttyUSB0", true, null_ptr);
|
robot.startCommunication("/dev/ttyUSB0", true, null_ptr);
|
||||||
usleep(1 * 1000 * 1000);
|
usleep(1 * 1000 * 1000);
|
||||||
cout << "Enter commando";
|
cout << "Enter commando";
|
||||||
usleep(30 * 1000 * 1000);
|
|
||||||
thread mv(movement);
|
thread mv(movement);
|
||||||
|
usleep(30 * 1000 * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
int checkCenterCliff()
|
int checkCenterCliff()
|
||||||
@@ -35,15 +35,15 @@ int movement()
|
|||||||
|
|
||||||
if (text == 1)
|
if (text == 1)
|
||||||
{
|
{
|
||||||
robot.goStraight(10);
|
robot.goStraight(1);
|
||||||
}
|
}
|
||||||
if (text == 2)
|
if (text == 2)
|
||||||
{
|
{
|
||||||
robot.doRotation(90);
|
robot.doRotation(0.25);
|
||||||
}
|
}
|
||||||
if (text == 3)
|
if (text == 3)
|
||||||
{
|
{
|
||||||
robot.doRotation(90);
|
robot.doRotation(-0.25);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user