YEAR:

2026

2026

EXPERIENCE:

C, Python, PID Control, Software-in-the-Loop (SIL)

C, Python, PID Control, Software-in-the-Loop (SIL)

Cutout rendering of a quadcopter.

Virtual Drone Flight Simulator

I built a software-in-the-loop altitude controller. The PID controller is written in C; Python calls its shared library through ctypes at 1 kHz and simulates vertical quadcopter motion.

Control design

The derivative term passes through a 10 Hz low-pass filter to limit sensor noise. A fixed hover offset, mg/Fmax = 0.589, supplies baseline thrust, and the integrator trims around it.

Results and limits

The repository has 13 pytest cases for hover, altitude changes, sensor drift, dropouts, stuck readings, gusts, and payload drops. The simulation models vertical motion, with 1 ms Euler integration and a 20 ms motor lag.