130901現在開発中 BD6211 motor driver Library FIN,RIN にPWM信号を入れて速度制御する
Fork of Motordriver by
Diff: motordriver.h
- Revision:
- 4:5fb1296c0d60
- Parent:
- 2:2dc873322032
diff -r 8822f4955035 -r 5fb1296c0d60 motordriver.h --- a/motordriver.h Fri Nov 19 12:33:38 2010 +0000 +++ b/motordriver.h Thu Nov 25 13:31:22 2010 +0000 @@ -68,6 +68,12 @@ */ float stop(float duty); +/** return the current state of the motor +* +* @param void +* @return state of motor, -1 to 1 is speed, -2 is braking, 2 is coasting. -3 is error. +*/ + float state(void); protected: PwmOut _pwm; @@ -78,4 +84,8 @@ }; + + + + #endif