02-18-2012 04:39 PM
Hi fellow comrades!
I have a major problem when controlling motors. Considering that I only have 2 Motors moving my wheels, how can I program in labview a code that will say that instead of just stopping one side and turn the other side so it can make a turn, I want it to make both motor turn opposite way of course.
Thank you!
02-19-2012 07:30 AM
I'm not sure I understand your question completely, but have you looked at the Arcade Drive VI in the WPI palette? It's in the RobotDrive subpalette and it sounds like that's what you want. We're only using two motors and one joystick for all our control.
02-19-2012 07:49 AM
When turning your robot left or right, only ONE side moves and the other stays stationary. I want to program that when we turn either right or left, BOTH sides turns the opposite ways.
02-20-2012 09:00 AM
If you use the tank drive example this is the behavior you will see (you will need a second joystick though). You can also create your own motor control that writes out values to the motor control set speed VI's based on input from the joystick.
02-20-2012 06:00 PM
Great Idea Kevin! But... how do I do it? is it with the Motor Set Output icon? if Yes, then I think I can manage out the rest.
02-21-2012 08:57 AM
You will just need to replace the Arcade Drive VI in Teleop with the Tank Drive VI from the WPI Motor Drive Pallette