- Ensure that the accelerometer sensor on the Pixhawk is calibrated correctly.
- Use “QGroundControl” to verify that the accelerometer data is being published correctly by the Pixhawk.
- Ensure that the sample time of the PX4 accelerometer block is set correctly.
Accelerometer measuremet of pixhawk 6X using UWAV Toolbox Support Package for PX4 Autopilots, MATLAB 2024a
97 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sakahisa Nagai
el 9 de Ag. de 2024 a las 3:16
Comentada: Sakahisa Nagai
el 23 de Ag. de 2024 a las 5:57
I'm now trying to setup the pixhawk 6X using UAV Toolbox Support Package for PX4 Autopilots (ver. 24.12).
I successfully finished the hardware setup.
Next, I created a simple simulink file as below.
I connected the hardware and tried to see the measurement values, but I could not find the values.
(The displayed values are zero.)
Please tell me how to solve this problem.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1749969/image.png)
0 comentarios
Respuestas (2)
Jatin Singh
el 9 de Ag. de 2024 a las 6:04
To help you solve the issue, I would recommend you go through the documentation for deployment on unsupported PX4 Autopilots from Simulink:
You might also want to have a look at this MATLAB Answer:
If the issue persists, there can be various reasons of encountering zero value while monitoring accelerometer, few things you might want to check includes:
Hope this helps.
Ankur Bose
el 14 de Ag. de 2024 a las 4:07
When the hardware setup process using the hardware setup screens is almost finished, there is a screen at the end called "Test Connection" where you upload the PX4 Firmware to autopilot and fetch accelerometer data. Can you confirm if you could see the accelerometer data during Test Connection? Also, how are you running the Simulink Model? Is it deployed via Monitor & Tune OR it is running over Connected IO?
16 comentarios
Ankur Bose
el 23 de Ag. de 2024 a las 5:17
Thanks for running the experiment. Can you reach out to MathWorks Technical Support with your issue?
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!