Skip to main content

drone-autopilot

DO NOT FLY THIS BUILD

v0.5 paper-correct skeleton. PID gains, sensor scales, failsafe thresholds, and motor mapping are starting-point values that need bench tuning + ground-tied throttle tests before a real airframe goes near them. [UNTESTED].

A self-contained PID-stabilised quadcopter flight controller running on an E1M-AEN module. The full real-time control stack in one app: IMU sample → attitude estimation → cascaded PID → motor mixer → ESCs.

Source: examples/drone-autopilot/.

Three deterministic control loops

LoopRatePriorityResponsibility
Rate1000 HzhighestInner-loop angular-rate PID; 4× ESC outputs every tick.
Attitude250 HzmiddleOuter-loop angle PID; rate setpoints fed into the inner loop.
Nav + battery + failsafe25 HzlowGPS hold, RTL trigger, low-battery RTL, link-loss failsafe.

board.yaml

schema_version: 2

som:
sku: E1M-AEN701

carrier:
name: E1M-EVK

cores:
m55_hp:
os: zephyr
app: ./src
peripherals: [pwm, i2c, uart]
libraries: [madgwick_ahrs]

chips:
- lsm6dso
- bmp390
- ublox_neo_m9n
- ina236

diagnostics:
log_level: info

See also

Questions about this page? Discuss in Community Forum