Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: include/motor.hpp
- Revision:
- 53:978b7fa74080
- Parent:
- 49:3aaa790800ad
diff -r 0982adf6ba63 -r 978b7fa74080 include/motor.hpp
--- a/include/motor.hpp Mon Dec 02 00:00:01 2013 +0000
+++ b/include/motor.hpp Mon Dec 02 05:16:26 2013 +0000
@@ -26,6 +26,9 @@
float kp;
float kd;
+ volatile float dAngle;
+
+
private:
Ticker t;
AnalogIn aIn;
@@ -42,7 +45,6 @@
volatile int mode;
volatile float dAngularVelocity;
- volatile float dAngle;
volatile float dTorque;
};
