View unanswered posts | View active topics It is currently Fri Jan 30, 2015 12:59 am

Reply to topic  [ 2 posts ] 
Autonomous program does not wait for start. 
Author Message

Joined: Sat Aug 23, 2014 1:10 pm
Posts: 6
Post Autonomous program does not wait for start.
No sure what we are doing wrong but when we run the FCS and try to test our autonomous program it does not waitforstart. it just runs. We are trying to run a very simple drive forward command. We used the stock template with 3.63. Any thoughts?

#pragma config(Hubs, S1, HTMotor, HTServo, none, none)
#pragma config(Sensor, S1, , sensorI2CMuxController)
#pragma config(Motor, mtr_S1_C1_1, motorD, tmotorTetrix, openLoop, reversed)
#pragma config(Motor, mtr_S1_C1_2, motorE, tmotorTetrix, openLoop)
#pragma config(Servo, srvo_S1_C2_1, servo1, tServoNone)
#pragma config(Servo, srvo_S1_C2_2, servo2, tServoNone)
#pragma config(Servo, srvo_S1_C2_3, servo3, tServoNone)
#pragma config(Servo, srvo_S1_C2_4, servo4, tServoNone)
#pragma config(Servo, srvo_S1_C2_5, servo5, tServoNone)
#pragma config(Servo, srvo_S1_C2_6, servo6, tServoNone)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//

// Autonomous Mode Code Template
// This file contains a template for simplified creation of an autonomous program for an TETRIX robot
// competition.
// You need to customize two functions with code unique to your specific robot.

#include "JoystickDriver.c" //Include file to "handle" the Bluetooth messages.

// initializeRobot
// Prior to the start of autonomous mode, you may want to perform some initialization on your robot.
// Things that might be performed during initialization include:
// 1. Move motors and servos to a preset position.
// 2. Some sensor types take a short while to reach stable values during which time it is best that
// robot is not moving. For example, gyro sensor needs a few seconds to obtain the background
// "bias" value.
// In many cases, you may not have to add any code to this function and it will remain "empty".

void initializeRobot()
// Place code here to sinitialize servos to starting positions.
// Sensors are automatically configured and setup by ROBOTC. They may need a brief time to stabilize.


// Main Task
// The following is the main code for the autonomous robot operation. Customize as appropriate for
// your specific robot.
// The types of things you might do during the autonomous phase (for the 2008-9 FTC competition)
// are:
// 1. Have the robot follow a line on the game field until it reaches one of the puck storage
// areas.
// 2. Load pucks into the robot from the storage bin.
// 3. Stop the robot and wait for autonomous phase to end.
// This simple template does nothing except play a periodic tone every few seconds.
// At the end of the autonomous period, the FMS will autonmatically abort (stop) execution of the program.

task main()

waitForStart(); // Wait for the beginning of autonomous phase.

//// ////
//// Add your robot specific autonomous code here. ////
//// ////

while (true)

Sat Dec 13, 2014 1:43 pm
User avatar

Joined: Sat Aug 31, 2013 9:15 am
Posts: 252
Post Re: Autonomous program does not wait for start.
With Natural Language in ROBOTC 3.62, the joystick stuff does not automatically work. You'll have to call

at the beginning of your program to get your robot to read messages from the FCS.

FTC Team 6100 Chariots of Fire - Programmer (2012-2013)
FTC Team 7468 Blue Chariots of Fire - Programmer (2013-2014)
FTC Team 7468 Blue Chariots of Fire - Mentor (2014-2015)
Check out our team website at

Mon Dec 15, 2014 11:51 am
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.