package MotorControlSolution;

/**
 * <p>Feed-forward wheel velocity controller.</p>
 *
 * @author vona
 * @author prentice
 **/
public class WheelVelocityControllerFF extends WheelVelocityController {

  /**
   * {@inheritDoc}
   *
   * <p>This impl implements simple feed-forward control.</p>
   **/
  public double controlStep() {
    double result = 0;
    // Start Student Code
    result = desiredAngularVelocity * gain; // (Solution)
    // End Student Code
    return result;
  }

  /**
   * {@inheritDoc}
   *
   * <p>This impl returns "FF".</p>
   **/
  public String getName() {
    return "FF";
  }
}
