Inverted Pendulum / Mbed 2 deprecated IP-Interface

Dependencies:   mbed QEI

Committer:
Snay22
Date:
Mon Nov 14 02:45:28 2016 +0000
Revision:
10:4dd96f046784
Parent:
8:2abfdbf5a3b8
Child:
12:65392ee77300
changed pot to 340 to account for 20 degree blank;

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(){
Snay22 10:4dd96f046784 9 float a = angle.read()*340;
dlweakley 8:2abfdbf5a3b8 10 return a;
dlweakley 8:2abfdbf5a3b8 11 }