PX4 test connection accelerometer data error

9 vues (au cours des 30 derniers jours)
Momtaz Abadir
Momtaz Abadir le 29 Nov 2021
Commenté : Tharani le 20 Jan 2025
in the test connection part after successful upload firmware I am not able to read accelerometer value as in the picture below
NOTE:
I got this error with
(1)Design Flight Controller Algorithm in Simulink (both rcS and rc.txt methods)
(2) Design Path Follower Algorithm in Simulink
(3) QGC is working
(4) MatLab 2021b/ Pixhawk 1 (v2)
(5) with matlab 2019b and px4_cygwin toolchian v.05 it worked.
any solution to this with matlab 2021b

Réponse acceptée

Momtaz Abadir
Momtaz Abadir le 29 Nov 2021
Modifié(e) : Momtaz Abadir le 30 Nov 2021
after uploading the firmware I did not used the Get Accelerometer data option, I skpied to the hardware config and did check off the MAVLINK enable and depoly my model after that it is worked. when i did upload the firmware again the Get Accelerometer data option starts working.
Once you have successfully uploaded the firmware, you cannot use the Get Accelerometer data option in Test Connection screen. This is because it treats the bootloader COM port as the main communications port. This is a limitation in R2021b. If you have uploaded the firmware successfully, exit the Hardware Setup screen and configure the Simulink® model accordingly to set the upload and communication port. For more information, see Set COM Port for Upload and Communication in Simulink.
https://es.mathworks.com/help/supportpkg/px4/ug/troubleshooting-firmware-upload-px4.html
  3 commentaires
Momtaz Abadir
Momtaz Abadir le 30 Nov 2021
after uploading the firmware I did not used the Get Accelerometer data option, I skpied to the hardware config and did check off the MAVLINK enable and depoly my model after that it is worked. when i did upload the firmware again the Get Accelerometer data option starts working.
Once you have successfully uploaded the firmware, you cannot use the Get Accelerometer data option in Test Connection screen. This is because it treats the bootloader COM port as the main communications port. This is a limitation in R2021b. If you have uploaded the firmware successfully, exit the Hardware Setup screen and configure the Simulink® model accordingly to set the upload and communication port. For more information, see Set COM Port for Upload and Communication in Simulink.
https://es.mathworks.com/help/supportpkg/px4/ug/troubleshooting-firmware-upload-px4.html
Tharani
Tharani le 20 Jan 2025
This worked for my pixhawk 4 but 6X I'm getting the same error and cannot read the accelerometer data. What can I do ?

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by