Module 3/5 · Weeks 7–9 · 27 h

Motion control

UAT 463 Smart Robotics and Automation

About 95 minDraft, awaiting reviewLast updated 23 October 2026

Lesson

By the end of this module you will be able to

  1. Identify a first-order-plus-delay model of a joint from a step test and tune a PI controller with the SIMC rule
  2. Choose a sampling period from the encoder resolution and the delay that the period adds
  3. Design a cascaded position loop and prevent integral windup when the arm is blocked
  4. Build a dynamic model of a two-joint arm and check it with energy
  5. Compare PD, PD with a gravity term and computed torque, including the effect of a wrong model
  6. Choose the motor and gear ratio of a joint and a drive wheel from the load over the cycle, checking current, voltage and RMS torque

Prerequisites: UAT 206 Fundamentals of Control and Autopilot Systems Module 3 (PID controllers and integral windup) · UAT 305 Autopilot and Control Technology Module 2 (cascade control) · UAT 463 Module 2 (trapezoidal profiles)

Why this matters

Module 1 told MM-1 where the parcel is, and module 2 let it decide and plan a path. None of that matters if the joints do not follow the command. Motion control turns the planned path into real motor voltages and torques. The 3 mm error budget at the hand from module 1 is eaten entirely if the arm tracks its path half a degree off.

Readers already know PID and cascade control from UAT 206 and UAT 305. This module does not repeat them. It answers the questions that follow when the ideas meet a real arm: where do the gains come from (identify a model from data, then tune by rule), what sampling period is right (an encoder that is too coarse or a loop that is too fast both cost you), what happens when the arm is blocked (saturation and integral windup), and when the arm is heavy and fast, is one PID per joint enough (use a dynamic model). Every example uses the joint motor and two-joint arm of MM-1 in the battery-swap cell (all values assumed).

Nested loops on one joint

One MM-1 joint consists of a DC motor, a gearbox, a driver and an encoder. The usual control structure is three nested loops. The innermost loop regulates motor current or voltage inside the driver, the middle loop regulates speed with a PI controller, and the outer loop regulates position with a P controller. Each loop creates the command for the loop inside it (Lynch & Park, 2017, Section 11.3, call a loop that accepts a speed command this way motion control with velocity inputs). The cascade rule from UAT 305 still applies: the inner loop must be much faster than the outer one, and tuning goes from the inside out.

This module drops the current loop so the examples are small enough to run in seconds. The driver therefore accepts a voltage command directly (limited to 12 V), and the encoder has 1,024 lines, which decode as x4 into 4,096 counts per turn (module 4 explains the decoding). Examples 1 to 3 write the loop on the motor shaft, ahead of the gearhead: the encoder sits on the motor, the speeds and angles are motor values, and kg m² is the rotor plus the load of a light joint (such as the wrist) referred through the gear as (all values assumed). From Example 4 on, the arm model works on the joint side, where the shoulder inertia is about 0.44 kg m²; Example 7 shows how the two sides are linked.

Block diagram of one joint loop. The position command enters a summing point, then a P controller and a speed limiter, giving the speed command. That enters a second summing point, then a PI controller, a driver limited to 12 volts, and the motor with the joint. The encoder sends position back to the first summing point and, through a block that takes the difference and divides by the sampling period, sends speed back to the second summing point
Figure 1 Cascaded control loop of one joint

Identify the joint model with a step test

Good tuning starts from a measured model, not from guessing. The shop-floor method is to apply a voltage step in open loop and watch the speed response. A DC-motor joint is usually well approximated by a first-order-plus-delay model (FOPDT)

where is the steady-state gain ((rad/s) per volt), the time constant and the apparent delay, which lumps together electrical lag, sampling and holding the command. From this model Skogestad (2003) gives the SIMC rule, which delivers the PI gain and integral time directly with a single tuning parameter , the desired closed-loop response time:

Skogestad recommends for a fast response that stays robust to model error, and a larger when you want less control effort or more robustness. The code uses the standard PI form .

Example 1 Step test and PI tuning of the joint speed loop

Simulate the joint (electrical and mechanical parts, a 4,096-count encoder, a digital controller every 1 ms). Apply 6 V in open loop, fit an FOPDT curve to the measured speed, then tune the PI at equal to 1, 3 and 10 times the delay, commanding 100 rad/s.

import numpy as np
from scipy.optimize import least_squares

# the DC motor of an MM-1 joint (assumed values)
R, L, KT, KE, J, B = 1.2, 0.8e-3, 0.05, 0.05, 2.0e-5, 1.0e-5   # ohm, H, N m/A, V s/rad, kg m^2, N m s/rad
DT, CPR, VMAX = 5e-5, 4096, 12.0                            # simulation step 0.05 ms, counts per revolution after x4, voltage limit
Q = 2 * np.pi / CPR                                         # encoder resolution, rad

def run(ctrl, T, Ts=1e-3, block=(9.0, 9.0)):
    # run a digital loop every Ts: speed from counts, voltage held constant over the period
    w = i = th = 0.0; prev = 0; log = []
    for k in range(int(round(T / Ts))):
        c = int(np.floor(th / Q)); y = (c - prev) * Q / Ts; prev = c
        u = float(np.clip(ctrl(k * Ts, y, c * Q), -VMAX, VMAX))
        for _ in range(int(round(Ts / DT))):
            i += DT * (u - R * i - KE * w) / L
            if block[0] <= k * Ts < block[1]: w = 0.0            # arm held by an obstacle: the shaft cannot turn
            else:
                w += DT * (KT * i - B * w) / J
                th += DT * w
        log.append((k * Ts, w, y, u, th))
    return np.array(log)

# 1) open-loop 6 V step test, then fit K, tau, theta of a first-order plus delay model
U0 = 6.0
d = run(lambda t, y, p: U0, 0.12)
t, ym = d[:, 0], d[:, 2]
model = lambda p, t: p[0] * U0 * (1 - np.exp(-np.maximum(t - p[2], 0) / p[1]))
fit = least_squares(lambda p: model(p, t) - ym, [10.0, 0.01, 0.001])
K, tau, theta = fit.x
print("fitted: K = %.2f (rad/s)/V, tau = %.2f ms, theta = %.2f ms, rms residual %.2f rad/s" % (K, tau * 1000, theta * 1000, np.sqrt(np.mean(fit.fun ** 2))))
print("physics: K = %.2f, tau = %.2f ms" % (KT / (R * B + KT * KE), 1000 * J * R / (R * B + KT * KE)))

