Use an ultrasonic module HC-SR04 distance measuring ranging sensor on your BeagleBone Blue.
Did you ever want to try something over and over until it works correctly? Drones!
This example shows you how to use Simulink Coder™ Support Package for BeagleBone® Blue Hardware to run a Simulink® model
An extensible low-cost open platform for learning embedded control & robotics in multithreaded Linux. Runs ROS, Python, Simulink, LabVIEW.