Quasics2021Code/Mae/src/main/cpp/commands/PointTurnToAnAngleCommand.cpp
// Returns true when the command should end.
Returns true when the command should end.
Returns true when the command should end .
bool PointTurnToAnAngleCommand::IsFinished() {
  if(MathHelpers::inchesToDegreesConverter(std::abs(drivebase->GetLeftEncoderInInches())) >= angle - ((90/angle) * 11.25)){
    return true;
  }
  return false;
}
bool PointTurnToAnAngleCommand :: IsFinished ( ) { if ( MathHelpers :: inchesToDegreesConverter ( std :: abs ( drivebase -> GetLeftEncoderInInches ( ) ) ) >= angle - ( ( 90 / angle ) * 11.25 ) ) { return true ; } return false ; }
Returns true when the command should end.
Returns true when the command should end .