Search in sources :

Example 1 with AHRS

use of com.kauailabs.navx.frc.AHRS in project StormRobotics2018 by 2729StormRobotics.

the class NavX method connectI2C.

private static synchronized boolean connectI2C() throws RuntimeException {
    if (navx == null || !navx.isConnected()) {
        navx = new AHRS(I2C.Port.kOnboard);
        System.out.println("NavX Connected: " + navx.isConnected());
    }
    return true;
}
Also used : AHRS(com.kauailabs.navx.frc.AHRS)

Example 2 with AHRS

use of com.kauailabs.navx.frc.AHRS in project StormRobotics2018 by 2729StormRobotics.

the class NavX method connectUSB.

private static synchronized boolean connectUSB() throws RuntimeException {
    if (navx == null || !navx.isConnected()) {
        navx = new AHRS(SerialPort.Port.kUSB);
        System.out.println("NavX Connected: " + navx.isConnected());
    }
    return true;
}
Also used : AHRS(com.kauailabs.navx.frc.AHRS)

Example 3 with AHRS

use of com.kauailabs.navx.frc.AHRS in project StormRobotics2018 by 2729StormRobotics.

the class NavX method connectMXPSPI.

private static synchronized boolean connectMXPSPI() throws RuntimeException {
    if (navx == null || !navx.isConnected()) {
        navx = new AHRS(SPI.Port.kMXP);
        System.out.println("NavX Connected: " + navx.isConnected());
    }
    return true;
}
Also used : AHRS(com.kauailabs.navx.frc.AHRS)

Example 4 with AHRS

use of com.kauailabs.navx.frc.AHRS in project StormRobotics2018 by 2729StormRobotics.

the class NavX method connectMXPI2C.

private static synchronized boolean connectMXPI2C() throws RuntimeException {
    if (navx == null || !navx.isConnected()) {
        navx = new AHRS(I2C.Port.kMXP);
        System.out.println("NavX Connected: " + navx.isConnected());
    }
    return true;
}
Also used : AHRS(com.kauailabs.navx.frc.AHRS)

Example 5 with AHRS

use of com.kauailabs.navx.frc.AHRS in project StormRobotics2018 by 2729StormRobotics.

the class NavX method connectMXPSerial.

private static synchronized boolean connectMXPSerial() throws RuntimeException {
    if (navx == null || !navx.isConnected()) {
        navx = new AHRS(SerialPort.Port.kMXP);
        System.out.println("NavX Connected: " + navx.isConnected());
    }
    return true;
}
Also used : AHRS(com.kauailabs.navx.frc.AHRS)

Aggregations

AHRS (com.kauailabs.navx.frc.AHRS)9 DigitalInput (edu.wpi.first.wpilibj.DigitalInput)2 DoubleSolenoid (edu.wpi.first.wpilibj.DoubleSolenoid)2 Encoder (edu.wpi.first.wpilibj.Encoder)2 CANTalon (com.ctre.CANTalon)1 AutonStrategy (com.team2502.robot2018.command.autonomous.ingredients.AutonStrategy)1 ActiveIntakeSubsystem (com.team2502.robot2018.subsystem.ActiveIntakeSubsystem)1 DriveTrainSubsystem (com.team2502.robot2018.subsystem.DriveTrainSubsystem)1 ElevatorSubsystem (com.team2502.robot2018.subsystem.ElevatorSubsystem)1 ActiveIntakeSolenoid (com.team2502.robot2018.subsystem.solenoid.ActiveIntakeSolenoid)1 ButterflySolenoid (com.team2502.robot2018.subsystem.solenoid.ButterflySolenoid)1 ClimberSolenoid (com.team2502.robot2018.subsystem.solenoid.ClimberSolenoid)1 TransmissionSolenoid (com.team2502.robot2018.subsystem.solenoid.TransmissionSolenoid)1 InterpolationMap (com.team2502.robot2018.utils.InterpolationMap)1 Pose2d (edu.wpi.first.math.geometry.Pose2d)1 Translation2d (edu.wpi.first.math.geometry.Translation2d)1 ChassisSpeeds (edu.wpi.first.math.kinematics.ChassisSpeeds)1 SwerveDriveKinematics (edu.wpi.first.math.kinematics.SwerveDriveKinematics)1 BuiltInAccelerometer (edu.wpi.first.wpilibj.BuiltInAccelerometer)1 PowerDistributionPanel (edu.wpi.first.wpilibj.PowerDistributionPanel)1