Remove redundant substring

This commit is contained in:
Cole Deck committed 2020-02-27 12:24:36 -06:00
1 parent c05b9462ad
commit 9c717e5456
1 file changed
-1
-1
View File
@@ -147,7 +147,6 @@ void autonomous(void) {
instructions = instructions.substr(y + 1);
y = instructions.find(" ", 5);
pos = strtod(instructions.substr(0, y).c_str(), NULL);
instructions = instructions.substr(y + 1);
TiltMotor.rotateTo(pos, degrees, vel, velocityUnits::pct, false);
wait(20, msec);
}