# 2) the SIMC rule (Skogestad, 2003)
# the step starts exactly on a sample instant, so it misses the hold delay Ts/2: add it
theta_eff = theta + 0.5e-3
def simc(tau_c): return tau / (K * (tau_c + theta_eff)), min(tau, 4 * (tau_c + theta_eff))

def pi_loop(kc, ti, ref, Ts=1e-3):
    state = {"i": 0.0}
    def ctrl(t, y, pos):
        e = ref - y
        u = kc * (e + state["i"])
        if abs(u) < VMAX: state["i"] += e * Ts / ti          # stop integrating when the voltage saturates (anti-windup)
        return u
    return ctrl

def metrics(d, ref):
    w, t = d[:, 1], d[:, 0]
    rise = t[np.argmax(w >= 0.9 * ref)]
    over = max(0.0, (w.max() / ref - 1) * 100)
    out = np.where(np.abs(w - ref) > 0.02 * ref)[0]
    return rise * 1000, over, (t[out[-1]] + 1e-3) * 1000 if len(out) else 0.0

REF = 100.0                                                   # speed command, rad/s
print("tau_c | Kc    | tau_I ms | rise 90% ms | overshoot % | settle 2% ms")
for mult in (1, 3, 10):
    kc, ti = simc(mult * theta_eff)
    r = metrics(run(pi_loop(kc, ti, REF), 0.5), REF)
    print("%2d th | %5.3f | %8.2f | %11.1f | %11.1f | %12.1f" % (mult, kc, ti * 1000, *r))
fitted: K = 19.91 (rad/s)/V, tau = 8.93 ms, theta = 1.11 ms, rms residual 0.62 rad/s
physics: K = 19.90, tau = 9.55 ms
tau_c | Kc    | tau_I ms | rise 90% ms | overshoot % | settle 2% ms
 1 th | 0.139 |     8.93 |         7.0 |         0.2 |         22.0
 3 th | 0.070 |     8.93 |        11.0 |         0.3 |         17.0
10 th | 0.025 |     8.93 |        37.0 |         0.0 |         61.0

The fitted curve gives (rad/s)/V, matching the physics value of 19.90 closely. The time constant comes out at 8.93 ms, slightly below the physics formula’s 9.55 ms, because that formula neglects the electrical lag ( = 0.67 ms), which the FOPDT model folds into the delay ms. Notice that we add ms to get ms, because the step test starts exactly on a sample instant and so does not see the half-period of command holding that the closed loop will meet.

The tuning behaves as the rule says. is fastest (90% rise in 7 ms with 0.2% overshoot), but the gain V per rad/s means the first step must command V, above the 12 V limit, so the driver saturates at once. At the first command drops to 7.0 V and the rise slows to 11 ms, and at the response is too slow (37 ms). The table shows that closed-loop speed is a trade against control effort and robustness, not a number to push as high as possible.

Joint speed against time from 0 to 80 milliseconds for a 100 radians per second command. The pink line with tau c equal to 1 times the delay rises fastest, the blue line at 3 times is slower, and the green line at 10 times is slowest. No line shows visible overshoot
Figure 2 Step responses of PI tuned by SIMC at three values

Sampling period and encoder resolution

A digital controller measures speed from the change in counts over one period. If the encoder has CPR counts per turn, one count is radians, so the measured speed moves in steps of . Shortening the period makes the steps coarser and adds noise to the command; lengthening it adds delay (Brown et al., 1992 analyse this trade-off for velocity-estimation algorithms from encoder data; the count-per-period method in the code suits high speed, while timing the interval between pulses suits low speed). Choosing the period is therefore a design question about balance.

Example 2 Choosing the sampling period of the speed loop

Test from 0.25 to 10 ms using the same procedure each time: re-measure from a step test, add , then tune by SIMC at .

# 3) the sampling period Ts adds delay and coarse speed steps: try several values
def step_fit(Ts):
    d = run(lambda t, y, p: U0, 0.3, Ts)
    t, ym = d[:, 0], d[:, 2]
    f = least_squares(lambda p: model(p, t) - ym, [K, tau, Ts], x_scale=[10.0, 0.01, 0.001])
    return f.x[2]

def ripple(d):                                                 # standard deviation of the command voltage in steady state
    return d[d[:, 0] > 0.3, 3].std()

print("Ts ms | Q/Ts rad/s | theta_eff ms | Kc    | rise ms | overshoot % | command ripple V")
for Ts in (0.25e-3, 0.5e-3, 1e-3, 2e-3, 5e-3, 10e-3):
    th_s = step_fit(Ts) + Ts / 2                               # re-measure the delay at each Ts and add the hold delay Ts/2
    kc, ti = tau / (K * 2 * th_s), min(tau, 8 * th_s)          # SIMC with tau_c = theta
    d = run(pi_loop(kc, ti, REF, Ts), 0.5, Ts)
    r = metrics(d, REF)
    print("%5.2f | %10.2f | %15.2f | %5.3f | %7.1f | %11.1f | %16.3f" % (Ts * 1000, Q / Ts, 1000 * th_s, kc, r[0], r[1], ripple(d)))
Ts ms | Q/Ts rad/s | theta_eff ms | Kc    | rise ms | overshoot % | command ripple V
 0.25 |       6.14 |            0.84 | 0.266 |     5.5 |         0.2 |            0.731
 0.50 |       3.07 |            1.09 | 0.205 |     7.5 |         0.2 |            0.300
 1.00 |       1.53 |            1.61 | 0.139 |     7.0 |         0.2 |            0.079
 2.00 |       0.77 |            2.55 | 0.088 |     6.0 |         6.5 |            0.029
 5.00 |       0.31 |            5.68 | 0.039 |    15.0 |        10.3 |            0.005
10.00 |       0.15 |           11.04 | 0.020 |    20.0 |        14.8 |            0.001

At ms the speed step is as coarse as 6.14 rad/s (6% of 100 rad/s), and the controller amplifies that coarseness into a 0.73 V ripple (standard deviation) that heats the motor and makes noise, even though the step response looks good. At ms the ripple disappears but the rise time grows to 15 to 20 ms and overshoot reaches 10 to 15%, because the delay is larger. From 0.5 to 2 ms the rise times are similar (6 to 7.5 ms). The team picks ms, because a speed step of 1.53 rad/s is 1.5% of the working speed and the command ripple is only 0.079 V. A faster loop needs an encoder with finer resolution, not just a shorter period.

