Go to Post "If I had a nickel for every time our robot actually worked, I'd have one whole nickel. It was fail. Epic fail." - lol, a team at the NYC FTC tourny - Akash Rastogi [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 8 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 31-01-2015, 13:07
kinganu123 kinganu123 is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Piscataway, NJ
Posts: 243
kinganu123 is on a distinguished road
Syncing CANJaguars with PID?

So we have 3 motors (and therefore 3 CANJaguars) hooked up to drive our elevator. Since only one encoder is needed on the output shaft, only one of the jags has the encoder hooked up to it. My question is, is it possible to use the internal position PID that the CANJaguars use and sync it up with the other 2 Jaguars, or should we just go with one external PIDController?
Also, we feel that getting the speed of the pid-enabled jag and setting it to the same as the other two will have some downsides to it, so we want to avoid that option.
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2015, 14:32
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Syncing CANJaguars with PID?

You should run the PID in the roboRIO or use Talon-SRXs. Trying to use the Jaguar PID with three Jags will cause you nothing but headaches.
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2015, 14:57
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,043
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: Syncing CANJaguars with PID?

Quote:
Originally Posted by RufflesRidge View Post
You should run the PID in the roboRIO or use Talon-SRXs. Trying to use the Jaguar PID with three Jags will cause you nothing but headaches.
Agreed.

But I'm curious: Has anyone ever tried reading the voltage on the leads of the motor attached to the master Jag (the one with the encoder) and using that voltage to send commands to the other two Jags (set to voltage mode)? Did it work?


Attached Thumbnails
Click image for larger version

Name:	CAN Jag sync.png
Views:	11
Size:	8.2 KB
ID:	18076  
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2015, 16:25
kinganu123 kinganu123 is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Piscataway, NJ
Posts: 243
kinganu123 is on a distinguished road
Re: Syncing CANJaguars with PID?

Yeah, we may test it, just for kicks.
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2015, 17:32
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,043
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: Syncing CANJaguars with PID?

Quote:
Originally Posted by kinganu123 View Post
Yeah, we may test it, just for kicks.
You might want to post your custom circuit here for comment before doing so.


Reply With Quote
  #6   Spotlight this post!  
Unread 04-02-2015, 13:04
cstelter cstelter is offline
Programming Mentor
AKA: Craig Stelter
FRC #3018 (Nordic Storm)
Team Role: Mentor
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Mankato, MN
Posts: 77
cstelter will become famous soon enough
Re: Syncing CANJaguars with PID?

Our experience with using CAN Jags and java programming (from 3 years ago) was that there was an extraordinary delay associated with CAN traffic. see http://www.nordicstorm.org/Resources...2/Default.aspx for details.

We coded the same test in C++ and saw nearly no delay associated with CAN.

So I think the latencey of the CAN/read + slave Jag reaction would make or break this thought of reading the output voltage on one Jag and transferring it. Things may be very easily done with our faster RIO.
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 11:01.

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