![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
na
Dependencies: SeeedShieldBot mbed
Fork of robotLibreria by
Shieldbot.h@0:fc1b473bfa7f, 2015-08-11 (annotated)
- Committer:
- jeserenom
- Date:
- Tue Aug 11 04:49:45 2015 +0000
- Revision:
- 0:fc1b473bfa7f
robots proyecto unalmed
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jeserenom | 0:fc1b473bfa7f | 1 | /* |
jeserenom | 0:fc1b473bfa7f | 2 | Created to support the release of the Sheildbot from SeeedStudios |
jeserenom | 0:fc1b473bfa7f | 3 | http://www.seeedstudio.com/wiki/Shield_Bot |
jeserenom | 0:fc1b473bfa7f | 4 | |
jeserenom | 0:fc1b473bfa7f | 5 | Created by Jacob Rosenthal and Colin Ho, December 30, 2012. |
jeserenom | 0:fc1b473bfa7f | 6 | Released into the public domain. |
jeserenom | 0:fc1b473bfa7f | 7 | */ |
jeserenom | 0:fc1b473bfa7f | 8 | |
jeserenom | 0:fc1b473bfa7f | 9 | // ensure this library description is only included once |
jeserenom | 0:fc1b473bfa7f | 10 | #ifndef Shieldbot_h |
jeserenom | 0:fc1b473bfa7f | 11 | #define Shieldbot_h |
jeserenom | 0:fc1b473bfa7f | 12 | |
jeserenom | 0:fc1b473bfa7f | 13 | |
jeserenom | 0:fc1b473bfa7f | 14 | // include types & constants of Wiring core API |
jeserenom | 0:fc1b473bfa7f | 15 | #include "mbed.h" |
jeserenom | 0:fc1b473bfa7f | 16 | |
jeserenom | 0:fc1b473bfa7f | 17 | // library interface description |
jeserenom | 0:fc1b473bfa7f | 18 | class Shieldbot |
jeserenom | 0:fc1b473bfa7f | 19 | { |
jeserenom | 0:fc1b473bfa7f | 20 | // user-accessible "public" interface |
jeserenom | 0:fc1b473bfa7f | 21 | public: |
jeserenom | 0:fc1b473bfa7f | 22 | Shieldbot(); |
jeserenom | 0:fc1b473bfa7f | 23 | int readS1(); |
jeserenom | 0:fc1b473bfa7f | 24 | int readS2(); |
jeserenom | 0:fc1b473bfa7f | 25 | int readS3(); |
jeserenom | 0:fc1b473bfa7f | 26 | int readS4(); |
jeserenom | 0:fc1b473bfa7f | 27 | int readS5(); |
jeserenom | 0:fc1b473bfa7f | 28 | void setMaxSpeed(int); |
jeserenom | 0:fc1b473bfa7f | 29 | void setMaxSpeed(int, int); |
jeserenom | 0:fc1b473bfa7f | 30 | void setMaxLeftSpeed(int); |
jeserenom | 0:fc1b473bfa7f | 31 | void setMaxRightSpeed(int); |
jeserenom | 0:fc1b473bfa7f | 32 | void rightMotor(char); |
jeserenom | 0:fc1b473bfa7f | 33 | void leftMotor(char); |
jeserenom | 0:fc1b473bfa7f | 34 | void drive(char, char); |
jeserenom | 0:fc1b473bfa7f | 35 | void forward(); |
jeserenom | 0:fc1b473bfa7f | 36 | void backward(); |
jeserenom | 0:fc1b473bfa7f | 37 | void stop(); |
jeserenom | 0:fc1b473bfa7f | 38 | void stopRight(); |
jeserenom | 0:fc1b473bfa7f | 39 | void stopLeft(); |
jeserenom | 0:fc1b473bfa7f | 40 | void fastStopLeft(); |
jeserenom | 0:fc1b473bfa7f | 41 | void fastStopRight(); |
jeserenom | 0:fc1b473bfa7f | 42 | void fastStop(); |
jeserenom | 0:fc1b473bfa7f | 43 | |
jeserenom | 0:fc1b473bfa7f | 44 | }; |
jeserenom | 0:fc1b473bfa7f | 45 | |
jeserenom | 0:fc1b473bfa7f | 46 | #endif |