Skip to content

Commit

Permalink
Robot base code ftctechnh#4 isGyroCalibrated - fixed?
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaChocoManiac committed Sep 10, 2017
1 parent 67cd69e commit 126a482
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions TeamCode/src/main/java/suitbots/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

public class Robot {
//Yo necesito dormir.
private int gyrochecker = 0;
private double lastG;
private BNO055IMU imu;
private DcMotor lf, lr, rf, rr;
Expand Down Expand Up @@ -49,7 +48,6 @@ private void initilizeGyro() {
parameters.loggingTag = "IMU";
parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();
imu.initialize(parameters);
gyrochecker = 1;
}

public int getLight() {
Expand All @@ -66,7 +64,7 @@ public boolean isAboveWhiteLine() {
}

public boolean isGyroCalibrated() {
if(gyrochecker == 1) {
if(imu.isSystemCalibrated()) {
return true;
}
else {
Expand Down

0 comments on commit 126a482

Please sign in to comment.