![](/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
- Committer:
- amandaghassaei
- Date:
- 2015-12-09
- Revision:
- 14:d620415259b1
- Parent:
- 11:711d3c207e8c
- Child:
- 17:8a0e647cf551
File content as of revision 14:d620415259b1:
#ifndef CommDelegate_h #define CommDelegate_h class CommDelegate//parent class { public: CommDelegate(){}//constructor method //thetas float virtual getTheta1(){return 0.0;} float virtual getDTheta1(){return 0.0;} float virtual getTheta2(){return 0.0;} float virtual getDTheta2(){return 0.0;} //gains void virtual setSwingUpK(float k){}; void virtual setSwingUpD(float d){}; void virtual setDesiredThetaP(float p){}; float virtual getSwingUpK(){return 0;}; float virtual getSwingUpD(){return 0;}; float virtual getDesiredThetaP(){return 0;}; //target void virtual setTargetPosition(int position){}; int virtual getTargetPosition(){return 0;}; //motor void virtual setTheta(float theta){}; protected: }; #endif