Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: lin_step_mtr.h
- Revision:
- 11:2507965c1bec
- Parent:
- 8:f1d869d9b8df
--- a/lin_step_mtr.h Tue Apr 28 21:10:15 2020 +0000 +++ b/lin_step_mtr.h Wed Apr 29 04:00:45 2020 +0000 @@ -110,20 +110,33 @@ */ double get_rev(); - /** Getters for {min,max}_rev_cnt, these revolution counts are used as software - * stops to prevent the motor from going too far. Default to max/min double + /** Sets the value of min_rev_cnt. This value is used as a software stop to + * prevent the motor from rotating any farther while going counterclockwise. + * Defaults to the minimum value of a double. * - * @return the minimum or maximum revevolution count limit + * @param rc new minimum revolution count limit value + */ + void set_min_rev_cnt(double rc); + + /** Sets the value of max_rev_cnt. This value is used as a software stop to + * prevent the motor from rotating any farther while going clockwise + * Defaults to the maximum value of a double. + * + * @param rc new maximum revolution count limit value + */ + void set_max_rev_cnt(double rc); + + /** Gets the value of the current minumum revolution count + * + * @return the current minimum revevolution count limit */ double get_min_rev_cnt(); - double get_max_rev_cnt(); - /** Getters and Setters for {min,max}_rev_cnt + /** Gets the value of the current maximum revolution count * - * @param rc new revolution count limit value + * @return the current maximum revevolution count limit */ - void set_min_rev_cnt(double rc); - void set_max_rev_cnt(double rc); + double get_max_rev_cnt(); /** Rests the revolution count limits to max/min of double */