![]() |
CAN user code fails to load
When I use #include "../CANJaguar/CANJaguar.h" and try to use the CANJaguar class the code crashes:
Code:
task 0x1319f60 (wtxC5124tmp) deleted: errno=196709 (0x30065) status=45106 (0xb032) |
Re: CAN user code fails to load
It looks like the actual CANJaguar class isn't in your project. You added the cpp files to your project as well as the h files, right?
EDIT: Your problem is you put the CANJaguar code as a separate project. The actual code isn't being built with your user code. If you put a folder reference in your project the the CANJaguar folder it should work, or you could just copy the files directly into your project (that's what we do) |
Re: CAN user code fails to load
I put the files in the project, and all of a sudden these errors popped up:
Code:
Build Started in Project 'Breakaway': 2010-02-17 20:35:30 |
Re: CAN user code fails to load
These are well known errors. You need to include the following line into your CANJaguar.cpp code just above the #include "ChipObject/NiRioStatus.h"
#include "ChipObject/NiRio.h" This will make the compile errors go away. HTH, Mike |
Re: CAN user code fails to load
That worked, thanks.
The robot reports this runtime error via console: Code:
>>>>ERROR: status == -52010 (0xFFFF34D6) in sendMessage() in D:/Eric/Documents/Projects/Robotics/workspace2/Breakaway/CANJaguar.cpp at line 176Code:
<Code>-52010 ERROR: status == -52010 (0xFFFF34D6) in sendMessage() in D:/Eric/Documents/Projects/Robotics/workspace2/Breakaway/CANJaguar.cpp at line 176 |
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. |
| All times are GMT -5. The time now is 02:44. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi