Skip to content

Commit

Permalink
making changes ... again!
Browse files Browse the repository at this point in the history
  • Loading branch information
bign8 committed Apr 23, 2012
1 parent 431b05f commit 4fd939f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Speedometer.java
Expand Up @@ -49,6 +49,8 @@ public static void run(String args[]) {
int previousCounts = 0;
int power = 0;
int rpm = 0;
int velocity;
int counts;
long time = System.currentTimeMillis();
while (true) {
// Calculate RPM (Revolutions Per Minute)
Expand All @@ -75,7 +77,7 @@ public static void run(String args[]) {
power = 16;
if (power < -16)
power = -16;
display.print(0, "Power: " + power);
display.print(1, "Power: " + power);

//set power
motor.setPower(power);
Expand Down

0 comments on commit 4fd939f

Please sign in to comment.