First Time User

Hi There,

Have inherited a kit and have built a robot for toss up - regional final on thursday.

Have just got easy c and want to get the robot moving.

I’ll probably be diverted to another thread but I just don’t know which one to look at, and was hoping for a shortcut. :slight_smile:

Can someone give me the coding for the controller please? Juust to be able to drive it around.

Twist is, the surround which the retaining clips plug in to for the motor plugs have disappeared, so will it work if I plug the motors in to the digital ports?

We have 4 x 393 motors (front and rear left, front and rear right). We want the right toggle to drive both the right motors at the same time (and the same for the left toggle). Push forward to drive forward.

Thanks in advance!

Al

Hi,

To practice - Creating a new standalone project. Select a Joystick Project.

Create a while loop (while 1)
Inside the while loop drag a tank - 4 motor command.
enter the appropriate values for motor ports. You code will look similar to this:

#include “Main.h”

void main ( void )
{
while ( 1 )
{
Tank4 ( 1 , 3 , 2 , 2 , 3 , 4 , 5 , 0 , 0 , 0 , 0 ) ;
}
}

For your competition you’ll need to select a new competition project. field control. Enter the tank code into the existing while loop under the operator control tab.

Good luck

thank you very much