Too Much Code??

When i write the code, for example a 4 wheel drive system and i build and run it works through the driver station. but when i add to the code, say for example a motor, nothing works. but when i make a code only for that motor, it works. i just can’t get them together. Help? could it be the classmate being stupid?:confused:
ps. the driver station says one loop could be starving another.

Can you post a screencap of your code, so we can get a better idea of what the problem is?


<a href=“http://tinypic.com?ref=24o5ca9” target="_blank"><img src=“http://i51.tinypic.com/24o5ca9.jpg” border=“0” alt=“Image and video hosting by TinyPic”></a>
http://i51.tinypic.com/i4imxi.jpg
<a href=“http://tinypic.com?ref=i4imxi” target="_blank"><img src=“http://i51.tinypic.com/i4imxi.jpg” border=“0” alt=“Image and video hosting by TinyPic”></a>

Didn’t you post this in another thread also?

Anyway, one problem is that you have two robot drives. The robot drive vi is only meant for the wheels. For other motors (like on your arm, or your claw), you want to use the normal “motorcontrol” vi (it’s under actuators).

You open it in begin the same way you would for the robot drive motors. In teleop, you just wire the joystick value to it and it’s golden.

Correction, there are actually three robot drives. I can’t think if a reason why you can’t have multiple, but if nothing else, it is confusing everyone who expects to see motors.

First thing I’d do is to change the arm blocks in Begin to be Motor Opens and Motor stores. Next change the Teleop arm blocks to Motor Set Output. These are on the Actuators palette, top left.

Also look at the Diagnostics tab of the driver station to see if errors are being reported. Handling unwired errors has a high CPU overhead. If you know how to fix the errors, do so, otherwise post them on the forum.

Greg McKaskle