I would like to use NAVX gyros in my robot code so I downloaded the vendordeps from https://pdocs.kauailabs.com/navx-mxp/software/roborio-libraries/java/ . When I import com.kauailabs.navx.frc.AHRS, VSCode underlines it in red saying “The import com.kauailabs cannot be resolved.” although whenever I build the code there are no issues. However, when I go to make my Gyro object, the build fails saying “AHRS cannot be resolved to a type”. I have the right vendordeps downloaded so I was wondering the cause of this. For reference the code looks like this:
import com.kauailabs.navx.frc.AHRS; //underlined red but builds fine
import org.texastorque.torquelib.base.TorqueFeedback;
public class GyroFeedback extends TorqueFeedback{
private final AHRS nxGyro; //underlined red and build error
@Override
public void update() {
// TODO Auto-generated method stub
}
}