Example use of I2CTransaction class. In this example, the master mbed is talking to 3 legs of the SIPPC3B robot.
Diff: LegInterface.h
- Revision:
- 4:5f7d38d0e22d
- Parent:
- 3:8e7471af3453
- Child:
- 5:86f1cd6657de
--- a/LegInterface.h Mon May 26 20:07:53 2014 +0000 +++ b/LegInterface.h Tue Jun 10 19:21:21 2014 +0000 @@ -3,6 +3,11 @@ #include "I2CTransaction.h" #include "leg_packets.h" + + + + + class LegInterface { public: @@ -41,6 +46,9 @@ bool setLegGoal(int32_t liftPos[NUM_LEGS], int32_t wheelVel[NUM_LEGS]); bool setLegGoal(float liftPos[NUM_LEGS], float wheelVel[NUM_LEGS]); void displayStatus(); + static void reset(); + static void resetBus(); + static void cycleBus(); private: I2CTransaction *transactionEstop[NUM_LEGS];