Customize the android App created by simulink
7 次查看(过去 30 天)
显示 更早的评论
After using Simulink support package for android, I wonder if there is a away to customize the view of this application...
or adding more advanced stuffs such as flight instruments to the app...
Is it possible?
0 个评论
回答(1 个)
Sutanu Maiti
2020-5-22
Yes, once generated app code is exported to Android Studio, user can modify the UI (in Android Studio) and run on device (from Android Studio). It will run the Simulink generated Algorithm also under the hood.
ToApp Block and From App Block can be used to access Simulink model data to and from Android App's main activity's java function. User needs to mention the function name (what they write in Java after exporting to Android Studio) in the block mask. Simulink model generated C code then calls those Java functions to give / take data. There are examples Set Position of Bebop Drone on Gazebo Simulator from Android Device Using ROS, And Visualize Sensor Data from Android Device in RViz that uses this workflow to integrate custom java code with 3rd party library along with Simulink model generated code.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!