I have looked and looked and cannot figure out what I am doing wrong.
Below is my code, and below it I will paste the error codes. Probably something simple I am overlooking.
Thanks in advance!
#pragma config(Motor, port2, rightMotor, tmotorServoContinuousRotation, openLoop, reversed)
#pragma config(Motor, port3, leftMotor, tmotorServoContinuousRotation, openLoop)
#pragma config(Motor, port4, intakeMotor, tmotorServoContinuousRotation, openLoop)
#pragma config(Motor, port5, armMotor, tmotorServoContinuousRotation, openLoop)
//!!Code automatically generated by ‘ROBOTC’ configuration wizard !!//
#pragma platform(VEX)
//Competition Control and Duration Settings
#pragma competitionControl(Competition)
#pragma autonomousDuration(15)
#pragma userControlDuration(90)
#include “Vex_Competition_Includes.c” //Main competition background code…do not modify!
/////////////////////////////////////////////////////////////////////////////////////////
//
// Pre-Autonomous Functions
//
// You may want to perform some actions before the competition starts. Do them in the
// following function.
//
/////////////////////////////////////////////////////////////////////////////////////////
void pre_auton()
{
// Set bStopTasksBetweenModes to false if you want to keep user created tasks running between
// Autonomous and Tele-Op modes. You will need to manage all user created tasks if set to false.
bStopTasksBetweenModes = true;
// All activities that occur before the competition starts
// Example: clearing encoders, setting servo positions, ...
}
/////////////////////////////////////////////////////////////////////////////////////////
//
// Autonomous Task
//
// This task is used to control your robot during the autonomous phase of a VEX Competition.
// You must modify the code to add your own robot specific commands here.
//
/////////////////////////////////////////////////////////////////////////////////////////
task autonomous()
{
StartTask(autonomous);
startMotor(leftMotor, 100);
startMotor(rightMotor, 100);
wait(1.5);
stopMotor(leftMotor);
stopMotor(rightMotor);
}
Error:Undefined procedure ‘startMotor’.
Error:Too many parameters specified. Call to ‘startMotor’. Parameter: ‘N/A’ is ‘leftMotor’ of type ‘tMotor’.
Error:Too many parameters specified. Call to ‘startMotor’. Parameter: ‘N/A’ is ‘rightMotor’ of type ‘tMotor’.
Error:Undefined procedure ‘wait’.
Error:Too many parameters specified. Call to ‘wait’. Parameter: ‘N/A’ is ‘1.5’ of type ‘float’.
Error:Undefined procedure ‘stopMotor’.
Error:Too many parameters specified. Call to ‘stopMotor’. Parameter: ‘N/A’ is ‘leftMotor’ of type ‘tMotor’.
Error:Too many parameters specified. Call to ‘stopMotor’. Parameter: ‘N/A’ is ‘rightMotor’ of type ‘tMotor’.