View Single Post
  #2   Spotlight this post!  
Unread Today, 00:42
wj2k3 wj2k3 is offline
Registered User
FRC #2337
 
Join Date: Nov 2014
Location: United States
Posts: 2
wj2k3 is an unknown quantity at this point
Re: Navx in a Command-based Java program

try:

public static AHRS ahrs = new AHRS(SerialPort.Port.kMXP);

instead of:

static AHRS ahrs = new AHRS(SPI.Port.kMXP);

and add import:

import edu.wpi.first.wpilibj.SerialPort;
Reply With Quote