Go to Post it is actually more important to understand and be able to clearly state the question than it is to know the answers. - GeeTwo [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Spotlight this post!  
Unread 19-02-2010, 00:28
simpsonboy77 simpsonboy77 is offline
Registered User
AKA: Garrett Dicken
FRC #0041 (RoboWarriors)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New Jersey
Posts: 87
simpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond repute
Re: CAN user code fails to load

You need something in your code similar to

CANJaguar* Motor = new CANJaguar(3,CANJaguar::kPercentVoltage);
The 3 is the CANBus id, and the second arguement is a enum for the type of controls. Put this in your initialization. Of course change the name motor to the nameof your variables.

If you have this, post snipets of your code. Also make sure you set CAN IDs to each jaguar. If any 2 share a ID, the bus gets confused. I know you said you set them, but I have had my jaguars reset their IDs for no apparent reason.
__________________
2013 - Present MAR Control System Adviser and FTAA
2009 - Present Programming an Electrical Mentor Team 41
2005 - 2008 Team 41 Programmer
2008 NYC Regional Winner
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Robot code won't load RevusHarkings C/C++ 3 18-02-2010 15:19
Downloading Default Code Fails 1951-44U Java 3 30-01-2010 11:55
Code runs only once, fails on reset roknjohn Programming 7 21-02-2005 20:24
Code suddenly fails to initialize miketwalker Programming 11 19-02-2005 15:23
Can we load 2004 code? colt527 Programming 5 15-02-2005 19:48


All times are GMT -5. The time now is 20:08.

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