![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
bio robot
Dependencies: MPU6050-DMP QEI_hw mbed-rpc mbed
Fork of MPU6050_Example by
Diff: Comm/CommDelegate.h
- Revision:
- 2:17b18ea93551
- Child:
- 5:c3d671959ef3
diff -r ec0a08108442 -r 17b18ea93551 Comm/CommDelegate.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Comm/CommDelegate.h Thu Dec 03 02:23:34 2015 +0000 @@ -0,0 +1,33 @@ +#ifndef CommDelegate_h +#define CommDelegate_h + +class CommDelegate//parent class +{ + public: + + CommDelegate(){}//constructor method + + //imu + float virtual getTheta(){return 0.0;} + float virtual getDtheta(){return 0.0;} + + //gains + void virtual setGains(float k1, float d1, float k2, float d2){}; + void virtual setK1(float k1){}; + void virtual setD1(float d1){}; + void virtual setK2(float k2){}; + void virtual setD2(float d2){}; + float virtual getK1(){return 0;}; + float virtual getD1(){return 0;}; + float virtual getK2(){return 0;}; + float virtual getD2(){return 0;}; + + //target + void virtual setPosition(int position){}; + int virtual getPosition(){return 0;}; + + protected: + +}; + +#endif \ No newline at end of file