Go to Post I've be addicted for 15 years. Tried to quit but failed. - Gdeaver [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 22-01-2012, 08:50
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Quote:
Originally Posted by jp1247 View Post
I suppose the question i have is, does the code actually create the communications between cRIO and jaguars? I have an error free deployed code, but the light on the jags continue to blink yellow (no signal).
Yes, it creates the communication. You use it just like the other objects after instantiation for open loop control. Start simple. Try using just one Jaguar to start with and set it to a constant value. Reuse the cable you made for programming the Jags to be sure that isn't a problem.

Does your Allen Bradley signal light blink? They moved the modules this year (not sure if other stuff is working). You also need to make sure the switch on the cRIO is set to off for the console. Check NetConsole for error messages.

C++ code

CANJaguar m_motor(5);
m_motor.Set(0.1);

Pretty simple most of the time. Or:

CANJaguar *m_motor;

m_motor = new CANJaguar(5);

m_motor->Set(0.1);

I think you have to use the latter to pass to RobotDrive...

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
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


All times are GMT -5. The time now is 13:06.

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