fix:WeRobot-Code.java problem with the vertical
This commit is contained in:
parent
09b9a7bc9c
commit
53b3747c82
1 changed files with 2 additions and 2 deletions
|
@ -147,7 +147,7 @@ class WRRobot{
|
||||||
if(y>0){
|
if(y>0){
|
||||||
movement(new double[]{pow,-pow,pow,-pow});
|
movement(new double[]{pow,-pow,pow,-pow});
|
||||||
}else{
|
}else{
|
||||||
movement(new double[]{pow,-pow,pow,-pow});
|
movement(new double[]{-pow,pow,-pow,pow});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -169,7 +169,7 @@ class WRRobot{
|
||||||
if (g2x > 0) {
|
if (g2x > 0) {
|
||||||
movement(new double[]{pow,pow,pow,pow});
|
movement(new double[]{pow,pow,pow,pow});
|
||||||
} else {
|
} else {
|
||||||
movement(new double[]{-pow,-pow,-pow,-pow});
|
movement(new double[]{-pow,-pow,-pow,pow});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue