Skip to content

Commit

Permalink
Update dcservoProMicro.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
misan authored Jul 18, 2016
1 parent f2d539b commit 0b728d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dcservoProMicro.ino
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void setup() {
void loop(){
input = encoder0Pos;
setpoint=target1;
myPID.Compute();
while(!myPID.Compute()); // wait till PID is actually computed
if(Serial.available()) process_line(); // it may induce a glitch to move motion, so use it sparingly
pwmOut(output);
if(auto1) if(millis() % 3000 == 0) target1=random(2000); // that was for self test with no input from main controller
Expand Down

0 comments on commit 0b728d7

Please sign in to comment.