roombacomm
Class BumpTurn
java.lang.Object
roombacomm.BumpTurn
public class BumpTurn
- extends java.lang.Object
Read sensors to detect bumps and turn away from them while driving
Run it with something like:
java roombacomm.BumpTurn /dev/cu.KeySerial1
Usage:
roombacomm.Drive serialportname [protocol] [options]
where:
protocol (optional) is SCI or OI
[options] can be one or more of:
-debug -- turn on debug output
-hwhandshake -- use hardware-handshaking, for Windows Bluetooth
-nohwhandshake -- don't use hardware-handshaking
|
Method Summary |
static boolean |
keyIsPressed()
check for keypress, return true if so |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BumpTurn
public BumpTurn()
main
public static void main(java.lang.String[] args)
keyIsPressed
public static boolean keyIsPressed()
- check for keypress, return true if so