public void gyroTurn(double speed,double angle){
  while (opModeIsActive() && !onHeading(speed,angle,P_TURN_COEFF)) {
    telemetry.update();
  }
}

public void gyroTurn ( double speed , double angle ) { while ( opModeIsActive ( ) && ! onHeading ( speed , angle , P_TURN_COEFF ) ) { telemetry . update ( ) ; } }
method to spin on central axis to point in a new direction . move will stop if either of these conditions occur : 1 ) move gets to the heading ( angle ) 2 ) driver stops the opmode running .
