A library to control a CYS S8218 servo
Revision 3:b0a7d93e2611, committed 2016-09-23
- Comitter:
- Generic
- Date:
- Fri Sep 23 01:13:40 2016 +0000
- Parent:
- 2:695c74c6d483
- Child:
- 4:c43d375a84a9
- Commit message:
- Fixed SetZero function
Changed in this revision
CYS8218Controller.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/CYS8218Controller.cpp Fri Sep 23 03:01:18 2016 +0200 +++ b/CYS8218Controller.cpp Fri Sep 23 01:13:40 2016 +0000 @@ -47,5 +47,5 @@ void CYS8218Controller::SetZero(float angle) { - ZEROPW = (ZERO+angle*PW_PER_DEG); + ZEROPW = (ZEROPW+angle*PW_PER_DEG); }