Cascaded position loop and integral windup

The outer position loop uses only a P controller, , and limits the speed command to the joint’s limit. The outer loop treats the inner loop as a first-order system with bandwidth . The rule of thumb is to keep below one fifth of , so that the inner loop is fast enough and the outer loop does not demand more than it can deliver.

Integral windup is what happens when the integral term of a PI controller keeps accumulating while the driver is already saturated. A real situation on an arm is the gripper pressing against the frame of the battery bay: the joint stops, but the controller still sees a large error. When the obstruction goes away the large accumulated value commands full voltage for a long time (Åström & Murray, 2021, Section 11.4). UAT 206 Module 3 introduced the effect; here we measure the damage on a blocked arm.

Example 3 The arm is blocked during a 3 rad move

The inner loop is the PI of example 1 at , the outer loop has per second, and the speed command is limited to 150 rad/s. Command a 3 rad (172 degree) move of the motor shaft and compare three cases: moving freely, blocked from 0.02 to 0.30 s with anti-windup (stop integrating while the voltage saturates), and blocked without it.

# 4) an outer position loop (P) around the inner speed loop (PI)
kc, ti = simc(3 * theta_eff)
w_in = 1 / (3 * theta_eff + theta_eff)                         # rough bandwidth of the inner loop, rad/s
KP_POS = 30.0                                                  # below w_in / 5
print("inner loop bandwidth about %.0f rad/s, outer gain %.0f 1/s (limit %.0f)" % (w_in, KP_POS, w_in / 5))

def cascade(ref_pos, wlim, antiwindup, Ts=1e-3):
    st = {"i": 0.0}
    def ctrl(t, y, pos):
        w_ref = float(np.clip(KP_POS * (ref_pos - pos), -wlim, wlim))       # the speed command is limited
        e = w_ref - y
        u = kc * (e + st["i"])
        if (not antiwindup) or abs(u) < VMAX: st["i"] += e * Ts / ti
        return u
    return ctrl

POS = 3.0                                                      # command a 3 rad (172 degree) move
print("case".ljust(37) + " | peak speed | overshoot % | settled within 1% at (ms) | saturated samples")
for label, blk, aw in (("free, anti-windup", (9.0, 9.0), True), ("blocked 0.02-0.30 s, anti-windup", (0.02, 0.30), True),
                       ("blocked 0.02-0.30 s, no anti-windup", (0.02, 0.30), False)):
    d = run(cascade(POS, 150.0, aw), 1.5, block=blk)
    t, w, th = d[:, 0], d[:, 1], d[:, 4]
    out = np.where(np.abs(th - POS) > 0.01 * POS)[0]
    print("%-37s | %10.1f | %11.2f | %25.0f | %17d" % (label, w.max(), 100 * (th.max() - POS) / POS, 1000 * (t[out[-1]] + 1e-3), (np.abs(d[:, 3]) >= VMAX - 1e-9).sum()))
inner loop bandwidth about 155 rad/s, outer gain 30 1/s (limit 31)
case                                  | peak speed | overshoot % | settled within 1% at (ms) | saturated samples
free, anti-windup                     |       75.2 |        0.02 |                       127 |                 0
blocked 0.02-0.30 s, anti-windup      |       94.8 |        0.02 |                       341 |               268
blocked 0.02-0.30 s, no anti-windup   |      237.5 |      298.57 |                       531 |               313

The free move reaches the target in 127 ms with almost no overshoot (0.02%). When blocked, the controller with anti-windup is back on target at 341 ms, about 41 ms after the release, with a peak speed of 94.8 rad/s after release, well inside the limit. The controller without it accumulated throughout the 0.28 s of saturated voltage (313 of 1,500 steps saturated), so on release it surges to a peak speed of 237.5 rad/s, through the 150 rad/s limit set in the outer loop, and overshoots the target by 298.6% (the motor shaft turns about 12 rad instead of 3 rad), needing 531 ms to return. In a real cell that is an arm whipping through the battery bay after being blocked. Two lessons follow: use anti-windup wherever there is a limit, and a limit set in the outer loop is not a speed protection, because the inner integral overpowers it, so actual speed must be monitored separately (see module 5).

Joint position against time from 0 to 0.8 seconds with a target of 3 radians. A grey band marks the blocked interval from 0.02 to 0.30 seconds. The green line, with anti-windup, recovers smoothly to the target after release. The pink line, without it, shoots past the target to about 12 radians and then returns
Figure 3 Arm blocked then released, with and without anti-windup

Torque-level control: dynamic model and computed torque

Controlling each joint separately treats the neighbouring joints as noise. That is fine when the arm is light and slow, but an arm lifting a parcel and swinging fast has joints that disturb one another strongly. The dynamics of an -joint arm are written as (Lynch & Park, 2017, Chapter 8)

where is the mass matrix (inertia that changes with posture), the Coriolis and centrifugal terms, and gravity. For a two-joint arm in a vertical plane, with each body having mass , centre-of-mass distance and inertia , the mass matrix is , and , where and sum over the bodies on joint 1 and joint 2 (the parcel at the hand counts as a body on link 2). The Coriolis terms are and with .

Long equations like these are easy to get wrong, so they must be checked before use. A way that needs no real arm is to let the arm swing freely with no torque and see whether the total energy (kinetic plus potential) stays constant. If the Coriolis or gravity terms are wrong, energy leaks or appears from nowhere.

Example 4 Build and check the two-joint arm model

The links are 0.45 and 0.35 m (as in module 2), with masses of 2.0 and 1.2 kg as uniform rods, and a 0.5 kg parcel or battery pack at the hand (assumed). Integrate the equations with RK4.

# 5) a two-joint arm in a vertical plane: dynamics M(q) q'' + h(q, q') + g(q) = tau
G0, L1, L2 = 9.81, 0.45, 0.35
def bodies(m1=2.0, m2=1.2, mp=0.5):
    # (link, mass kg, distance of the centre of mass along the link m, inertia about the centre kg m^2) assumed; mp is the parcel at the hand
    return [(1, m1, L1 / 2, m1 * L1 ** 2 / 12), (2, m2, L2 / 2, m2 * L2 ** 2 / 12), (2, mp, L2, 0.0)]

