This video shows the principle of the target filter. It processes the stick values and generates target states for the controller. The states includes the trajectory of the target quaternion and the corresponding angular velocity of this movement.
All calculations are done on the copter itself. The target quaternion is send to the PC for visualization.