Skip to content

Commit

Permalink
Merge pull request #5 from antoinepetty/minor-fixes
Browse files Browse the repository at this point in the history
Minor fixes to url and data type
  • Loading branch information
antoinepetty authored Apr 18, 2020
2 parents 21cef45 + e05488a commit 831cb9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name=RMCS-220X
version=1.1.0
version=1.1.1
author=Antoine Petty
maintainer=Antoine Petty <arduino@antoinepetty.co.uk>
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 <a href="https://robokits.download/downloads/RMCS220x_DCServo+Driver.pdf">RMCS-220X Manual</a>
category=Device Control
url=https://github.com/antoinepetty/RhinoNEMA23MotorControl
url=https://github.com/antoinepetty/RMCS-220X-Control
architectures=avr
2 changes: 1 addition & 1 deletion src/RMCS-220X.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "RMCS-220X.h"

long RMCS220X::stepsFromDegrees(float angle) {
long RMCS220X::stepsFromDegrees(double angle) {
return angle/DEGREES_RESOLUTION;
}

Expand Down
2 changes: 1 addition & 1 deletion src/RMCS-220X.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 831cb9a

Please sign in to comment.