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:
- 1:5b313fd2ca6f
- Parent:
- 0:77ab14788110
- Child:
- 2:2cadf29245f4
--- a/motion_control.h Fri Jul 17 12:07:01 2015 +0000 +++ b/motion_control.h Fri Jul 17 14:04:47 2015 +0000 @@ -16,6 +16,7 @@ int8_t GetLimitUp(); int8_t GetLimitDown(); void SetMargin(int16_t data); + private: @@ -31,6 +32,9 @@ int16_t MAX_POSITION; int16_t MIN_POSITION; + const uint16_t scale= 1000; + + float Kp; float Ki; float Kd;