import org.usfirst.frc.team3501.robot.AnotherGyroClass.Rotation;
import org.usfirst.frc.team3501.robot.Constants.Defense;
+import org.usfirst.frc.team3501.robot.GyroLib.Rotation;
import org.usfirst.frc.team3501.robot.subsystems.DefenseArm;
import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
import org.usfirst.frc.team3501.robot.subsystems.IntakeArm;
positionFourDefense, positionFiveDefense;
// Gyro stuff
- private final static double NANOSECONDS_PER_SECOND = 1000000000;
short rawValue;
- public AnotherGyroClass gyro;
+ public GyroLib gyro;
double now;
double degreesIncreased;
@Override
public void robotInit() {
// driveTrain = new DriveTrain();
- gyro = new AnotherGyroClass(I2C.Port.kOnboard, false);
+ gyro = new GyroLib(I2C.Port.kOnboard, false);
// oi = new OI();
shooter = new Shooter();
// and the positions of the defenses from a drop-down menu on the Smart
// Dashboard
// make the Sendable Choosers
- initializeSendableChoosers();
- addPositionChooserOptions();
- addDefensesToAllDefenseSendableChooosers();
- sendSendableChoosersToSmartDashboard();
+ // initializeSendableChoosers();
+ // addPositionChooserOptions();
+ // addDefensesToAllDefenseSendableChooosers();
+ // sendSendableChoosersToSmartDashboard();
}
@Override
public void teleopInit() {
+
+ gyro.start();
+
}
@Override
public void teleopPeriodic() {
Scheduler.getInstance().run();
+ System.out.println("Degrees: " + gyro.getRotationZ().getAngle());
+
}
}