OCCRA
Go to Post It made me want to do a swerve drive, but then I smacked myself. - Nemo [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
CD-Events   CD-Media   CD-Spy   FRC-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 04-05-2010, 05:09 PM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 6,107
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Gray Jaguar CAN closed-loop speed control

Was any team successful in running closed-loop speed control this season with Gray Jaguars with the optical encoder signals going directly to the Jaguars ?

If so, I have a LabVIEW programmer here who would like to work on this off-season because he never got a chance to do it this year, and he has some questions.

My understanding is the following:

- he will have to update the firmware on the jags

- he will have to use some sort of 3rd-party RS232-to-CAN converter bridge (because the Gray Jags do not have this functionality)

- there is no built-in support for the Jaguar CAN interface in the 2010 FRC LabVIEW installation, so he will have to use 3rd-party VIs from WPI located at http://firstforge.wpi.edu/sf/projects/canjaguar

- the 3rd-party WPI VIs do not support all the control and monitoring capabilities that the Jaguar offers (or so I am told)

Is the above correct? Are there any other issues to be aware of?

Finally, is there a technical document for the Gray Jaguars that explains the Jag's API in sufficient detail that he could develop his own VI if he wanted?

Thank you.


~
Reply With Quote
  #2   Spotlight this post!  
Unread 04-05-2010, 06:58 PM
timmmoore timmmoore is offline
Registered User
FRC #1899
 
Join Date: Mar 2008
Location: Bellevue
Posts: 18
timmmoore is on a distinguished road
Re: Gray Jaguar CAN closed-loop speed control

We used 1 black jag for rs232/can and encoder, 3 greys with encoder and 1 grey using limit switches. The 1 black and 3 greys were for a mecanum drive, the 4th was for our arm.
1. Update firmware to 90 or 91 on both black/grey
2. we used 1 black jag as the interface
3. We used version 39 from WPI + mods
4. version 39 has a lot more monitoring, see the speed control tuning vi and dashboard. We used current, limit switches and speed monitoring back to our dashboard for testing/debug
5. If you want to use mecanum you will need to mod the CAN mecanum for speed control - not that difficult or I can find our changes.
For some reason in speed mode the motor invert on the open isn't passed through, we modified the vi to handle the invert booleans
Reply With Quote
  #3   Spotlight this post!  
Unread 04-06-2010, 11:59 AM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 6,107
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Gray Jaguar CAN closed-loop speed control

Quote:
Originally Posted by timmmoore View Post
we used 1 black jag as the interface
Are you aware of any teams which did not have black jag and used a 3rd party interface successfully?


Quote:
Originally Posted by timmmoore View Post
If you want to use mecanum you will need to mod the CAN mecanum for speed control
Does the 3rd-party (WPI) CAN mecanum VI use the Jag's built-in PID speed control, or is that the mod you are talking about ?

Was your team's primary motivation for using CAN to get speed control?

If so, did you do this because open-loop voltage control did not give the driver satisfactory control of the robot in TeleOp?

Did you use the Jag's position control in autonomous for more accurate positioning?


~
Reply With Quote
  #4   Spotlight this post!  
Unread 04-06-2010, 12:19 PM
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Gray Jaguar CAN closed-loop speed control

Quote:
Originally Posted by Ether View Post
Are you aware of any teams which did not have black jag and used a 3rd party interface successfully?
I know of many teams that used the 2CAN as an ethernet-CAN interface, nothing else was FRC-legal
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #5   Spotlight this post!  
Unread 04-06-2010, 12:20 PM
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,596
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Gray Jaguar CAN closed-loop speed control

Quote:
Originally Posted by Ether View Post
Are you aware of any teams which did not have black jag and used a 3rd party interface successfully?

~
I only got to go to one regional this year, but I saw a fair number of teams using CrossTheRoad's 2CAN.
Reply With Quote
  #6   Spotlight this post!  
Unread 04-06-2010, 02:38 PM
timmmoore timmmoore is offline
Registered User
FRC #1899
 
Join Date: Mar 2008
Location: Bellevue
Posts: 18
timmmoore is on a distinguished road
Re: Gray Jaguar CAN closed-loop speed control

Quote:
Originally Posted by Ether View Post
Are you aware of any teams which did not have black jag and used a 3rd party interface successfully?

~
We were the only team I saw at the Seattle regional using CAN.

Quote:
Originally Posted by Ether View Post
Does the 3rd-party (WPI) CAN mecanum VI use the Jag's built-in PID speed control, or is that the mod you are talking about ?
~
That was the mod I was talking about. We had code for both the original mecanum vi and the modified vi and we used the CRio USER1 switch to switch between them. This was because we have had relability issues with encoders in previous years and we wanted a way to try both.

Quote:
Originally Posted by Ether View Post
Was your team's primary motivation for using CAN to get speed control?
~
We wanted it for autonomous but we didn't get the time to test with and without speed control. We used both during the regional, a wire broke on one of the encoders and we switched speed control off. The feedback from the drivers was it drove better without speed control though that may have been because they were driving with the wiring problem before we found we had a problem.

Quote:
Originally Posted by Ether View Post
If so, did you do this because open-loop voltage control did not give the driver satisfactory control of the robot in TeleOp?
~
The drivers found open-loop was easier to drive, we havent had a chance to find out why.

Quote:
Originally Posted by Ether View Post
Did you use the Jag's position control in autonomous for more accurate positioning?
~
Never got to test that.
Reply With Quote
  #7   Spotlight this post!  
Unread 04-13-2010, 10:10 PM
timmmoore timmmoore is offline
Registered User
FRC #1899
 
Join Date: Mar 2008
Location: Bellevue
Posts: 18
timmmoore is on a distinguished road
Re: Gray Jaguar CAN closed-loop speed control

Here you go, this is the CAN version 39 from WPI with our extensions. The new files are:

CAN Jaguar Set Output Speed.vi
CAN Jaguar - Open4MotorSpeed.vi
CAN Jaguar - MecanumDrive_PolarSpeed.vi

we also updated CAN Jaguar HolonmicDrive.vi so PolarSpeed is another option within it.

Tim
Attached Files
File Type: zip CAN1899.zip (903.4 KB, 37 views)
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with CAN bus closed-loop speed control RoboGuy Programming 16 04-14-2010 11:34 AM
Closed Loop Speed Control kgzak NI LabVIEW 16 03-29-2010 08:27 PM
closed-loop torque (current) wheel control for mecanum Ether Programming 3 02-06-2010 11:54 PM
PID control loops - closed loop feedback KenWittlief Technical Discussion 56 04-26-2004 08:27 PM
How Can You Make A Closed Loop System???? GRR_340 Pneumatics 6 03-21-2002 11:27 AM


All times are GMT -5. The time now is 04:33 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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