- Subscribe to trajectory_setpoint to read the commanded setpoints.
- Subscribe to estimator outputs like vehicle_local_position (and optionally vehicle_attitude) to get the current state.
- Implement your own position and attitude controllers in Simulink using these inputs.
Will standard PX4 Flight Modes be available when deploying own attitude controller?
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
In a current project we develop our own Controll Allocation and Attitude & Rate Controller for a blended wing body fixed wing drone.
Does anything need to be kept in mind for that?
If not: Would it be feasable the develop our own flight modes in simulink with the possibility to switch between them with a uOrb message and deploy them with the Position Controller? Does not really seem ideal to me, but I struggle to see a different workaround.
Thank you!
0 commentaires
Réponses (1)
Arun Mathamkode
le 18 Nov 2025 à 6:47
As per my understanding, you should be able to use the trajectory_setpoint uORB topic to get the desired position, velocity, and yaw setpoints irrespective of the flight mode. This topic is published by the Flight Mode Manager based on the currently selected flight mode, so it already reflects the mode logic and trajectory smoothing. I have not yet tried this at my end but you can give it a try. I aslo assume you are using PX4 v1.14.3.
In Simulink, you can:
This approach allows you to keep PX4’s flight mode handling intact while replacing only the control logic.
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!