def dyn(q, qd, bd):
    c2, s2 = np.cos(q[1]), np.sin(q[1])
    M, g, c = np.zeros((2, 2)), np.zeros(2), 0.0
    for link, m, lc, I in bd:
        if link == 1:
            M[0, 0] += m * lc ** 2 + I
            g[0] += m * lc * np.cos(q[0])
        else:
            M[0, 0] += m * (L1 ** 2 + lc ** 2 + 2 * L1 * lc * c2) + I
            M[0, 1] += m * (lc ** 2 + L1 * lc * c2) + I
            M[1, 1] += m * lc ** 2 + I
            c += m * L1 * lc * s2
            g[0] += m * (L1 * np.cos(q[0]) + lc * np.cos(q[0] + q[1]))
            g[1] += m * lc * np.cos(q[0] + q[1])
    M[1, 0] = M[0, 1]
    h = np.array([-c * (2 * qd[0] * qd[1] + qd[1] ** 2), c * qd[0] ** 2])   # Coriolis and centrifugal terms
    return M, h, G0 * g

def rk4(q, qd, tau, dt, bd):
    f = lambda x, v: np.linalg.solve(dyn(x, v, bd)[0], tau - dyn(x, v, bd)[1] - dyn(x, v, bd)[2])
    k1x, k1v = qd, f(q, qd)
    k2x, k2v = qd + .5 * dt * k1v, f(q + .5 * dt * k1x, qd + .5 * dt * k1v)
    k3x, k3v = qd + .5 * dt * k2v, f(q + .5 * dt * k2x, qd + .5 * dt * k2v)
    k4x, k4v = qd + dt * k3v, f(q + dt * k3x, qd + dt * k3v)
    return q + dt / 6 * (k1x + 2 * k2x + 2 * k3x + k4x), qd + dt / 6 * (k1v + 2 * k2v + 2 * k3v + k4v)

def energy(q, qd, bd):                                         # kinetic plus potential energy
    U = sum(m * G0 * ((L1 * np.sin(q[0]) if k == 2 else 0) + lc * np.sin(q[0] + (q[1] if k == 2 else 0))) for k, m, lc, I in bd)
    return 0.5 * qd @ dyn(q, qd, bd)[0] @ qd + U

true = bodies()
q, qd = np.radians([60.0, -30.0]), np.zeros(2)
E0 = energy(q, qd, true)
for _ in range(20000): q, qd = rk4(q, qd, np.zeros(2), 1e-4, true)    # 2 s of free swing with no torque
print("energy drift in a 2 s free swing: %.1e J out of %.2f J" % (energy(q, qd, true) - E0, E0))
energy drift in a 2 s free swing: 1.2e-13 J out of 12.21 J

Energy changes by only J out of 12.21 J over a 2 s free swing (in which the arm swings around several times, so the Coriolis terms are tested hard). That shows the equations are internally consistent. The check does not confirm that the parameter values match the real arm; that needs weighing and measuring.

Given a model, what MR calls computed torque control (Lynch & Park, 2017, Section 11.4) uses the model to cancel the nonlinear dynamics, leaving error equations you can design:

with . The tilde marks the controller’s model, which may differ from the real arm. If the model is exact, the error of every joint obeys independently, and , gives critical damping at the chosen frequency . MR notes that in practice an integral term is often added to absorb model error.

Example 5 Four controllers on the long swing

Swing the arm along the trapezoidal profile of module 2 (joint 1 turns −120 degrees, joint 2 turns +60 degrees, in 1.700 s). The controller runs every 1 ms and holds the torque. Compare A plain PD per joint, B PD plus the correct gravity term, C computed torque with the correct model, D computed torque with a model that does not know about the 0.5 kg parcel, and E the same as D plus an integral term.

# 6) the long swing of module 2 (joint 1 turns -120 degrees, joint 2 turns +60 degrees) with a trapezoidal profile
qa, qb = np.radians([115.0, -115.0]), np.radians([-5.0, -55.0])
vmax, amax = np.radians([100.0, 150.0]), np.radians([200.0, 300.0])
dq = np.abs(qb - qa)
sv, sa = np.min(vmax / dq), np.min(amax / dq)                  # speed and acceleration of the time scaling s
T_END = 1 / sv + sv / sa
print("swing time %.3f s, cruise speed %.4f 1/s, acceleration %.4f 1/s^2" % (T_END, sv, sa))

def traj(t):
    ta = sv / sa
    if t < ta: s, sd, sdd = 0.5 * sa * t * t, sa * t, sa
    elif t < T_END - ta: s, sd, sdd = 0.5 * sa * ta * ta + sv * (t - ta), sv, 0.0
    elif t < T_END: s, sd, sdd = 1 - 0.5 * sa * (T_END - t) ** 2, sa * (T_END - t), -sa
    else: s, sd, sdd = 1.0, 0.0, 0.0
    return qa + s * (qb - qa), sd * (qb - qa), sdd * (qb - qa)

def simulate(law, T=2.4, dt=5e-4, Ts=1e-3):
    q, qd, tau, log = qa.copy(), np.zeros(2), np.zeros(2), []
    for k in range(int(round(T / dt))):
        t = k * dt
        if k % int(round(Ts / dt)) == 0: tau = law(t, q, qd)  # the controller runs every 1 ms and holds the torque
        q, qd = rk4(q, qd, tau, dt, true)
        log.append((*(q - traj(t + dt)[0]), *tau))
    return np.array(log)

KP, KD, W = np.array([600.0, 150.0]), np.array([50.0, 20.0]), 25.0
nominal = bodies(mp=0.0)                                       # the controller's model does not know about the 0.5 kg parcel
def pd(t, q, qd):
    qr, vr, _ = traj(t); return KP * (qr - q) + KD * (vr - qd)
def pd_gravity(t, q, qd):
    return pd(t, q, qd) + dyn(q, qd, true)[2]
def computed_torque(model, ki=0.0):
    acc = {"i": np.zeros(2)}
    def law(t, q, qd):
        qr, vr, ar = traj(t); e = qr - q
        acc["i"] = acc["i"] + e * 1e-3
        M, h, g = dyn(q, qd, model)
        return M @ (ar + W ** 2 * e + 2 * W * (vr - qd) + ki * acc["i"]) + h + g
    return law

