mirror of
https://gitee.com/yyz_o/bk_bishe_pi.git
synced 2025-09-07 23:21:26 +00:00
25.5.29第二次提交
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user