Problem 1:
[LIST=1]
*]Autonomous starts sucessfully
*]Checks a sensor to see if the value is less than the “max”, if not, moves the arm up
*]For some reason the arm drops after ~1 second and then tries to raise again
*]Repeatedly does this
[/LIST]
Code Example:
int armVal = SensorValue[armPotentiometer];
while(armVal <= ARM_MAX)
{
armVal = SensorValue[armPotentiometer];
motor[elevLeft1] = 90;
motor[elevLeft2] = 90;
motor[elevRight1] = 90;
motor[elevRight2] = 90;
}
The problem is that the robot will never make it to the ARM_MAX variable and therefore will continue to move up a little bit and then drop. Does anyone know of a way to resolve this?
**Problem 2:
[LIST=1]
*]Compile and download program
*]Open VEX Competition Control in RobotC
*]Click “User Control”
*]Press start on the debugger window
*]Autonomous starts
[/LIST]
I’m not too sure what an example code for this would be so I am not including one. It is just a basic autonomous that prints out to an LCD screen. Does anyone know of anyway to solve this?**