Skip to content

Commit

Permalink
uses public data member instead of set method, allows for GUI speed c…
Browse files Browse the repository at this point in the history
…hange input
  • Loading branch information
davidskeck committed Apr 22, 2014
1 parent 68e3781 commit bf03d57
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CurioDuinoOBS/CurioDuinoOBS.ino
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ void checkDataAndWait()
data.send();
data.receive();
}

// Check if speed has changed
if (nav.forwardSpeed != data.newSetSpeed)
{
nav.forwardSpeed = data.newSetSpeed;
}
}

//------------------------------------------------------------------------------
Expand Down Expand Up @@ -160,7 +166,7 @@ void setup()
nav.begin();

// Set starting speed
nav.setSpeed(75);
nav.forwardSpeed = 75;

// Wait for GUI to signal start
checkDataAndWait();
Expand Down

0 comments on commit bf03d57

Please sign in to comment.