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.
Dependencies: motor_relay
Dependents: dog_V3_3_testmotor
Diff: motion_control.h
- Revision:
- 2:2cadf29245f4
- Parent:
- 1:5b313fd2ca6f
- Child:
- 3:4fa191f2194d
--- a/motion_control.h Fri Jul 17 14:04:47 2015 +0000 +++ b/motion_control.h Fri Jul 17 14:32:19 2015 +0000 @@ -15,7 +15,14 @@ int8_t GetLimitUp(); int8_t GetLimitDown(); + void SetMargin(int16_t data); + int16_t GetMargin(); + + uint16_t GetMaxPosition(); + uint16_t GetMinPosition(); + + private: @@ -29,8 +36,8 @@ int16_t error; int16_t MARGIN; - int16_t MAX_POSITION; - int16_t MIN_POSITION; + uint16_t MAX_POSITION; + uint16_t MIN_POSITION; const uint16_t scale= 1000;