Merge branch 'master' of https://forge.gzod01.fr/werobot/ftc2024-robotcode
This commit is contained in:
commit
1c1c14dbb1
1 changed files with 3 additions and 2 deletions
|
@ -236,8 +236,9 @@ public class WEROBOT_FTC2024_New_carlike extends LinearOpMode {
|
|||
// double rapp = step/theta;
|
||||
double signe = Math.signum(-y);
|
||||
signe = (signe == 0)?1.0:signe;
|
||||
if(Math.abs(x)<=0.1 && Math.abs(y)<=0.1) ltargetPos = rtargetPos = 0;
|
||||
else if (Math.abs(x)<=0.1){
|
||||
if(Math.abs(x)<=0.1 && Math.abs(y)<=0.1){
|
||||
ltargetPos = rtargetPos = 0;
|
||||
}else if (Math.abs(x)<=0.1){
|
||||
ltargetPos = rtargetPos = 100;
|
||||
}else if (isBetween(x,0.1,0.9)){
|
||||
rtargetPos = step;
|
||||
|
|
Loading…
Reference in a new issue