Go to Post If robotics is bad for you, well then I guess I'm gonna die. At least I'll die happy. - karinka13 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 08-01-2015, 08:23
GuyM142's Avatar
GuyM142 GuyM142 is offline
Registered User
AKA: Guy
FRC #3339 (BumbleBee)
Team Role: Mentor
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Israel
Posts: 158
GuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really nice
Question Using speed PID controlled mecanum with Holonomic Drive.vi

I'm trying to program mecanum drive with speed PID for each motor.
I want to do this in order to set the rotation speed of each wheel rather than setting power (-1 to 1).

I've noticed that it can be easily programmed using Talon SRX CAN,
but unfortunately our team will not get them soon and because they are out of stock we fear that we won't be able to get 8 of them for both competition and training robots.

So, I need help with programming mecanum drive with PID speed control because I don't know how to integrate this into the excellent Holonomic drive which I wish to keep using.

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-01-2015, 11:26
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,708
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Using speed PID controlled mecanum with Holonomic Drive.vi

Vex Robotics has Talon SRXs in stock. They'll even ship today if you order in the next 3 hours. Hurry!

Seriously, though. What's with everyone thinking SRXs are out of stock?
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #3   Spotlight this post!  
Unread 08-01-2015, 12:03
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Using speed PID controlled mecanum with Holonomic Drive.vi

Quote:
Originally Posted by GuyM142 View Post
I'm trying to program mecanum drive with speed PID for each motor.
I want to do this in order to set the rotation speed of each wheel rather than setting power (-1 to 1).

I've noticed that it can be easily programmed using Talon SRX CAN,
A Talon SRX isn't magic. Whether you try to run a velocity PID on the Talon, or in your LabVIEW code, tuning the PID control values is hard.
Reply With Quote
  #4   Spotlight this post!  
Unread 09-01-2015, 04:19
GuyM142's Avatar
GuyM142 GuyM142 is offline
Registered User
AKA: Guy
FRC #3339 (BumbleBee)
Team Role: Mentor
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Israel
Posts: 158
GuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really nice
Re: Using speed PID controlled mecanum with Holonomic Drive.vi

Quote:
Originally Posted by Joe Ross View Post
A Talon SRX isn't magic. Whether you try to run a velocity PID on the Talon, or in your LabVIEW code, tuning the PID control values is hard.
I know that, but I need help with adding PID control to normal controllers because the only examples I have seen use CAN.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-01-2015, 16:00
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 419
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Re: Using speed PID controlled mecanum with Holonomic Drive.vi

Quote:
Originally Posted by GuyM142 View Post
I know that, but I need help with adding PID control to normal controllers because the only examples I have seen use CAN.
You take the motor setting outputs from the Holonomic VI and multiply them by the max rpm value you will see from your encoders. Then wire the setting into the PID VI "set point" and the encoder rpm value into "process variable". The output range should be 1 to -1.
Attached Thumbnails
Click image for larger version

Name:	PID.PNG
Views:	90
Size:	11.1 KB
ID:	17836  
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620
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 20:13.

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