This commit is contained in:
ackimixs
2024-05-02 20:01:14 +02:00
parent d5f3ac92b4
commit 5a148704a0

View File

@@ -676,9 +676,7 @@ void TCPServer::goToAruco(const ArucoTag &arucoTag, const int pince) {
double yPrime = arucoTag.pos()[1];
double roll = arucoTag.rot()[1];
double test = (xPrime - 400) * 0.1;
auto centerPlantX = (20 * std::cos(roll)) + xPrime + test;
auto centerPlantX = (20 * std::cos(roll)) + xPrime;
auto centerPlantY = (-20 * std::sin(roll)) + yPrime + decalage;
double thetaPrime = std::atan2(centerPlantY, centerPlantX);