Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   CAN (http://www.chiefdelphi.com/forums/forumdisplay.php?f=185)
-   -   CAN setup troubles (http://www.chiefdelphi.com/forums/showthread.php?t=81989)

Radical Pi 05-02-2010 22:42

CAN setup troubles
 
Just today our team decided to switch to CAN for Jag control. We ordered a Black Jaguar and the serial-can connector and I'm trying to setup some test code for CAN. I downloaded the example from FIRSTForge and loaded it into Windriver. It complained about the CANJaguar folder not being a subfolder for the example so I copied it there, and then when I tried to do a straight compile from example I got a ton of errors in "ChipObject/NiRioStatus.h". Did I skip a step in setting up the CAN code? I really need to have it working soon

simpsonboy77 06-02-2010 02:09

Re: CAN setup troubles
 
modify the include header in CANJaguar.cpp
#include "CANJaguar.h"
#include "ChipObject/NiRio.h" <-add this line
#include "ChipObject/NiRioStatus.h"

http://www.chiefdelphi.com/forums/sh...ad.php?t=80706

Please note, I do not take credit for this, I mearly copied byteit101's response that worked for me.

EDIT: For future questions, you can usually find the answer faster if you use the search function. I just put in ChipObject/NiRioStatus.h and got several hits.

Radical Pi 06-02-2010 09:22

Re: CAN setup troubles
 
Thank you so much. It seems to compile just fine now


All times are GMT -5. The time now is 02:43.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi