Autonomous Gyro
Tags: Autonomous and GyroPersonhours: 1
Task:Create Autonomous deploying from ramp utilizing gyro
A simple idea for autonomous was to use dead reckoning, with command such asmotor[leftWheel]=100;
motor[rightWheel]=100;
wait10Msec(100);
motor[leftWheel]=0;
motor[rightWheel]=0;
However, the problems included an inability to correct movement if one side of the wheels had less power than the other. Gyro was giving us multiple errors, with methods such as GoYonderGyro(); having similar functions such as GyroTurn(); We figured out that the variables needed to be reinitialized at the beginning for values such as for the motors and servos. Now, with gyros, instead of the above code, those lines are replaced with:
GoYonderGyro(20, 50, 0);
Reflections:
The simplicity of gyro allows us greater capability with drive control and precision with autonomous. The self-adjusting values also allows the robot to remain in a linear path besides one that is curved.
Date | February 7, 2015