Customize the android App created by simulink
5 views (last 30 days)
Sutanu Maiti on 22 May 2020
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.