Motor driver library for the AP1017.
AKM Development Platform
AP1017 Motor Driver
Import libraryAP1017
Motor driver library for the AP1017.
Diff: AP1017.h
- Revision:
- 11:fe157aefa7e7
- Parent:
- 10:16d45e3f4be3
--- a/AP1017.h Wed Nov 08 21:37:24 2017 +0000 +++ b/AP1017.h Wed May 02 19:51:16 2018 +0000 @@ -72,12 +72,12 @@ * @param dc Duty cycle as a proportion (0.0 to 1.0). * @return Returns successful termination or dutyc cyle error. */ - Status setSpeed(float dc); + Status setSpeed(double dc); /** * Returns the currently set speed as a percentage. */ - float getSpeed(void); + double getSpeed(void); /** * Engages the motor. @@ -117,7 +117,7 @@ private: bool motorOn; // Status flag for the motor - float dutyCycle; // Given as proportion: 0.00 to 1.00 + double dutyCycle; // Given as proportion: 0.00 to 1.00 Rotation direction; TCA9554A *motor; // Motor object