flower spot

This commit is contained in:
ackimixs
2024-04-29 17:14:01 +02:00
parent d049a63c0c
commit 2965488f17

View File

@@ -830,14 +830,14 @@ void TCPServer::findAndGoFlower(StratPattern sp) {
this->setSpeed(200);
if (team == BLUE) {
if (sp == TAKE_FLOWER_TOP) {
this->go(1000, 300);
this->go(1000, 200);
awaitRobotIdle();
this->rotate(-PI/2);
awaitRobotIdle();
}
else if (sp == TAKE_FLOWER_BOTTOM) {
this->go(1000, 1700);
this->go(1000, 1800);
awaitRobotIdle();
this->rotate(PI / 2);
@@ -847,14 +847,14 @@ void TCPServer::findAndGoFlower(StratPattern sp) {
}
} else if (team == YELLOW) {
if (sp == TAKE_FLOWER_TOP) {
this->go(2000, 300);
this->go(2000, 200);
awaitRobotIdle();
this->rotate(-PI/2);
awaitRobotIdle();
}
else if (sp == TAKE_FLOWER_BOTTOM) {
this->go(2000, 1700);
this->go(2000, 1800);
awaitRobotIdle();
this->rotate(PI / 2);