Practical Robotics Modular Robot Library
Diff: motors.h
- Revision:
- 5:6da8daaeb9f7
- Parent:
- 3:8762f6b2ea8d
--- a/motors.h Mon Jan 02 15:17:22 2017 +0000 +++ b/motors.h Mon Jan 02 22:56:34 2017 +0000 @@ -121,6 +121,11 @@ * @returns The adjusted speed value from 0.0 to 1.0, increased by STALL_OFFSET then scaled to fit */ float get_adjusted_speed(float speed_in); + + /** + * Sets the PWM period in microseconds (minimum value set to 10 for 100kHZ PWM) + */ + void set_pwm_period(int period_in); };