print("controller                              | max error deg | rms error deg | final error deg | peak torque N m")
for name, law in (("A  PD only", pd), ("B  PD + gravity term (exact)", pd_gravity), ("C  computed torque, exact model", computed_torque(true)),
                  ("D  computed torque, parcel missing", computed_torque(nominal)), ("E  D + integral term", computed_torque(nominal, 0.5 * W ** 3))):
    L = simulate(law); e = np.degrees(L[:, :2])
    print("%-39s | %5.3f %5.3f | %5.3f %5.3f | %6.3f %6.3f | %6.1f %6.1f" % (name, *np.abs(e).max(axis=0), *np.sqrt((e ** 2).mean(axis=0)), *np.abs(e[-1]), *np.abs(L[:, 2:]).max(axis=0)))
swing time 1.700 s, cruise speed 0.8333 1/s, acceleration 1.6667 1/s^2
controller                              | max error deg | rms error deg | final error deg | peak torque N m
A  PD only                              | 1.533 1.314 | 1.083 0.954 |  1.301  0.678 |   16.2    4.0
B  PD + gravity term (exact)            | 0.226 0.198 | 0.114 0.120 |  0.000  0.001 |   16.3    3.9
C  computed torque, exact model         | 0.002 0.003 | 0.001 0.001 |  0.000  0.000 |   16.2    3.8
D  computed torque, parcel missing      | 0.448 3.367 | 0.322 1.839 |  0.372  0.775 |   16.2    4.2
E  D + integral term                    | 0.127 2.302 | 0.040 0.642 |  0.001  0.018 |   16.4    4.6

The table tells a story in four parts. First, the gravity term does the most: B cuts the peak error of A from 1.53 and 1.31 degrees to 0.23 and 0.20 degrees and removes the offset at rest. Second, correct inertia and Coriolis terms (C) cut it nearly a hundredfold again to 0.002 and 0.003 degrees, which is only the effect of sampling at 1 kHz. Third, a wrong model destroys that benefit: D does not know the 0.5 kg parcel, so its elbow error peaks at 3.37 degrees, worse than plain PD (1.31 degrees). An estimate explains it. The elbow stiffness of computed torque is N m/rad, while the gravity torque of the parcel at the hand with the forearm horizontal is N m, so the error is about rad = 3.2 degrees. Fourth, the integral term (E) removes the offset at rest to 0.001 and 0.018 degrees and lowers the shoulder peak, but cuts the elbow peak by only a third (to 2.30 degrees), because the integral needs time to accumulate. The fix that addresses the cause is to tell the controller the mass of the parcel, which a real system does with data from a weighing station that the PLC passes on, following the principles of module 5. Peak torques never exceed 16.4 N m at the shoulder and 4.6 N m at the elbow, which must stay below the peak torque of the drive (assumed 20 and 8 N m, so there is margin).

Joint 2 (elbow) error in degrees against time from 0 to 2.4 seconds. The grey line for plain PD stays near 1.3 degrees. The blue line for PD with gravity stays near 0.2 degrees. The pink line for computed torque without the parcel reaches 3.4 degrees. The green line for computed torque with the parcel lies almost on zero
Figure 4 Elbow error on the long swing for four controllers

Actuators and drive systems: choosing the motor and gear ratio from the load

An actuator turns the controller’s command into a real force or torque. It can be electric, hydraulic or pneumatic, and it is often paired with a power-transmission mechanism such as a gearhead (Lynch and Park, 2017 Section 8.9). MM-1 uses a geared DC electric motor at every joint. A brushless motor gives a higher continuous torque than a brushed one because its windings sit in the housing, where heat is easier to remove.

A motor of reasonable size usually gives less torque than the joint needs, so it is paired with a gearhead of ratio , which lowers the speed and raises the torque.

Here is the efficiency of the gearhead (Lynch and Park, 2017). Whatever is gained in torque is lost in speed. Three limits fence the motor in. The first is the driver’s peak current, which sets the peak torque because . The second is the bus voltage, which sets the top speed because the voltage needed is . The third is the continuous torque , which comes from the heating of the windings (); the motor can exceed it only briefly. The caution is that must be compared with the root-mean-square (RMS) torque over the whole work cycle, not with the peak.

This is the same method as the geared-motor selection example from Haydon Kerk Pittman (AMETEK, n.d.). Time spent holding a pose counts too, because the motor is still working against gravity, unless the joint has a holding brake, which joint motors often do (Lynch and Park, 2017).

The gearhead has one more effect that is easy to overlook: the rotor inertia feels times larger at the joint. This is the apparent inertia . When is large this term dominates the mass matrix, so the joints influence one another less, which explains why joint-by-joint control works well on arms with high gear ratios (Lynch and Park, 2017). The joint acceleration available is , where is the load inertia (ignoring friction and gravity). Differentiating with respect to shows that is largest at . This is a useful reference point, but voltage and heating may decide first.

Example 6 Choosing the shoulder gear ratio from the load over a whole cycle

The shoulder of MM-1 makes the long swing of Module 2 (1.7 s) carrying a 0.5 kg parcel throughout. The cycle is: swing out, hold at the charging rack for 0.8 s, swing back, then hold at the conveyor for 0.8 s, 5.0 s in all. The catalog motor (assumed) has N m/A, Ω, kg m², a driver peak current of 8 A, N m, a 12 V bus and . The code finds the shoulder torque along the trajectory from the model of Example 4 (), converts it to motor torque including the torque that accelerates the rotor itself (), and checks the three limits at four gear ratios (applying along the whole path slightly overstates the torque while braking, which errs on the safe side).

# 7) Choose the motor and gear ratio of the shoulder joint from the load over a cycle (catalog motor is assumed)
ETA, V_BUS = 0.80, 12.0                                   # gearhead efficiency (assumed) and bus voltage V
KT, R_M, J_ROTOR, I_PEAK, TAU_CONT = 0.045, 0.9, 3.0e-5, 8.0, 0.150   # N m/A, ohm, kg m^2, A, N m (assumed)
HOLD = (0.8, 0.8)                                         # dwell time at the two ends of the cycle s (assumed)

ts = np.linspace(0.0, T_END, 341)
tau_j, w_j, a_j = np.zeros(len(ts)), np.zeros(len(ts)), np.zeros(len(ts))
for k, t in enumerate(ts):                                # inverse dynamics along the long swing: torque the shoulder must deliver
    q, qd, qdd = traj(t)
    M, h, g = dyn(q, qd, true)
    tau_j[k], w_j[k], a_j[k] = (M @ qdd + h + g)[0], qd[0], qdd[0]
