Skip to content
learnFRC.org
programmingreference

Feedforward Control (kS, kV, kA, kG)

Why open-loop model-based feedforward handles 90%+ of motor voltage, and how to calculate and calibrate gains for real mechanisms.

In high-performance robotics control systems, feedforward models the dominant voltage requirements from system physics, while feedback control corrects for unmodeled disturbances and tracking error.

Feedback control is inherently reactive: it cannot apply motor voltage until a tracking error has already occurred (e(t)≠0e(t) \ne 0). Feedforward control is predictive: based on desired target velocity, acceleration, and mechanism position, physics dictates the required electrical voltage.

V_output = V_feedforward(v, a, θ) + V_feedback(e)

(Where feedforward typically accounts for 90% to 95% of output voltage, and feedback provides 5% to 10%)

Interactive Simulator

Test the physical difference between feedforward and feedback in the PID & Feedforward Simulator by running the Untuned Elevator vs Tuned Elevator presets.


  • Units: Volts (VV)
  • Physical Meaning: The minimum voltage required to break Coulomb static friction in the gearbox, bearings, and bushings to initiate movement.
  • Directionality: Always applied in the direction of intended motion: kS⋅sgn(v)kS · sgn(v).
  • Units: Volts per unit velocity (V/(rad/s)V / (rad/s), V/(m/s)V / (m/s), or V/(rot/s)V / (rot/s))
  • Physical Meaning: The voltage required to sustain steady-state cruise velocity against motor back-electromotive force (back-EMF).
  • Formula: kV ≈ 12V / (Free Speed of Mechanism).
  • Units: Volts per unit acceleration (V/(m/s2)V / (m/s²) or V/(rot/s2)V / (rot/s²))
  • Physical Meaning: The voltage required to accelerate mechanism mass according to Newton’s second law (F=m⋅aF = m · a, τ=I⋅ατ = I · α).
  • Units: Volts (VV)
  • Physical Meaning: The continuous voltage required to hold mechanism mass stationary against gravity.
  • Elevators vs. Arms:
    • Linear Elevators: Gravity is constant regardless of height: V_G = kG
    • Single-Jointed Rotating Arms: Gravity torque varies with the cosine of the horizontal angle θθ: V_G = kG · cos(θ)

To calibrate feedforward on a live mechanism:

  1. Find kSkS: Slowly ramp open-loop voltage by 0.05V increments until the mechanism starts moving. The voltage where motion initiates is kSkS.
  2. Find kVkV: Spin the mechanism at a known constant velocity (for example, 50 rotations/sec). Measure the applied voltage in Tuner X. Subtract kSkS: kV = (V_measured - kS) / v_measured
  3. Find kGkG: For an arm or elevator, find the voltage where the mechanism balances horizontally without falling or climbing. That value is kGkG.
Tuner X Slot0 Configs

CTRE Phoenix 6 allows configuring kS,kV,kA,kGkS, kV, kA, kG directly into Slot0Configs, executing onboard at 1 kHz without roboRIO latency:

Slot0Configs slot0 = new Slot0Configs();
slot0.kS = 0.25; // 0.25V to overcome friction
slot0.kV = 0.12; // 0.12V per rot/s
slot0.kG = 0.40; // 0.40V to hold against gravity
Visualizing Feedforward

Test how balancing kGkG eliminates steady-state droop in our Interactive PID & Feedforward Simulator.

Verified Sources & Standards

Evergreen Standard Verified: Sep 24, 2026