Ejemplo n.º 1
0
//functions for turning right
int pivot_right(){
	return pivot_right_speed(DEFAULT_SPEED);
}
Ejemplo n.º 2
0
/**
 * [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);
}