Go to Post Even with everyone using the same RC setup, teams still botch it in many creative ways. - Wetzel [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
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 30-10-2011, 19:46
rudun's Avatar
rudun rudun is offline
Registered User
FRC #0496 (Royals)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2005
Location: Babylon
Posts: 42
rudun is an unknown quantity at this point
Null motor error

We have gotten the black jaguar serial bridge set up. The jaguars have the latest firmware, we have flashed the crio with v92. I am able to spin a motor with BDC-Comm. However when the robot initializes it throws a null motor exception. we are using java and just using a try like this.

Code:
try { leftMotor = new CanJaguar(2); }
catch (Exception e) {
System.out.println(getMessage());
}
Reply With Quote
  #2   Spotlight this post!  
Unread 31-10-2011, 08:49
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Null motor error

Quote:
Originally Posted by rudun View Post
...when the robot initializes it throws a null motor exception.
From a quick look at the Java framework, it seems that the "Null motor provided" exception comes from the RobotDrive constructor. Check to make sure it's getting called with all necessary parameters.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-11-2011, 18:52
rrossbach rrossbach is offline
Registered User
AKA: Ron R
FRC #2607 (RoboVikings)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Warrington PA
Posts: 90
rrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to behold
Re: Null motor error

Quote:
Originally Posted by rudun View Post
We have gotten the black jaguar serial bridge set up. The jaguars have the latest firmware, we have flashed the crio with v92. I am able to spin a motor with BDC-Comm. However when the robot initializes it throws a null motor exception. we are using java and just using a try like this.

Code:
try { leftMotor = new CanJaguar(2); }
catch (Exception e) {
System.out.println(getMessage());
}
The class is CANJaguar, not CanJaguar.

- Ron
__________________

FIRST Mid-Atlantic Volunteer
FRC Team #2607 Mentor
Reply With Quote
  #4   Spotlight this post!  
Unread 03-11-2011, 10:17
rudun's Avatar
rudun rudun is offline
Registered User
FRC #0496 (Royals)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2005
Location: Babylon
Posts: 42
rudun is an unknown quantity at this point
Re: Null motor error

It turned out that it was a problem with the terminator. It was working with the bdc-comm utility, but was taking too long to return a signal to operate with the crio. After replacement we got it to work.

In response to the previous post it was a typo on the post, not the code. Otherwise we would not have been able to tell you what it was returning or been able to compile the code.

Thanks for the responses.
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 02:54.

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