Constraints and Criteria
Constraints List
Position the robot on the home base
Robot automatically maneuvers over the line till the end position
Robot does not drop into the abyss surrounding the abyss
Criteria List
Navigate the path without running over the boundaries.
Smoothly pick up and drop object into the abyss.
All functions programmed on the robot work as planned.

CODE


#pragma config(Sensor, in1,    rights,         sensorLineFollower)
#pragma config(Sensor, in2,    cen,            sensorLineFollower)
#pragma config(Sensor, in3,    lefts,          sensorLineFollower)
#pragma config(Motor,  port2,           rightm,        tmotorVex393_MC29, openLoop, driveLeft)
#pragma config(Motor,  port3,           leftm,         tmotorVex393_MC29, openLoop, driveRight)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//
task main()
{
    int x = SensorValue[lefts];
    robotType(recbot);
    lineTrackForTime(500, 2800, rights, cen, lefts);

}

You may also like