PRU firmware for HC-SR04 rangefinder
HC-SR04 driver that can be used with BeagleBone Black
Install PRU C-Compiler
sudo apt-get update
sudo apt-get install ti-pru-cgt-installer
Rebuild rangefinder.c
cd ardupilot/Tools/Linux_HAL_Essentials/rangefinderpru/
make