We Need a Little Bit Of Help...

its something so simple that its going over our heads…

we are wondering how to set up the robot’s attonomous to drive forward for 5 seconds, and drive in a circle for 10 seconds…

something so simple that, i cant even grasp the idea where to start…:ahh:

Will you be at NYC regional tomorrow? If so come and find Team 237 from CT and we’ll get you going.

thanks but we would try to get it working before we rush in the morning :yikes:

Okay, well just to get started, take a glance over at the thread over at Everything Must Go! Autonomous Extravaganza - Programming - Chief Delphi to get an idea how to start.

Or, you can just take the attached vi and modify it yourself. It’s pretty messy as it is, but it has the basic framework you need. All you need to do is change the case statement to x…y where x and y are the start and end time in ms (0…15000 means 0-15 s), then put what you want to do in the cases.

While the attached should be functional, I strongly recommend looking over it until you understand it. I’m not saying don’t use it, but you need to understand (or at least think you understand) exactly what is going into your code.

Autonomous Independent.vi (24.3 KB)


Autonomous Independent.vi (24.3 KB)

OK. If you need help later in the day we’ll be there.

If you open the default Autonomous Independent VI, it contains commented code that loops around in time-based pattern.

The diagram uses two primary VIs, the Drive VI to set the motor speeds, and the Wait and Feed. You can use sequences of these to carry out all sorts of patterns.

You can do the pattern you describe with as little as four VIs, two drives and two waits.

Think about what happens when driving the pattern in tele. What joystick values will flow into the drive. What would be the joystick positions for the first movement, and the next. Each time you want to change the motor speeds, execute a Drive, and to leave it that way for some time, use a Wait and Feed.

After you get the hang of it, you may want to modify this a bit to accelerate more slowly using either a few more blocks or a loop, but there is nothing complicated about the simple dead reckoning driving.

Greg McKaskle

team 56 helped us at nyc regionals.
they dont have any internet there :facepalm:
so thanks for the help greg.