package org.camsrobotics.frc2016.auto.actions;

import org.camsrobotics.frc2016.Constants;

import edu.wpi.first.wpilibj.networktables.NetworkTable;

/**
 * Waits for the vision target
 * 
 * @author Michael
 *
 */
public class WaitForVisionTargetAction extends TimeoutAction {
	private NetworkTable m_table;
	private double m_contour;
	
	public WaitForVisionTargetAction(double timeout) {
		super(timeout);
		m_table = NetworkTable.getTable("GRIP/myContourReport");
		m_contour = m_table.getNumber("centerx",0);
	}
	
	@Override
	public boolean isFinished()	{
		return super.isFinished() || m_contour == Constants.kCameraFrameWidth/2;
	}
}
@@ -47,54 +47,8 @@
 %0D%0A%0D%0A
-import org.camsrobotics.frc2016.Constants;%0D%0A%0D%0A
 impo
@@ -576,40 +576,12 @@
 our 
-== Constants.kCameraFrameWidth/2
+!= 0
 ;%0D%0A%09

fix vision target action