Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Forklift (http://www.chiefdelphi.com/forums/showthread.php?t=124832)

DarthMaulCIS 18-01-2014 13:00

Forklift
 
So we have a forklift on our robot that my team wants to be controlled by the joystick instead of a button. I don't know how i would go about that, as far as teleop.vi programming.

Invictus3593 18-01-2014 13:06

Re: Forklift
 
Tell us a little bit more about the forklift mechanism. How is it driven? What does it do?

DarthMaulCIS 18-01-2014 14:09

Re: Forklift
 
"Two miniCIM motors are connected to two sprockets via #25 chain. The motors are run in tandem to move the forks." As dictated by my teammate.

DarthMaulCIS 18-01-2014 14:10

Re: Forklift
 
They want it to be tied to the x-axis of our joystick. I am thinking it would be easier for everyone to have two buttons lower/lift the forklift instead.

Invictus3593 18-01-2014 14:22

Re: Forklift
 
You can read the joystick axis like a potentiometer (-1 to 1), then map the position of the forklift with a PID loop and some encoders using the joystick axis as the setpoint.

If you don't know how to use PID or what it is, a quick search on this site will bring up many helpful links. :D

Alan Anderson 18-01-2014 21:42

Re: Forklift
 
Do you want the joystick to control the speed of motion of the motors? You can just get the joystick x-axis value and wire it to a motor set function. That way, if the joystick is centered the motor does not turn, and the farther away from center the joystick is moved, the faster the motor turns.


All times are GMT -5. The time now is 09:46.

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