mirror of
https://github.com/Team4388/2023WayOfTheRobot.git
synced 2026-06-09 00:37:59 -06:00
code review
This commit is contained in:
@@ -22,7 +22,7 @@ import edu.wpi.first.wpilibj2.command.CommandScheduler;
|
||||
import frc4388.utility.RobotTime;
|
||||
|
||||
import frc4388.robot.subsystems.Location;
|
||||
|
||||
import frc4388.robot.subsystems.Apriltags.Tag;
|
||||
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
|
||||
|
||||
/**
|
||||
@@ -71,12 +71,9 @@ public class Robot extends TimedRobot {
|
||||
// block in order for anything in the Command-based framework to work.
|
||||
CommandScheduler.getInstance().run();
|
||||
|
||||
// Call position and rotation reorder
|
||||
location.reoderPrio();
|
||||
|
||||
final Object[] pos = location.getPosition();
|
||||
final Tag pos = location.getPosRot();
|
||||
if (pos != null) {
|
||||
SmartDashboard.putNumber("name", (Double) pos[0]);
|
||||
SmartDashboard.putNumber("x position", pos.x);
|
||||
}
|
||||
|
||||
//ystem.out.print(apriltagPos[0]);
|
||||
|
||||
Reference in New Issue
Block a user