Inverted Pendulum / Mbed 2 deprecated IP-Interface

Dependencies:   mbed QEI

Committer:
dlweakley
Date:
Fri Nov 11 21:19:06 2016 +0000
Revision:
8:2abfdbf5a3b8
Child:
10:4dd96f046784
Child:
11:ed9539245ea0
test methods and angle class

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dlweakley 8:2abfdbf5a3b8 1 #include "mbed.h"
dlweakley 8:2abfdbf5a3b8 2 #include "pot.h"
dlweakley 8:2abfdbf5a3b8 3
dlweakley 8:2abfdbf5a3b8 4 Pot::Pot(PinName _pin) : angle(_pin) {
dlweakley 8:2abfdbf5a3b8 5
dlweakley 8:2abfdbf5a3b8 6 }
dlweakley 8:2abfdbf5a3b8 7
dlweakley 8:2abfdbf5a3b8 8 float Pot::get_angle(){
dlweakley 8:2abfdbf5a3b8 9 float a = angle.read()*360;
dlweakley 8:2abfdbf5a3b8 10 return a;
dlweakley 8:2abfdbf5a3b8 11 }