hold = [dyn(q_end, np.zeros(2), true)[2][0] for q_end in (qb, qa)]   # gravity torque while holding at each end
j_load = dyn(qa, np.zeros(2), true)[0][0, 0]
print("shoulder: peak %.1f N m, peak speed %.2f rad/s, holding torque %.1f and %.1f N m, load inertia %.2f kg m^2"
      % (np.abs(tau_j).max(), np.abs(w_j).max(), *hold, j_load))
print("G opt (rotor inertia matched to the load) = %.0f" % np.sqrt(j_load / J_ROTOR))
cycle = 2 * T_END + sum(HOLD)
print("   G | peak A | peak V | rms mNm (no brake / brake) | G^2 J_rotor / J_load | verdict")
for G in (50, 80, 100, 160):
    tm = tau_j / (ETA * G) + J_ROTOR * G * a_j             # motor torque: load through the gearhead + accelerating the rotor itself
    cur, volt = tm / KT, KT * G * w_j + R_M * tm / KT       # V = kt w + I R (Lynch and Park, 2017)
    swing = 2 * (tm ** 2).mean() * T_END                    # squared torque integrated over the two swings
    rms_no_brake = np.sqrt((swing + sum(HOLD[i] * (hold[i] / (ETA * G)) ** 2 for i in range(2))) / cycle)
    rms_brake = np.sqrt(swing / cycle)
    verdict = ("fails: current" if np.abs(cur).max() > I_PEAK else "fails: voltage" if np.abs(volt).max() > V_BUS
               else "ok with brake only" if rms_no_brake > TAU_CONT >= rms_brake else "ok" if rms_no_brake <= TAU_CONT else "fails: heating")
    print("%4d | %6.2f | %6.1f | %9.1f / %5.1f           | %20.2f | %s" % (G, np.abs(cur).max(), np.abs(volt).max(),
          1000 * rms_no_brake, 1000 * rms_brake, G ** 2 * J_ROTOR / j_load, verdict))
shoulder: peak 16.2 N m, peak speed 1.75 rad/s, holding torque 13.8 and -1.3 N m, load inertia 0.44 kg m^2
G opt (rotor inertia matched to the load) = 122
   G | peak A | peak V | rms mNm (no brake / brake) | G^2 J_rotor / J_load | verdict
  50 |   9.14 |    8.1 |     263.7 / 224.5           |                 0.17 | fails: current
  80 |   5.83 |    5.9 |     166.5 / 142.4           |                 0.43 | ok with brake only
 100 |   4.74 |    7.6 |     134.5 / 115.4           |                 0.68 | ok
 160 |   3.19 |   12.5 |      87.9 /  76.5           |                 1.73 | fails: voltage

The shoulder must deliver a peak torque of 16.2 N m, matching the table of Example 5, and while holding at the charging rack it carries 13.8 N m of gravity torque, almost as much as the peak. Most of the load is therefore continuous, not momentary. needs a peak current of 9.14 A, above the driver’s 8 A. needs 12.5 V, above the 12 V bus. passes only with a holding brake, because its RMS of 166.5 mN m exceeds the 150 mN m limit but drops to 142.4 mN m when no current flows during the holds. passes every check without a brake (RMS 134.5 mN m, peak current 4.74 A, peak voltage 7.6 V), and the rotor’s apparent inertia is 0.68 of the load inertia, near the reference point . The lesson is that a higher gear ratio is not always better: only a narrow window passes all three limits. All values are assumed; a real design must weigh the mass, measure the inertia, read the manufacturer’s catalog, and keep a margin.

The mobile base follows the same logic. MM-1’s base has two driven wheels, and the left and right wheel speeds follow from the base’s forward speed and turning rate .

Here is the distance between the two wheels and is the wheel radius. The diff_drive_controller of ros2_control uses exactly these two parameters (wheel_separation and wheel_radius) and takes only the forward speed along x and the turning rate about z from the command (ros2_control documentation). The torque per wheel comes from the traction force needed to accelerate the base and overcome rolling resistance.

Example 7 What gear ratio does the base wheel need

The base with the arm has a mass of 60 kg, wheels of radius 0.08 m, a wheel separation of 0.40 m and a rolling-resistance coefficient of 0.02 (assumed). The top command is 0.50 m/s with 0.40 rad/s, and the base must accelerate at 0.50 m/s². Use the same motor as Example 6 and try wheel gearheads of 30 and 40.

# 8) MM-1's two-wheel drive base: from the command (v, omega) to wheel speeds, torque and the wheel gear ratio (assumed values)
R_W, B_SEP, M_BASE, MU_ROLL = 0.08, 0.40, 60.0, 0.02       # wheel radius m, wheel separation m, base mass with arm kg, rolling-resistance coefficient
V_CMD, W_CMD, A_CMD = 0.50, 0.40, 0.50                      # top command: m/s, rad/s and acceleration m/s^2
w_left, w_right = (V_CMD - W_CMD * B_SEP / 2) / R_W, (V_CMD + W_CMD * B_SEP / 2) / R_W   # wheel rad/s
force = M_BASE * (A_CMD + MU_ROLL * 9.81)                    # total traction while accelerating N
tau_wheel = force * R_W / 2                                  # torque per wheel N m
print("wheel speeds %.2f / %.2f rad/s (%.0f rpm outer), traction %.1f N, wheel torque %.2f N m, power %.1f W"
      % (w_left, w_right, w_right * 60 / (2 * np.pi), force, tau_wheel, force * V_CMD))
for g_w in (30, 40):
    i_m = tau_wheel / (ETA * g_w) / KT                       # motor current A
    volt = KT * g_w * w_right + R_M * i_m                    # voltage the outer wheel needs
    print("wheel gear %d: motor %.0f rad/s (no-load limit %.0f), %.2f A, %.1f V -> %s"
          % (g_w, g_w * w_right, V_BUS / KT, i_m, volt, "ok" if volt <= V_BUS else "fails: voltage"))
wheel speeds 5.25 / 7.25 rad/s (69 rpm outer), traction 41.8 N, wheel torque 1.67 N m, power 20.9 W
wheel gear 30: motor 218 rad/s (no-load limit 267), 1.55 A, 11.2 V -> ok
wheel gear 40: motor 290 rad/s (no-load limit 267), 1.16 A, 14.1 V -> fails: voltage

