Ported control logic to linux from mbed
Merge branch 'master' of https://github.com/jsharf/AIviate

Forgot to pull before working...