Evaluation of px4 Fixed Wing Aircraft Controller
Show older comments
This is a PID controller for use with Pixhawk, and I referred to an example in MATLAB. I will only control roll and pitch.
The concept is as follows:
- The RC signal, except for the throttle, is normalized to a range of -1 to 1.
- The maximum roll and pitch angles are set to 0.8 rad.
- The pitch and roll inputs from the sensor are also limited to 0.8 rad using saturation, and the error is calculated.
- A P controller is applied to this error.
Next, the output of the P controller is used as the angular velocity input, with a maximum limit of 3 rad/s. This process follows the same approach as the angle control.
- A PID controller is applied for angular velocity control.
- To normalize the output, it is scaled by 1/3.
- Finally, this signal is converted into PWM signals for the motors.
Can you evaluate whether this control system is well-designed and provide feedback?
Accepted Answer
More Answers (0)
Categories
Find more on Real-Time PID Autotuning in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!