![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1609006/image.png)
How to measure roll, pitch with transform sensor
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1608021/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1608026/image.png)
It seems that there is a problem with measuring roll and pitch using the Transform Sensor block. The first image shows the sensor model measuring the Roll, Pitch, and Yaw angles, while the second image shows a model receiving data in the scope and outputting the last value. However, it appears that only the yaw angle is being measured. Is the Transform Sensor block supposed to support only yaw angle measurements, or could it be a problem with the parameter settings that I might have set incorrectly?
0 commentaires
Réponses (1)
Angelo Yeo
le 6 Fév 2024
You can directly measure Euler angles from Transform Sensor block as the image below. See the attached model.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1609006/image.png)
I need your model in order to precisely understand what is done in your MATLAB Function block, though. In the image you provided it looks like that a value output from the Transform Sensor block is got processed by MATLAB Function blocks. It's not clear how the parameter for the constant block, which inputs into the MATLAB Function block, has been configured—possibly through code using the Scope block's name. This requires caution since it may involve using results from a previous simulation. It's also advisable to check if the Transform Sensor's output varies with the measurement frame selection. The exact cause of any issues cannot be determined without examining the model.
0 commentaires
Voir également
Catégories
En savoir plus sur Simulation and Analysis dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!