FM-test

Dependencies:   MODSERIAL mbed-rtos mbed

Fork of Master by Ohnishi_Gundan

Committer:
9uS7
Date:
Thu Sep 11 14:42:49 2014 +0000
Revision:
1:e1cfb5850088
Parent:
0:4f07ba929908
Child:
2:c610e1a7fbcd
can compile

Who changed what in which revision?

UserRevisionLine numberNew contents of line
9uS7 0:4f07ba929908 1 #ifndef _INC_MY_CONTROL
9uS7 0:4f07ba929908 2 #define _INC_MY_CONTROL
9uS7 0:4f07ba929908 3
9uS7 0:4f07ba929908 4 #include "mbed.h"
9uS7 0:4f07ba929908 5
9uS7 1:e1cfb5850088 6 #define red_v 0.01
9uS7 1:e1cfb5850088 7 #define center_pos 0.80
9uS7 1:e1cfb5850088 8 #define late_time 0.3
9uS7 1:e1cfb5850088 9 #define zeroPWM 0.17
9uS7 0:4f07ba929908 10
9uS7 0:4f07ba929908 11 void pull(float); //pull motor(power) power:0~1
9uS7 0:4f07ba929908 12 void loose(float); //loose motor(power) power:0~1
9uS7 1:e1cfb5850088 13 void brake(void); //brake motor()
9uS7 1:e1cfb5850088 14 void open(void); //open motor()
9uS7 0:4f07ba929908 15
9uS7 0:4f07ba929908 16 #endif