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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations