XBee.h@1:7f0b90daef14, 2015-08-21 (annotated)
- Committer:
- inst
- Date:
- Fri Aug 21 04:51:52 2015 +0000
- Revision:
- 1:7f0b90daef14
- Parent:
- 0:7e177131730d
- Child:
- 2:869012d317b5
y evol
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
inst | 0:7e177131730d | 1 | #ifndef INCLUDED_XBEE_H |
inst | 0:7e177131730d | 2 | #define INCLUDED_XBEE_H |
inst | 0:7e177131730d | 3 | |
inst | 0:7e177131730d | 4 | #include "mbed.h" |
inst | 0:7e177131730d | 5 | #include "I2CDevice.h" |
inst | 1:7f0b90daef14 | 6 | #include "Command.h" |
inst | 0:7e177131730d | 7 | |
inst | 0:7e177131730d | 8 | class XBee : public I2CDevice{ |
inst | 0:7e177131730d | 9 | public: |
inst | 1:7f0b90daef14 | 10 | XBee( char address ); |
inst | 0:7e177131730d | 11 | |
inst | 0:7e177131730d | 12 | virtual void write(){} |
inst | 0:7e177131730d | 13 | virtual void read(); |
inst | 0:7e177131730d | 14 | |
inst | 1:7f0b90daef14 | 15 | Command generateCommand(); |
inst | 0:7e177131730d | 16 | |
inst | 0:7e177131730d | 17 | private: |
inst | 1:7f0b90daef14 | 18 | static const size_t mNumOfDivDirection; |
inst | 1:7f0b90daef14 | 19 | static const float mDutyTable[]; |
inst | 1:7f0b90daef14 | 20 | static const float mRollCoeffTable[]; |
inst | 1:7f0b90daef14 | 21 | |
inst | 1:7f0b90daef14 | 22 | float mMoveDirection_rad; |
inst | 1:7f0b90daef14 | 23 | float mMoveDuty; |
inst | 1:7f0b90daef14 | 24 | float mRollCoeff; |
inst | 1:7f0b90daef14 | 25 | |
inst | 1:7f0b90daef14 | 26 | Command::ActionType mActionType; |
inst | 0:7e177131730d | 27 | }; |
inst | 0:7e177131730d | 28 | |
inst | 0:7e177131730d | 29 | #endif |