bio robot

Dependencies:   MPU6050-DMP QEI_hw mbed-rpc mbed

Fork of MPU6050_Example by Shundo Kishi

Committer:
amandaghassaei
Date:
Thu Dec 03 02:23:34 2015 +0000
Revision:
2:17b18ea93551
Child:
5:c3d671959ef3
delegate stuff working;

Who changed what in which revision?

UserRevisionLine numberNew 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 2:17b18ea93551 24
amandaghassaei 2:17b18ea93551 25 //target
amandaghassaei 2:17b18ea93551 26 void virtual setPosition(int position){};
amandaghassaei 2:17b18ea93551 27 int virtual getPosition(){return 0;};
amandaghassaei 2:17b18ea93551 28
amandaghassaei 2:17b18ea93551 29 protected:
amandaghassaei 2:17b18ea93551 30
amandaghassaei 2:17b18ea93551 31 };
amandaghassaei 2:17b18ea93551 32
amandaghassaei 2:17b18ea93551 33 #endif