In the trajectory generation phase, a perching trajectory is created using the JuMP trajectory optimizer and loaded into a headerfile. This trajectory to loaded to the drone's firmware and flashed onto the Crazyflie.
System Architecture - The Crazyflie is commanded through the Crazyflie python API and is sent a takeoff command in PID control mode. This allows the drone to takeoff and maintain a hover state. Then the drone is commanded to execute the MPC trajectory by setting the stabilizer.controller parameter. The drone's positioning is provided by the onboard kalman filter which fuses the position and orientation data from the IMU and lighthouses.
HTML Code Generator