![](/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/Comm.h
- Committer:
- amandaghassaei
- Date:
- 2015-12-08
- Revision:
- 11:711d3c207e8c
- Parent:
- 10:769cc457c3a4
- Child:
- 14:d620415259b1
File content as of revision 11:711d3c207e8c:
#ifndef Comm_h #define Comm_h #include "json.h" #include "CommDelegate.h" #include "mbed_rpc.h" class Comm{ public: Comm(CommDelegate *controls); void openGripper1(Arguments* input, Reply* output); void closeGripper1(Arguments* input, Reply* output); void printGripper1State(bool state); void openGripper2(Arguments* input, Reply* output); void closeGripper2(Arguments* input, Reply* output); void printGripper2State(bool state); void setSwingUpK(Arguments* input, Reply* output); void setSwingUpD(Arguments* input, Reply* output); void setCurrentP(Arguments* input, Reply* output); void setCurrentD(Arguments* input, Reply* output); void printGains(); void setTarget(Arguments* input, Reply* output); void printTarget(); void setTheta(Arguments * input, Reply * output); void printPosition(); void printVelocity(); void check(); Serial* getPC(); private: Serial _pc; void throwNotEnoughArgsError(); char buf[256], outbuf[256]; JSON _json; CommDelegate *_controls; // volatile bool newline_detected = false; }; #endif