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:
- 7:94518aee126b
- Parent:
- 6:41d7cf11fdb1
- Child:
- 9:e3895130e56f
--- a/motion_control.h Mon Jul 20 09:15:28 2015 +0000 +++ b/motion_control.h Fri Jul 24 21:15:45 2015 +0000 @@ -32,6 +32,13 @@ void stop(); + void SetMode(uint8_t mode); + uint8_t GetMode(); + + void SetOffset(uint16_t value); + uint16_t GetOffset(); + + private: uint16_t Scale(uint16_t data); @@ -50,7 +57,9 @@ const static uint16_t scale = 64; const static uint16_t LOOP = 100; - + + uint8_t mode_limit; + uint16_t OFFSET_MAX_POSITION; //float Kp; //float Ki; //float Kd;