View Full Version : help --- drive other motors?
I'm able to drive my wheel motors using easy C Pro, the function block "Tank(), and it works fine. But when I try to use the same function to drive my other motors (used for the arm), it just doesn't work. Those motors for the arm are not the same model, but use the same voltage.
My question is whether there is a specific requirement (besides voltage) on the motors for the controller to be able to drive it?
Cow Bell Solo
15-03-2008, 15:31
I have not used Easy C, but here are my thoughts.
Are they connected to the correct PWMs?
Are supposed to be connected to Victors or Spikes?
Do you have the controller in the correct port on the OI?
Are they faulty wires you are using(bad PWM cable, shorted wire)?
Power connections are fully made and have contact?
Have a breaker and that it is not tripped?
Those are more of hardware issues and my thoughts. Hope it helps:)
Jimmy Cao
15-03-2008, 21:50
The "Tank" function, in my opinion, sets up drivetrain PWMs only. It takes two axis on joysticks, and sets them pwms (1-4 prob).
You need to use something more like pwm_xx (where xx is arm PWM) = p3_y (or something)
I dont use easy-C though, so i may be wrong.
Tank() at my best guess would be something that controls a tank drive (and seeing as it's being passed no arguments, I don't know why you'd think it'd work for any and all PWM connections.)
since I have no idea where Tank() is called, make a new function called Arm() or something and have the pwmxx = p4_x or such.
Mark McLeod
16-03-2008, 20:55
Use "OI to PWM" to control a single motor.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.