Archived
new method since no longer flippable due to angle being 54 and not 45
This commit is contained in:
1 parent
5a456e211f
commit
82c16b5402
1 file changed
+1
-1
@@ -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