We implemented a PD controller for height control of the quadrotor. We tuned the proportional gain(kP) and derivative gain(kD) for two different cases.
The first case was of hover control where the quadrotor was simply stabilized at the height of 0m.
The second case was of step response where the quadrotor was given an input height of 1m. The rise time was kept as less than 1 second and the maximum overshoot was capped at 5%.
After controlling quadrotor in 1 Dimension, our next objective is to build a PD controller to control the motion of quadrotor in Y-Z (2D) plane. Below are results ,we moved the quadrotor from some y postion to another, keeping height (z) constant.
The Quadcopter was moved to a desired position in y direction
The Quadcoptor followed the desired trajectory.
Since now we have applied 1D and 2D to our Quadcopter, Now we will be extending it to 3D control and then to trajectory generation. We will firstly make the drone to follow Line and Helix trajectory, whose corresponding gifs are shown below.
The position and attitude control loops can be given as:
We generated a minimum snap trajectory using a