A library to control a CYS S8218 servo

Dependents:   Heiko

Files at this revision

API Documentation at this revision

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);
 }