![]() |
Arcade Drive with Speed PID?
Hi all,
My team has decided that we want to use Speed PID because they think it will be better for fine tuning on the bridge. However, the only problem I see with it is that we have to use Arcade Drive because our driver prefers it over anything else. We use the CAN Speed settings on our jaguars to indicate our velocity and we are wondering if we can use RobotDrive with the Speed PID. Note we are also using Master/ Slave mode. Do we have to come up with our own algorithm to do Arcade Drive in master slave mode or can we just use some of the Robot Drive functions given to us? |
Re: Arcade Drive with Speed PID?
From my experience, it will be most effective in the long run to completely create your own form of the drive code, it can still take in the inputs from the joysticks as Arcade Drive does, however you can take the values and figure out a PID setpoint and run the PID algorithm to calculate your motor speeds.
Joystick->PID->SpeedController If you need any help with any of this I am very experienced with writing custom drive codes for robots, feel free to send me a message if you need help... |
Re: Arcade Drive with Speed PID?
|
Re: Arcade Drive with Speed PID?
Quote:
|
Re: Arcade Drive with Speed PID?
Quote:
Otherwise, it wouldn't work very well. The input commands to an arcade algorithm are vehicle forward speed and vehicle rotational speed. The arcade algorithm performs a reverse kinematic calculation on those commands to determine the necessary left and right wheel speeds to give the commanded vehicle motion. The signals from the 2 wheel encoders are left and right wheel speed. In order to obtain a usable process variable to do what you have suggested, you would have to reverse-engineer the PID's reverse kinematic calculation to obtain a forward kinematic calculation, which you would then apply to the encoder signals to obtain estimated vehicle forward speed which could be used as a process variable. It would probably be a lot easier and cleaner to just write your own arcade code, and close the loop on left and right wheel speeds directly. |
Re: Arcade Drive with Speed PID?
Ether,
Your website link didn't work for me last time nor this time. Any thoughts? Anyone else unable to click to those links? bob |
Re: Arcade Drive with Speed PID?
Quote:
I just added a "www" to the link. Let me know if that fixes it. If not, I'll find a different web host. |
Re: Arcade Drive with Speed PID?
No go. Didn't help. :-(
bob |
Re: Arcade Drive with Speed PID?
Quote:
http://www.chiefdelphi.com/media/papers/2661 |
| All times are GMT -5. The time now is 12:57. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi