Skip to content

Commit

Permalink
Updated README to reflect boolean return from getMotorReady
Browse files Browse the repository at this point in the history
  • Loading branch information
dcyoung committed Apr 19, 2017
1 parent 90d397e commit dca2eff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sweepjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ sweep = new Sweep('/dev/ttyUSB0');
sweep.startScanning();
sweep.stopScanning();

// waits until motor is ready
// waits until device is ready (calibration routine complete and motor speed stabilized)
sweep.waitUntilMotorReady();
// code === 0 -> ready (motor ready), code !== 0 -> not ready
code = sweep.getMotorReady();
// ready === true if device is ready, false otherwise
ready = sweep.getMotorReady();
// integer value between 0:10 (in HZ)
speed = sweep.getMotorSpeed();
// integer value between 0:10 (in HZ)
Expand Down
2 changes: 1 addition & 1 deletion sweeppy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Sweep:
def stop_scanning(self) -> None
def wait_until_motor_ready(self) -> None
def get_motor_ready(self) -> int (0 indicates motor is ready)
def get_motor_ready(self) -> bool
def get_motor_speed(self) -> int (Hz)
def set_motor_speed(self, speed) -> None
Expand Down

0 comments on commit dca2eff

Please sign in to comment.