mirror of
https://github.com/Team4388/Swerve-Drive.git
synced 2026-06-09 00:38:04 -06:00
Basic swerve stuff
Also separated arcade from swerve everywhere in the code.
This commit is contained in:
@@ -27,7 +27,7 @@ public class CommandTest {
|
||||
@Test
|
||||
public void testExample() {
|
||||
// Arrange
|
||||
Drive drive = mock(Drive.class);
|
||||
ArcadeDrive drive = mock(ArcadeDrive.class);
|
||||
RunCommand command = new RunCommand(() -> drive.driveWithInput(0, 0), drive);
|
||||
|
||||
// Act
|
||||
|
||||
@@ -15,7 +15,7 @@ import com.kauailabs.navx.frc.AHRS;
|
||||
import org.junit.*;
|
||||
|
||||
import frc4388.mocks.MockPigeonIMU;
|
||||
import frc4388.robot.Constants.DriveConstants;
|
||||
import frc4388.robot.Constants.ArcadeDriveConstants;
|
||||
|
||||
/**
|
||||
* Based on the RobotGyroUtilityTest class
|
||||
@@ -27,7 +27,7 @@ public class UtilityTest {
|
||||
@Test
|
||||
public void testConstructor() {
|
||||
// Arrange
|
||||
MockPigeonIMU pigeon = new MockPigeonIMU(DriveConstants.DRIVE_PIGEON_ID);
|
||||
MockPigeonIMU pigeon = new MockPigeonIMU(ArcadeDriveConstants.DRIVE_PIGEON_ID);
|
||||
AHRS navX = mock(AHRS.class);
|
||||
gyroPigeon = new RobotGyro(pigeon);
|
||||
gyroNavX = new RobotGyro(navX);
|
||||
@@ -44,7 +44,7 @@ public class UtilityTest {
|
||||
@Test
|
||||
public void testHeadingPigeon() {
|
||||
// Arrange
|
||||
MockPigeonIMU pigeon = new MockPigeonIMU(DriveConstants.DRIVE_PIGEON_ID);
|
||||
MockPigeonIMU pigeon = new MockPigeonIMU(ArcadeDriveConstants.DRIVE_PIGEON_ID);
|
||||
gyroPigeon = new RobotGyro(pigeon);
|
||||
|
||||
// Act & Assert
|
||||
|
||||
Reference in New Issue
Block a user