NerfUS / Mbed 2 deprecated NerfUSTarget

Dependencies:   LedController mbed-rtos mbed NerfUSXbee Servomotor TargetManager

Fork of NerfUS by NerfUS

Committer:
GaiSensei
Date:
Tue Apr 11 03:49:04 2017 +0000
Revision:
46:853966aab733
Calibrate servomotors

Who changed what in which revision?

UserRevisionLine numberNew 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