- Ensure Serial Send/Receive and MAVLink blocks have matching data types and sizes.
- Use Simulink's signal dimension display to identify mismatches.
- Verify hardware setup consistency, including sample times and data rates.
- Use conversion blocks like Reshape or Concatenate for size compatibility.
- Confirm correct message IDs and payload sizes.
- Use "Update Model" to refresh the setup.
- Inspect variable sizes to locate mismatches.
- Step through execution to pinpoint errors.
- Follow model and library setup guidelines.
Using Simulink to read/send MAVlink packets to/from a PX4
7 次查看(过去 30 天)
显示 更早的评论
Hello,
I am getting an "Arrays have incompatible sizes for this operation" error when running the 'jetsoncpu_pixhawk_interface' public Simulink model. I am hooked up to the PX4 Cube Orange Plus flight controller. Regardless of when I use the serial send/receive blocks or even the MAVlink blocks, I run into this issue.
Please let me know if anyone has any suggestions for this issue.
0 个评论
回答(1 个)
Pratyush
2024-8-16
Hello Nikhil,
To resolve the "Arrays have incompatible sizes for this operation" error in the jetsoncpu_pixhawk_interface Simulink model with the PX4 Cube Orange Plus, try the following:
These steps should help identify and fix the error.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Aerospace Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!