The outer wheel turns at 7.25 rad/s and the inner wheel at 5.25 rad/s. The base needs 41.8 N of traction, 1.67 N m per wheel, and only 20.9 W of mechanical power, yet speed can still decide the gear choice. A gearhead of 40 would make the motor turn at 290 rad/s, above its no-load speed of 267 rad/s (), so it cannot work. A gearhead of 30 passes but uses 11.2 V, leaving only about 7% margin. The order of work in this section is therefore: find the load from inverse dynamics along the real task, try several ratios, check current, voltage and RMS, then add a margin. Once the real joint is assembled, repeat the step test of Example 1 on the loaded joint, because the time constant changes with the apparent inertia. The size of that change follows from referring the load to the motor: for the shoulder at the motor sees kg m², about 3.7 times the kg m² of Example 1. With the motor of Example 1 the time constant would grow from 9.6 ms to about 35 ms, so the shoulder speed loop needs its own tuning. The two inertias are therefore not a contradiction: 0.44 kg m² is the shoulder load on the joint side, while kg m² is a light joint seen from the motor shaft.

Closing the loop on a moving pad: landing on the MM-1 base

Module 5 has the robot service a drone that has already landed on a fixed pad. A harder form of air-ground integration is to let the drone land on a pad carried by MM-1’s base while the base keeps driving, for example along the aisle to the next charging point. The drone then has to track a target that moves, and the loop runs across two machines: the camera of Module 1 measures the relative position , and the drone’s position controller turns that error into a speed command.

The first trap is the same one as a P controller with a constant load. If the command is only , then keeping up with a base that moves at needs , and that is possible only if a constant error remains. The drone trails the pad by a fixed distance. There are two remedies. The first is feedforward: add the base speed to the command, , where comes from the wheel odometry of the base and travels to the drone through the bridge described in Module 4. The second is to estimate the relative velocity: Borowczyk et al. (2016) landed a quadcopter on the roof of a car moving at up to 50 km/h with a Kalman filter running at 100 Hz that estimates the relative position and velocity of the drone and the pad, followed by a PID controller in the final landing phase. Autopilots have a built-in version too. PX4’s precision landing reads the LANDING_TARGET message, starts descending only when the drone is inside the acceptance radius PLD_HACC_RAD (default 0.2 m), and has a parameter LTEST_MODE that tells the target estimator whether the target is moving or stationary (PX4 Autopilot, n.d.). The MAVLink landing target protocol advises starting with update rates between 10 and 50 Hz and tuning from there (MAVLink Development Team, n.d.).

The second question is timing. A descent from height at rate lasts at least , and the base covers meanwhile, so the motion planner of Module 2 must reserve a straight, clear stretch of aisle at least that long. The third question is data age: every measurement and every base speed that crosses the link arrives late, and a late value is an error in itself.

Example 8 Landing on the base while it drives at 0.5 m/s

The base drives at 0.50 m/s, the top speed of Example 7. The drone starts 2.0 m above the pad and 0.5 m behind it, already moving at 0.5 m/s. Its speed loop is first order with a 0.30 s time constant, the position gain is per second, the tag pose arrives 0.10 s old, and the drone descends at 0.4 m/s only while the measured error is inside a 0.20 m radius (all values assumed; the radius copies the PX4 default). Compare A plain P, B P with base-speed feedforward, C the same as B when the base makes an emergency stop at 2.0 m/s² at 4 s because a person steps into the aisle, and D the same as C with a base speed that is 0.5 s old.

# 9) a drone lands on the MM-1 base while the base drives along the aisle (1-D along the track, all values assumed)
LDT, TAU_V, KP_L = 0.01, 0.30, 1.0       # step s, time constant of the drone speed loop s, position gain 1/s
H0, V_DOWN, ACCEPT = 2.0, 0.4, 0.20      # start height m, descent rate m/s, horizontal acceptance radius m
AGE = 0.10                                # age of the tag pose and of the base speed that arrive over the bridge s

def base_speed(t, brake_at):
    return 0.5 if t < brake_at else max(0.0, 0.5 - 2.0 * (t - brake_at))   # 0.5 m/s, then an emergency stop at 2.0 m/s^2

def land(feedforward, brake_at=99.0, ff_age=AGE, t_end=20.0):
    lag, lag_ff = int(round(AGE / LDT)), int(round(ff_age / LDT))
    xb, xd, vd, z = 0.0, -0.5, 0.5, H0    # base and drone positions m, drone speed m/s, height m
    hist_e, hist_vb, worst = [], [], 0.0
    for k in range(int(t_end / LDT)):
        t = k * LDT
        vb = base_speed(t, brake_at)
        hist_e.append(xb - xd); hist_vb.append(vb)
        e_meas = hist_e[max(0, k - lag)]                    # the tag pose arrives AGE late
        v_cmd = KP_L * e_meas + (hist_vb[max(0, k - lag_ff)] if feedforward else 0.0)
        vd += LDT * (v_cmd - vd) / TAU_V
        xd += LDT * vd; xb += LDT * vb
        if abs(e_meas) < ACCEPT:                            # descend only inside the acceptance radius
            z -= V_DOWN * LDT
            worst = max(worst, abs(xb - xd))
        if z <= 0.0:
            return t + LDT, xb - xd, vb - vd, worst, xb
    return None, hist_e[-1], 0.0, worst, xb

print("case                                  | touchdown s | error m | rel. speed m/s | worst error in descent m | base travel m")
for name, ff, brake, age in (("A  P only", False, 99.0, AGE), ("B  P + base speed feedforward", True, 99.0, AGE),
                             ("C  B, base stops hard at 4 s", True, 4.0, AGE), ("D  C, feedforward 0.5 s old", True, 4.0, 0.5)):
    t, e, dv, worst, travel = land(ff, brake, age)
    if t is None:
        print("%-37s | never (error stays %.2f m, theory v/Kp = %.2f m)" % (name, e, 0.5 / KP_L))
    else:
        print("%-37s | %11.2f | %7.3f | %14.3f | %24.3f | %13.2f" % (name, t, round(e, 3) + 0.0, round(dv, 3) + 0.0, worst, travel))
case                                  | touchdown s | error m | rel. speed m/s | worst error in descent m | base travel m
A  P only                             | never (error stays 0.50 m, theory v/Kp = 0.50 m)
B  P + base speed feedforward         |        6.08 |   0.000 |          0.000 |                    0.167 |          3.04
C  B, base stops hard at 4 s          |        6.08 |  -0.031 |          0.062 |                    0.167 |          2.06
D  C, feedforward 0.5 s old           |        7.01 |  -0.008 |          0.033 |                    0.241 |          2.06

