Motor driver library for the AP1017.
AKM Development Platform
AP1017 Motor Driver
Import libraryAP1017
Motor driver library for the AP1017.
Diff: AP1017.cpp
- Revision:
- 11:fe157aefa7e7
- Parent:
- 10:16d45e3f4be3
--- a/AP1017.cpp Wed Nov 08 21:37:24 2017 +0000 +++ b/AP1017.cpp Wed May 02 19:51:16 2018 +0000 @@ -99,7 +99,7 @@ } -AP1017::Status AP1017::setSpeed(float dc) +AP1017::Status AP1017::setSpeed(double dc) { if((dc <= 100.0) && (dc >= 0.0)) { @@ -120,7 +120,7 @@ } -float AP1017::getSpeed(void) +double AP1017::getSpeed(void) { MSG("Speed: %.1f%%\r\n.", dutyCycle*100.0); return dutyCycle*100.0;