Accelerometer measuremet of pixhawk 6X using UWAV Toolbox Support Package for PX4 Autopilots, MATLAB 2024a

22 visualizaciones (últimos 30 días)
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.

Respuestas (2)

Jatin
Jatin el 9 de Ag. de 2024
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:
  1. Ensure that the accelerometer sensor on the Pixhawk is calibrated correctly.
  2. Use QGroundControlto verify that the accelerometer data is being published correctly by the Pixhawk.
  3. Ensure that the sample time of the PX4 accelerometer block is set correctly.
Hope this helps.
  1 comentario
Sakahisa Nagai
Sakahisa Nagai el 9 de Ag. de 2024
Thank you so much for your kind response.
The controller 6X may be officially supported in the supported package 2023a and later according to the second url you suggested.
I could check the sensor response from the QGroundControl and the sensor may be correctly working.
The output of the status pin of the PX4 Acceleometer block is always 1, therefore, I think the values cannot be updated.
If you know how to make the status be 0, please let me know it.
Thank you,

Iniciar sesión para comentar.


Ankur Bose
Ankur Bose el 14 de Ag. de 2024
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?
  18 comentarios
Tharani
Tharani el 28 de Nov. de 2024 a las 11:55
Were you able to solve this issue? I'm trying to resolve the same error.
Sakahisa Nagai
Sakahisa Nagai el 28 de Nov. de 2024 a las 23:43
Yes, I could solve this issue by updating both the MATLAB version and Autopilot version.
I am now using MATLAB 2024b and Autopilot 1.14.3.

Iniciar sesión para comentar.

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by