FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Autonomous (c++) Sample Code Problem

Hi everyone--

Thank you for viewing this thread. Hopefully, you'll be able to help us figure this out.

We've been trying to run the autonomous code that came with Wind River to no avail.

The iterative operation mode is working (with our own code), but NOT the sample autonomous.

Since we're able to control the robot in teleop, we believe that we've done all the necessary steps

to make sure our cRIO is properly updated, etc. Can anyone out there point us to the right direction

in order to run the sample autonomous code?

Thanks again,

RoboBOB369

p.s.

Attached is the C++ file we're working on.

0 Kudos
Message 1 of 4
(4,814 Views)

The problem is that you are waiting 2000 seconds before telling the robot to move...  The wait parameter takes a floating point number in seconds.

-Joe

0 Kudos
Message 2 of 4
(3,002 Views)

Was the 2000 from the example, or did you add that?


0 Kudos
Message 3 of 4
(3,002 Views)

Thank you to those of you who replied.

The attached code was inherited from last year's robot. I wasn't part of the team, yet, at that time.

The new programming group for our team is under the impression that WAIT(2000) means 2 seconds. DO'H! 🙂

We will definitely try to REDUCE that number dramatically to test the code on using the 2010 Control System parameters.

Thanks again! 

0 Kudos
Message 4 of 4
(3,002 Views)