Go to Post The whole idea of a robot competition is geared around spectators. Take that away and you have a science fair. - Chris is me [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 10-02-2017, 23:42
droswell's Avatar
Happy Birthday! droswell droswell is online now
Registered User
FRC #2370 (iBots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2009
Location: Rutland, VT
Posts: 77
droswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to behold
Exclamation Navx in a Command-based Java program

We're able to get the navx sensor to work fine in an iterative program, but we're having trouble getting it to work in a command based program.

It compiles, but we're getting the famous "Robots don't quit" message with an error: -1029. We tried creating the object in the drivetrain subsystem, in robot.java, and in robotmap, to no avail.

Any help would be appreciated! Here's our code

Thanks!!
__________________



Reply With Quote
  #2   Spotlight this post!  
Unread Yesterday, 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
  #3   Spotlight this post!  
Unread Yesterday, 09:52
droswell's Avatar
Happy Birthday! droswell droswell is online now
Registered User
FRC #2370 (iBots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2009
Location: Rutland, VT
Posts: 77
droswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to behold
Re: Navx in a Command-based Java program

Thanks! We'll give it a shot this morning.
__________________



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 00:15.

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