Go to Post water electricity=bad - Chuck Glick [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-08-2011, 22:33
camper365 camper365 is offline
Registered User
FRC #1599
 
Join Date: Feb 2009
Location: Virginia
Posts: 24
camper365 is an unknown quantity at this point
RobotDrive for CAN?

I'm new to using Windriver, we've been using Labview for the past 3 years, and I've been playing around enough to figure out the RobotDrive interface, but I was wondering if I can get it to work with CAN Jaguars. If not, where can I go to find basic documentation on how to program a CAN Jaguar system. I've done a lot of searching for how to use C++ for the CAN, but I can't really find anything that's basic on the software level (I found plenty on how to set up the hardware, which was incredibly nice).

EDIT: I found example code at FirstForge, and it made things make sense. Because I'm at home right now and won't have access to the robot until Monday, I won't know for sure if it works, but it looks like it will (meaning it won't).
http://firstforge.wpi.edu/integratio...ystem=exsy1002
__________________
The world only has as much power over you as you let it have.
Linux: Here's the computer, just do stuff.

Last edited by camper365 : 26-08-2011 at 22:50.
Reply With Quote
  #2   Spotlight this post!  
Unread 27-08-2011, 02:18
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: RobotDrive for CAN?

While we are on the topic of CAN, why would you need it? What are the advantages of CAN? Why not stick to the ol' PWM?
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Reply With Quote
  #3   Spotlight this post!  
Unread 27-08-2011, 06:25
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: RobotDrive for CAN?

Quote:
Originally Posted by camper365 View Post
EDIT: I found example code at FirstForge, and it made things make sense. Because I'm at home right now and won't have access to the robot until Monday, I won't know for sure if it works, but it looks like it will (meaning it won't).
http://firstforge.wpi.edu/integratio...ystem=exsy1002
Just a heads up, the CAN Jaguar project on FIRST Forge is deprecated I believe. CAN functionality is now built into WPILib itself. You want to use the CANJaguar class found in CANJaguar.h. It implements SpeedController, which means it can be passed into the constructor of RobotDrive.
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)
Reply With Quote
  #4   Spotlight this post!  
Unread 27-08-2011, 12:20
~Cory~'s Avatar
~Cory~ ~Cory~ is offline
Student
AKA: Cory Rypkema
FRC #0706
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Worcester MA
Posts: 216
~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold
Re: RobotDrive for CAN?

I hate to be "that" guy but, there is an entire subforum dedicated to
CAN. http://www.chiefdelphi.com/forums/fo...play.php?f=185
__________________
corin.rypkema.org
WPI Class of '17
'12 Dean's List Finalist, Mentor of 706 - Cyberhawks
Reply With Quote
  #5   Spotlight this post!  
Unread 28-08-2011, 22:32
Aren Siekmeier's Avatar
Aren Siekmeier Aren Siekmeier is offline
on walkabout
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: 대한민국
Posts: 735
Aren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond repute
Re: RobotDrive for CAN?

I don't know about C++, but in LabView the Open RobotDrive subroutine in WPILib is polymorphic and can either create a CANJaguar RobotDrive object or a PWM (Victor or Jaguar) RobotDrive object (or even a RobotDrive object from existing motor references). This may apply to C++ as well, having the same OO characteristics.
Reply With Quote
  #6   Spotlight this post!  
Unread 30-08-2011, 09:19
EricS-Team180's Avatar
EricS-Team180 EricS-Team180 is offline
SPAM, the lunchmeat of superheroes!
AKA: Eric Schreffler
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Stuart, Florida
Posts: 561
EricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond repute
Re: RobotDrive for CAN?

Quote:
Originally Posted by compwiztobe View Post
I don't know about C++, but in LabView the Open RobotDrive subroutine in WPILib is polymorphic and can either create a CANJaguar RobotDrive object or a PWM (Victor or Jaguar) RobotDrive object (or even a RobotDrive object from existing motor references). This may apply to C++ as well, having the same OO characteristics.
The same holds for the C++ WPIlib.

Why a CAN bus? Closed Minor Loop control and simplified wiring layout

Why not? with 9 years of Victor experience and 2 years of Jaguar experience, the nod for robustness goes to the Victors for now.

We really like the CAN bus but, will most likely revert to Vic's for the 2012 competition season. We'll see ...

Eric
__________________

Don't PANIC!
S. P. A. M.
Reply With Quote
Reply


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 03:05.

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