A never lands. Its error settles at exactly m, outside the 0.20 m radius, so the descent gate keeps the drone hovering behind the pad for as long as the base moves. That is the gate doing its job. With feedforward (B) the drone touches down after 6.08 s: 5.0 s of descent () plus 1.08 s to get inside the radius, with an error and a relative speed of zero. Meanwhile the base drives 3.04 m, so the plan must reserve a straight, clear stretch of at least about 3 m plus a margin. The worst true error during the descent is 0.167 m, larger than what the drone believes at that moment, because the measurement is 0.1 s old. When the base stops hard (C), fresh feedforward lets the drone follow, and it lands 0.031 m off centre with a relative speed of 0.062 m/s. With a base speed that is 0.5 s old (D) the drone still lands, but 0.93 s later (7.01 s), and while descending the true error reaches 0.241 m, beyond the 0.20 m radius, even though the drone only descends when it believes it is inside. Two lessons follow: the speed of the base and its timestamp are part of the control loop, so the bridge must carry them fresh and the gate must fail closed when they are stale (Module 5, Example 6), and the pad must be sized for the worst true error, not for the acceptance radius.

Module lab

Lab: tune and test an MM-1 joint

  1. Apply an open-loop voltage step of 30 to 50% of the maximum to one joint and record the encoder speed. Fit an FOPDT curve to the data, report , and , and compare them with the values in example 1
  2. Compute and tune the PI by SIMC at and . Command a speed and record the rise time, overshoot and command ripple
  3. Try at least three sampling periods, make a table like example 2, and choose a period with a reason that cites the speed step
  4. Add the cascaded position loop. Block the joint by hand or with a mechanical stop (in the simulator, use the block window) and compare with and without anti-windup, reporting the peak speed and overshoot
  5. Build the dynamic model of the real or simulated two-joint arm, check it with a free swing, then compare the error of PD, PD with gravity and computed torque when the parcel is weighed and known, and when the model does not know the parcel

Common mistakes

Watch out

  • Tuning by guesswork without identifying a model, or borrowing gains from another machine that uses a different PID form
  • Forgetting to add for command holding to the delay, although the step test does not see it
  • Shortening the sampling period without looking at the encoder resolution, which gives a rippling command and a hot motor
  • Having no anti-windup, or believing an outer-loop limit protects speed
  • Unknowingly commanding more than the maximum voltage on the first step, when a high gain meets a large step
  • Trusting computed torque before checking the model, both the equations (with energy) and the parameters (by weighing and measuring), especially the mass of what the arm carries
  • Running the controller at an uneven rate in a thread that competes with other work (see module 4)

Summary

  • Identify a joint from a step test as an FOPDT model, then tune the PI with the SIMC rule, which leaves one parameter,
  • The sampling period sets both the delay () and the coarseness of speed (), so choose a balance
  • A cascaded position loop uses a P gain no more than a fifth of the inner bandwidth, needs anti-windup, and needs a separate monitor of actual speed
  • The dynamic model of the arm is checked with energy and then used in computed torque, which is excellent when the model is right and much worse when the parcel mass is unknown
  • The gravity term does the most in slow motion, and knowing the true mass being carried matters more than adjusting gains
  • Choose the motor and gear ratio from the load over the whole cycle by checking peak current, bus voltage and RMS torque against the continuous torque. The rotor’s apparent inertia grows as , so a higher ratio is not always better, and the base drive wheel must also pass the speed limit.

Check your understanding

  1. A joint has (rad/s)/V, ms and ms. Tune a PI by SIMC at . What are and ?
  2. A 500-line encoder is decoded x4 and the sampling period is 2 ms. By how many rad/s does the measured speed step?
  3. The inner loop has a bandwidth of about 200 rad/s. What is the largest sensible outer-loop position gain?
  4. A speed loop uses V per rad/s with a 12 V limit. If a speed of 200 rad/s is commanded in one step, what is the first command in volts, and what happens to the driver?
  5. The computed torque controller of the arm in example 5 does not know the arm is carrying a 0.8 kg parcel at the hand. About how large is the elbow’s offset error with the forearm horizontal (use kg m² and rad/s)?
Answers
  1. V per rad/s and ms
  2. 500 × 4 = 2,000 counts per turn, mrad, and rad/s
  3. per second
  4. V, above 12 V, so the driver saturates on the very first step. Anti-windup is needed, or a smaller step
  5. Gravity torque of the parcel N m, stiffness N m/rad, error rad = 5.1 degrees

Key formulas

SIMC rule for PI
Speed resolution from an encoder
Rule for the outer loop gain
Arm dynamics
Computed torque
Gearhead and motor voltage
Lag of a P loop behind a moving pad

Key references

  1. Lynch, K. M., & Park, F. C. (2017). Modern robotics: Mechanics, planning, and control. Cambridge University Press. link
  2. Skogestad, S. (2003). Simple analytic rules for model reduction and PID controller tuning. Journal of Process Control, 13(4), 291–309. link
  3. Åström, K. J., & Murray, R. M. (2021). Feedback systems: An introduction for scientists and engineers (2nd ed.). Princeton University Press. link
  4. Brown, R. H., Schneider, S. C., & Mulligan, M. G. (1992). Analysis of algorithms for velocity estimation from discrete position versus time data. IEEE Transactions on Industrial Electronics, 39(1), 11–19. link
  5. AMETEK Haydon Kerk Pittman. Finding the right motor-gearbox combination to optimize performance [White paper]. link
  6. ros2_control Maintainers. Diff drive controller. ros2_controllers documentation (Jazzy). link
  7. Borowczyk, A., Nguyen, D.-T., Nguyen, A. P.-V., Nguyen, D. Q., Saussié, D., & Le Ny, J. (2016). Autonomous landing of a multirotor micro air vehicle on a high velocity ground vehicle (arXiv:1611.07329). arXiv. link
  8. PX4 Autopilot. Precision landing. PX4 user guide (main). link
  9. MAVLink Development Team. Landing target protocol. MAVLink developer guide. link

Further reading

Study the assigned knowledge units in advance, review media and take the module quiz

In class / field

Lab or field practice from worksheets with a safety checklist

Learning evidence: Checked worksheets and quiz results

Module quiz

This is a formative self-check, not a graded exam

Knowledge domain: Control, autopilot and navigation · Mathematics, physics and statistics