Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LedController mbed-rtos mbed NerfUSXbee Servomotor TargetManager
Fork of NerfUS by
include/Calibrator.hpp@46:853966aab733, 2017-04-11 (annotated)
- Committer:
- GaiSensei
- Date:
- Tue Apr 11 03:49:04 2017 +0000
- Revision:
- 46:853966aab733
Calibrate servomotors
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GaiSensei | 46:853966aab733 | 1 | #ifndef CALIBRATOR_HPP |
GaiSensei | 46:853966aab733 | 2 | #define CALIBRATOR_HPP |
GaiSensei | 46:853966aab733 | 3 | |
GaiSensei | 46:853966aab733 | 4 | #include "Servomotor.hpp" |
GaiSensei | 46:853966aab733 | 5 | |
GaiSensei | 46:853966aab733 | 6 | class Calibrator |
GaiSensei | 46:853966aab733 | 7 | { |
GaiSensei | 46:853966aab733 | 8 | public: |
GaiSensei | 46:853966aab733 | 9 | Calibrator(Servomotor& servomotor); |
GaiSensei | 46:853966aab733 | 10 | void calibrate(); |
GaiSensei | 46:853966aab733 | 11 | void on_rise(); |
GaiSensei | 46:853966aab733 | 12 | |
GaiSensei | 46:853966aab733 | 13 | private: |
GaiSensei | 46:853966aab733 | 14 | Servomotor& servomotor; |
GaiSensei | 46:853966aab733 | 15 | bool is_bumper_pressed; |
GaiSensei | 46:853966aab733 | 16 | }; |
GaiSensei | 46:853966aab733 | 17 | |
GaiSensei | 46:853966aab733 | 18 | #endif |