Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Using speed PID controlled mecanum with Holonomic Drive.vi (http://www.chiefdelphi.com/forums/showthread.php?t=132385)

GuyM142 08-01-2015 08:23

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.

Kevin Sevcik 08-01-2015 11:26

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?

Joe Ross 08-01-2015 12:03

Re: Using speed PID controlled mecanum with Holonomic Drive.vi
 
Quote:

Originally Posted by GuyM142 (Post 1424188)
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.

GuyM142 09-01-2015 04:19

Re: Using speed PID controlled mecanum with Holonomic Drive.vi
 
Quote:

Originally Posted by Joe Ross (Post 1424289)
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.

jman4747 13-01-2015 16:00

Re: Using speed PID controlled mecanum with Holonomic Drive.vi
 
1 Attachment(s)
Quote:

Originally Posted by GuyM142 (Post 1424830)
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.


All times are GMT -5. The time now is 08:51.

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