25.5.29第二次提交

This commit is contained in:
Ñõԭ×Ó
2025-05-29 12:11:35 +08:00
parent efa0d49694
commit 9ba913646c
3 changed files with 12 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ void BOTturn(int turn)
{
MOTORDriveRaw(1,20);
MOTORDriveRaw(2,-18);
} while (abs(ENCODERRead(2)) < 250);
} while (abs(ENCODERRead(2)) < 240);
MOTORDriveRaw(1,0);
MOTORDriveRaw(2,0);
}
@@ -28,7 +28,7 @@ void BOTturn(int turn)
{
MOTORDriveRaw(1,-20);
MOTORDriveRaw(2,18);
} while (abs(ENCODERRead(2)) < 250);
} while (abs(ENCODERRead(2)) < 240);
MOTORDriveRaw(1,0);
MOTORDriveRaw(2,0);
}
@@ -41,7 +41,7 @@ void BOTturn(int turn)
MOTORDriveRaw(1,20);
MOTORDriveRaw(2,-18);
} while (abs(ENCODERRead(2)) < 580);
} while (abs(ENCODERRead(2)) < 570);
MOTORDriveRaw(1,0);
MOTORDriveRaw(2,0);
}