|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#31
|
|||
|
|||
|
Re: Black jaguars: not working
I tried switching to CANJaguar as well, and I still get the errors I had before (status == -57002). This was using the CANJaguar class using the 2CAN attachment.
|
|
#32
|
|||
|
|||
|
Re: Black jaguars: not working
There was an update to the 2CAN plugin released just a day or two ago. Try updating that.
|
|
#33
|
|||
|
|||
|
Re: Black jaguars: not working
I tried the update (http://crosstheroadelectronics.com/2...2CANPlugIn.out) and it still doesn't work. This is very odd...
|
|
#34
|
||||
|
||||
|
Re: Black jaguars: not working
ellisk,
I just to confirm where you are... You are using wind river c++ with "latest" checked out code from firstforge, or the last file release (zip under the file release link)? You have latest FRC_2CANPlugin.out file from ctr website. FRC_2CANPlugin.out is in the "ni-rt/system" directory on the ftp server in the cRIO. ni-rt.ini is modified so that ";FRC_2CANPlugIn.out" is IMMEDIETELY after FRC_NetworkCommunication.out. Note that FRC_2CANPlugIn.out now should be before FRC_UserProgram (in the past releases it would have been after but that was incorrect, causing all sorts of problems). And also have you successfully viewed the web dashboard in the 2CAN and have confirmed that the Jaguar ID for your jag is the same one used in the constructor of CANJaguar? |
|
#35
|
||||
|
||||
|
Re: Black jaguars: not working
Quote:
I've been using CAN control for over a couple weeks now, but I'm using the serial port. CANJaguar.h is necessary for the project to build. ellisk only shows 2CAN.h included. Could this be his/her problem? - Bryce P.S. ellisk, I would verify yourself that your Jaguars are set with the correct ID. Also, that they have the correct firmware. There are two firmware files, one for the black Jags and one for the gray Jags. TI just released a new version of the firmware, so you can take this time to reflash with the newest: http://www.luminarymicro.com/index.p...d&Itemid=59 1 P.S.S. Unless you just didn't show it, you're also missing START_ROBOT_CLASS(Spy); that comes after your class. If this line is not there, the cRio won't deploy your code. This line creates a new task with your program... P.S.S.S. Here's an example of what my code would be using CAN over the serial port. Code:
#include "WPILib.h"
#include "CANJaguar.h"
class Spy : public SimpleRobot
{
CANJaguar *mtr;
public:
Spy(void)
{
mtr = new CANJaguar (5); //or whatever ID you have set
GetWatchdog().SetEnabled(false);
}
void Autonomous(void)
{
}
void OperatorControl(void)
{
while (true) {
mtr->Set(0.5);
Wait(0.5);
}
}
};
START_ROBOT_CLASS(Spy);
|
|
#36
|
|||
|
|||
|
Re: Black jaguars: not working
Make SURE you have toggled the Console Out DIP switch on the cRio. My team was having the exact same problem and it worked after toggling Console Out and a good ol' hard reboot.
|
|
#37
|
||||
|
||||
|
Re: Black jaguars: not working
Quote:
- Bryce |
|
#38
|
||||
|
||||
|
Re: Black jaguars: not working
We have been having a similar problem as ellisk. We have updated our Jaguars to the most current firmware (87) as well as our 2CAN (v.1.5) and have gotten the sample code to work. However, we can only move sporadically with error -52007 showing up on the target console. Likewise, the watchdog is flipping on and off sporadically. We are using 2CAN with gray Jaguars.
|
|
#39
|
|||
|
|||
|
Re: Black jaguars: not working
Quote:
-Joe |
|
#40
|
|||
|
|||
|
Re: Black jaguars: not working
Which watchdog?
|
|
#41
|
||||
|
||||
|
Re: Black jaguars: not working
Quote:
|
|
#42
|
|||
|
|||
|
Re: Black jaguars: not working
Update:
ozrien: Yes to everything. I'm not sure what on the dashboard would appear for the Jaguar. However, everything looks dead (not seeing any relays, etc). I also get error -63194 at the start when I run over the RS232 port, that is: Code:
>>>ERROR: status == -63194 (0xFFFF0926) in InitJaguar() in C:/windriver/workspace/Spy/CANJaguar.cpp at line 32 |
|
#43
|
||||
|
||||
|
Re: Black jaguars: not working
One other thing to add to ellisk's report. When using the BDC-COMM application over RS-232 via a PC we are able to control the Jaguar and it's attached motor. It was thrilling to see a motor actually move! That seems to indicate the problem is not a physical one, at least using RS-232.
I'm about ready to pull the plug, so to speak, on CAN. We'd really like to use the advanced features of Jaguars, and love the way it cleans up the board, but we also need to get on with things. Ellisk is one of the most talented programmers our team has ever had -- four years on the team, four years of CS classes, Intel Science Talent Search finalist, etc. Do you folks have any final ideas??? |
|
#44
|
|||
|
|||
|
Re: Black jaguars: not working
Quote:
-Joe |
|
#45
|
||||
|
||||
|
Re: Black jaguars: not working
This makes sense. That explains the jittery behavior. Ellis I would not give up on CAN just yet. Try to verify the JAG firmware version number as 87 using either the 2CAN web dash or the BDC-com.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Serial to CAN Gateway in new Black Jaguars? | dmcguire3006 | Electrical | 54 | 26-01-2010 07:32 |
| Jaguars arent working | yoavh360 | Electrical | 6 | 19-01-2010 17:20 |
| Victors and Jaguars not Receiving Signal? | excel2474 | Electrical | 1 | 12-02-2009 16:41 |
| jaguars suddenly not working | Mr. E | Technical Discussion | 1 | 07-02-2009 21:09 |
| Jaguars working with 2.4 Ghz R/C | NOV8R | Technical Discussion | 0 | 09-01-2009 16:15 |