Create the RobotGyro Object

Will allow for easily interchangable use of a pigeon or a navX. Just swap which gyro you pass RobotGyro. More advanced functionality like RemoteSensors with the pigeon and collision detection with the navX will have to be done by getting the gyro from RobotGyro and then using it.
This commit is contained in:
Keenan D. Buckley
2020-03-27 11:36:35 -06:00
parent e8be8ef16e
commit f310c8d90a
4 changed files with 201 additions and 3 deletions
+3 -1
View File
@@ -22,7 +22,9 @@ public final class Constants {
public static final int DRIVE_LEFT_FRONT_CAN_ID = 2;
public static final int DRIVE_RIGHT_FRONT_CAN_ID = 4;
public static final int DRIVE_LEFT_BACK_CAN_ID = 3;
public static final int DRIVE_RIGHT_BACK_CAN_ID = 5;
public static final int DRIVE_RIGHT_BACK_CAN_ID = 5;
public static final int DRIVE_PIGEON_ID = 6;
}
public static final class LEDConstants {