Skip to the content
FixTheRobot Explore Robotics / UAV / Calculators

UAV Systems Engineering · Calculators

Engineering calculators

Five small tools for the Module 1 and Module 7 labs. Each shows its formula, runs in your browser, and states its assumptions. Results are estimates for learning and early sizing, not substitutes for measurement.

Established engineering Momentum theory, rigid-body mixing and frame conventions are textbook material.

M1-L4 · Thrust-to-weight ratio

Thrust-to-weight ratio
T/W=n Tmotorm gT/W = \frac{n\,T_{\text{motor}}}{m\,g}
hover fraction=1T/W,az,max⁡=n Tmotor−m gm\text{hover fraction} = \frac{1}{T/W}, \qquad a_{z,\max} = \frac{n\,T_{\text{motor}} - m\,g}{m}
Largest tilt that still holds altitude
θmax⁡=arccos⁡ ⁣(1T/W)\theta_{\max} = \arccos\!\left(\frac{1}{T/W}\right)

Use the static thrust from the motor-propeller test data at the voltage you will fly. Thrust falls as the battery sags, so evaluate the margin at the end of a mission, not at full charge. Thrust per motor in gram-force is converted with g=9.80665 m/s2g=9.80665\,\mathrm{m}/\mathrm{s}^{2}.

M1-L5 · Hover endurance and battery energy

Hover thrust and total rotor disc area
T=m g,A=n π(D2)2T = m\,g, \qquad A = n\,\pi\left(\frac{D}{2}\right)^{2}
Ideal hover power
Pideal=T3/22ρAP_{\text{ideal}} = \frac{T^{3/2}}{\sqrt{2\rho A}}
Actuator-disc (momentum) theory with ρ = 1.225 kg/m³.
Electrical power
Pelec=PidealFM⋅η+PavionicsP_{\text{elec}} = \frac{P_{\text{ideal}}}{\mathrm{FM}\cdot\eta} + P_{\text{avionics}}
Battery energy and endurance
Epack=C [Ah]⋅Ncells⋅3.7 V,thover=usable fraction⋅EpackPelecE_{\text{pack}} = C\,[\text{Ah}]\cdot N_{\text{cells}}\cdot 3.7\ \text{V}, \qquad t_{\text{hover}} = \frac{\text{usable fraction}\cdot E_{\text{pack}}}{P_{\text{elec}}}

Larger rotor area lowers ideal power for the same thrust, which is why large slow propellers are efficient at hover. The figure of merit (typically a fraction well below 1 for small rotors) and the drivetrain efficiency are assumptions: replace them with values from bench measurements. 3.7 VV per cell is a nominal LiPo value; real packs sag under load.

M1-L3 · Motor mixer

Wrench from the motor thrusts
T=f1+f2+f3+f4τx=d (−f1+f2+f3−f4)τy=d (−f1+f2−f3+f4)τz=−k (f1+f2−f3−f4)\begin{aligned} T &= f_1 + f_2 + f_3 + f_4\\ \tau_x &= d\,(-f_1 + f_2 + f_3 - f_4)\\ \tau_y &= d\,(-f_1 + f_2 - f_3 + f_4)\\ \tau_z &= -k\,(f_1 + f_2 - f_3 - f_4) \end{aligned}
Body frame: x forward, y left, z up. Motors at (±d, ±d) with d = L/√2. Motors 1 and 2 spin counter-clockwise, motors 3 and 4 clockwise.
The mixer (inverse of the wrench equations)
f1=T4−τx4d−τy4d−τz4kf2=T4+τx4d+τy4d−τz4kf3=T4+τx4d−τy4d+τz4kf4=T4−τx4d+τy4d+τz4k\begin{aligned} f_1 &= \frac{T}{4} - \frac{\tau_x}{4d} - \frac{\tau_y}{4d} - \frac{\tau_z}{4k}\\ f_2 &= \frac{T}{4} + \frac{\tau_x}{4d} + \frac{\tau_y}{4d} - \frac{\tau_z}{4k}\\ f_3 &= \frac{T}{4} + \frac{\tau_x}{4d} - \frac{\tau_y}{4d} + \frac{\tau_z}{4k}\\ f_4 &= \frac{T}{4} - \frac{\tau_x}{4d} + \frac{\tau_y}{4d} + \frac{\tau_z}{4k} \end{aligned}

Motor numbering follows the PX4 quadrotor-X convention (1 front-right, 2 rear-left, 3 front-left, 4 rear-right). Real autopilots use the same linear idea with normalised outputs, then handle saturation by priority; check your autopilot’s airframe geometry file for the exact numbering and spin directions. The yaw torque ratio kk and thrust coefficients here are illustrative.

M1-L2 · Coordinate frame converter

World frames
NED=(North, East, Down),ENU=(East, North, Up)\mathrm{NED} = (\text{North, East, Down}), \qquad \mathrm{ENU} = (\text{East, North, Up})
pENU=(pE, pN, −pD)=(yNED, xNED, −zNED)\mathbf p_{\mathrm{ENU}} = (p_E,\ p_N,\ -p_D) = (y_{\mathrm{NED}},\ x_{\mathrm{NED}},\ -z_{\mathrm{NED}})
Body frames
FRD=(Forward, Right, Down) [PX4],FLU=(Forward, Left, Up) [ROS REP-103]\mathrm{FRD} = (\text{Forward, Right, Down}) \ [\text{PX4}], \qquad \mathrm{FLU} = (\text{Forward, Left, Up}) \ [\text{ROS REP-103}]
vFLU=(x, −y, −z)FRD\mathbf v_{\mathrm{FLU}} = (x,\ -y,\ -z)_{\mathrm{FRD}}
Yaw
ψENU=π2−ψNED\psi_{\mathrm{ENU}} = \frac{\pi}{2} - \psi_{\mathrm{NED}}
From north-referenced clockwise to east-referenced counter-clockwise.

PX4 uses NED and FRD; ROS uses ENU and FLU (REP-103). Mixing them is the most common cause of a UAV that flies away from where it was told to go. The last output line rotates a body FRD vector into NED with ZYX Euler angles.

M7-L5 · Compute and power budget

Average power and endurance
Pavg=∑iPi⋅dutyi,t=usable fraction⋅EbatteryPavgP_{\text{avg}} = \sum_i P_i\cdot\text{duty}_i, \qquad t = \frac{\text{usable fraction}\cdot E_{\text{battery}}}{P_{\text{avg}}}
Enclosure temperature
Tenclosure≈Tambient+Pavg RthermalT_{\text{enclosure}} \approx T_{\text{ambient}} + P_{\text{avg}}\,R_{\text{thermal}}

Enter the power of each consumer from its datasheet at the operating mode you will use, or measure it. The starting rows are placeholders to be replaced, not specifications of any product. The enclosure temperature is a one-resistor first-order estimate; real thermal design needs measurement under airflow and sun load (lesson M7-T13).