Skip to content

Commit

Permalink
fixed minor compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
DLohmann committed Jul 25, 2018
1 parent 959ca15 commit f3d5571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PID_Line_Follower_and_Motors/PID_Line_Follower_and_Motors.ino
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ int getError () {
// setPoint: desired value
// processValue: current value
// Error = setPoint - processValue
return getPosition(); //0 - getPosition(); //???
return mySensorBar.getPosition(); //0 - getPosition(); //???
}

void forward(){
Expand Down Expand Up @@ -269,4 +269,4 @@ void printSensorBarVals () {
Serial.print (mySensorBar.getPosition());
Serial.print (", Density: ");
Serial.println (mySensorBar.getDensity());
}
}

0 comments on commit f3d5571

Please sign in to comment.