motor.cc: Fixed off-by-one error in LUT

The coil control LUT was off-by-one, leading to non-smooth operation.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
controller.c: Removed extraneous empty line

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
Map positive power to forward motion

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
Added a makefile for the controller program

Build using make -f Makefile.controller

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
Merge branch 'master' of github.com:mortehu/motor