Go to Post As a team leader if I do not INSPIRE I have failed, and I do not like to fail. - Mike Martus [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 28-01-2011, 08:17
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
CANJaguar.java won't compile

I downloaded the CANJaguar example that included the source code from First Forge (rev. 50, created on 02/18/2010 4:46 AM), but when I tried to run it CANJaguar.java gave me this error:
Quote:
edu.wpi.first.addons.CANJaguar is not abstract and does not override abstract method disable() in edu.wpi.first.wpilibj.SpeedController
public class CANJaguar implements JaguarCANProtocol, SpeedController {
It turns out CANJaguar doesn't implement disable() or set(double speed, byte syncGroup) from SpeedController, but it does have get() and set(double speed). Does anyone else have this problem? I figured I could just add those in as empty methods to get it to compile but I didn't know if there was a bigger problem. If it's as simple as adding in those methods, could someone just share the with me so I can paste them in?
__________________
q = (2*b) | ~(2*b);

if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");


Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2011, 08:28
Geek 2.0 Geek 2.0 is offline
Registered User
FRC #0107
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2008
Location: Holland, MI
Posts: 120
Geek 2.0 will become famous soon enough
Re: CANJaguar.java won't compile

You don't need to download the CANJaguar library anymore, it's included in the WPILibJ. Go to firstforge.wpi.edu to get the latest updates. Unfortunately, the automatic updates from last year aren't up to date with the 2011 release, so you need to get them.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2011, 10:11
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: CANJaguar.java won't compile

Quote:
Originally Posted by Geek 2.0 View Post
Go to firstforge.wpi.edu to get the latest updates. Unfortunately, the automatic updates from last year aren't up to date with the 2011 release, so you need to get them.
That was true for a few days after kickoff, but not anymore. 2 days ago I updated a computer that hadn't been used since last year, and netbeans notified me of the update automatically. If you installed the .nbm files manually without setting up the update location, they you will also have to manually update (or better yet, set up the update location).
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 10: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