Drone Hover Challenge camera_control: uses OpenCV two program two cameras to detect LED lights through BGR to HSV conversion and contour finding to locate the LED. The pixel data is then stored as a coordinate in x, y.
takeoff: The drone is using manual control mode, and the thrust starts from 0 and increases until the desired thrust is reached. The drone height is tracked by the two cameras, which use triangulation to estimate depth.
PID: The drone uses PID control mode, and uses the native proportional, integral, and derivative functions on the ESP-32 for adjustment, and uses the MPU6050 gyro and accelerometer to calculate error for pitch and roll for further proportional correction.
main: prepares the drone by setting the right parameters, and initiating the functions to run simultaneously via threading.
drone_rc: Drone communication library. Not touched.
Log in or sign up for Devpost to join the conversation.