Simulink models readme
This document contains a description of the Simulink models and their usage.
Simulink models
The models require the MATLAB system object from raspi-ballpos to function. In addition, the compiler on the target device must have the Eigen and LBFGS++ libraries. Models named "modelNameUDP" must be deployed to the Raspberry. Then, the model's parameters can be sent via UDP from the simple MATLAB GUIs. Models without the "UDP" can be controlled from Simulink directly.
Bubbles
This is a simple demonstration model. It creates a high-pressure point at a specified position.
Ball on dry surface
This model implements a controller for positioning a ball on a dry surface. If the controller fails to stabilize the ball, check the calibration of the platform.
Ball on water
This model implements a controller for positioning a floating ball. Ideally, the ball should be put in a transparent shallow container, such as a Petri dish, filled with water.
GUIs
The MATLAB GUIs are simple figures, set to appear on the secondary monitor. Check if the UDP port number in the .m files matches the UDP port number in the Simulink models.
All GUIs share similar controls. Dragging the circle changes position. In the "bubbles" model, the mouse wheel changes the pressure intensity.