Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jswanborough authored Nov 22, 2017
1 parent d94139e commit 5cbebab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ namespace invent {
// aSpeed = 0;
// }
// else {
let aSpeed = ((speed/100) * 1023).toFixed(0);
let aSpeed = (speed/100) * 1023;
let remainder = aSpeed%1;
aSpeed = aSpeed-remainder;
// }

if ((motor == InventMotor.Left) || (motor == InventMotor.All)) {
Expand Down

0 comments on commit 5cbebab

Please sign in to comment.