Dependents:   servo_01 nhk_2018_undercarry_test08 nhk_2018_undercarry_test09 nhk_2018_undercarry_test10

Committer:
kenken0721
Date:
Sun Mar 18 06:41:56 2018 +0000
Revision:
0:6f76e98e01ad

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kenken0721 0:6f76e98e01ad 1 #ifndef XQ_SERVO_H
kenken0721 0:6f76e98e01ad 2 #define XQ_SERVO_H
kenken0721 0:6f76e98e01ad 3
kenken0721 0:6f76e98e01ad 4 #include "mbed.h"
kenken0721 0:6f76e98e01ad 5
kenken0721 0:6f76e98e01ad 6 class XQ_servo{
kenken0721 0:6f76e98e01ad 7 public :
kenken0721 0:6f76e98e01ad 8 XQ_servo(PinName signal);
kenken0721 0:6f76e98e01ad 9 void move(float value);
kenken0721 0:6f76e98e01ad 10 private :
kenken0721 0:6f76e98e01ad 11 PwmOut pwm;
kenken0721 0:6f76e98e01ad 12 double map(double x, double in_min, double in_max, double out_min, double out_max);
kenken0721 0:6f76e98e01ad 13 };
kenken0721 0:6f76e98e01ad 14
kenken0721 0:6f76e98e01ad 15 #endif