Go to Post A FRC team without engaged and motivated students is like a car without wheels... it isn’t going to go very far. - E. Wood [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-01-2016, 20:50
DanielAndrews DanielAndrews is offline
Registered User
FRC #5510
 
Join Date: Jan 2016
Location: Los Angeles
Posts: 2
DanielAndrews is an unknown quantity at this point
Navx-MXP AHRS error

Our kauailabs Navx-MXP is giving an error in the DriverStation after deploying code and following set up instructions:

Code:
ERROR Unhandled exception instantiating robot
 org.usfirst.frc.team5510.robot.Robot java.lang.NoClassDefFoundError:
 edu/wpi/first/wpilibj/PIDSourceType at 
[com.kauailabs.navx.frc.AHRS.<init>(AHRS.java:187),
 com.kauailabs.navx.frc.AHRS.<init>(AHRS.java:319),
 org.usfirst.frc.team5510.robot.Robot.<init>(Robot.java:56),
 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method), sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62), 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45), java.lang.reflect.Constructor.newInstance(Constructor.java:408),
 java.lang.Class.newInstance(Class.java:433), 
edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:197)]
We are still using the 2015 libraries if that matter. Any help would be greatly appreciated!

Last edited by DanielAndrews : 27-01-2016 at 20:53.
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2016, 21:02
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: Navx-MXP AHRS error

Your problem is that you are using the 2015 WPILib with a library that was designed for 2016. One of the things that changed in 2016 was that PIDSourceParameter was renamed to PIDSourceType.

Source: https://wpilib.screenstepslive.com/s...e-2015-to-2016

My recommendation is simply that you update your roboRIO, because you will have to do it eventually.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2016, 21:03
DanielAndrews DanielAndrews is offline
Registered User
FRC #5510
 
Join Date: Jan 2016
Location: Los Angeles
Posts: 2
DanielAndrews is an unknown quantity at this point
Re: Navx-MXP AHRS error

oh, will do right now. Thanks!
Reply With Quote
  #4   Spotlight this post!  
Unread 03-02-2016, 21:07
TannerM TannerM is offline
Registered User
FRC #2530
 
Join Date: Feb 2016
Location: Rochester, MN
Posts: 5
TannerM is an unknown quantity at this point
Exclamation Re: Navx-MXP AHRS error

Hi,

When I try to compile my navX code on Eclipse using C++ it says "fatal error: AHRS.h: No such file or directory"

What can I do to fix it?

Inconceivable Programmers
Reply With Quote
  #5   Spotlight this post!  
Unread 04-02-2016, 11:21
slibert slibert is online now
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 356
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Navx-MXP AHRS error

Quote:
Originally Posted by TannerM View Post
Hi,

When I try to compile my navX code on Eclipse using C++ it says "fatal error: AHRS.h: No such file or directory"

What can I do to fix it?

Inconceivable Programmers
You'll need to follow the instructions to configure the Eclipse Library and Include Paths on the NavX-MXP C++ for Roborio Library page.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:37.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi