![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Library version for DC_Stepper_Controller_Lib with PWM speed control
Dependents: DR-ArmServoTest Auto_DC_pick_class MBed_TR1 ros_button_2021
Diff: DC_Motor_Controller.h
- Revision:
- 14:c9611cf036ad
- Parent:
- 13:675456f1f401
- Child:
- 15:87df75ee8731
diff -r 675456f1f401 -r c9611cf036ad DC_Motor_Controller.h --- a/DC_Motor_Controller.h Thu May 27 05:43:48 2021 +0000 +++ b/DC_Motor_Controller.h Thu May 27 07:32:49 2021 +0000 @@ -16,6 +16,7 @@ int get_pulse(); protected: + int _ppr; PwmOut out1, out2; QEI dc_motor; virtual void goto_pulse(int tar_pulse, float speed = 1) = 0;