Skip to content

Signals And Controls ​

Reference notes on signals, transforms, linear feedback control, and nonlinear control.

Signals And Transforms ​

Signals describe quantities that vary over time, frequency, space, or another independent variable.

Common signal types:

TypeMeaning
Stepsudden change from one level to another
Ramplinearly increasing or decreasing signal
Impulseidealized concentrated input
Sinusoidperiodic signal with amplitude, frequency, and phase
Chirpsinusoid with changing frequency

The Laplace transform converts time-domain dynamics into the complex s-domain:

F(s)=∫0∞f(t)e−stdt

Linear differential equations then become algebraic relationships.

The Fourier transform represents signal content by frequency. Frequency-domain analysis is useful for bandwidth, phase lag, filtering, resonance, noise, and system identification.

For an LTI system, convolution relates input, impulse response, and output:

y(t)=∫0th(τ)u(t−τ)dτ

In the Laplace domain, convolution becomes multiplication:

Y(s)=H(s)U(s)

For a sinusoidal input at angular frequency ω, an LTI system response is described by evaluating the transfer function at:

s=jω

Sampling a continuous signal introduces a sample frequency fs. To avoid aliasing for content up to fmax:

fs>2fmax

Filtering can reduce noise, but it can also attenuate real signal content or introduce phase delay.

Digital filters operate on sampled data. A simple first-order low-pass filter can be written:

yk=αxk+(1−α)yk−1

where α controls the tradeoff between noise attenuation and lag.

The z-transform is the discrete-time analog of Laplace-domain analysis. It is useful for sampled-data controls, digital filters, stability of recursive algorithms, and discrete-time system identification.

Controls ​

Control systems use commands, feedback, and measurement to shape system response.

Open-loop control applies commands without measuring the output. Closed-loop control uses measured output to correct the command.

For reference tracking, the error is:

e(t)=r(t)−y(t)

where r(t) is the reference and y(t) is the measured output.

A transfer function relates output to input in the Laplace domain:

G(s)=Y(s)U(s)

For unity negative feedback:

T(s)=C(s)G(s)1+C(s)G(s)

Bang-bang control switches between discrete actuator limits:

u(t)={Umax,e(t)>0−Umax,e(t)<0

It is simple and robust in some relay-like systems, but can chatter or oscillate around the setpoint.

PID control is:

u(t)=Kpe(t)+Ki∫e(t)dt+Kddedt

The proportional term reacts to present error, the integral term accumulates past error, and the derivative term reacts to error rate. Integral action can remove steady-state error, but actuator saturation can cause windup if not handled.

Feedforward uses a model to supply the predictable part of the command:

u(t)=uff(t)+ufb(t)

Feedback then corrects disturbances, modeling error, and unmeasured effects.

Common response measures include rise time, settling time, overshoot, steady-state error, bandwidth, phase margin, gain margin, and phase lag.

Poles describe natural response. For a continuous-time linear system, stable poles generally require negative real parts.

Zeros shape forced response and can introduce non-minimum-phase behavior. A right-half-plane zero can make a system initially move opposite the desired direction, limiting achievable closed-loop speed even if the poles are stable.

Steady-state error depends on loop gain and system type. For unity feedback, the position error constant is:

Kpos=lims→0C(s)G(s)

The steady-state error to a unit step is:

ess=11+Kpos

Integral action increases low-frequency loop gain and can remove step steady-state error, but it also changes stability margins and saturation behavior.

Frequency response evaluates the transfer function on the imaginary axis:

G(jω)

Bode plots show magnitude and phase versus frequency. Root locus shows how closed-loop poles move as gain changes. Lead compensation can add phase and increase stability margin. Lag compensation can improve low-frequency gain and steady-state accuracy.

Gain margin and phase margin quantify how much loop gain or phase lag can be added before the closed-loop system reaches the stability boundary. They are not complete robustness proofs, but they are practical indicators of design fragility.

Root-locus design connects desired closed-loop pole locations to controller structure. Dominant pole placement is often used to target damping ratio and natural frequency:

s=−ζωn±jωn1−ζ2

Pole placement in state space chooses K so the eigenvalues of A−BK match desired closed-loop locations when the system is controllable.

Controllability describes whether inputs can move the state. For an LTI system, the controllability matrix is:

C=[BABA2B⋯An−1B]

Observability describes whether outputs contain enough information to infer the state:

O=[CCACA2⋮CAn−1]

State feedback uses:

u=−Kx

Observers estimate states that are not directly measured:

x^˙=Ax^+Bu+L(y−Cx^)

Control design depends on stability, controllability, observability, actuator limits, sensor noise, delay, robustness, and model accuracy.

Reference tracking with state feedback often requires a steady-state command or prefilter, not only u=−Kx. A common structure is:

u=uss−K(x−xss)

This separates equilibrium selection from transient regulation.

Linear quadratic regulation chooses feedback by minimizing:

J=∫0∞(xTQx+uTRu)dt

The matrices Q and R encode state-error and control-effort penalties. LQR does not replace engineering judgment. It gives a disciplined way to express tradeoffs once the model and state scaling are meaningful.

Robust control begins with the fact that every plant model is wrong outside some tolerance. Uncertainty can enter through parameters, unmodeled dynamics, delay, nonlinearities, disturbances, measurement noise, and actuator limits.

Nonlinear Dynamics And Control ​

Nonlinear systems are described by:

x˙=f(x,u)

Linearization near an operating point (x0,u0) gives:

Δx˙=AΔx+BΔu

where:

A=∂f∂x|x0,u0B=∂f∂u|x0,u0

Linearization can be useful near an operating point, but it may miss behavior that appears over larger regions.

An equilibrium point satisfies:

f(xe,ue)=0

Stability is local unless a global claim is proven. A system can be stable near one equilibrium and unstable near another, or stable for small disturbances but unsafe for larger ones.

Common nonlinear control ideas include feedback linearization, sliding-mode control, backstepping, Lyapunov analysis, and gain scheduling.

Lyapunov analysis uses an energy-like scalar function. For stability of the origin, a typical argument seeks:

V(x)>0x≠0V˙(x)≤0

Nonlinear control is sensitive to uncertainty, unmodeled dynamics, discontinuities, saturation, and actuator limits.

The region of attraction is the set of initial conditions that converge to a given stable equilibrium. Estimating that region is often more useful than only classifying the equilibrium itself.

LaSalle's invariance principle can prove convergence when V˙≤0 but not strictly negative everywhere. The trajectory must approach the largest invariant set contained where V˙=0.

Feedback linearization cancels nonlinear terms through input transformation. For some systems, it can produce linear error dynamics. Its weakness is that it depends directly on model accuracy and can expose unstable internal or zero dynamics.

Sliding-mode control defines a switching surface, often written:

s(x)=0

The control law drives trajectories toward that surface and then along it. Sliding control can be robust to matched uncertainty, but discontinuous switching can create chatter and excite unmodeled high-frequency dynamics.

Gain scheduling uses different locally valid controllers across operating regions. It is practical for nonlinear plants, but transitions, interpolation, and validity ranges must be validated directly.

Released as open-source vehicle simulation tooling.