fixed errors in newly implemented Robot.calibrate