new method since no longer flippable due to angle being 54 and not 45
This commit is contained in:
@@ -90,7 +90,7 @@ public class Targeting {
|
|||||||
if (redAlliance){
|
if (redAlliance){
|
||||||
sin54 = Math.sin(Math.toRadians(54));
|
sin54 = Math.sin(Math.toRadians(54));
|
||||||
} else {
|
} else {
|
||||||
sin54 = Math.sin(Math.toRadians(-54))
|
sin54 = Math.sin(Math.toRadians(-54));
|
||||||
}
|
}
|
||||||
// TODO: test these values determined from the fmap
|
// TODO: test these values determined from the fmap
|
||||||
double rotatedY = (robotX + cancelOffsetX) * sin54 + (robotY + cancelOffsetY) * cos54;
|
double rotatedY = (robotX + cancelOffsetX) * sin54 + (robotY + cancelOffsetY) * cos54;
|
||||||
|
|||||||
Reference in New Issue
Block a user