Skip to main content

CTRL-GT-ORDER-2

Status:Planned
Tags:ControllerGlobal Throttle
Last modified:

Purpose

CTRL-GT-ORDER-2 gives the throttle its own velocity. It is a damped second-order controller for smoother alpha adaptation.

Continuous-Time Form​

α¨+kdα˙+kp(ηαCctrl−χ)=0.\ddot{\alpha} + k_d\dot{\alpha} + k_p \left( \eta\alpha C^{\mathrm{ctrl}}-\chi \right) = 0.

For locally constant CctrlC^{\mathrm{ctrl}}, the equilibrium is:

α⋆=χηCctrl.\alpha^\star = \frac{\chi} {\eta C^{\mathrm{ctrl}}}.

Discrete-Time Form​

A practical discrete controller is:

vα,t+1=βvα,t+kα(χ−ηαtCtctrl),αt+1=αt+vα,t+1.\boxed{ \begin{aligned} v_{\alpha,t+1} &= \beta v_{\alpha,t} + k_\alpha \left( \chi-\eta\alpha_t C_t^{\mathrm{ctrl}} \right), \\ \alpha_{t+1} &= \alpha_t+v_{\alpha,t+1}. \end{aligned} }

Then clamp:

αt+1←clip⁡(αt+1,αmin⁡,1).\alpha_{t+1} \leftarrow \operatorname{clip}(\alpha_{t+1},\alpha_{\min},1).

Inputs​

InputMeaning
Δθtraw\Delta\theta_t^{\mathrm{raw}}raw optimizer update
η\etabase learning rate
CtctrlC_t^{\mathrm{ctrl}}curvature / sensitivity proxy
χ\chitarget stability margin
kαk_\alphaproportional gain on margin error
β\betavelocity retention / damping parameter
αmin⁡\alpha_{\min}optional floor

State​

StateMeaning
αt\alpha_tthrottle scalar
vα,tv_{\alpha,t}throttle velocity

Expected Behavior​

This controller should reduce ringing and abrupt alpha changes when tuned well. It has more knobs than the order-0 and order-1 controllers, so it should be tested after simpler controllers are understood.

Known Failure Modes​

  • underdamped oscillation if damping is too low,
  • slow response if damping is too high,
  • still unaware of fixed-point update floors unless quantization-aware logic is added.

Implementation Status​

Planned.