A Stable Controller Can Still Drain the Mission
Start from the previous high-altitude flight problems. The aircraft is flying under wind disturbance. The controller must maintain altitude and pitch. The actuator has limits, and the controller updates at finite timing.
Now add the missing HAPS constraint: energy is limited.
For high-altitude long-endurance aircraft, the best controller is not simply the one that reacts fastest. It is the controller that maintains acceptable stability while preserving energy.
Battery Level Becomes a State of the System
To connect control behaviour with endurance, add an energy state:
Energy decreases due to baseline aircraft power and additional control effort:
A simple way to model control power is:
The squared term matters. Large control commands are disproportionately expensive. Small corrections are cheap, but repeated aggressive corrections can drain energy quickly over a long mission.
Longitudinal Dynamics Plus Battery State
The same simplified HAPS longitudinal model is extended with battery energy.
The states are:
- \(V\) = velocity
- \(h\) = altitude
- \(\theta\) = pitch
- \(E\) = battery / energy remaining
This is the first page in the HAPS sequence where control is connected directly to endurance.
Aggressive Stability vs Conservative Endurance
Controller A — Aggressive
The aggressive controller uses higher gain. It reacts strongly to altitude error, recovers quickly, and usually keeps the aircraft closer to the target altitude. But it uses more control effort and drains energy faster.
Controller B — Conservative
The conservative controller uses lower gain. It reacts more gently, uses less control effort, and preserves energy. But it may allow larger altitude deviation under wind disturbance.
| Controller | Strength | Weakness |
|---|---|---|
| Aggressive | Fast recovery and smaller altitude error | High control effort and faster battery drain |
| Conservative | Lower energy usage and smoother control | Larger altitude deviation and possible stability risk |
Minimizing Error Is Not the Same as Minimizing Energy
A controller that minimizes altitude error may not minimize energy. A controller that minimizes energy may not maintain altitude tightly.
This trade-off can be expressed with a cost function:
Here, \(q_h\) penalizes altitude error and \(r_u\) penalizes control effort. This connects directly to LQR and MPC thinking: the engineer must decide what is more expensive — error or effort.
Compare Stability and Energy Usage
Use the sliders to compare an aggressive controller against a conservative controller. Watch altitude, pitch, control effort, battery level, power usage, and the stability-energy trade-off indicator.
In Endurance Aircraft, Control Effort Is Not Free
Short simulations often reward aggressive control because the aircraft returns to target altitude quickly. But long-duration missions punish unnecessary control effort because every correction consumes energy.
A HAPS aircraft may need to remain airborne for days, weeks, or months. Even small inefficiencies accumulate over long durations.
This is why long-endurance control is not only about stability. It is also about energy management, disturbance rejection, and mission survival.
How This Connects to LQR, MPC, and Saturation
This page links directly to your existing control progression. LQR formalizes the trade-off between state error and control effort. MPC extends that idea by planning ahead while respecting constraints. Saturation pages show that energy and actuator authority are both physical limits.
A Good Controller Must Stabilize Within Available Energy
A controller is not good just because it stabilizes the system. It must stabilize the system within available energy.
For HAPS, solar input, battery storage, actuator usage, and mission endurance are coupled. During daytime, solar power may recharge the system. At night, the aircraft depends on stored battery energy. Aggressive control at night may shorten mission endurance.
What the Engineer Should Check
- Does the controller maintain altitude within acceptable limits?
- How much average control effort is required?
- How quickly does battery energy decrease?
- Does the system remain stable near low battery?
- Would a slightly slower controller extend endurance significantly?
Reproducing the Energy Trade-off in Python
The core idea is to integrate a battery state together with the aircraft dynamics.
import numpy as np
dt = 0.05
t_final = 120
t = np.arange(0, t_final, dt)
h_target = 1000
E_capacity = 160
V = np.zeros_like(t)
h = np.zeros_like(t)
theta = np.zeros_like(t)
E = np.zeros_like(t)
u = np.zeros_like(t)
V[0] = 25
h[0] = 950
theta[0] = 0
E[0] = E_capacity
K = 0.07 # aggressive gain
K_theta = 0.8
damping = 0.25
P_base = 0.25
k_u = 18
wind_strength = 6
for k in range(len(t)-1):
wind = wind_strength * np.sin(2*np.pi*0.10*t[k])
error = h_target - h[k]
u[k] = K*error - K_theta*theta[k]
P_control = k_u * u[k]**2
P_total = P_base + P_control
V_dot = -0.015*(V[k] - 25) + 0.04*u[k] + 0.03*wind
h_dot = V[k]*np.sin(theta[k]) + 0.7*wind
theta_dot = 1.2*u[k] - damping*theta[k]
E_dot = -P_total
V[k+1] = V[k] + V_dot*dt
h[k+1] = h[k] + h_dot*dt
theta[k+1] = theta[k] + theta_dot*dt
E[k+1] = max(0, E[k] + E_dot*dt)
The Best Controller Is Not Necessarily the Fastest Controller
For long-endurance aircraft, the best controller is the one that balances stability, energy, and mission survival.
Stable and fast, but energy-expensive.
Efficient, but may allow larger altitude error.
Balances tracking, effort, and endurance.