RoboCatz.com

Program 4 (Fall 2019)


The code below is a set of functions, variables, constants, and algorithms that are the work of RoboCatz for the Fall 2019 season.

syncMotors( 2, 3, -30,40 )
var motorPower = 30

while(encoderValue( 2 )<1080 ) {
}
while( true) {
  //setMotor(2,motorPower);
  resetEncoder( 2 );
  while( touchSensorValue() == 0 ) {
    clearScreen()
    drawText(10,10,encoderValue(2))
    sleep(10)
  }

  encoder=encoderValue(2)
  alert(encoder)
  syncMotors( 2, 3, 100 )
  sleep(encoder*20)

}