FM-test
Dependencies: MODSERIAL mbed-rtos mbed
Fork of Master by
control.h@2:c610e1a7fbcd, 2014-09-11 (annotated)
- Committer:
- 9uS7
- Date:
- Thu Sep 11 15:09:05 2014 +0000
- Revision:
- 2:c610e1a7fbcd
- Parent:
- 1:e1cfb5850088
- Child:
- 3:12e1f116ea42
made motorSetup
Who changed what in which revision?
User | Revision | Line number | New 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 | 2:c610e1a7fbcd | 11 | void motorSetup(void); |
9uS7 | 2:c610e1a7fbcd | 12 | |
9uS7 | 0:4f07ba929908 | 13 | void pull(float); //pull motor(power) power:0~1 |
9uS7 | 0:4f07ba929908 | 14 | void loose(float); //loose motor(power) power:0~1 |
9uS7 | 1:e1cfb5850088 | 15 | void brake(void); //brake motor() |
9uS7 | 1:e1cfb5850088 | 16 | void open(void); //open motor() |
9uS7 | 0:4f07ba929908 | 17 | |
9uS7 | 2:c610e1a7fbcd | 18 | void resetPos(void); |
9uS7 | 2:c610e1a7fbcd | 19 | |
9uS7 | 0:4f07ba929908 | 20 | #endif |