mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 00:38:05 -06:00
test prnts
This commit is contained in:
@@ -92,9 +92,11 @@ public class TrackTarget extends CommandBase {
|
||||
// points = getFakePoints();
|
||||
//// points = filterPoints(points);
|
||||
Point average = VisionOdometry.averagePoint(points);
|
||||
System.out.println("Average Point: " + average.toString());
|
||||
|
||||
double output = (average.x - VisionConstants.LIME_HIXELS/2.d) / VisionConstants.LIME_HIXELS;
|
||||
output *= 2.0;
|
||||
System.out.println("Output: " + output);
|
||||
|
||||
m_turret.runTurretWithInput(output);
|
||||
// double position = m_turret.m_boomBoomRotateEncoder.getPosition();
|
||||
|
||||
Reference in New Issue
Block a user