//functions for turning right int pivot_right(){ return pivot_right_speed(DEFAULT_SPEED); }
/** * [pivotRobot - helper function for toggling between rotations] * @param turnSpeed [input motor speed] */ void pivotRobot(int turnSpeed){ if (toggleTurn) pivot_left_speed(turnSpeed); else pivot_right_speed(turnSpeed); }