I encountered error though the input data to INS block is exactly 3-column
2 views (last 30 days)
Show older comments
Kevin Napier
on 16 Jul 2024
Commented: Kevin Napier
on 17 Jul 2024
I'm using the uavPackageDelivery example in UAV toolbox and making small modification in this module.(in "fly full mission mode")![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1734953/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1734953/image.png)
i want to integrate an INS sensor into it,and i'm passing necessary parameters in this sensor.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1734958/image.png)
but once the simulation starts,error message is shown below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1734963/image.png)
I'm passing exactly 3-column array into it,but still received error above.
Am i right to use INS here?if wrong,where else should i use the INS block?
thx
0 Comments
Accepted Answer
Fangjun Jiang
on 16 Jul 2024
The input needs to be N-by-3 real-valued matrix.
You need to use the "Vector Concatenate" block, instead of the "Bus Creator" block.
Specify the number of inputs as 3, "Multidimensional array", concatenate dimension as 2. Then you will see the input is shown as [1x3] and the simulation runs without error.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!