alternative implementation of motor API and quedcopter code