Go to Post Yeah, yeah...those who aren't spotlit, spotlight.... - Jessica Boucher [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Spotlight this post!  
Unread 20-02-2016, 23:14
Justin Buist Justin Buist is offline
Registered User
FRC #4003 (TriSonics)
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Allendale, MI
Posts: 18
Justin Buist is an unknown quantity at this point
Re: Code problems

Quote:
Originally Posted by EmileH View Post
It looks like where you are setting an inverted motor (line 706 of your robot drive class), you are referencing a motor or some object that doesn't exist. NullPointerExceptions are errors that get thrown when you are trying to call something but it returns null.
RobotDrive is part of WPILibJ so it isn't "their" class. Line 706 in that class references the front right motor. In the posted code from Robot.java line 61 references the rear left motor so there might be a discrepancy between what was posted and what was actually run.

Either way the problem is in this line:

DriveTrain41 = new RobotDrive(0,1,2,3);

One of those pins doesn't actually map to a Talon. That could be a programming or wiring error.
Reply With Quote
 


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 09:46.

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