changed API to work with devices

Abstracts the concept of the flight controller from the devices.