![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
bio robot
Dependencies: MPU6050-DMP QEI_hw mbed-rpc mbed
Fork of MPU6050_Example by
Comm/CommDelegate.h@5:c3d671959ef3, 2015-12-03 (annotated)
- Committer:
- amandaghassaei
- Date:
- Thu Dec 03 04:52:45 2015 +0000
- Revision:
- 5:c3d671959ef3
- Parent:
- 2:17b18ea93551
- Child:
- 8:1a3a69fecedf
working comm;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
amandaghassaei | 2:17b18ea93551 | 1 | #ifndef CommDelegate_h |
amandaghassaei | 2:17b18ea93551 | 2 | #define CommDelegate_h |
amandaghassaei | 2:17b18ea93551 | 3 | |
amandaghassaei | 2:17b18ea93551 | 4 | class CommDelegate//parent class |
amandaghassaei | 2:17b18ea93551 | 5 | { |
amandaghassaei | 2:17b18ea93551 | 6 | public: |
amandaghassaei | 2:17b18ea93551 | 7 | |
amandaghassaei | 2:17b18ea93551 | 8 | CommDelegate(){}//constructor method |
amandaghassaei | 2:17b18ea93551 | 9 | |
amandaghassaei | 2:17b18ea93551 | 10 | //imu |
amandaghassaei | 2:17b18ea93551 | 11 | float virtual getTheta(){return 0.0;} |
amandaghassaei | 2:17b18ea93551 | 12 | float virtual getDtheta(){return 0.0;} |
amandaghassaei | 2:17b18ea93551 | 13 | |
amandaghassaei | 2:17b18ea93551 | 14 | //gains |
amandaghassaei | 2:17b18ea93551 | 15 | void virtual setGains(float k1, float d1, float k2, float d2){}; |
amandaghassaei | 2:17b18ea93551 | 16 | void virtual setK1(float k1){}; |
amandaghassaei | 2:17b18ea93551 | 17 | void virtual setD1(float d1){}; |
amandaghassaei | 2:17b18ea93551 | 18 | void virtual setK2(float k2){}; |
amandaghassaei | 2:17b18ea93551 | 19 | void virtual setD2(float d2){}; |
amandaghassaei | 2:17b18ea93551 | 20 | float virtual getK1(){return 0;}; |
amandaghassaei | 2:17b18ea93551 | 21 | float virtual getD1(){return 0;}; |
amandaghassaei | 2:17b18ea93551 | 22 | float virtual getK2(){return 0;}; |
amandaghassaei | 2:17b18ea93551 | 23 | float virtual getD2(){return 0;}; |
amandaghassaei | 5:c3d671959ef3 | 24 | int virtual numGains(){return 0;}; |
amandaghassaei | 2:17b18ea93551 | 25 | |
amandaghassaei | 2:17b18ea93551 | 26 | //target |
amandaghassaei | 2:17b18ea93551 | 27 | void virtual setPosition(int position){}; |
amandaghassaei | 2:17b18ea93551 | 28 | int virtual getPosition(){return 0;}; |
amandaghassaei | 2:17b18ea93551 | 29 | |
amandaghassaei | 2:17b18ea93551 | 30 | protected: |
amandaghassaei | 2:17b18ea93551 | 31 | |
amandaghassaei | 2:17b18ea93551 | 32 | }; |
amandaghassaei | 2:17b18ea93551 | 33 | |
amandaghassaei | 2:17b18ea93551 | 34 | #endif |