pixhawk simulink calibration of sensors

After uploading the "PX4 PSP Demo - Attitude Control System" to pixhawk, How could I calibrate accelerometer and magnetometer? I tried mission planner and qground but failed to do that. any suggestions will be appreciated thanks

4 Comments

I did the calibration by deactivating the rc.txt/running the basic controller and doing so (hoping the parameters are stored). Anyway, if I reactivate the generated simulink code and look at the attitude data I have huge sensor drifts. Not sure if the vehicle attitude estimator is started correctly in the rc.txt. Did someone get the IMU to deliver valid attitude? Thanks. Sebastian
Hello Sebastian, Did you get any idea to solve this problem?
Hey, Can you tell from where to download "PX4 PSP Demo - Attitude Control System", I am unable to find it anywhere. Thanks.
@Ahmed khattab @Sebastian @Khalil Mokhtari @Lakshay Gopalka @Steven is there any one able to solve the calibration process with Simulink Model. I am facing same issue and does not have any clue to resolve this.

Sign in to comment.

Answers (3)

Steven
Steven on 11 Apr 2018
Seems I have the same problem, some could help?
(1) Use QGC to calibrate all sensors; this should correct the outputs of the attitude angles; (2) For gyro, acc and mag measurements, it is probably best to measure and record them in simulink2pix, and then manually correct them.

2 Comments

Hello,
please how to record them , more explanation (with picture if possible)

Sign in to comment.

I've the same problem. Probably it's in the rc.txt file. I've noticed that the right command for the attitute_estimator is "attitude_estimator_q startusleep 5000". Tell me if that solves the problem

Asked:

on 16 Oct 2016

Commented:

on 7 Jun 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!