shared

Dependencies:   mbed-rtos mbed

Fork of Boboobooo by kao yi

Committer:
Kruskal
Date:
Fri Oct 31 10:54:51 2014 +0000
Revision:
8:089b778962c4
Parent:
0:68c173249c01
:D

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kruskal 8:089b778962c4 1
backman 0:68c173249c01 2
backman 0:68c173249c01 3
backman 0:68c173249c01 4
Kruskal 8:089b778962c4 5
backman 0:68c173249c01 6 #include "mbed.h"
Kruskal 8:089b778962c4 7
Kruskal 8:089b778962c4 8
Kruskal 8:089b778962c4 9
backman 0:68c173249c01 10 class BX_servo{
backman 0:68c173249c01 11
backman 0:68c173249c01 12
backman 0:68c173249c01 13 public:
Kruskal 8:089b778962c4 14 float set_angle(float a);
backman 0:68c173249c01 15
backman 0:68c173249c01 16 BX_servo(void);
backman 0:68c173249c01 17
backman 0:68c173249c01 18
backman 0:68c173249c01 19
backman 0:68c173249c01 20
backman 0:68c173249c01 21
backman 0:68c173249c01 22
backman 0:68c173249c01 23
backman 0:68c173249c01 24 private:
backman 0:68c173249c01 25
backman 0:68c173249c01 26 //-90~0~90
Kruskal 8:089b778962c4 27 float angle ;
backman 0:68c173249c01 28
backman 0:68c173249c01 29 PwmOut* servo_in;
backman 0:68c173249c01 30 //0~36 // 18 mid
Kruskal 8:089b778962c4 31
backman 0:68c173249c01 32
Kruskal 8:089b778962c4 33 };
Kruskal 8:089b778962c4 34