Modify coefficients for better output of AHRS in "UAV Toolbox Supportage Package for PX4 Autopilots", in Simulink
2 views (last 30 days)
Show older comments
Hi everyone;
My teamwork and I are working on the Holybro "Pixhawk 4" board, with its add-on "UAV Toolbox Supportage Package for PX4 Autopilots".
We would like to use the predisposed blocks of this add-on to estimate the attitude of the board (and consequently of the drone) and by testing the various tools provided we have identified "PX4 Vehicle Attitude" as the best block, reading the uORB topic "vehicle_odometry".
We know that the output of "Vehicle Attitude" estimates the attitude using accelerometer, gyroscope and magnetometer producing a quaternion.
The values are good but we need more responsive dynamic parameters.
How can we change the filter coefficients implemented by the block?
Thanks
0 Comments
Answers (1)
Arun Mathamkode
on 15 Jun 2022
As you mentioned correctly, the block just reads the attitude values from the uorb topic 'vehicle_odomtery'. The block doesnot implement any filters and hence if you want to modify the filter values probbaly you may need to investigate which px4 module is publishing the topic 'vehicle_odometry' and you will find the filter implementation in that specific module. To address these kind of usecase, PX4 have provided a set of 'PX4 Parameters'. To start with you can have a look at the Paramters for Attitude Q estimator. You can update the parameters through QGroundControl or the nsh console.
See Also
Categories
Find more on Develop Algorithms and Deploy on PX4 Autopilot 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!