Permalink
Browse files

Changed readPosition() to long

  • Loading branch information...
1 parent 2b6a1cb commit d2a6c3d5a862d92a095182e5e8d0708bbd86a630 @Lauszus Lauszus committed May 8, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 NXTShield.cpp
  2. +2 −2 NXTShield.h
View
@@ -240,7 +240,7 @@ void Motor1::coast(void) {
_isTurning1 = false;
digitalWrite(firstPWM, LOW);
}
-int Motor1::readPosition(void) {
+long Motor1::readPosition(void) {
return _firstTachPos;
}
void Motor1::resetPosition(void) {
@@ -305,7 +305,7 @@ void Motor2::coast(void) {
_isTurning2 = false;
digitalWrite(secondPWM, LOW);
}
-int Motor2::readPosition(void) {
+long Motor2::readPosition(void) {
return _secondTachPos;
}
void Motor2::resetPosition(void) {
View
@@ -76,7 +76,7 @@ class Motor1 {
void move(Direction direction, uint8_t torque, int rotation, Brake brake);
void stop(void);
void coast(void);
- int readPosition(void);
+ long readPosition(void);
void resetPosition(void);
bool isTurning(void);
};
@@ -87,7 +87,7 @@ class Motor2 {
void move(Direction direction, uint8_t torque, int rotation, Brake brake);
void stop(void);
void coast(void);
- int readPosition(void);
+ long readPosition(void);
void resetPosition(void);
bool isTurning(void);
};

0 comments on commit d2a6c3d

Please sign in to comment.