Programabilno vođenje DC motora
DCMotor_seminarski.h@0:111d0d8f408d, 2016-02-14 (annotated)
- Committer:
- Josip
- Date:
- Sun Feb 14 20:26:18 2016 +0000
- Revision:
- 0:111d0d8f408d
Programabilno vo?enje DC Motora_prva verzija
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Josip | 0:111d0d8f408d | 1 | #ifndef MBED_DCMotor_seminarski_H |
Josip | 0:111d0d8f408d | 2 | #define MBED_DCMotor_seminarski_H |
Josip | 0:111d0d8f408d | 3 | |
Josip | 0:111d0d8f408d | 4 | #include "mbed.h" |
Josip | 0:111d0d8f408d | 5 | |
Josip | 0:111d0d8f408d | 6 | class Motor{ |
Josip | 0:111d0d8f408d | 7 | public: |
Josip | 0:111d0d8f408d | 8 | Motor(PinName naprijed, PinName nazad); |
Josip | 0:111d0d8f408d | 9 | void naprijedbrzo(); |
Josip | 0:111d0d8f408d | 10 | void naprijedsporo(); |
Josip | 0:111d0d8f408d | 11 | void nazadbrzo(); |
Josip | 0:111d0d8f408d | 12 | void nazadsporo(); |
Josip | 0:111d0d8f408d | 13 | void naprijedrampa(); |
Josip | 0:111d0d8f408d | 14 | void stop(); |
Josip | 0:111d0d8f408d | 15 | |
Josip | 0:111d0d8f408d | 16 | private: |
Josip | 0:111d0d8f408d | 17 | PwmOut _naprijed; |
Josip | 0:111d0d8f408d | 18 | PwmOut _nazad; |
Josip | 0:111d0d8f408d | 19 | }; |
Josip | 0:111d0d8f408d | 20 | |
Josip | 0:111d0d8f408d | 21 | #endif |