Text this: Optimization of quaternion based on hybrid PID and Pw control