Roger
11-10-2006, 11:31
Our team is using EasyC-FRC (currently ver 2.7.0.2) this year. That's okay. Hey -- it's easy. But I need to get some starting point, and I always get hung up on something simple at the beginning. And if I don't know, how are my 20 programming kids going to know?
We have a 4-motor test robot, and we're going to use arcade (single joystick) driving. All of the examples in the Help file show the Tank mode, but no details on Arcade.
I've got the infinite While(1) loop okay; the joystick input okay using JoyX = AnalogOIInput(~~~) and JoyY = AnalogOIInput(~~~); and finally the OItoPWM(~~~) to send the info to the 4 motors. We do some magic calcs [1] with JoyX and JoyY to optimize our motors, etc, then send them to OItoPWM() -- how? Do we mix the X and Y somehow? How much goes to the left side motors and how much to the right side?
Or do we use the "Arcade - 4 motor" function block in the While loop instead, and be done with it?
Thanks for your help.
Roger.
[1] Magic calcs are currently to reduce the speed of the robot -- we have a small room to drive it.
We have a 4-motor test robot, and we're going to use arcade (single joystick) driving. All of the examples in the Help file show the Tank mode, but no details on Arcade.
I've got the infinite While(1) loop okay; the joystick input okay using JoyX = AnalogOIInput(~~~) and JoyY = AnalogOIInput(~~~); and finally the OItoPWM(~~~) to send the info to the 4 motors. We do some magic calcs [1] with JoyX and JoyY to optimize our motors, etc, then send them to OItoPWM() -- how? Do we mix the X and Y somehow? How much goes to the left side motors and how much to the right side?
Or do we use the "Arcade - 4 motor" function block in the While loop instead, and be done with it?
Thanks for your help.
Roger.
[1] Magic calcs are currently to reduce the speed of the robot -- we have a small room to drive it.