diff --git a/library.properties b/library.properties index 5c0fc77..8eb76e6 100644 --- a/library.properties +++ b/library.properties @@ -1,9 +1,9 @@ name=RMCS-220X -version=1.1.0 +version=1.1.1 author=Antoine Petty maintainer=Antoine Petty sentence=A library to facilitate the control of a Rhino RMCS-220X Servo Motor over i2c. paragraph=This library has control methods for speed, position (in both steps and degrees), and setup functions of the motor. More documentation for the motor can be found in the RMCS-220X Manual category=Device Control -url=https://github.com/antoinepetty/RhinoNEMA23MotorControl +url=https://github.com/antoinepetty/RMCS-220X-Control architectures=avr \ No newline at end of file diff --git a/src/RMCS-220X.cpp b/src/RMCS-220X.cpp index 1995a89..c877864 100644 --- a/src/RMCS-220X.cpp +++ b/src/RMCS-220X.cpp @@ -1,6 +1,6 @@ #include "RMCS-220X.h" -long RMCS220X::stepsFromDegrees(float angle) { +long RMCS220X::stepsFromDegrees(double angle) { return angle/DEGREES_RESOLUTION; } diff --git a/src/RMCS-220X.h b/src/RMCS-220X.h index c86496c..97e2d3d 100644 --- a/src/RMCS-220X.h +++ b/src/RMCS-220X.h @@ -21,7 +21,7 @@ class RMCS220X{ private: byte i2cAddress = 0x10; // Default address for this motor is 0x10 - long stepsFromDegrees(float angle); + long stepsFromDegrees(double angle); double stepsToDegrees(long steps);