Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,11 @@ public class Robot extends TimedRobot {
private double m_limelight_tx;
private double m_limelight_ty;
private double m_limelight_tz;
private Boolean m_debug = false;

@Override
public void robotInit() {
m_ntwktbl = NetworkTableInstance.getDefault().getTable("limelight");




}
@Override
public void teleopInit() {
Expand All @@ -74,7 +71,8 @@ public void teleopInit() {
}
@Override
public void teleopPeriodic() {
if(m_timer.get() >= 2.0)
//This is debug mode.
if(m_debug && m_timer.get() >= 2.0)
{
m_limelight_target = m_ntwktbl.getEntry("tv").getDouble(0);
m_limelight_tx = m_ntwktbl.getEntry("tx").getDouble(0);
Expand Down