From 815664f1648545c25bb41fd4c99117bf488c7735 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Sat, 17 Apr 2010 12:24:40 +0900 Subject: [PATCH] lejos_NXJ_win32_0_5_0beta.zip --- nxtOSEK/lejos_nxj/README.html | 82 +- nxtOSEK/lejos_nxj/RELEASENOTES | 69 + nxtOSEK/lejos_nxj/bin/StartUpText.bin | Bin 29063 -> 34982 bytes nxtOSEK/lejos_nxj/bin/jlibnxt.dll | Bin 30949 -> 30949 bytes nxtOSEK/lejos_nxj/bin/lejos_nxt_rom.bin | Bin 26800 -> 29968 bytes nxtOSEK/lejos_nxj/bin/lejos_nxt_samba_ram.bin | Bin 26800 -> 29968 bytes nxtOSEK/lejos_nxj/bin/lejosfirmdl.bat | 4 +- nxtOSEK/lejos_nxj/bin/nxj.bat | 4 +- nxtOSEK/lejos_nxj/bin/nxjbrowse.bat | 2 +- nxtOSEK/lejos_nxj/bin/nxjc.bat | 2 +- nxtOSEK/lejos_nxj/bin/nxjflash.exe | Bin 59068 -> 58894 bytes nxtOSEK/lejos_nxj/bin/nxjlink.bat | 2 +- nxtOSEK/lejos_nxj/bin/nxjupload.bat | 2 +- nxtOSEK/lejos_nxj/docs/apidocs/StartUpText.html | 247 -- .../lejos_nxj/docs/apidocs/allclasses-frame.html | 86 +- .../lejos_nxj/docs/apidocs/allclasses-noframe.html | 86 +- .../lejos_nxj/docs/apidocs/constant-values.html | 1404 ++++++- .../lejos_nxj/docs/apidocs/deprecated-list.html | 2 +- nxtOSEK/lejos_nxj/docs/apidocs/help-doc.html | 2 +- nxtOSEK/lejos_nxj/docs/apidocs/index-all.html | 1831 ++++++++- nxtOSEK/lejos_nxj/docs/apidocs/index.html | 2 +- .../lejos_nxj/docs/apidocs/java/awt/Rectangle.html | 323 ++ .../docs/apidocs/java/awt/package-frame.html | 32 + .../apidocs/{ => java/awt}/package-summary.html | 58 +- .../docs/apidocs/{ => java/awt}/package-tree.html | 48 +- .../docs/apidocs/java/io/DataInputStream.html | 6 +- .../docs/apidocs/java/io/DataOutputStream.html | 6 +- nxtOSEK/lejos_nxj/docs/apidocs/java/io/File.html | 105 +- .../docs/apidocs/java/io/FileInputStream.html | 10 +- .../docs/apidocs/java/io/FileOutputStream.html | 15 +- .../docs/apidocs/java/io/IOException.html | 2 +- .../docs/apidocs/java/io/InputStream.html | 2 +- .../docs/apidocs/java/io/OutputStream.html | 2 +- .../docs/apidocs/java/io/Serializable.html | 2 +- .../docs/apidocs/java/io/package-frame.html | 2 +- .../docs/apidocs/java/io/package-summary.html | 16 +- .../docs/apidocs/java/io/package-tree.html | 6 +- .../apidocs/java/lang/ArithmeticException.html | 2 +- .../java/lang/ArrayIndexOutOfBoundsException.html | 2 +- .../lejos_nxj/docs/apidocs/java/lang/Class.html | 2 +- .../docs/apidocs/java/lang/ClassCastException.html | 2 +- .../apidocs/java/lang/ClassNotFoundException.html | 2 +- .../docs/apidocs/java/lang/Cloneable.html | 2 +- .../lejos_nxj/docs/apidocs/java/lang/Error.html | 2 +- .../docs/apidocs/java/lang/Exception.html | 2 +- .../lejos_nxj/docs/apidocs/java/lang/Float.html | 2 +- .../java/lang/IllegalArgumentException.html | 2 +- .../java/lang/IllegalMonitorStateException.html | 2 +- .../apidocs/java/lang/IllegalStateException.html | 2 +- .../lejos_nxj/docs/apidocs/java/lang/Integer.html | 2 +- .../apidocs/java/lang/InterruptedException.html | 2 +- nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Math.html | 2 +- .../apidocs/java/lang/NoClassDefFoundError.html | 2 +- .../docs/apidocs/java/lang/NoSuchMethodError.html | 2 +- .../apidocs/java/lang/NullPointerException.html | 2 +- .../lejos_nxj/docs/apidocs/java/lang/Object.html | 2 +- .../docs/apidocs/java/lang/OutOfMemoryError.html | 2 +- .../lejos_nxj/docs/apidocs/java/lang/Runtime.html | 2 +- .../docs/apidocs/java/lang/RuntimeException.html | 2 +- .../docs/apidocs/java/lang/StackOverflowError.html | 2 +- .../lejos_nxj/docs/apidocs/java/lang/String.html | 2 +- .../docs/apidocs/java/lang/StringBuffer.html | 6 +- .../docs/apidocs/java/lang/StringUtils.html | 2 +- .../lejos_nxj/docs/apidocs/java/lang/System.html | 73 +- .../lejos_nxj/docs/apidocs/java/lang/Thread.html | 4 +- .../docs/apidocs/java/lang/ThreadDeath.html | 2 +- .../docs/apidocs/java/lang/Throwable.html | 2 +- .../docs/apidocs/java/lang/package-frame.html | 2 +- .../docs/apidocs/java/lang/package-summary.html | 2 +- .../docs/apidocs/java/lang/package-tree.html | 2 +- .../docs/apidocs/java/util/ArrayList.html | 6 +- .../lejos_nxj/docs/apidocs/java/util/BitSet.html | 2 +- .../apidocs/java/util/EmptyQueueException.html | 2 +- .../apidocs/java/util/EmptyStackException.html | 2 +- .../docs/apidocs/java/util/Hashtable.html | 2 +- .../lejos_nxj/docs/apidocs/java/util/Queue.html | 2 +- .../lejos_nxj/docs/apidocs/java/util/Random.html | 2 +- .../lejos_nxj/docs/apidocs/java/util/Stack.html | 2 +- .../lejos_nxj/docs/apidocs/java/util/Vector.html | 2 +- .../docs/apidocs/java/util/package-frame.html | 2 +- .../docs/apidocs/java/util/package-summary.html | 4 +- .../docs/apidocs/java/util/package-tree.html | 2 +- .../javax/microedition/io/StreamConnection.html | 2 +- .../javax/microedition/io/package-frame.html | 2 +- .../javax/microedition/io/package-summary.html | 2 +- .../javax/microedition/io/package-tree.html | 2 +- .../apidocs/javax/microedition/lcdui/Alert.html | 2 +- .../apidocs/javax/microedition/lcdui/Choice.html | 2 +- .../javax/microedition/lcdui/ChoiceGroup.html | 2 +- .../apidocs/javax/microedition/lcdui/Command.html | 2 +- .../javax/microedition/lcdui/CommandListener.html | 2 +- .../apidocs/javax/microedition/lcdui/Display.html | 2 +- .../javax/microedition/lcdui/Displayable.html | 2 +- .../apidocs/javax/microedition/lcdui/Font.html | 2 +- .../apidocs/javax/microedition/lcdui/Form.html | 2 +- .../apidocs/javax/microedition/lcdui/Gauge.html | 2 +- .../apidocs/javax/microedition/lcdui/Graphics.html | 40 +- .../apidocs/javax/microedition/lcdui/Image.html | 2 +- .../apidocs/javax/microedition/lcdui/Item.html | 2 +- .../microedition/lcdui/ItemCommandListener.html | 2 +- .../microedition/lcdui/ItemStateListener.html | 2 +- .../apidocs/javax/microedition/lcdui/List.html | 2 +- .../apidocs/javax/microedition/lcdui/Screen.html | 2 +- .../apidocs/javax/microedition/lcdui/Spacer.html | 2 +- .../javax/microedition/lcdui/StringItem.html | 2 +- .../apidocs/javax/microedition/lcdui/TextBox.html | 2 +- .../javax/microedition/lcdui/TextField.html | 2 +- .../apidocs/javax/microedition/lcdui/Ticker.html | 2 +- .../javax/microedition/lcdui/package-frame.html | 2 +- .../javax/microedition/lcdui/package-summary.html | 2 +- .../javax/microedition/lcdui/package-tree.html | 2 +- .../apidocs/lejos/navigation/CompassNavigator.html | 6 +- .../apidocs/lejos/navigation/CompassPilot.html | 6 +- .../docs/apidocs/lejos/navigation/Navigator.html | 2 +- .../docs/apidocs/lejos/navigation/Pilot.html | 2 +- .../apidocs/lejos/navigation/TachoNavigator.html | 43 +- .../apidocs/lejos/navigation/package-frame.html | 2 +- .../apidocs/lejos/navigation/package-summary.html | 7 +- .../apidocs/lejos/navigation/package-tree.html | 2 +- .../docs/apidocs/lejos/nxt/ADSensorPort.html | 292 ++ .../docs/apidocs/lejos/nxt/BasicMotor.html | 526 +++ .../docs/apidocs/lejos/nxt/BasicMotorPort.html | 291 ++ .../docs/apidocs/lejos/nxt/BasicSensorPort.html | 330 ++ .../lejos_nxj/docs/apidocs/lejos/nxt/Battery.html | 6 +- .../lejos_nxj/docs/apidocs/lejos/nxt/Button.html | 2 +- .../docs/apidocs/lejos/nxt/ButtonListener.html | 2 +- .../docs/apidocs/lejos/nxt/ColorSensor.html | 8 +- .../docs/apidocs/lejos/nxt/CompassSensor.html | 12 +- .../lejos_nxj/docs/apidocs/lejos/nxt/Flash.html | 86 +- .../docs/apidocs/lejos/nxt/GyroSensor.html | 307 ++ .../lejos_nxj/docs/apidocs/lejos/nxt/I2CPort.html | 321 ++ .../docs/apidocs/lejos/nxt/I2CSensor.html | 69 +- .../lejos_nxj/docs/apidocs/lejos/nxt/IRSeeker.html | 310 ++ nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/LCD.html | 58 +- .../docs/apidocs/lejos/nxt/LegacySensorPort.html | 276 ++ .../docs/apidocs/lejos/nxt/LightSensor.html | 14 +- .../docs/apidocs/lejos/nxt/ListenerCaller.html | 2 +- .../lejos_nxj/docs/apidocs/lejos/nxt/Motor.html | 229 +- .../docs/apidocs/lejos/nxt/MotorPort.html | 46 +- .../lejos_nxj/docs/apidocs/lejos/nxt/NXTCam.html | 353 ++ nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Poll.html | 6 +- .../docs/apidocs/lejos/nxt/RCXLightSensor.html | 10 +- .../lejos_nxj/docs/apidocs/lejos/nxt/RCXLink.html | 1379 +++++++ .../lejos_nxj/docs/apidocs/lejos/nxt/RCXMotor.html | 325 +- .../apidocs/lejos/nxt/RCXMotorMultiplexer.html | 428 ++ .../docs/apidocs/lejos/nxt/RCXPlexedMotorPort.html | 305 ++ .../docs/apidocs/lejos/nxt/RCXRemoteMotorPort.html | 305 ++ .../docs/apidocs/lejos/nxt/SensorConstants.html | 11 +- .../docs/apidocs/lejos/nxt/SensorPort.html | 34 +- .../docs/apidocs/lejos/nxt/SensorPortListener.html | 2 +- .../lejos_nxj/docs/apidocs/lejos/nxt/Sound.html | 31 +- .../docs/apidocs/lejos/nxt/SoundSensor.html | 10 +- .../docs/apidocs/lejos/nxt/TachoMotorPort.html | 223 + .../docs/apidocs/lejos/nxt/Tachometer.html | 234 ++ .../lejos_nxj/docs/apidocs/lejos/nxt/TextMenu.html | 35 +- .../docs/apidocs/lejos/nxt/TiltSensor.html | 92 +- .../docs/apidocs/lejos/nxt/TouchSensor.html | 6 +- .../docs/apidocs/lejos/nxt/UltrasonicSensor.html | 414 +- .../docs/apidocs/lejos/nxt/comm/BTConnection.html | 525 ++- .../docs/apidocs/lejos/nxt/comm/BTInputStream.html | 45 +- .../apidocs/lejos/nxt/comm/BTOutputStream.html | 80 +- .../apidocs/lejos/nxt/comm/BTRemoteDevice.html | 14 +- .../docs/apidocs/lejos/nxt/comm/Bluetooth.html | 959 ++++- .../docs/apidocs/lejos/nxt/comm/Debug.html | 311 ++ .../docs/apidocs/lejos/nxt/comm/DeviceInfo.html | 331 ++ .../docs/apidocs/lejos/nxt/comm/FirmwareInfo.html | 295 ++ .../docs/apidocs/lejos/nxt/comm/InputValues.html | 421 ++ .../lejos_nxj/docs/apidocs/lejos/nxt/comm/LCP.html | 159 +- .../apidocs/lejos/nxt/comm/LCPBTResponder.html | 286 ++ .../docs/apidocs/lejos/nxt/comm/NXTComm.html | 321 ++ .../docs/apidocs/lejos/nxt/comm/NXTCommand.html | 615 +++ .../docs/apidocs/lejos/nxt/comm/NXTProtocol.html | 1612 ++++++++ .../{ => lejos/nxt/comm}/NXTServerSocket.html | 90 +- .../docs/apidocs/lejos/nxt/comm/NXTSocket.html | 6 +- .../lejos_nxj/docs/apidocs/lejos/nxt/comm/USB.html | 10 +- .../docs/apidocs/lejos/nxt/comm/USBConnection.html | 2 +- .../apidocs/lejos/nxt/comm/USBInputStream.html | 10 +- .../apidocs/lejos/nxt/comm/USBOutputStream.html | 10 +- .../docs/apidocs/lejos/nxt/comm/package-frame.html | 29 +- .../apidocs/lejos/nxt/comm/package-summary.html | 69 +- .../docs/apidocs/lejos/nxt/comm/package-tree.html | 18 +- .../docs/apidocs/lejos/nxt/package-frame.html | 36 +- .../docs/apidocs/lejos/nxt/package-summary.html | 74 +- .../docs/apidocs/lejos/nxt/package-tree.html | 32 +- .../apidocs/lejos/nxt/remote/RemoteBattery.html | 303 ++ .../apidocs/lejos/nxt/remote/RemoteMotorPort.html | 358 ++ .../docs/apidocs/lejos/nxt/remote/RemoteNXT.html | 531 +++ .../apidocs/lejos/nxt/remote/RemoteSensorPort.html | 472 +++ .../apidocs/lejos/nxt/remote/package-frame.html | 38 + .../apidocs/lejos/nxt/remote/package-summary.html | 180 + .../apidocs/lejos/nxt/remote/package-tree.html | 150 + .../lejos_nxj/docs/apidocs/lejos/rcxcomm/LLC.html | 438 ++ .../docs/apidocs/lejos/rcxcomm/LLCHandler.html | 389 ++ .../apidocs/lejos/rcxcomm/LLCReliableHandler.html | 362 ++ .../docs/apidocs/lejos/rcxcomm/Opcode.html | 2042 ++++++++++ .../docs/apidocs/lejos/rcxcomm/PacketHandler.html | 504 +++ .../apidocs/lejos/rcxcomm/RCXAbstractPort.html | 418 ++ .../docs/apidocs/lejos/rcxcomm/RCXPort.html | 267 ++ .../docs/apidocs/lejos/rcxcomm/Serial.html | 402 ++ .../docs/apidocs/lejos/rcxcomm/package-frame.html | 55 + .../apidocs/lejos/rcxcomm/package-summary.html | 211 + .../docs/apidocs/lejos/rcxcomm/package-tree.html | 156 + .../docs/apidocs/lejos/subsumption/Activity.html | 2 +- .../apidocs/lejos/subsumption/ActivityBase.html | 2 +- .../docs/apidocs/lejos/subsumption/Arbitrator.html | 6 +- .../apidocs/lejos/subsumption/Arbitrator2.html | 302 ++ .../docs/apidocs/lejos/subsumption/Behavior.html | 13 +- .../docs/apidocs/lejos/subsumption/Behavior2.html | 244 ++ .../apidocs/lejos/subsumption/StopException.html | 6 +- .../apidocs/lejos/subsumption/package-frame.html | 10 +- .../apidocs/lejos/subsumption/package-summary.html | 15 +- .../apidocs/lejos/subsumption/package-tree.html | 12 +- .../apidocs/lejos/util/AbstractRecyclable.html | 2 +- .../docs/apidocs/lejos/util/ArrayRecycler.html | 2 +- .../docs/apidocs/lejos/util/Assertion.html | 6 +- .../docs/apidocs/lejos/util/ButtonCounter.html | 417 ++ .../apidocs/lejos/{nxt => util}/Datalogger.html | 49 +- .../docs/apidocs/lejos/util/Recyclable.html | 6 +- .../docs/apidocs/lejos/util/RecyclableArray.html | 2 +- .../docs/apidocs/lejos/util/Recycler.html | 2 +- .../lejos_nxj/docs/apidocs/lejos/util/Timer.html | 2 +- .../docs/apidocs/lejos/util/TimerListener.html | 5 +- .../docs/apidocs/lejos/util/package-frame.html | 6 +- .../docs/apidocs/lejos/util/package-summary.html | 11 +- .../docs/apidocs/lejos/util/package-tree.html | 4 +- nxtOSEK/lejos_nxj/docs/apidocs/overview-frame.html | 8 +- .../lejos_nxj/docs/apidocs/overview-summary.html | 14 +- nxtOSEK/lejos_nxj/docs/apidocs/overview-tree.html | 62 +- nxtOSEK/lejos_nxj/docs/apidocs/package-frame.html | 34 - nxtOSEK/lejos_nxj/docs/apidocs/package-list | 4 +- .../lejos_nxj/docs/apidocs/serialized-form.html | 4296 +++++++++++++++++++- nxtOSEK/lejos_nxj/lib/classes.jar | Bin 152139 -> 194616 bytes nxtOSEK/lejos_nxj/lib/jtools.jar | Bin 75765 -> 72001 bytes nxtOSEK/lejos_nxj/lib/pccomm.jar | Bin 21334 -> 24874 bytes nxtOSEK/lejos_nxj/lib/pctools.jar | Bin 38257 -> 51241 bytes nxtOSEK/lejos_nxj/samples/.classpath | 14 +- .../samples/BTConnectTest/BTConnectTest.java | 57 +- .../samples/BTConnectTest/BTConnectTest.nxj | Bin 14202 -> 0 bytes nxtOSEK/lejos_nxj/samples/BTReceive/BTReceive.java | 34 +- nxtOSEK/lejos_nxj/samples/BTReceive/BTReceive.nxj | Bin 13290 -> 0 bytes nxtOSEK/lejos_nxj/samples/BTSend/BTSend.java | 59 +- nxtOSEK/lejos_nxj/samples/BlueStats/BlueStats.java | 84 + nxtOSEK/lejos_nxj/samples/BlueStats/build.xml | 84 + nxtOSEK/lejos_nxj/samples/BumperCar/BumperCar.java | 10 + nxtOSEK/lejos_nxj/samples/BumperCar/BumperCar.nxj | Bin 8498 -> 0 bytes .../samples/ColorDetector/ColorDetector.java | 12 +- .../samples/ColorDetector/ColorDetector.nxj | Bin 8298 -> 0 bytes .../lejos_nxj/samples/CompassTest/CompassTest.java | 34 +- .../lejos_nxj/samples/CompassTest/CompassTest.nxj | Bin 8232 -> 0 bytes nxtOSEK/lejos_nxj/samples/DLTest/DLTest.java | 44 + nxtOSEK/lejos_nxj/samples/DLTest/build.xml | 84 + .../samples/ExceptionTest/ExceptionTest.java | 12 + .../samples/ExceptionTest/ExceptionTest.nxj | Bin 2622 -> 0 bytes .../samples/GraphicsSample/GraphicsSample.java | 10 + .../samples/GraphicsSample/GraphicsSample.nxj | Bin 8969 -> 0 bytes .../lejos_nxj/samples/HelloWorld/HelloWorld.java | 2 +- .../lejos_nxj/samples/HelloWorld/HelloWorld.nxj | Bin 5429 -> 0 bytes nxtOSEK/lejos_nxj/samples/LCDUI/LCDUI.nxj | Bin 27608 -> 0 bytes .../lejos_nxj/samples/LLCMonitor/LLCMonitor.java | 31 + nxtOSEK/lejos_nxj/samples/LLCMonitor/build.xml | 84 + nxtOSEK/lejos_nxj/samples/Line/Line.java | 20 +- nxtOSEK/lejos_nxj/samples/Line/Line.nxj | Bin 10263 -> 0 bytes nxtOSEK/lejos_nxj/samples/Listen/Listen.java | 14 + nxtOSEK/lejos_nxj/samples/Listen/Listen.nxj | Bin 8009 -> 0 bytes .../lejos_nxj/samples/MemoryTest/MemoryTest.java | 10 +- .../lejos_nxj/samples/MemoryTest/MemoryTest.nxj | Bin 5487 -> 0 bytes .../lejos_nxj/samples/MonitorTest/MonitorTest.java | 124 + nxtOSEK/lejos_nxj/samples/MonitorTest/build.xml | 84 + .../lejos_nxj/samples/NXTCamTest/NXTCamTest.java | 45 + nxtOSEK/lejos_nxj/samples/NXTCamTest/build.xml | 84 + .../samples/PerformanceTest/PerformanceTest.java | 8 +- .../samples/PerformanceTest/PerformanceTest.nxj | Bin 8054 -> 0 bytes .../lejos_nxj/samples/PilotTester/PilotTester.java | 53 +- .../lejos_nxj/samples/PilotTester/PilotTester.nxj | Bin 13137 -> 0 bytes .../lejos_nxj/samples/RCXEmulator/RCXEmulator.java | 150 + nxtOSEK/lejos_nxj/samples/RCXEmulator/build.xml | 84 + nxtOSEK/lejos_nxj/samples/RCXMMTest/RCXMMTest.java | 30 + nxtOSEK/lejos_nxj/samples/RCXMMTest/build.xml | 84 + .../lejos_nxj/samples/RCXPortTest/RCXPortTest.java | 56 + nxtOSEK/lejos_nxj/samples/RCXPortTest/build.xml | 84 + nxtOSEK/lejos_nxj/samples/RCXRemote/RCXRemote.java | 50 + nxtOSEK/lejos_nxj/samples/RCXRemote/build.xml | 84 + .../samples/RCXRemoteMotor/RCXRemoteMotor.java | 65 + nxtOSEK/lejos_nxj/samples/RCXRemoteMotor/build.xml | 84 + .../samples/RemoteNXTTest/RemoteNXTTest.java | 80 + nxtOSEK/lejos_nxj/samples/RemoteNXTTest/build.xml | 84 + .../lejos_nxj/samples/SignalTest/SignalTest.java | 43 + nxtOSEK/lejos_nxj/samples/SignalTest/build.xml | 84 + .../lejos_nxj/samples/SocketTest/SocketTest.nxj | Bin 14526 -> 0 bytes nxtOSEK/lejos_nxj/samples/SonicTest/SonicTest.java | 6 + nxtOSEK/lejos_nxj/samples/SonicTest/SonicTest.nxj | Bin 8099 -> 0 bytes .../lejos_nxj/samples/SoundSample/SoundSample.java | 56 +- .../lejos_nxj/samples/SoundSample/SoundSample.nxj | Bin 2954 -> 0 bytes nxtOSEK/lejos_nxj/samples/SpeedTest/SpeedTest.java | 25 +- nxtOSEK/lejos_nxj/samples/SpeedTest/SpeedTest.nxj | Bin 12948 -> 0 bytes nxtOSEK/lejos_nxj/samples/Subsumption1/Main.nxj | Bin 11818 -> 0 bytes nxtOSEK/lejos_nxj/samples/Subsumption2/Main.nxj | Bin 15875 -> 0 bytes nxtOSEK/lejos_nxj/samples/TiltTest/TiltTest.java | 21 +- nxtOSEK/lejos_nxj/samples/TiltTest/TiltTest.nxj | Bin 7947 -> 0 bytes nxtOSEK/lejos_nxj/samples/TimeTest/TimeTest.nxj | Bin 14434 -> 0 bytes nxtOSEK/lejos_nxj/samples/Tune/Tune.java | 2 +- nxtOSEK/lejos_nxj/samples/Tune/Tune.nxj | Bin 3454 -> 0 bytes .../lejos_nxj/samples/USBReceive/USBReceive.java | 26 +- .../lejos_nxj/samples/USBReceive/USBReceive.nxj | Bin 9491 -> 0 bytes nxtOSEK/lejos_nxj/samples/USBSend/USBSend.java | 64 +- nxtOSEK/lejos_nxj/samples/View/View.nxj | Bin 16157 -> 0 bytes nxtOSEK/lejos_nxj/samples/samples.properties | 8 +- .../src/java/classes/java/awt/Rectangle.java | 18 + .../src/java/classes/java/awt/package.html | 1 + .../src/java/classes/java/io/DataInputStream.java | 3 + .../src/java/classes/java/io/DataOutputStream.java | 3 + .../lejos_nxj/src/java/classes/java/io/File.java | 279 +- .../src/java/classes/java/io/FileInputStream.java | 12 +- .../src/java/classes/java/io/FileOutputStream.java | 28 +- .../src/java/classes/java/lang/Integer.java | 4 +- .../lejos_nxj/src/java/classes/java/lang/Math.java | 2 + .../src/java/classes/java/lang/StringBuffer.java | 224 +- .../src/java/classes/java/lang/System.java | 21 +- .../src/java/classes/java/util/ArrayList.java | 8 +- .../src/java/classes/java/util/Vector.java | 22 +- .../classes/javax/microedition/lcdui/Display.java | 2 + .../classes/javax/microedition/lcdui/Graphics.java | 10 + .../classes/lejos/navigation/CompassNavigator.java | 2 +- .../classes/lejos/navigation/CompassPilot.java | 5 +- .../classes/lejos/navigation/TachoNavigator.java | 746 ++-- .../src/java/classes/lejos/nxt/ADSensorPort.java | 8 +- .../src/java/classes/lejos/nxt/BasicMotor.java | 9 +- .../src/java/classes/lejos/nxt/BasicMotorPort.java | 14 +- .../java/classes/lejos/nxt/BasicSensorPort.java | 9 +- .../src/java/classes/lejos/nxt/Flash.java | 19 + .../src/java/classes/lejos/nxt/GyroSensor.java | 37 + .../src/java/classes/lejos/nxt/I2CPort.java | 8 +- .../src/java/classes/lejos/nxt/I2CSensor.java | 26 +- .../src/java/classes/lejos/nxt/IRSeeker.java | 38 + .../lejos_nxj/src/java/classes/lejos/nxt/LCD.java | 23 +- .../java/classes/lejos/nxt/LegacySensorPort.java | 8 +- .../src/java/classes/lejos/nxt/LightSensor.java | 5 +- .../src/java/classes/lejos/nxt/Motor.java | 1045 ++--- .../src/java/classes/lejos/nxt/MotorPort.java | 7 +- .../src/java/classes/lejos/nxt/NXTCam.java | 66 + .../lejos_nxj/src/java/classes/lejos/nxt/Poll.java | 4 +- .../src/java/classes/lejos/nxt/RCXLink.java | 242 ++ .../classes/lejos/nxt/RCXMotorMultiplexer.java | 42 + .../java/classes/lejos/nxt/RCXPlexedMotorPort.java | 29 + .../java/classes/lejos/nxt/RCXRemoteMotorPort.java | 56 + .../src/java/classes/lejos/nxt/SensorPort.java | 2 +- .../src/java/classes/lejos/nxt/Sound.java | 22 +- .../src/java/classes/lejos/nxt/TachoMotorPort.java | 9 +- .../src/java/classes/lejos/nxt/Tachometer.java | 8 +- .../src/java/classes/lejos/nxt/TextMenu.java | 24 +- .../src/java/classes/lejos/nxt/TiltSensor.java | 96 +- .../java/classes/lejos/nxt/UltrasonicSensor.java | 379 +- .../java/classes/lejos/nxt/comm/BTConnection.java | 569 ++- .../java/classes/lejos/nxt/comm/BTInputStream.java | 16 +- .../classes/lejos/nxt/comm/BTOutputStream.java | 33 +- .../classes/lejos/nxt/comm/BTRemoteDevice.java | 6 + .../src/java/classes/lejos/nxt/comm/Bluetooth.java | 1822 ++++++--- .../src/java/classes/lejos/nxt/comm/Debug.java | 87 + .../java/classes/lejos/nxt/comm/DeviceInfo.java | 14 + .../java/classes/lejos/nxt/comm/FirmwareInfo.java | 12 + .../java/classes/lejos/nxt/comm/InputValues.java | 37 + .../src/java/classes/lejos/nxt/comm/LCP.java | 258 +- .../classes/lejos/nxt/comm/LCPBTResponder.java | 49 + .../src/java/classes/lejos/nxt/comm/NXTComm.java | 50 + .../java/classes/lejos/nxt/comm/NXTCommand.java | 222 + .../java/classes/lejos/nxt/comm/NXTProtocol.java | 148 + .../classes/lejos/nxt/comm/NXTServerSocket.java | 8 + .../src/java/classes/lejos/nxt/comm/USB.java | 6 + .../classes/lejos/nxt/comm/USBInputStream.java | 6 + .../classes/lejos/nxt/comm/USBOutputStream.java | 7 + .../classes/lejos/nxt/remote/RemoteBattery.java | 40 + .../classes/lejos/nxt/remote/RemoteMotorPort.java | 66 + .../java/classes/lejos/nxt/remote/RemoteNXT.java | 122 + .../classes/lejos/nxt/remote/RemoteSensorPort.java | 97 + .../src/java/classes/lejos/nxt/remote/package.html | 1 + .../src/java/classes/lejos/rcxcomm/LLC.java | 129 + .../src/java/classes/lejos/rcxcomm/LLCHandler.java | 106 + .../classes/lejos/rcxcomm/LLCReliableHandler.java | 102 + .../src/java/classes/lejos/rcxcomm/Opcode.java | 128 + .../java/classes/lejos/rcxcomm/PacketHandler.java | 85 + .../classes/lejos/rcxcomm/RCXAbstractPort.java | 200 + .../src/java/classes/lejos/rcxcomm/RCXPort.java | 24 + .../src/java/classes/lejos/rcxcomm/Serial.java | 251 ++ .../src/java/classes/lejos/rcxcomm/package.html | 1 + .../classes/lejos/subsumption/Arbitrator2.java | 96 + .../java/classes/lejos/subsumption/Behavior2.java | 36 + .../src/java/classes/lejos/util/ButtonCounter.java | 124 + .../classes/lejos/{nxt => util}/Datalogger.java | 33 +- .../src/java/jtools/js/common/AbstractTool.java | 37 +- .../jtools/js/common/CLIToolProgressMonitor.java | 108 +- .../jtools/js/common/NullToolProgressMonitor.java | 11 + .../java/jtools/js/common/ToolProgressMonitor.java | 7 + .../src/java/jtools/js/tinyvm/Binary.java | 8 + .../js/tinyvm/SpecialSignatureConstants.java | 17 +- .../src/java/jtools/js/tinyvm/TinyVM.java | 145 +- .../src/java/jtools/js/tinyvm/TinyVMTool.java | 19 +- .../java/pccomms/lejos/pc/comm/BTOutputStream.java | 29 - .../java/pccomms/lejos/pc/comm/InputValues.java | 38 + .../src/java/pccomms/lejos/pc/comm/NXTComm.java | 5 +- .../lejos/pc/comm/NXTCommBTInputStream.java | 26 +- .../pccomms/lejos/pc/comm/NXTCommBluecove.java | 252 +- .../java/pccomms/lejos/pc/comm/NXTCommBluez.java | 32 +- .../pccomms/lejos/pc/comm/NXTCommException.java | 30 + .../java/pccomms/lejos/pc/comm/NXTCommFantom.java | 12 +- .../pccomms/lejos/pc/comm/NXTCommInputStream.java | 16 - .../java/pccomms/lejos/pc/comm/NXTCommLibnxt.java | 18 +- .../pccomms/lejos/pc/comm/NXTCommLogListener.java | 14 + .../lejos/pc/comm/NXTCommUSBInputStream.java | 16 + .../lejos/pc/comm/NXTCommUSBOutputStream.java | 2 +- .../src/java/pccomms/lejos/pc/comm/NXTCommand.java | 565 ++- .../src/java/pccomms/lejos/pc/comm/NXTInfo.java | 10 +- .../java/pccomms/lejos/pc/comm/NXTProtocol.java | 10 +- .../java/pccomms/lejos/pc/comm/OutputState.java | 25 + .../src/java/pctools/lejos/pc/tools/Connector.java | 204 +- .../java/pctools/lejos/pc/tools/DataViewer.java | 277 +- .../java/pctools/lejos/pc/tools/DebugMonitor.java | 84 + .../java/pctools/lejos/pc/tools/NXJBrowser.java | 67 +- .../pctools/lejos/pc/tools/NXJLinkAndUpload.java | 211 +- .../java/pctools/lejos/pc/tools/NXJMonitor.java | 370 ++ .../src/java/pctools/lejos/pc/tools/NXJUpload.java | 38 +- .../pctools/lejos/pc/tools/NXJUploadException.java | 30 + .../java/pctools/lejos/pc/tools/NXTTableModel.java | 54 + .../src/java/pctools/lejos/pc/tools/SendFile.java | 9 +- .../java/pctools/lejos/pc/tools/SocketProxy.java | 9 +- .../pctools/lejos/pc/tools/ToolsLogListener.java | 13 + .../java/pctools/lejos/pc/tools/ToolsLogger.java | 14 + .../src/java/pctools/lejos/pc/tools/Upload.java | 106 +- .../lejos/nxt => startup}/StartUpText.java | 205 +- nxtOSEK/lejos_nxj/src/libnxt/build.xml | 23 +- nxtOSEK/lejos_nxj/src/libnxt/firmware.c | 12 +- nxtOSEK/lejos_nxj/src/libnxt/flash.c | 1 - nxtOSEK/lejos_nxj/src/libnxt/jlibnxt.h | 20 +- nxtOSEK/lejos_nxj/src/libnxt/lowlevel.c | 5 +- nxtOSEK/lejos_nxj/src/libnxt/main_jlibnxt.c | 24 +- nxtOSEK/lejos_nxj/src/libnxt/main_nxjflash.c | 23 +- nxtOSEK/lejos_nxj/src/nxtvm/javavm/configure.h | 20 +- nxtOSEK/lejos_nxj/src/nxtvm/javavm/interpreter.c | 9 +- nxtOSEK/lejos_nxj/src/nxtvm/javavm/interpreter.h | 3 +- nxtOSEK/lejos_nxj/src/nxtvm/javavm/language.c | 5 + nxtOSEK/lejos_nxj/src/nxtvm/javavm/language.h | 31 +- nxtOSEK/lejos_nxj/src/nxtvm/javavm/memory.c | 612 ++- nxtOSEK/lejos_nxj/src/nxtvm/javavm/memory.h | 12 +- nxtOSEK/lejos_nxj/src/nxtvm/javavm/op_arrays.hc | 15 +- nxtOSEK/lejos_nxj/src/nxtvm/javavm/op_objects.hc | 7 +- nxtOSEK/lejos_nxj/src/nxtvm/javavm/signatures.db | 22 +- .../lejos_nxj/src/nxtvm/javavm/specialsignatures.h | 15 +- nxtOSEK/lejos_nxj/src/nxtvm/javavm/types.h | 8 + nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/bt.c | 151 +- nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/bt.h | 4 + .../lejos_nxj/src/nxtvm/platform/nxt/data_abort.c | 15 +- nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/display.c | 65 +- nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/display.h | 7 + .../lejos_nxj/src/nxtvm/platform/nxt/flashprog.h | 2 +- nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/i2c.c | 42 +- nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/main.c | 71 +- nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/native.c | 75 +- nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/nxt_avr.c | 20 +- nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/nxt_lcd.c | 33 +- nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/nxt_lcd.h | 5 +- .../lejos_nxj/src/nxtvm/platform/nxt/nxt_motors.c | 11 + .../lejos_nxj/src/nxtvm/platform/nxt/nxt_motors.h | 3 +- nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/nxt_spi.c | 179 +- nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/nxt_spi.h | 2 + .../src/nxtvm/platform/nxt/platform_hooks.h | 6 + nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/sensors.c | 7 + nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/sound.c | 55 +- nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/udp.c | 42 +- nxtOSEK/lejos_nxj/src/nxtvm/platform/nxt/udp.h | 2 +- .../lejos_nxj/src/nxtvm/platform/unix/build.xml | 6 +- nxtOSEK/lejos_nxj/src/nxtvm/platform/unix/dump.c | 5 + .../lejos_nxj/src/nxtvm/platform/unix/nativeemul.c | 171 +- .../lejos_nxj/src/nxtvm/platform/unix/tvmemul.c | 17 + 472 files changed, 42380 insertions(+), 4980 deletions(-) delete mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/StartUpText.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/java/awt/Rectangle.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/java/awt/package-frame.html rename nxtOSEK/lejos_nxj/docs/apidocs/{ => java/awt}/package-summary.html (58%) rename nxtOSEK/lejos_nxj/docs/apidocs/{ => java/awt}/package-tree.html (54%) create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ADSensorPort.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/BasicMotor.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/BasicMotorPort.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/BasicSensorPort.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/GyroSensor.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/I2CPort.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/IRSeeker.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/LegacySensorPort.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/NXTCam.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/RCXLink.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/RCXMotorMultiplexer.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/RCXPlexedMotorPort.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/RCXRemoteMotorPort.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TachoMotorPort.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Tachometer.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/Debug.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/DeviceInfo.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/FirmwareInfo.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/InputValues.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/LCPBTResponder.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTComm.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTCommand.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTProtocol.html rename nxtOSEK/lejos_nxj/docs/apidocs/{ => lejos/nxt/comm}/NXTServerSocket.html (57%) create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteBattery.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteMotorPort.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteNXT.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteSensorPort.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/package-frame.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/package-summary.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/package-tree.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/LLC.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/LLCHandler.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/LLCReliableHandler.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/Opcode.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/PacketHandler.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/RCXAbstractPort.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/RCXPort.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/Serial.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/package-frame.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/package-summary.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/package-tree.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Arbitrator2.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Behavior2.html create mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/ButtonCounter.html rename nxtOSEK/lejos_nxj/docs/apidocs/lejos/{nxt => util}/Datalogger.html (84%) delete mode 100644 nxtOSEK/lejos_nxj/docs/apidocs/package-frame.html delete mode 100644 nxtOSEK/lejos_nxj/samples/BTConnectTest/BTConnectTest.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/BTReceive/BTReceive.nxj create mode 100644 nxtOSEK/lejos_nxj/samples/BlueStats/BlueStats.java create mode 100644 nxtOSEK/lejos_nxj/samples/BlueStats/build.xml delete mode 100644 nxtOSEK/lejos_nxj/samples/BumperCar/BumperCar.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/ColorDetector/ColorDetector.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/CompassTest/CompassTest.nxj create mode 100644 nxtOSEK/lejos_nxj/samples/DLTest/DLTest.java create mode 100644 nxtOSEK/lejos_nxj/samples/DLTest/build.xml delete mode 100644 nxtOSEK/lejos_nxj/samples/ExceptionTest/ExceptionTest.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/GraphicsSample/GraphicsSample.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/HelloWorld/HelloWorld.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/LCDUI/LCDUI.nxj create mode 100644 nxtOSEK/lejos_nxj/samples/LLCMonitor/LLCMonitor.java create mode 100644 nxtOSEK/lejos_nxj/samples/LLCMonitor/build.xml delete mode 100644 nxtOSEK/lejos_nxj/samples/Line/Line.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/Listen/Listen.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/MemoryTest/MemoryTest.nxj create mode 100644 nxtOSEK/lejos_nxj/samples/MonitorTest/MonitorTest.java create mode 100644 nxtOSEK/lejos_nxj/samples/MonitorTest/build.xml create mode 100644 nxtOSEK/lejos_nxj/samples/NXTCamTest/NXTCamTest.java create mode 100644 nxtOSEK/lejos_nxj/samples/NXTCamTest/build.xml delete mode 100644 nxtOSEK/lejos_nxj/samples/PerformanceTest/PerformanceTest.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/PilotTester/PilotTester.nxj create mode 100644 nxtOSEK/lejos_nxj/samples/RCXEmulator/RCXEmulator.java create mode 100644 nxtOSEK/lejos_nxj/samples/RCXEmulator/build.xml create mode 100644 nxtOSEK/lejos_nxj/samples/RCXMMTest/RCXMMTest.java create mode 100644 nxtOSEK/lejos_nxj/samples/RCXMMTest/build.xml create mode 100644 nxtOSEK/lejos_nxj/samples/RCXPortTest/RCXPortTest.java create mode 100644 nxtOSEK/lejos_nxj/samples/RCXPortTest/build.xml create mode 100644 nxtOSEK/lejos_nxj/samples/RCXRemote/RCXRemote.java create mode 100644 nxtOSEK/lejos_nxj/samples/RCXRemote/build.xml create mode 100644 nxtOSEK/lejos_nxj/samples/RCXRemoteMotor/RCXRemoteMotor.java create mode 100644 nxtOSEK/lejos_nxj/samples/RCXRemoteMotor/build.xml create mode 100644 nxtOSEK/lejos_nxj/samples/RemoteNXTTest/RemoteNXTTest.java create mode 100644 nxtOSEK/lejos_nxj/samples/RemoteNXTTest/build.xml create mode 100644 nxtOSEK/lejos_nxj/samples/SignalTest/SignalTest.java create mode 100644 nxtOSEK/lejos_nxj/samples/SignalTest/build.xml delete mode 100644 nxtOSEK/lejos_nxj/samples/SocketTest/SocketTest.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/SonicTest/SonicTest.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/SoundSample/SoundSample.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/SpeedTest/SpeedTest.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/Subsumption1/Main.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/Subsumption2/Main.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/TiltTest/TiltTest.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/TimeTest/TimeTest.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/Tune/Tune.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/USBReceive/USBReceive.nxj delete mode 100644 nxtOSEK/lejos_nxj/samples/View/View.nxj create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/java/awt/Rectangle.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/java/awt/package.html create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/GyroSensor.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/IRSeeker.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/NXTCam.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/RCXLink.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/RCXMotorMultiplexer.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/RCXPlexedMotorPort.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/RCXRemoteMotorPort.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/comm/Debug.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/comm/DeviceInfo.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/comm/FirmwareInfo.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/comm/InputValues.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/comm/LCPBTResponder.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/comm/NXTComm.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/comm/NXTCommand.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/comm/NXTProtocol.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/remote/RemoteBattery.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/remote/RemoteMotorPort.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/remote/RemoteNXT.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/remote/RemoteSensorPort.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/nxt/remote/package.html create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/rcxcomm/LLC.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/rcxcomm/LLCHandler.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/rcxcomm/LLCReliableHandler.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/rcxcomm/Opcode.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/rcxcomm/PacketHandler.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/rcxcomm/RCXAbstractPort.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/rcxcomm/RCXPort.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/rcxcomm/Serial.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/rcxcomm/package.html create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/subsumption/Arbitrator2.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/subsumption/Behavior2.java create mode 100644 nxtOSEK/lejos_nxj/src/java/classes/lejos/util/ButtonCounter.java rename nxtOSEK/lejos_nxj/src/java/classes/lejos/{nxt => util}/Datalogger.java (83%) delete mode 100644 nxtOSEK/lejos_nxj/src/java/pccomms/lejos/pc/comm/BTOutputStream.java create mode 100644 nxtOSEK/lejos_nxj/src/java/pccomms/lejos/pc/comm/InputValues.java create mode 100644 nxtOSEK/lejos_nxj/src/java/pccomms/lejos/pc/comm/NXTCommException.java delete mode 100644 nxtOSEK/lejos_nxj/src/java/pccomms/lejos/pc/comm/NXTCommInputStream.java create mode 100644 nxtOSEK/lejos_nxj/src/java/pccomms/lejos/pc/comm/NXTCommLogListener.java create mode 100644 nxtOSEK/lejos_nxj/src/java/pccomms/lejos/pc/comm/NXTCommUSBInputStream.java create mode 100644 nxtOSEK/lejos_nxj/src/java/pccomms/lejos/pc/comm/OutputState.java create mode 100644 nxtOSEK/lejos_nxj/src/java/pctools/lejos/pc/tools/DebugMonitor.java create mode 100644 nxtOSEK/lejos_nxj/src/java/pctools/lejos/pc/tools/NXJMonitor.java create mode 100644 nxtOSEK/lejos_nxj/src/java/pctools/lejos/pc/tools/NXJUploadException.java create mode 100644 nxtOSEK/lejos_nxj/src/java/pctools/lejos/pc/tools/NXTTableModel.java create mode 100644 nxtOSEK/lejos_nxj/src/java/pctools/lejos/pc/tools/ToolsLogListener.java create mode 100644 nxtOSEK/lejos_nxj/src/java/pctools/lejos/pc/tools/ToolsLogger.java rename nxtOSEK/lejos_nxj/src/java/{classes/lejos/nxt => startup}/StartUpText.java (65%) diff --git a/nxtOSEK/lejos_nxj/README.html b/nxtOSEK/lejos_nxj/README.html index e0cd76e..5a98454 100644 --- a/nxtOSEK/lejos_nxj/README.html +++ b/nxtOSEK/lejos_nxj/README.html @@ -61,13 +61,22 @@ the NXT motors have enabled much improved control over speed, steering and navig
  • Make sure you have set JAVA_HOME properly to the root directory of the JDK.
  • On systems other than Microsoft Windows, you will need to build the distribution, so your PATH must -contain the ant binary (ant 1.6 or above).
  • +contain the ant binary (ant 1.7 or above).
  • You need libusb installed. On Microsoft Windows you should use the libusb-Win32 filter driver.
  • -
  • On Microsoft Windows you will need the LEGO Mindstorms NXT software installed, as its USB drivers are used.
  • +
  • On Microsoft Windows and MAC OS X you will need the LEGO Mindstorms NXT software installed, as its USB drivers are used.
  • +
  • On MAC OS X systems, you will need the OS X developer tools installed.
  • + The libusb filter driver for Microsoft Windows can be obtained from http://libusb-win32.sourceforge.net/#downloads. -This does not currently work under Windows Vista - see "Known Bugs and Limitations in leJOS NXJ" below.

    +This does not currently work under Windows Vista - see "Known Bugs and Limitations in leJOS NXJ" below. +However, it works if you install on Vista under Windows XP compatibility mode:
    +
      +
    1. Download libusb-win32-filter-bin-0.1.12.1.exe (the version current @ 27/09/07) +
    2. Right click on this file. Select Properties | Compatibility Click the "Run this program in compatibility mode" box and select "Windows XP (Service Pack2)" from the drop down list. +
    3. Right click again and select "Run as Administrator". Follow the installation instructions. Run the test program will list the usb devices plugged into your computer, but not new devices. +
    +
    libusb for other systems can be obtained from http://libusb.sourceforge.net.

    @@ -119,7 +128,7 @@ gcj and libbluetooth-dev.
  • Flash the leJOS NXJ firmware using nxjflash.
  • Compile using nxjc instead of javac.
  • Link, upload and run programs using nxj.
  • -
  • Exceptions: Use nxj --verbose to get information on methods and special classes used by your program (but see "Known Bugs and Limitations in leJOS NXJ" below). Exceptions are shown on the NXT as Method:XXXX, CLASS:YY, where XXXX = method_signature and YY = exception_class_index
  • +
  • Exceptions: Use nxj --verbose to get information on methods and special classes used by your program. Exceptions are shown on the NXT as Method:XXXX, CLASS:YY, where XXXX = method_signature and YY = exception_class_index
  • Your NXT must be plugged into the USB, switched on, and in firmware update mode to run nxjflash. Note that the standard LEGO firmware will be overwritten and all existing data lost. You can reinstall the LEGO firmware using the LEGO Mindstorms software. @@ -152,11 +161,11 @@ To compile, link and download the Tune sample:

  • Type nxj -r Tune
  • -

    After a few seconds, you should hear an ascending tone sequence indicating that the program uploaded OK. You will then hear a tune play. Then, after 5 seconds the NXT will switch itself off.

    +

    After a few seconds, you should hear an ascending tone sequence indicating that the program uploaded OK. You will then hear a tune play. When it has finished the leJOS NXJ menu will be displayed.

    -

    When you switch your NXT back on you will see "Tune.nxj" on the leJOS NXJ menu

    +

    When you switch your NXT back on, select "Files" and press ENTER and you will see "Tune.nxj" in the files menu

    -

    You can navigate through the leJOS NXJ menu using the left and right buttons. To select a program, press the ENTER button. You will then see a sub-menu that lets you execute or delete the program.

    +

    You can navigate through the leJOS NXJ menus using the left and right buttons. You select a menu item by pressing ENTER, and exit from a menu by pressing ESCAPE. There are 3 menus: Files, Bluetooth ands System. To select a program, go to the Files menu, scroll down to your program and press the ENTER button. You will then see a sub-menu that lets you execute or delete the program.

    LeJOS NXJ Tools

    The following tools are available with leJOS NXJ:

    @@ -203,8 +212,6 @@ Due to size constraints, some Java language features have been omitted. Others just haven't been implemented yet. Known limitations with all versions of leJOS are: @@ -605,6 +606,48 @@ lejos.nxt.* + + + + + + + + + + + + + + +
    lejos.nxt.BasicMotorPort
    +public static final intPWM_BRAKE1
    +public static final intPWM_FLOAT0
    + +

    + +

    + + + + + + + + + + + + +
    lejos.nxt.Flash
    +public static final intMAX_USER_PAGES704
    + +

    + +

    + + + @@ -767,6 +810,126 @@ lejos.nxt.*
    lejos.nxt.LCD
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    lejos.nxt.RCXLink
    +public static final byteBEEP57
    +public static final intDELAY10
    +public static final intEEPROM_BUFFER120
    +public static final byteLONG_RANGE_IR4
    +public static final byteMOTOR_A_FORWARD33
    +public static final byteMOTOR_A_REVERSED37
    +public static final byteMOTOR_B_FORWARD41
    +public static final byteMOTOR_B_REVERSED45
    +public static final byteMOTOR_C_FORWARD49
    +public static final byteMOTOR_C_REVERSED53
    +public static final bytePOWER_OFF_RCX7
    +public static final byteRUN_PROGRAM_19
    +public static final byteRUN_PROGRAM_213
    +public static final byteRUN_PROGRAM_317
    +public static final byteRUN_PROGRAM_421
    +public static final byteRUN_PROGRAM_525
    +public static final byteSHORT_RANGE_IR1
    +public static final byteSTOP_ALL_PROGRAMS29
    + +

    + +

    + + + @@ -902,6 +1065,18 @@ lejos.nxt.* + + + + + + + + + + @@ -914,6 +1089,12 @@ lejos.nxt.* + + + + + @@ -962,6 +1143,12 @@ lejos.nxt.* + + + + + @@ -980,6 +1167,12 @@ lejos.nxt.* + + + + + @@ -1022,6 +1215,12 @@ lejos.nxt.* + + + + + @@ -1046,6 +1245,12 @@ lejos.nxt.* + + + + + @@ -1124,6 +1329,12 @@ lejos.nxt.* + + + + + @@ -1214,6 +1425,12 @@ lejos.nxt.* + + + + + @@ -1229,6 +1446,36 @@ lejos.nxt.*
    lejos.nxt.SensorConstants
    lejos.nxt.comm.Bluetooth
    +public static final intBT_PENDING_INPUT1
    +public static final intBT_PENDING_OUTPUT2
    public static final int MSG_ACCEPT_CONNECTION 5
    +public static final intMSG_ANY-1
    public static final int MSG_BEGIN_INQUIRY 19
    +public static final intMSG_CONNECTION_STATUS_RESULT57
    public static final int MSG_DUMP_LIST 49
    +public static final intMSG_GET_CONNECTION_STATUS56
    public static final int MSG_GET_DISCOVERABLE 40
    +public static final intMSG_GET_OPERATING_MODE53
    public static final int MSG_GET_PORT_OPEN 48
    +public static final intMSG_GOTO_DFU_MODE58
    public static final int MSG_HEARTBEAT 11
    +public static final intMSG_OPERATING_MODE_RESULT55
    public static final int MSG_PIN_CODE 34
    +public static final intMSG_SET_OPERATING_MODE54
    public static final int MSG_START_HEART
    + + + + + + + + + + + + + + + + + + + +
    lejos.nxt.comm.BTConnection
    +public static final intAM_ALWAYS1
    +public static final intAM_DISABLE0
    +public static final intAM_OUTPUT2
    + +

    + +

    + + + @@ -1256,6 +1503,12 @@ lejos.nxt.* + + + + + @@ -1310,6 +1563,12 @@ lejos.nxt.* + + + + + @@ -1334,12 +1593,30 @@ lejos.nxt.* + + + + + + + + + + + + + + + @@ -1466,6 +1743,12 @@ lejos.nxt.* + + + + + @@ -1478,6 +1761,1125 @@ lejos.nxt.*

    + +

    lejos.nxt.comm.LCP
    -96
    +public static final byteDIRECTORY_FULL-4
    public static final byte FILE_NOT_FOUND 6
    +public static final byteINSUFFICIENT_MEMORY-5
    public static final byte KEEP_ALIVE 15
    +public static final byteMAILBOX_EMPTY64
    +public static final byteMESSAGE_READ19
    public static final byte MESSAGE_WRITE 9
    +public static final byteNOT_IMPLEMENTED-3
    public static final byte NXJ_FIND_FIRST 12
    +public static final byteUNDEFINED_ERROR-118
    public static final byte WRITE
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    lejos.nxt.comm.NXTProtocol
    +public static final byteANGLE4
    +public static final byteANGLESTEPSMODE-32
    +public static final byteBOOLEANMODE32
    +public static final byteBOOT-105
    +public static final byteBRAKE2
    +public static final byteCELSIUSMODE-96
    +public static final byteCLOSE-124
    +public static final byteCUSTOM9
    +public static final byteDELETE-123
    +public static final byteDELETE_USER_FLASH-96
    +public static final byteDIRECT_COMMAND_NOREPLY-128
    +public static final byteDIRECT_COMMAND_REPLY0
    +public static final byteFAHRENHEITMODE-64
    +public static final byteFIND_FIRST-122
    +public static final byteFIND_NEXT-121
    +public static final byteGET_BATTERY_LEVEL11
    +public static final byteGET_CURRENT_PROGRAM_NAME17
    +public static final byteGET_DEVICE_INFO-101
    +public static final byteGET_FIRMWARE_VERSION-120
    +public static final byteGET_INPUT_VALUES7
    +public static final byteGET_OUTPUT_STATE6
    +public static final byteHIGH_SPEED_BUFFER1
    +public static final byteKEEP_ALIVE13
    +public static final byteLIGHT_ACTIVE5
    +public static final byteLIGHT_INACTIVE6
    +public static final byteLOWSPEED10
    +public static final byteLOWSPEED_9V11
    +public static final byteLS_GET_STATUS14
    +public static final byteLS_READ16
    +public static final byteLS_WRITE15
    +public static final byteMESSAGE_READ19
    +public static final byteMESSAGE_WRITE9
    +public static final byteMODEMASK-32
    +public static final byteMOTOR_RUN_STATE_IDLE0
    +public static final byteMOTOR_RUN_STATE_RAMPDOWN64
    +public static final byteMOTOR_RUN_STATE_RAMPUP16
    +public static final byteMOTOR_RUN_STATE_RUNNING32
    +public static final byteMOTORON1
    +public static final byteNO_OF_SENSOR_TYPES12
    +public static final byteNO_SENSOR0
    +public static final byteOPEN_APPEND_DATA-116
    +public static final byteOPEN_READ-128
    +public static final byteOPEN_READ_LINEAR-118
    +public static final byteOPEN_WRITE-127
    +public static final byteOPEN_WRITE_DATA-117
    +public static final byteOPEN_WRITE_LINEAR-119
    +public static final bytePCTFULLSCALEMODE-128
    +public static final bytePERIODCOUNTERMODE96
    +public static final bytePLAY_SOUND_FILE2
    +public static final bytePLAY_TONE3
    +public static final bytePOLL-94
    +public static final bytePOLL_BUFFER0
    +public static final bytePOLL_LENGTH-95
    +public static final byteRAWMODE0
    +public static final byteREAD-126
    +public static final byteREFLECTION3
    +public static final byteREGULATED4
    +public static final byteREGULATION_MODE_IDLE0
    +public static final byteREGULATION_MODE_MOTOR_SPEED1
    +public static final byteREGULATION_MODE_MOTOR_SYNC2
    +public static final byteREPLY_COMMAND2
    +public static final byteRESET_MOTOR_POSITION10
    +public static final byteRESET_SCALED_INPUT_VALUE8
    +public static final byteSET_BRICK_NAME-104
    +public static final byteSET_INPUT_MODE5
    +public static final byteSET_OUTPUT_STATE4
    +public static final byteSLOPEMASK31
    +public static final byteSOUND_DB7
    +public static final byteSOUND_DBA8
    +public static final byteSTART_PROGRAM0
    +public static final byteSTOP_PROGRAM1
    +public static final byteSTOP_SOUND_PLAYBACK12
    +public static final byteSWITCH1
    +public static final byteSYSTEM_COMMAND_NOREPLY-127
    +public static final byteSYSTEM_COMMAND_REPLY1
    +public static final byteTEMPERATURE2
    +public static final byteTRANSITIONCNTMODE64
    +public static final byteWRITE-125
    + +

    + +

    + + + + + +
    +lejos.rcxcomm.*
    + +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    lejos.rcxcomm.Opcode
    +public static final byteOPCODE_ABSOLUTE_VALUE116
    +public static final byteOPCODE_ABSOLUTE_VALUE_REPLY-125
    +public static final byteOPCODE_ADD_TO_VARIABLE36
    +public static final byteOPCODE_ADD_TO_VARIABLE_REPLY-45
    +public static final byteOPCODE_ALIVE16
    +public static final byteOPCODE_ALIVE_REPLY-25
    +public static final byteOPCODE_AND_VARIABLE-124
    +public static final byteOPCODE_AND_VARIABLE_REPLY115
    +public static final byteOPCODE_BRANCH_ALWAYS_FAR114
    +public static final byteOPCODE_BRANCH_ALWAYS_NEAR39
    +public static final byteOPCODE_CALL_SUBROUTINE23
    +public static final byteOPCODE_CLEAR_MESSAGE-112
    +public static final byteOPCODE_CLEAR_SENSOR_VALUE-47
    +public static final byteOPCODE_CLEAR_SENSOR_VALUE_REPLY38
    +public static final byteOPCODE_CLEAR_TIMER-95
    +public static final byteOPCODE_CLEAR_TIMER_REPLY86
    +public static final byteOPCODE_DATALOG_NEXT98
    +public static final byteOPCODE_DATALOG_NEXT_REPLY-107
    +public static final byteOPCODE_DECREMENT_LOOP_COUNTER_FAR-110
    +public static final byteOPCODE_DECREMENT_LOOP_COUNTER_NEAR55
    +public static final byteOPCODE_DELETE_ALL_SUBROUTINES112
    +public static final byteOPCODE_DELETE_ALL_SUBROUTINES_REPLY-121
    +public static final byteOPCODE_DELETE_ALL_TASKS64
    +public static final byteOPCODE_DELETE_ALL_TASKS_REPLY-73
    +public static final byteOPCODE_DELETE_FIRMWARE101
    +public static final byteOPCODE_DELETE_FIRMWARE_REPLY-110
    +public static final byteOPCODE_DELETE_SUBROUTINE-63
    +public static final byteOPCODE_DELETE_SUBROUTINE_REPLY54
    +public static final byteOPCODE_DELETE_TASK97
    +public static final byteOPCODE_DELETE_TASK_REPLY-106
    +public static final byteOPCODE_DIVIDE_VARIABLE68
    +public static final byteOPCODE_DIVIDE_VARIABLE_REPLY-77
    +public static final byteOPCODE_GET_BATTERY_POWER48
    +public static final byteOPCODE_GET_BATTERY_POWER_REPLY-57
    +public static final byteOPCODE_GET_MEMORY_MAP32
    +public static final byteOPCODE_GET_MEMORY_MAP_REPLY-41
    +public static final byteOPCODE_GET_VALUE18
    +public static final byteOPCODE_GET_VALUE_REPLY-27
    +public static final byteOPCODE_GET_VERSIONS21
    +public static final byteOPCODE_GET_VERSIONS_REPLY-30
    +public static final byteOPCODE_MASK-9
    +public static final byteOPCODE_MULTIPLY_VARIABLE84
    +public static final byteOPCODE_MULTIPLY_VARIABLE_REPLY-93
    +public static final byteOPCODE_OR_VARIABLE-108
    +public static final byteOPCODE_OR_VARIABLE_REPLY99
    +public static final byteOPCODE_PLAY_SOUND_REPLY-90
    +public static final byteOPCODE_PLAY_TONE35
    +public static final byteOPCODE_PLAY_TONE_REPLY-44
    +public static final byteOPCODE_POWER_OFF96
    +public static final byteOPCODE_POWER_OFF_REPLY-105
    +public static final byteOPCODE_REMOTE_COMMAND-46
    +public static final byteOPCODE_SEND_MESSAGE-78
    +public static final byteOPCODE_SET_DATALOG_SIZE82
    +public static final byteOPCODE_SET_DATALOG_SIZE_REPLY-91
    +public static final byteOPCODE_SET_DISPLAY51
    +public static final byteOPCODE_SET_DISPLAY_REPLY-60
    +public static final byteOPCODE_SET_LOOP_COUNTER-126
    +public static final byteOPCODE_SET_MESSAGE-9
    +public static final byteOPCODE_SET_MOTOR_DIRECTION-31
    +public static final byteOPCODE_SET_MOTOR_DIRECTION_REPLY22
    +public static final byteOPCODE_SET_MOTOR_ON_OFF33
    +public static final byteOPCODE_SET_MOTOR_ON_OFF_REPLY-42
    +public static final byteOPCODE_SET_MOTOR_POWER19
    +public static final byteOPCODE_SET_MOTOR_POWER_REPLY-28
    +public static final byteOPCODE_SET_POWER_DOWN_DELAY-79
    +public static final byteOPCODE_SET_POWER_DOWN_DELAY_REPLY70
    +public static final byteOPCODE_SET_PROGRAM_NUMBER-111
    +public static final byteOPCODE_SET_PROGRAM_NUMBER_REPLY102
    +public static final byteOPCODE_SET_SENSOR_MODE66
    +public static final byteOPCODE_SET_SENSOR_MODE_REPLY-75
    +public static final byteOPCODE_SET_SENSOR_TYPE50
    +public static final byteOPCODE_SET_SENSOR_TYPE_REPLY-59
    +public static final byteOPCODE_SET_TIME34
    +public static final byteOPCODE_SET_TIME_REPLY-43
    +public static final byteOPCODE_SET_TRANSMITTER_RANGE49
    +public static final byteOPCODE_SET_TRANSMITTER_RANGE_REPLY-58
    +public static final byteOPCODE_SET_VARIABLE20
    +public static final byteOPCODE_SET_VARIABLE_REPLY-29
    +public static final byteOPCODE_SIGN_VARIABLE100
    +public static final byteOPCODE_SIGN_VARIABLE_REPLY-109
    +public static final byteOPCODE_START_FIRMWARE_DOWNLOAD117
    +public static final byteOPCODE_START_FIRMWARE_DOWNLOAD_REPLY-126
    +public static final byteOPCODE_START_SUBROUTINE_DOWNLOAD53
    +public static final byteOPCODE_START_SUBROUTINE_DOWNLOAD_REPLY-62
    +public static final byteOPCODE_START_TASK113
    +public static final byteOPCODE_START_TASK_DOWNLOAD37
    +public static final byteOPCODE_START_TASK_DOWNLOAD_REPLY-46
    +public static final byteOPCODE_START_TASK_REPLY-122
    +public static final byteOPCODE_STOP_ALL_TASKS80
    +public static final byteOPCODE_STOP_ALL_TASKS_REPLY-89
    +public static final byteOPCODE_STOP_TASK-127
    +public static final byteOPCODE_STOP_TASK_REPLY118
    +public static final byteOPCODE_SUBTRACT_FROM_VARIABLE52
    +public static final byteOPCODE_SUBTRACT_FROM_VARIABLE_REPLY-61
    +public static final byteOPCODE_TEST_AND_BRANCH_FAR-107
    +public static final byteOPCODE_TEST_AND_BRANCH_NEAR-123
    +public static final byteOPCODE_TRANSFER_DATA69
    +public static final byteOPCODE_TRANSFER_DATA_REPLY-78
    +public static final byteOPCODE_UNLOCK_FIRMWARE-91
    +public static final byteOPCODE_UNLOCK_FIRMWARE_REPLY82
    +public static final byteOPCODE_UPLOAD_DATALOG-92
    +public static final byteOPCODE_UPLOAD_DATALOG_REPLY83
    +public static final byteOPCODE_WAIT67
    + +

    + +


    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/deprecated-list.html b/nxtOSEK/lejos_nxj/docs/apidocs/deprecated-list.html index ea6f332..1c2ce64 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/deprecated-list.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/deprecated-list.html @@ -2,7 +2,7 @@ - + Deprecated List (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/help-doc.html b/nxtOSEK/lejos_nxj/docs/apidocs/help-doc.html index a34511a..da0d571 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/help-doc.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/help-doc.html @@ -2,7 +2,7 @@ - + API Help (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/index-all.html b/nxtOSEK/lejos_nxj/docs/apidocs/index-all.html index b0d4dcf..9f1a02e 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/index-all.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/index-all.html @@ -2,7 +2,7 @@ - + Index (leJOS NXT API documentation) @@ -73,7 +73,7 @@ function windowTitle() -A B C D E F G H I J K L M N O P Q R S T U V W Y _
    +A B C D E F G H I J K L M N O P Q R S T U V W X Y _

    A

    @@ -83,6 +83,15 @@ Static variable in class lejos.nxt.A - Static variable in class lejos.nxt.MotorPort
    MotorPort A. +
    A - +Variable in class lejos.nxt.RCXLink +
      +
    A - +Variable in class lejos.nxt.RCXMotorMultiplexer +
      +
    A - +Variable in class lejos.nxt.remote.RemoteNXT +
     
    abs(double) - Static method in class java.lang.Math
    Returns the absolute value of a double value. @@ -92,8 +101,8 @@ Static method in class java.lang.AbstractRecyclable - Class in lejos.util
    Represents a recyclable object.
    AbstractRecyclable() - Constructor for class lejos.util.AbstractRecyclable
      -
    accept() - -Method in class NXTServerSocket +
    accept() - +Method in class lejos.nxt.comm.NXTServerSocket
    Waits untill there is a socket connection available.
    acos(double) - Static method in class java.lang.Math @@ -105,6 +114,9 @@ Method in class lejos.subsumption.Behavior
    The code in action() represents the actual action of the robot when this behavior becomes active. +
    activate() - +Method in interface lejos.nxt.LegacySensorPort +
     
    activate() - Method in class lejos.nxt.RCXLightSensor
    Activates an RCX light sensor. @@ -150,7 +162,7 @@ Method in class java.util.addSensorPortListener(SensorPortListener) - Method in class lejos.nxt.SensorPort
    Adds a port listener. -
    Alert - Class in javax.microedition.lcdui
     
    Alert(String) - +
    ADSensorPort - Interface in lejos.nxt
    An abstraction for a port that supports Analog/Digital sensors.
    Alert - Class in javax.microedition.lcdui
     
    Alert(String) - Constructor for class javax.microedition.lcdui.Alert
     
    Alert(String, String, Image, int) - @@ -183,6 +195,21 @@ Method in class lejos.util.allocate() - Method in class lejos.util.Recycler
    Attempts to obtain a free object. +
    AM_ALWAYS - +Static variable in class lejos.nxt.comm.BTConnection +
      +
    AM_DISABLE - +Static variable in class lejos.nxt.comm.BTConnection +
      +
    AM_OUTPUT - +Static variable in class lejos.nxt.comm.BTConnection +
      +
    ANGLE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    ANGLESTEPSMODE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    angleTo(float, float) - Method in interface lejos.navigation.Navigator
    returns the direction angle (degrees) to the point with coordinates (x,y) @@ -239,13 +266,21 @@ Method in class javax.microedition.lcdui.Arbitrator
    Allocates an Arbitrator object and initializes it with an array of Behavior objects. +
    Arbitrator2 - Class in lejos.subsumption
    Arbitrator2 controls which behavior should currently be active in + a behavior control system.
    Arbitrator2(Behavior2[]) - +Constructor for class lejos.subsumption.Arbitrator2 +
    Allocates an Arbitrator2 object and initializes it with an array of + Behavior2 objects.
    ArithmeticException - Exception in java.lang
     
    ArithmeticException() - Constructor for exception java.lang.ArithmeticException
      +
    arraycopy(Object, int, Object, int, int) - +Static method in class java.lang.System +
    Copies one array to another.
    ArrayIndexOutOfBoundsException - Exception in java.lang
     
    ArrayIndexOutOfBoundsException() - Constructor for exception java.lang.ArrayIndexOutOfBoundsException
      -
    ArrayList - Class in java.util
     
    ArrayList(int) - +
    ArrayList - Class in java.util
    An expandable array.
    ArrayList(int) - Constructor for class java.util.ArrayList
     
    ArrayList(Object[]) - @@ -271,11 +306,20 @@ Static method in class java.lang.autoRefresh(boolean) - +Method in class javax.microedition.lcdui.Graphics +
     
    available() - Method in class java.io.InputStream
    Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. +
    available(int) - +Method in class lejos.nxt.comm.BTConnection +
    Indicate the number of bytes available to be read. +
    available() - +Method in class lejos.nxt.comm.BTConnection +
     
    available() - Method in class lejos.nxt.comm.BTInputStream
    returns the number of bytes in the input buffer - can be read without blocking @@ -290,6 +334,15 @@ Static variable in class lejos.nxt.B - Static variable in class lejos.nxt.MotorPort
    MotorPort B. +
    B - +Variable in class lejos.nxt.RCXLink +
      +
    B - +Variable in class lejos.nxt.RCXMotorMultiplexer +
      +
    B - +Variable in class lejos.nxt.remote.RemoteNXT +
     
    BACK - Static variable in class javax.microedition.lcdui.Command
      @@ -302,20 +355,44 @@ Method in class lejos.navigation.backward() - Method in class lejos.navigation.TachoNavigator
    Moves the NXT robot backward until stop() is called. +
    backward() - +Method in class lejos.nxt.BasicMotor +
    Causes motor to rotate backwards.
    backward() - Method in class lejos.nxt.Motor
    Causes motor to rotate backwards. -
    Battery - Class in lejos.nxt
    Provides access to Battery.
    beep() - +
    backward(int) - +Method in class lejos.nxt.RCXLink +
      +
    backwardStep(int) - +Method in class lejos.nxt.RCXLink +
      +
    BasicMotor - Class in lejos.nxt
    An abstraction for a motor without a tachometer, + such as an RCX motor.
    BasicMotor() - +Constructor for class lejos.nxt.BasicMotor +
      +
    BasicMotorPort - Interface in lejos.nxt
    An abstraction for a motor port that supports RCX + type motors, but not NXT motors with tachometers.
    BasicSensorPort - Interface in lejos.nxt
    An abstraction for a sensor port that supports + setting and retrieving types and modes of sensors.
    Battery - Class in lejos.nxt
    Provides access to Battery.
    Battery - +Variable in class lejos.nxt.remote.RemoteNXT +
      +
    BEEP - +Static variable in class lejos.nxt.RCXLink +
    NOTE: The BEEP macro is unreliable. +
    beep() - +Method in class lejos.nxt.RCXLink +
      +
    beep() - Static method in class lejos.nxt.Sound -
    Beeps once - not yet implemented. +
    Beeps once.
    beepSequence() - Static method in class lejos.nxt.Sound
    Downward tones.
    beepSequenceUp() - Static method in class lejos.nxt.Sound -
    Downward tones. +
    Upward tones.
    Behavior - Interface in lejos.subsumption
    The Behavior interface represents an object embodying a specific - behavior belonging to a robot.
    BitSet - Class in java.util
    Represents a long set of bits.
    BitSet(int) - + behavior belonging to a robot.
    Behavior2 - Interface in lejos.subsumption
    This interface works with Aribtrator2.
    BitSet - Class in java.util
    Represents a long set of bits.
    BitSet(int) - Constructor for class java.util.BitSet
     
    BLACK - @@ -324,37 +401,77 @@ Static variable in class javax.microedition.lcdui.blank - Static variable in class lejos.nxt.TextMenu
    a blank line -
    Bluetooth - Class in lejos.nxt.comm
    Support for Bluetooth communications.
    BOOT - +
    Bluetooth - Class in lejos.nxt.comm
    Provides Bluetooth comminications.
    Bluetooth() - +Constructor for class lejos.nxt.comm.Bluetooth +
      +
    bluetoothAddress - +Variable in class lejos.nxt.comm.DeviceInfo +
      +
    BOOLEANMODE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    BOOT - Static variable in class lejos.nxt.comm.LCP
      -
    BTConnection - Class in lejos.nxt.comm
    Represents a Bluetooth Stream Connection.
    btGetCmdMode() - -Static method in class lejos.nxt.comm.Bluetooth -
    Low-level nethod to get the BC4 chip mode - does not work. -
    BTInputStream - Class in lejos.nxt.comm
    Extends InputStream for BlueTooth; implements available()
    BTInputStream() - -Constructor for class lejos.nxt.comm.BTInputStream +
    BOOT - +Static variable in interface lejos.nxt.comm.NXTProtocol
      -
    BTOutputStream - Class in lejos.nxt.comm
     
    BTOutputStream() - -Constructor for class lejos.nxt.comm.BTOutputStream +
    BRAKE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
    Use run/brake instead of run/float in PWM +
    BT_PENDING_INPUT - +Static variable in class lejos.nxt.comm.Bluetooth
      +
    BT_PENDING_OUTPUT - +Static variable in class lejos.nxt.comm.Bluetooth +
      +
    BTConnection - Class in lejos.nxt.comm
    Provides a Bluetooth connection + Supports both packetized and stream based commincation.
    BTConnection(int) - +Constructor for class lejos.nxt.comm.BTConnection +
      +
    btGetBC4CmdMode() - +Static method in class lejos.nxt.comm.Bluetooth +
    Low-level method to get the BC4 chip mode +
    BTInputStream - Class in lejos.nxt.comm
    Extends InputStream for BlueTooth; implements available()
    BTOutputStream - Class in lejos.nxt.comm
    Implements an OutputStream over Bluetooth.
    btPending() - +Static method in class lejos.nxt.comm.Bluetooth +
    Low-Level method to access the Bluetooth interface. +
    btRead(byte[], int, int) - +Static method in class lejos.nxt.comm.Bluetooth +
    Low-level method to read BT data
    btReceive(byte[]) - Static method in class lejos.nxt.comm.Bluetooth
    Low-level method to receive BT replies or data -
    BTRemoteDevice - Class in lejos.nxt.comm
     
    BTRemoteDevice(char[], int, byte[], byte[]) - +
    BTRemoteDevice - Class in lejos.nxt.comm
    Represents a remote Bluetooth device.
    BTRemoteDevice(char[], int, byte[], byte[]) - Constructor for class lejos.nxt.comm.BTRemoteDevice
     
    btSend(byte[], int) - Static method in class lejos.nxt.comm.Bluetooth
    Low-level method to send a BT command or data -
    btSetCmdMode(int) - +
    btSetArmCmdMode(int) - Static method in class lejos.nxt.comm.Bluetooth
    Low-level method to switch BC4 chip between command and data (stream) mode. +
    btSetCmdMode(int) - +Static method in class lejos.nxt.comm.Bluetooth +
    Set the BC4 mode, and wait for that mode to be confirmed by the chip. +
    btSetResetHigh() - +Static method in class lejos.nxt.comm.Bluetooth +
    Low-level method to take the BC4 reset line high +
    btSetResetLow() - +Static method in class lejos.nxt.comm.Bluetooth +
    Low-level method to take the BC4 reset line low
    btStartADConverter() - Static method in class lejos.nxt.comm.Bluetooth -
    Low-level method to start ADC converter - does not wok. +
    Low-level method to start ADC converter +
    btWrite(byte[], int, int) - +Static method in class lejos.nxt.comm.Bluetooth +
    Low-level method to write BT data
    Button - Class in lejos.nxt
    Abstraction for an NXT button.
    BUTTON_MASK_SHIFT - Static variable in class lejos.nxt.Poll
      +
    ButtonCounter - Class in lejos.util
    This is class is for data entry using the NXT keyboard.
    ButtonCounter() - +Constructor for class lejos.util.ButtonCounter +
     
    ButtonListener - Interface in lejos.nxt
    Abstraction for receiver of button events.
    buttonPressed(Button) - Method in interface lejos.nxt.ButtonListener
      @@ -367,9 +484,12 @@ Static variable in class lejos.nxt.buzz() - Static method in class lejos.nxt.Sound
    Low buzz -
    BYTES_PER_PAGE - -Static variable in class java.io.File -
    Indicates the # of bytes per page in the Flash class. +
    BYTES_PER_PAGE - +Static variable in class lejos.nxt.Flash +
    Indicates the # of bytes per page in a page of Flash memory. +
    bytesAvailable() - +Method in class lejos.nxt.RCXLink +
     

    @@ -381,15 +501,27 @@ Static variable in class lejos.nxt.C - Static variable in class lejos.nxt.MotorPort
    MotorPort C. +
    C - +Variable in class lejos.nxt.RCXLink +
      +
    C - +Variable in class lejos.nxt.RCXMotorMultiplexer +
      +
    C - +Variable in class lejos.nxt.remote.RemoteNXT +
     
    C2 - Static variable in class lejos.nxt.Sound -
    Play a system sound - not yet implemented. +
    Play a system sound.
    calibrate() - Method in class lejos.navigation.CompassPilot
     
    calibrateCompass() - Method in class lejos.navigation.CompassNavigator
    Robot rotates 360 degrees while calibrating the compass sensor +
    calibratedValue - +Variable in class lejos.nxt.comm.InputValues +
    Currently unused.
    calibrateHigh() - Method in class lejos.nxt.LightSensor
    call this method whtn the light sensor is reading the high value - used by reaeValue @@ -423,6 +555,10 @@ Variable in class java.util.capacityIncrement - Variable in class java.util.Vector
      +
    capture() - +Method in class lejos.nxt.UltrasonicSensor +
    Set capture mode + Set the sensor into capture mode.
    ceil(double) - Static method in class java.lang.Math
    Returns the smallest (closest to negative infinity) double value that is not @@ -430,6 +566,9 @@ Static method in class java.lang.CELL_WIDTH - Static variable in class lejos.nxt.LCD
      +
    CELSIUSMODE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    CHAR_HEIGHT - Static variable in class javax.microedition.lcdui.Display
      @@ -492,8 +631,7 @@ Method in class java.io.close() - Method in class java.io.FileOutputStream -
    write the buffer to flash memory and update the file parameters in flash - Resets pointers, so file can be writen again from beginning with the same output stream. +
    Write the buffer to flash memory and update the file parameters in flash.
    close() - Method in class java.io.InputStream
    Closes this input stream and releases any system resources associated @@ -507,16 +645,45 @@ Method in interface javax.microedition.io.close() - Method in class lejos.nxt.comm.BTConnection -
      +
    Close the connection.
    close() - Method in class lejos.nxt.comm.BTInputStream
    the stream is restored to its original state - ready to receive more data. +
    close() - +Static method in class lejos.nxt.comm.Debug +
     
    CLOSE - Static variable in class lejos.nxt.comm.LCP
      +
    close() - +Method in class lejos.nxt.comm.NXTComm +
      +
    close() - +Method in class lejos.nxt.comm.NXTCommand +
    Call the close() command when your program ends, otherwise you + will have to turn the NXT brick off/on before you run another + program using iCommand. +
    CLOSE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    close() - Method in class lejos.nxt.comm.USBConnection
      +
    close() - +Method in class lejos.rcxcomm.PacketHandler +
    Close this packet handler and all lower layers. +
    close() - +Method in class lejos.rcxcomm.RCXAbstractPort +
    Closes this RCXPort, stopping the Listener thread. +
    closeConnection(byte) - +Static method in class lejos.nxt.comm.Bluetooth +
    Close an open connection +
    closePort() - +Static method in class lejos.nxt.comm.Bluetooth +
    Closes the port to disallow incoming connections. +
    closeStream() - +Method in class lejos.nxt.comm.BTConnection +
    Close the stream for this connection.
    cmdListener - Variable in class javax.microedition.lcdui.Displayable
      @@ -551,8 +718,7 @@ Variable in class javax.microedition.lcdui.compass - Variable in class lejos.navigation.CompassPilot
      -
    CompassNavigator - Class in lejos.navigation
    The CompassPilot class, like its superclass, can keep track of the robot position and the direction angle it faces; It uses a compassPpilot bject to control NXT robot movements.
    - The position and direction angle values are updated automatically when the movement command returns after the movement is complete and and after stop() command is issued.
    CompassNavigator(SensorPort, float, float, Motor, Motor) - +
    CompassNavigator - Class in lejos.navigation
    The CompassNavigatort class, like its superclass, can keep track of the robot position and the direction angle it faces.
    CompassNavigator(SensorPort, float, float, Motor, Motor) - Constructor for class lejos.navigation.CompassNavigator
    Allocates a CompassNavigator objects and its CompassPilot object and initializes it with the proper motors and dimensions.
    CompassNavigator(SensorPort, float, float, Motor, Motor, boolean) - @@ -564,7 +730,7 @@ Constructor for class lejos.navigation.CompassNavigator(CompassPilot) - Constructor for class lejos.navigation.CompassNavigator
    To use this constructor, you must first create a compass pilot. -
    CompassPilot - Class in lejos.navigation
     
    CompassPilot(SensorPort, float, float, Motor, Motor) - +
    CompassPilot - Class in lejos.navigation
    A Pilot that keeps track of direction using a CompassSensor.
    CompassPilot(SensorPort, float, float, Motor, Motor) - Constructor for class lejos.navigation.CompassPilot
    Allocates a CompasPilot object, and sets the physical parameters of the NXT robot.
    CompassPilot(SensorPort, float, float, Motor, Motor, boolean) - @@ -585,15 +751,46 @@ Static method in class lejos.nxt.comm.connect(byte[]) - Static method in class lejos.nxt.comm.Bluetooth
    Connects to a Device by it's Byte-Device-Address Array + Uses default pin "1234" +
    connect(byte[], byte[]) - +Static method in class lejos.nxt.comm.Bluetooth +
    Connects to a Device by it's Byte-Device-Address Array
    contains(Object) - Method in class java.util.ArrayList
      +
    continuous() - +Method in class lejos.nxt.UltrasonicSensor +
    Switch to continuous ping mode. +
    controlMotor(int, int) - +Method in interface lejos.nxt.BasicMotorPort +
     
    controlMotor(int, int) - Method in class lejos.nxt.MotorPort
    Low-level method to control a motor. +
    controlMotor(int, int) - +Method in class lejos.nxt.RCXPlexedMotorPort +
      +
    controlMotor(int, int) - +Method in class lejos.nxt.RCXRemoteMotorPort +
      +
    controlMotor(int, int) - +Method in class lejos.nxt.remote.RemoteMotorPort +
     
    cos(double) - Static method in class java.lang.Math
    Cosine function using a Chebyshev-Pade approximation. +
    count(String) - +Method in class lejos.util.ButtonCounter +
    Start counting; parameter string is displayed; use it to identify this particular call
    +returns when ESC or ENTER button is pressed
    +Hold Enter and left or right to decrease count, otherwise it increases
    +counters are reset when this method is called. +
    count() - +Method in class lejos.util.ButtonCounter +
    called by count( string) +
    count(String, int, int) - +Method in class lejos.util.ButtonCounter +
    Initializes values of left count and right count.
    createInstance() - Method in class lejos.util.ArrayRecycler
      @@ -610,28 +807,49 @@ Static method in class java.lang.currentTimeMillis() - Static method in class java.lang.System
    Current time expressed in milliseconds. +
    CUSTOM - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     

    D

    -
    DataInputStream - Class in java.io
     
    DataInputStream(InputStream) - +
    D - +Variable in class lejos.nxt.RCXMotorMultiplexer +
      +
    DataInputStream - Class in java.io
    Reads java data types transmitted as bytes over an InputStream.
    DataInputStream(InputStream) - Constructor for class java.io.DataInputStream
      -
    Datalogger - Class in lejos.nxt
    Datalogger class; stores float values then then transmits via bluetooth or usb
    - works with DataViewer in pctools.
    Datalogger() - -Constructor for class lejos.nxt.Datalogger +
    Datalogger - Class in lejos.util
    Datalogger class; stores float values then then transmits via bluetooth or usb
    + works with DataViewer in pctools.
    Datalogger() - +Constructor for class lejos.util.Datalogger
      -
    DataOutputStream - Class in java.io
     
    DataOutputStream(OutputStream) - +
    DataOutputStream - Class in java.io
    Transmits java data types as bytes over an OutputStream.
    DataOutputStream(OutputStream) - Constructor for class java.io.DataOutputStream
      +
    Debug - Class in lejos.nxt.comm
    This class provides a simple way of sending debug output for viewing on a + PC.
    Debug() - +Constructor for class lejos.nxt.comm.Debug +
     
    DECIMAL - Static variable in class javax.microedition.lcdui.TextField
      +
    defaultPin - +Static variable in class lejos.nxt.comm.Bluetooth +
      +
    defineAndRun(byte[], int) - +Method in class lejos.nxt.RCXLink +
      +
    defineMacro(int, byte[]) - +Method in class lejos.nxt.RCXLink +
     
    defrag() - Static method in class java.io.File -
    assumptions: the files[] array has no nulls, and is in increasing order by page_location - this scheme moves moves each file down to fill in the empty pages. +
    Defrag the file system. +
    DELAY - +Static variable in class lejos.nxt.RCXLink +
     
    delete() - Method in class java.io.File
    Deletes the file represented by this File object. @@ -653,9 +871,15 @@ Method in class javax.microedition.lcdui.DELETE - Static variable in class lejos.nxt.comm.LCP
      +
    DELETE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    DELETE_USER_FLASH - Static variable in class lejos.nxt.comm.LCP
      +
    DELETE_USER_FLASH - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    deleteAll() - Method in interface javax.microedition.lcdui.Choice
      @@ -668,12 +892,30 @@ Method in class javax.microedition.lcdui.deleteAll() - Method in class javax.microedition.lcdui.List
      +
    deleteFlashMemory() - +Method in class lejos.nxt.remote.RemoteNXT +
    Deletes all user programs and data in FLASH memory +
    deleteUserFlash() - +Method in class lejos.nxt.comm.NXTCommand +
    Deletes user flash memory (not including system modules). +
    DeviceInfo - Class in lejos.nxt.comm
    Represents a remote NXT accessed via LCP.
    DeviceInfo() - +Constructor for class lejos.nxt.comm.DeviceInfo +
     
    DIRECT_COMMAND_NOREPLY - Static variable in class lejos.nxt.comm.LCP
      +
    DIRECT_COMMAND_NOREPLY - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    DIRECT_COMMAND_REPLY - Static variable in class lejos.nxt.comm.LCP
      +
    DIRECT_COMMAND_REPLY - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    DIRECTORY_FULL - +Static variable in class lejos.nxt.comm.LCP +
     
    Display - Class in javax.microedition.lcdui
     
    DISPLAY_CHAR_DEPTH - Static variable in class lejos.nxt.LCD
      @@ -749,6 +991,9 @@ Static method in class lejos.nxt.E - Static variable in class java.lang.Math
      +
    EEPROM_BUFFER - +Static variable in class lejos.nxt.RCXLink +
     
    elementAt(int) - Method in class java.util.Vector
      @@ -843,16 +1088,19 @@ Static method in class java.lang.

    F

    -
    File - Class in java.io
     
    File(String) - +
    FAHRENHEITMODE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    File - Class in java.io
    Implements a file system using pages of flash memory.
    File(String) - Constructor for class java.io.File
    Creates a new File object.
    FILE_NOT_FOUND - Static variable in class lejos.nxt.comm.LCP
      -
    FileInputStream - Class in java.io
     
    FileInputStream(File) - +
    FileInputStream - Class in java.io
    Reads a stream of bytes from a file.
    FileInputStream(File) - Constructor for class java.io.FileInputStream
      -
    FileOutputStream - Class in java.io
     
    FileOutputStream(File) - +
    FileOutputStream - Class in java.io
    Writes a stream of bytes to a file.
    FileOutputStream(File) - Constructor for class java.io.FileOutputStream
    create a new OutputStream to write to this file, starting at the beginning of the file.
    FileOutputStream(File, boolean) - @@ -867,10 +1115,22 @@ Method in class javax.microedition.lcdui.FIND_FIRST - Static variable in class lejos.nxt.comm.LCP
      +
    FIND_FIRST - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    FIND_NEXT - Static variable in class lejos.nxt.comm.LCP
      -
    Flash - Class in lejos.nxt
     
    Float - Class in java.lang
    Minimal Float implementation that supports +
    FIND_NEXT - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    FirmwareInfo - Class in lejos.nxt.comm
    Firmware information for a remote NXT accessed via LCP.
    FirmwareInfo() - +Constructor for class lejos.nxt.comm.FirmwareInfo +
      +
    firmwareVersion - +Variable in class lejos.nxt.comm.FirmwareInfo +
      +
    Flash - Class in lejos.nxt
    Read and write access to flash memory in pages.
    Float - Class in java.lang
    Minimal Float implementation that supports floatToIntBits and intBitsToFloat
    floatToIntBits(float) - Static method in class java.lang.Float
    Returns the bit represention of a single-float value. @@ -878,9 +1138,15 @@ Static method in class java.lang.Math
    Returns the largest (closest to positive infinity) double value that is not greater than the argument and is equal to a mathematical integer. +
    flt() - +Method in class lejos.nxt.BasicMotor +
    Causes motor to float.
    flt() - Method in class lejos.nxt.Motor
    Causes motor to float. +
    fltMotor(int) - +Method in class lejos.nxt.RCXLink +
     
    flush() - Method in class java.io.DataOutputStream
    Flushes this data output stream. @@ -891,6 +1157,12 @@ Method in class java.io.OutputStream
    Flushes this output stream and forces any buffered output bytes to be written out. +
    flush() - +Method in class lejos.nxt.comm.BTOutputStream +
      +
    flush() - +Method in class lejos.nxt.RCXLink +
     
    Font - Class in javax.microedition.lcdui
     
    Font() - Constructor for class javax.microedition.lcdui.Font
      @@ -922,12 +1194,24 @@ Method in class lejos.navigation.forward() - Method in class lejos.navigation.TachoNavigator
    Moves the NXT robot forward until stop() is called. +
    forward() - +Method in class lejos.nxt.BasicMotor +
    Causes motor to rotate forward.
    forward() - Method in class lejos.nxt.Motor
    Causes motor to rotate forward. +
    forward(int) - +Method in class lejos.nxt.RCXLink +
      +
    forwardStep(int) - +Method in class lejos.nxt.RCXLink +
      +
    freeFlash - +Variable in class lejos.nxt.comm.DeviceInfo +
     
    freeMemory() - Static method in class java.io.File -
      +
    Returns to total free memory in the flash file system.
    freeMemory() - Method in class java.lang.Runtime
    Return the amount of free memory.on the heap @@ -939,6 +1223,9 @@ Method in class java.lang.Gauge - Class in javax.microedition.lcdui
     
    Gauge(String, boolean, int, int) - Constructor for class javax.microedition.lcdui.Gauge
      +
    gc() - +Static method in class java.lang.System +
    Collect garbage
    get(int) - Method in class java.util.ArrayList
      @@ -957,21 +1244,39 @@ Method in class lejos.util.GET_BATTERY_LEVEL - Static variable in class lejos.nxt.comm.LCP
      +
    GET_BATTERY_LEVEL - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    GET_CURRENT_PROGRAM_NAME - Static variable in class lejos.nxt.comm.LCP
      +
    GET_CURRENT_PROGRAM_NAME - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    GET_DEVICE_INFO - Static variable in class lejos.nxt.comm.LCP
      +
    GET_DEVICE_INFO - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    GET_FIRMWARE_VERSION - Static variable in class lejos.nxt.comm.LCP
      +
    GET_FIRMWARE_VERSION - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    GET_INPUT_VALUES - Static variable in class lejos.nxt.comm.LCP
      +
    GET_INPUT_VALUES - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    GET_OUTPUT_STATE - Static variable in class lejos.nxt.comm.LCP
      +
    GET_OUTPUT_STATE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    getActualSpeed() - Method in class lejos.nxt.Motor
    returns actualSpeed degrees per second, calculated every 100 ms; negative value means motor is rotating backward @@ -992,10 +1297,22 @@ Method in class lejos.navigation.getBasePower() - Method in class lejos.nxt.Motor +
    for debugging +
    getBatteryLevel() - +Method in class lejos.nxt.comm.NXTCommand
     
    getBlue() - Method in class lejos.nxt.ColorSensor
    Returns the blue saturation of the color. +
    getBluetoothAddress() - +Method in class lejos.nxt.remote.RemoteNXT +
    Get the bluetooth address of the remorte device +
    getBrickName() - +Method in class lejos.nxt.remote.RemoteNXT +
    Get the name of the remote brick +
    getCalibrationData(byte[]) - +Method in class lejos.nxt.UltrasonicSensor +
    Return 3 bytes of calibration data.
    getCenteredX(String) - Method in class javax.microedition.lcdui.Graphics
      @@ -1023,9 +1340,15 @@ Method in class lejos.navigation.getConfirmation() - Method in class javax.microedition.lcdui.Alert
      +
    getConnectionStatus() - +Static method in class lejos.nxt.comm.Bluetooth +
    Get the status of all connections
    getConstraints() - Method in class javax.microedition.lcdui.TextField
      +
    getContinuousInterval() - +Method in class lejos.nxt.UltrasonicSensor +
    Return the interval used in continuous mode.
    getCurrent() - Method in class javax.microedition.lcdui.Display
      @@ -1035,6 +1358,9 @@ Method in class javax.microedition.lcdui.getData(int, byte[], int) - Method in class lejos.nxt.I2CSensor
    Executes an I2C read transaction and waits for the result. +
    getData(int, byte[], int) - +Method in class lejos.nxt.UltrasonicSensor +
     
    getDataInputStream() - Method in class lejos.nxt.comm.NXTSocket
    Returns the data input stream of the socket @@ -1057,14 +1383,45 @@ Method in class lejos.nxt.comm.getDeviceClass() - Method in class lejos.nxt.comm.BTRemoteDevice
      +
    getDeviceInfo() - +Method in class lejos.nxt.comm.NXTCommand +
      +
    getDirection() - +Method in class lejos.nxt.IRSeeker +
    Returns the direction of the target (1-9) + or zero if no target. +
    getDirection(int) - +Method in class lejos.nxt.RCXMotorMultiplexer +
     
    getDisplay() - Static method in class javax.microedition.lcdui.Display
      +
    getDisplay() - +Static method in class lejos.nxt.LCD +
     
    getDistance() - Method in class lejos.nxt.UltrasonicSensor -
    Return distance of object. +
    Return distance to an object. +
    getDistances(int[]) - +Method in class lejos.nxt.UltrasonicSensor +
    Return an array of 8 echo distances.
    getError() - Method in class lejos.nxt.Motor +
    for degugging +
    getError() - +Method in class lejos.rcxcomm.PacketHandler +
    Get the last error. +
    getFactoryData(byte[]) - +Method in class lejos.nxt.UltrasonicSensor +
    Return 10 bytes of factory calibration data. +
    getFirmwareVersion() - +Method in class lejos.nxt.comm.NXTCommand +
      +
    getFirmwareVersion() - +Method in class lejos.nxt.remote.RemoteNXT +
    Return Lego firmware vserion +
    getFlashMemory() - +Method in class lejos.nxt.remote.RemoteNXT
     
    getFriendlyName() - Static method in class lejos.nxt.comm.Bluetooth @@ -1096,6 +1453,9 @@ Method in class javax.microedition.lcdui.getId() - Method in class lejos.nxt.Button
    Return the ID of the button. +
    getId() - +Method in class lejos.nxt.remote.RemoteSensorPort +
     
    getId() - Method in class lejos.nxt.SensorPort
    Return the ID of the port. @@ -1110,13 +1470,19 @@ Method in class javax.microedition.lcdui.getIndex() - Method in class java.io.File -
    returns location of file in the files[] array +
    Returns location of file in the files[] array
    getIndicator() - Method in class javax.microedition.lcdui.Alert
     
    getInputStream() - Method in class lejos.nxt.comm.NXTSocket
    Returns the input stream associated with this socket +
    getInputStream() - +Method in class lejos.rcxcomm.RCXAbstractPort +
    Returns an input stream for this RCXPort. +
    getInputValues(int) - +Method in class lejos.nxt.comm.NXTCommand +
     
    getKnownDevice(String) - Static method in class lejos.nxt.comm.Bluetooth
    Gets a Device of the BC4-Chips internal list of known Devices @@ -1137,12 +1503,21 @@ Method in class lejos.navigation.getLeftCount() - Method in class lejos.navigation.Pilot
    returns tachoCount of left motor; Positive value means motor has moved the robot forward; +
    getLeftCount() - +Method in class lejos.util.ButtonCounter +
    Use this method after counting is complete;
    getLength() - Method in class lejos.util.RecyclableArray
     
    getLimitAngle() - Method in class lejos.nxt.Motor
    Return the angle that a Motor is rotating to. +
    getLink() - +Static method in class lejos.rcxcomm.LLC +
    Return the RCXLink object associated with LLC +
    getLink() - +Static method in class lejos.rcxcomm.Serial +
    Get the RCXLink object associated with the Serial class
    getLocalAddress() - Static method in class lejos.nxt.comm.Bluetooth
    get the Bluetooth address of the local device @@ -1164,12 +1539,24 @@ Method in class javax.microedition.lcdui.getMinimumWidth() - Method in class javax.microedition.lcdui.Item
      +
    getMode() - +Method in class lejos.nxt.BasicMotor +
    Returns the mode. +
    getMode() - +Method in interface lejos.nxt.BasicSensorPort +
     
    getMode() - Method in class lejos.nxt.Motor
      +
    getMode() - +Method in class lejos.nxt.remote.RemoteSensorPort +
     
    getMode() - Method in class lejos.nxt.SensorPort
    Returns mode compatible with Lego firmware. +
    getMode() - +Method in class lejos.nxt.UltrasonicSensor +
    Returns the current operating mode of the sensor.
    getName() - Method in class java.io.File
    Returns the name of the file. @@ -1181,12 +1568,24 @@ Method in class lejos.util.Recyclable
    Must return Recyclable most recently set with setNextRecyclable. +
    getNumberOfObjects() - +Method in class lejos.nxt.NXTCam +
    Get the number of objects being tracked +
    getObjectColor(int) - +Method in class lejos.nxt.NXTCam +
    Get the color number for a tracked object +
    getOperatingMode() - +Static method in class lejos.nxt.comm.Bluetooth +
    Get the operating mode (stream breaking or not)
    getOutputStream() - Method in class lejos.nxt.comm.NXTSocket
    Returns the output stream associated with this socket +
    getOutputStream() - +Method in class lejos.rcxcomm.RCXAbstractPort +
    Returns an output stream for this RCXPort.
    getPage() - Method in class java.io.File -
      +
    Internal method used to get the page number of the start of the file.
    getPaintRequest() - Method in class javax.microedition.lcdui.Displayable
      @@ -1196,6 +1595,19 @@ Method in class javax.microedition.lcdui.getPilot() - Method in class lejos.navigation.TachoNavigator
      +
    getPin() - +Static method in class lejos.nxt.comm.Bluetooth +
    Return the pin to be used for pairing/connecting to the system +
    getPortOpen() - +Static method in class lejos.nxt.comm.Bluetooth +
    Get the port open status, + i.e whether connections are being accepted +
    getPower() - +Method in class lejos.nxt.BasicMotor +
    Returns the current power setting. +
    getPower() - +Static method in class lejos.nxt.comm.Bluetooth +
    Return the current state of the module power
    getPower() - Method in class lejos.nxt.Motor
      @@ -1214,9 +1626,18 @@ Method in class javax.microedition.lcdui.getProductID() - Method in class lejos.nxt.I2CSensor
    Return the sensor product identifier. +
    getProtocolVersion() - +Method in class lejos.nxt.remote.RemoteNXT +
    Return LCP protocol version +
    getRectangle(int) - +Method in class lejos.nxt.NXTCam +
    Get the rectangle containing a tracked object
    getRed() - Method in class lejos.nxt.ColorSensor
    Returns the red saturation of the color. +
    getResetCount() - +Static method in class lejos.nxt.comm.Bluetooth +
     
    getRight() - Method in class lejos.navigation.Pilot
    returns right motor @@ -1226,6 +1647,9 @@ Method in class lejos.navigation.getRightCount() - Method in class lejos.navigation.Pilot
    returns tachoCount of the right motor; Positive value means motor has moved the robot forward; +
    getRightCount() - +Method in class lejos.util.ButtonCounter +
    Use this method after counting is complete;
    getRuntime() - Static method in class java.lang.Runtime
    Get the single instance of us. @@ -1253,14 +1677,30 @@ Method in class javax.microedition.lcdui.getSensorType() - Method in class lejos.nxt.I2CSensor
    Return the sensor type. +
    getSensorValue(int) - +Method in class lejos.nxt.IRSeeker +
    Returns value of sensor 1 - 5. +
    getSignalStrength(byte) - +Static method in class lejos.nxt.comm.Bluetooth +
    Get the Bluetooth signal strength (link quality) + Higher values mean stronger signal. +
    getSignalStrength() - +Method in class lejos.nxt.comm.BTConnection +
    Get the signal strength of this connection.
    getSpeed() - Method in class lejos.navigation.Pilot
    return current speed setting
    getSpeed() - Method in class lejos.nxt.Motor
    Returns the current motor speed in degrees per second +
    getSpeed(int) - +Method in class lejos.nxt.RCXMotorMultiplexer +
     
    getStatus() - Static method in class lejos.nxt.comm.Bluetooth +
    Get the persistent status value from the BC4 chip +
    getStatus() - +Method in class lejos.nxt.RCXLink
     
    getStopAngle() - Method in class lejos.nxt.Motor @@ -1280,12 +1720,21 @@ Method in class javax.microedition.lcdui.getStrokeStyle() - Method in class javax.microedition.lcdui.Graphics
      +
    getTachoCount(int) - +Method in class lejos.nxt.comm.NXTCommand +
    Retrieves tacho count.
    getTachoCount() - Method in class lejos.nxt.Motor
    Returns the tachometer count.
    getTachoCount() - Method in class lejos.nxt.MotorPort
    returns tachometer count +
    getTachoCount() - +Method in class lejos.nxt.remote.RemoteMotorPort +
      +
    getTachoCount() - +Method in interface lejos.nxt.Tachometer +
     
    getTachoCountById(int) - Static method in class lejos.nxt.MotorPort
      @@ -1304,6 +1753,9 @@ Method in class javax.microedition.lcdui.getTimeout() - Method in class javax.microedition.lcdui.Alert
      +
    getTimeOut() - +Method in class lejos.rcxcomm.RCXAbstractPort +
    Getter for property timeOut.
    getTitle() - Method in class javax.microedition.lcdui.Displayable
      @@ -1313,24 +1765,42 @@ Method in class lejos.navigation.getTurnRatio() - Method in class lejos.navigation.Pilot
    return ratatio of Motor revolutions per 360 degree rotation of the robot +
    getType() - +Method in interface lejos.nxt.BasicSensorPort +
      +
    getType() - +Method in class lejos.nxt.remote.RemoteSensorPort +
     
    getType() - Method in class lejos.nxt.SensorPort
    Returns type compatible with Lego firmware. +
    getUnits() - +Method in class lejos.nxt.UltrasonicSensor +
    Return a string indicating the type of units in use by the unit.
    getValue() - Method in class javax.microedition.lcdui.Gauge
      +
    getVersion() - +Static method in class lejos.nxt.comm.Bluetooth +
    Get the major and minor version of the BlueCore code
    getVersion() - Method in class lejos.nxt.I2CSensor
    Return the sensor version number.
    getVisibility() - Static method in class lejos.nxt.comm.Bluetooth -
      +
    Get the visibility (discoverable) status of the device
    getVoltage() - Static method in class lejos.nxt.Battery
    Returns the battery voltage in volts. +
    getVoltage() - +Method in class lejos.nxt.remote.RemoteBattery +
    The NXT uses 6 batteries of 1.5 V each.
    getVoltageMilliVolt() - Static method in class lejos.nxt.Battery
    Returns the battery voltage in millivolts. +
    getVoltageMilliVolt() - +Method in class lejos.nxt.remote.RemoteBattery +
    The NXT uses 6 batteries of 1500 mV each.
    getWidth() - Method in class javax.microedition.lcdui.Displayable
      @@ -1349,18 +1819,28 @@ Method in interface lejos.navigation.getX() - Method in class lejos.navigation.TachoNavigator
    Returns the current x coordinate of the NXT. +
    getXAccel() - +Method in class lejos.nxt.TiltSensor +
    Acceleration along X axis.
    getXTilt() - Method in class lejos.nxt.TiltSensor -
    Returns X tilt value. +
    Tilt of sensor along X-axis (see top of Mindsensors.com sensor for + diagram of axis).
    getY() - Method in interface lejos.navigation.Navigator
    Returns the current y coordinate of the NXT.
    getY() - Method in class lejos.navigation.TachoNavigator
    Returns the current y coordinate of the NXT. +
    getYAccel() - +Method in class lejos.nxt.TiltSensor +
    Acceleration along Y axis.
    getYTilt() - Method in class lejos.nxt.TiltSensor
    Returns Y tilt value. +
    getZAccel() - +Method in class lejos.nxt.TiltSensor +
    Acceleration along Z axis.
    getZTilt() - Method in class lejos.nxt.TiltSensor
    Returns Z tilt value. @@ -1382,6 +1862,9 @@ Variable in class javax.microedition.lcdui.Graphics - Class in javax.microedition.lcdui
    Preliminary Graphics class for LCD Screen
    Graphics() - Constructor for class javax.microedition.lcdui.Graphics
      +
    GyroSensor - Class in lejos.nxt
    Support the HiTechnic Gyro sensor - untested.
    GyroSensor(ADSensorPort) - +Constructor for class lejos.nxt.GyroSensor +
     

    @@ -1393,6 +1876,9 @@ Method in class java.lang.Hashtable - Class in java.util
    Maps keys to objects.
    Hashtable() - Constructor for class java.util.Hashtable
      +
    height - +Variable in class java.awt.Rectangle +
     
    height - Variable in class javax.microedition.lcdui.Displayable
      @@ -1405,32 +1891,47 @@ Method in class javax.microedition.lcdui.hideNotify() - Method in class javax.microedition.lcdui.Screen
      +
    HIGH_SPEED_BUFFER - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     


    I

    +
    i2cBusy() - +Method in interface lejos.nxt.I2CPort +
     
    i2cBusy() - Method in class lejos.nxt.SensorPort
    Low-level method to test if I2C connection is busy.
    i2cBusyById(int) - Static method in class lejos.nxt.SensorPort
    Low-level method to test if I2C connection is busy. +
    i2cDisable() - +Method in interface lejos.nxt.I2CPort +
     
    i2cDisable() - Method in class lejos.nxt.SensorPort
    Low-level method to disable I2C on the port.
    i2cDisableById(int) - Static method in class lejos.nxt.SensorPort
    Low-level method to disable I2C on the port. +
    i2cEnable() - +Method in interface lejos.nxt.I2CPort +
     
    i2cEnable() - Method in class lejos.nxt.SensorPort
    Low-level method to enable I2C on the port.
    i2cEnableById(int) - Static method in class lejos.nxt.SensorPort
    Low-level method to enable I2C on the port. -
    I2CSensor - Class in lejos.nxt
    Abstract class that implements common methods for all I2C sensors.
    I2CSensor(I2CPort) - +
    I2CPort - Interface in lejos.nxt
    Abstraction for a port that supports I2C sensors.
    I2CSensor - Class in lejos.nxt
    Abstract class that implements common methods for all I2C sensors.
    I2CSensor(I2CPort) - Constructor for class lejos.nxt.I2CSensor
      +
    i2cStart(int, int, int, byte[], int, int) - +Method in interface lejos.nxt.I2CPort +
     
    i2cStart(int, int, int, byte[], int, int) - Method in class lejos.nxt.SensorPort
    Low-level method to start an I2C transaction. @@ -1470,6 +1971,9 @@ Static variable in interface javax.microedition.lcdui.in - Variable in class java.io.DataInputStream
      +
    inBoxes - +Static variable in class lejos.nxt.comm.LCP +
     
    indexOf(Object) - Method in class java.util.ArrayList
      @@ -1479,6 +1983,12 @@ Method in class java.util.indexOf(Object, int) - Method in class java.util.Vector
      +
    init(SensorPort) - +Static method in class lejos.rcxcomm.LLC +
    Initialize LLC and set port +
    init() - +Static method in class lejos.rcxcomm.LLC +
    Initialize LLC an
    init() - Method in class lejos.util.AbstractRecyclable
    Initializes the Recyclable. @@ -1494,13 +2004,19 @@ Static variable in class javax.microedition.lcdui.INITIAL_CAPS_WORD - Static variable in class javax.microedition.lcdui.TextField
      +
    inputPort - +Variable in class lejos.nxt.comm.InputValues +
     
    InputStream - Class in java.io
    This abstract class is the superclass of all classes representing an input stream of bytes.
    InputStream() - Constructor for class java.io.InputStream
      +
    InputValues - Class in lejos.nxt.comm
    Sensor input values for a remote NXT accessed via LCP.
    InputValues() - +Constructor for class lejos.nxt.comm.InputValues +
     
    inquire(int, int, byte[]) - Static method in class lejos.nxt.comm.Bluetooth -
      +
    Start a Bluetooth inquiry process
    insert(int, String, Image) - Method in interface javax.microedition.lcdui.Choice
      @@ -1516,6 +2032,9 @@ Method in class javax.microedition.lcdui.insertElementAt(Object, int) - Method in class java.util.Vector
      +
    INSUFFICIENT_MEMORY - +Static variable in class lejos.nxt.comm.LCP +
     
    intBitsToFloat(int) - Static method in class java.lang.Float
    Returns the single-float corresponding to a given bit represention. @@ -1543,9 +2062,24 @@ Constructor for exception java.io.IOException
    Constructs an IOException with the specified detail message. +
    IRSeeker - Class in lejos.nxt
    HiTechnic IRSeeker sensor - untested.
    IRSeeker(I2CPort) - +Constructor for class lejos.nxt.IRSeeker +
      +
    isAckAvailable() - +Method in class lejos.rcxcomm.LLCHandler +
    Check if an Ack is available +
    isAckAvailable() - +Method in class lejos.rcxcomm.PacketHandler +
    Check if an ack is available
    isAlive() - Method in class java.lang.Thread
      +
    isBackward() - +Method in class lejos.nxt.BasicMotor +
    Return true if motor is backward. +
    isCalibrated - +Variable in class lejos.nxt.comm.InputValues +
     
    isDaemon() - Method in class java.lang.Thread
    Set the daemon flag. @@ -1555,6 +2089,12 @@ Method in class java.util.isEmpty() - Method in class java.util.Vector
      +
    isFloating() - +Method in class lejos.nxt.BasicMotor +
    Returns true iff the motor is in float mode. +
    isForward() - +Method in class lejos.nxt.BasicMotor +
    Return true if motor is forward.
    isInteractive() - Method in class javax.microedition.lcdui.Item
      @@ -1573,9 +2113,24 @@ Method in class lejos.navigation.isMoving() - Method in class lejos.navigation.TachoNavigator
    returns true iff the robot is moving under power +
    isMoving() - +Method in class lejos.nxt.BasicMotor +
    Returns true iff the motor is in motion.
    isMoving() - Method in class lejos.nxt.Motor
      +
    isPacketAvailable() - +Method in class lejos.rcxcomm.LLCHandler +
    Check if a packet is available +
    isPacketAvailable() - +Method in class lejos.rcxcomm.LLCReliableHandler +
    Check if a packet is available. +
    isPacketAvailable() - +Method in class lejos.rcxcomm.PacketHandler +
    Check if a packet is available +
    isPacketAvailable() - +Static method in class lejos.rcxcomm.Serial +
    Test if a packet is available
    isPressed() - Method in class lejos.nxt.Button
    Check if the button is pressed. @@ -1590,7 +2145,7 @@ Method in class lejos.navigation.returns true if robot is rotating to a specific direction
    isRotating() - Method in class lejos.nxt.Motor -
    returns true when motor is rotating towarad a specified angle +
    returns true when motor rotation task is not yet complete a specified angle
    isSelected(int) - Method in interface javax.microedition.lcdui.Choice
      @@ -1600,9 +2155,18 @@ Method in class javax.microedition.lcdui.isSelected(int) - Method in class javax.microedition.lcdui.List
      +
    isSendError() - +Static method in class lejos.rcxcomm.LLC +
    Return the error status of the last send +
    isSending() - +Static method in class lejos.rcxcomm.LLC +
    Indicate whether the last send is still active
    isShown() - Method in class javax.microedition.lcdui.Displayable
      +
    isStopped() - +Method in class lejos.nxt.BasicMotor +
    Return true if motor is stopped.
    isTraveling() - Method in class lejos.navigation.CompassPilot
    returns returns if the robot is travelling for a specific distance; @@ -1623,7 +2187,7 @@ Method in class lejos.subsumption.

    J

    -
    java.io - package java.io
    Input/Output support
    java.lang - package java.lang
    Core Java classes
    java.util - package java.util
    Utilities
    javax.microedition.io - package javax.microedition.io
    J2ME I/O.
    javax.microedition.lcdui - package javax.microedition.lcdui
    J2ME LCD User Interface classes.
    join() - +
    java.awt - package java.awt
    Minimal AWT package for Rectangle class
    java.io - package java.io
    Input/Output support
    java.lang - package java.lang
    Core Java classes
    java.util - package java.util
    Utilities
    javax.microedition.io - package javax.microedition.io
    J2ME I/O.
    javax.microedition.lcdui - package javax.microedition.lcdui
    J2ME LCD User Interface classes.
    join() - Method in class java.lang.Thread
    Join not yet implemented
    join(long) - @@ -1637,6 +2201,9 @@ Method in class java.lang.KEEP_ALIVE - Static variable in class lejos.nxt.comm.LCP
      +
    KEEP_ALIVE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    KEY_BACK - Static variable in class javax.microedition.lcdui.Displayable
      @@ -1697,17 +2264,20 @@ Method in class java.util.Vector
    delivers the index of the last occurrence of the object starting from some index -
    LCD - Class in lejos.nxt
     
    LCD() - +
    LCD - Class in lejos.nxt
    Text and graphics output to the LCD display.
    LCD() - Constructor for class lejos.nxt.LCD
     
    LCP - Class in lejos.nxt.comm
    Implements the Lego Communication Protocol, - with some extensions for lejos NXJ.
    LEFT - + with some extensions for lejos NXJ.
    LCPBTResponder - Class in lejos.nxt.comm
    Support for LCP commands over Bluetooth in user programs.
    LCPBTResponder() - +Constructor for class lejos.nxt.comm.LCPBTResponder +
      +
    LEFT - Static variable in class lejos.nxt.Button
    The Left button.
    LEFT_MASK - Static variable in class lejos.nxt.Poll
      -
    lejos.navigation - package lejos.navigation
    Navigation classes.
    lejos.nxt - package lejos.nxt
    Access to NXT sensors, motors, etc.
    lejos.nxt.comm - package lejos.nxt.comm
    NXT communication classes
    lejos.subsumption - package lejos.subsumption
    Support for subsumption architecture.
    lejos.util - package lejos.util
    More utility classes
    length() - +
    LegacySensorPort - Interface in lejos.nxt
    Abstraction for a port that supports legacy RCX sensors.
    lejos.navigation - package lejos.navigation
    Navigation classes.
    lejos.nxt - package lejos.nxt
    Access to NXT sensors, motors, etc.
    lejos.nxt.comm - package lejos.nxt.comm
    NXT communication classes
    lejos.nxt.remote - package lejos.nxt.remote
    Remote NXT access over Bluetooth
    lejos.rcxcomm - package lejos.rcxcomm
    Emulation of RCX communication classes
    lejos.subsumption - package lejos.subsumption
    Support for subsumption architecture.
    lejos.util - package lejos.util
    More utility classes
    length() - Method in class java.io.File
    Returns the length of the file denoted by this file name.
    length() - @@ -1716,6 +2286,12 @@ Method in class java.lang.length() - Method in class java.lang.StringBuffer
      +
    LIGHT_ACTIVE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    LIGHT_INACTIVE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    LightSensor - Class in lejos.nxt
    Abstraction for a NXT light sensor.
    LightSensor(ADSensorPort) - Constructor for class lejos.nxt.LightSensor
    Create a light sensor object attached to the specified port. @@ -1738,31 +2314,56 @@ Variable in class javax.microedition.lcdui.listType - Variable in class javax.microedition.lcdui.List
      +
    LLC - Class in lejos.rcxcomm
    Emulates RCX LLC class using the RCXLink class.
    LLCHandler - Class in lejos.rcxcomm
    Packet handler than implement the LLC packet protocol.
    LLCHandler(SensorPort) - +Constructor for class lejos.rcxcomm.LLCHandler +
      +
    LLCReliableHandler - Class in lejos.rcxcomm
    A Packet handler that guarantees reliable delivery using checksums, + acks, and a single bit sequence number.
    LLCReliableHandler(PacketHandler) - +Constructor for class lejos.rcxcomm.LLCReliableHandler +
     
    log(double) - Static method in class java.lang.Math
    Natural log function. +
    LONG_RANGE_IR - +Static variable in class lejos.nxt.RCXLink +
     
    lookupName(byte[]) - Static method in class lejos.nxt.comm.Bluetooth
    Look up the name of a device using its address +
    lowerHandler - +Variable in class lejos.rcxcomm.PacketHandler +
      +
    LOWSPEED - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    LOWSPEED_9V - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    LS_GET_STATUS - Static variable in class lejos.nxt.comm.LCP
      +
    LS_GET_STATUS - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    LS_READ - Static variable in class lejos.nxt.comm.LCP
      +
    LS_READ - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    LS_WRITE - Static variable in class lejos.nxt.comm.LCP
      +
    LS_WRITE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     

    M

    -
    main(String[]) - -Static method in class lejos.nxt.Datalogger -
    to test the DL object -
    main(String[]) - -Static method in class StartUpText +
    MAILBOX_EMPTY - +Static variable in class lejos.nxt.comm.LCP
     
    mark(int) - Method in class java.io.InputStream @@ -1783,12 +2384,27 @@ Static variable in class java.io.MAX_PRIORITY - Static variable in class java.lang.Thread
    The maximum priority that a thread can have. +
    MAX_USER_PAGES - +Static variable in class lejos.nxt.Flash +
    Maximum number of pages available to user flash memory.
    MAX_VALUE - Static variable in class java.lang.Integer
    The largest value of type int. +
    MESSAGE_READ - +Static variable in class lejos.nxt.comm.LCP +
      +
    MESSAGE_READ - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    MESSAGE_WRITE - Static variable in class lejos.nxt.comm.LCP
      +
    MESSAGE_WRITE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    messageWrite(int, String) - +Static method in class lejos.nxt.comm.LCP +
     
    min(int, int) - Static method in class java.lang.Math
    Returns the lesser of two integer values. @@ -1831,21 +2447,60 @@ Static variable in interface lejos.nxt.MODE_TRANSITIONCNT - Static variable in interface lejos.nxt.SensorConstants
      +
    MODEMASK - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    monitor - Static variable in class lejos.subsumption.ActivityBase
      -
    Motor - Class in lejos.nxt
    Abstraction for a NXT motor.
    Motor(MotorPort) - +
    Motor - Class in lejos.nxt
    Abstraction for a NXT motor.
    Motor(TachoMotorPort) - Constructor for class lejos.nxt.Motor
      +
    MOTOR_A_FORWARD - +Static variable in class lejos.nxt.RCXLink +
      +
    MOTOR_A_REVERSED - +Static variable in class lejos.nxt.RCXLink +
      +
    MOTOR_B_FORWARD - +Static variable in class lejos.nxt.RCXLink +
      +
    MOTOR_B_REVERSED - +Static variable in class lejos.nxt.RCXLink +
      +
    MOTOR_C_FORWARD - +Static variable in class lejos.nxt.RCXLink +
      +
    MOTOR_C_REVERSED - +Static variable in class lejos.nxt.RCXLink +
      +
    MOTOR_RUN_STATE_IDLE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
    Output will be idle +
    MOTOR_RUN_STATE_RAMPDOWN - +Static variable in interface lejos.nxt.comm.NXTProtocol +
    Output will ramp-down +
    MOTOR_RUN_STATE_RAMPUP - +Static variable in interface lejos.nxt.comm.NXTProtocol +
    Output will ramp-up +
    MOTOR_RUN_STATE_RUNNING - +Static variable in interface lejos.nxt.comm.NXTProtocol +
    Output will be running +
    MOTORON - +Static variable in interface lejos.nxt.comm.NXTProtocol +
    Turn on the specified motor
    MotorPort - Class in lejos.nxt
    Abstraction for a NXT output port.
    moveToTop() - Method in class java.io.File -
    move the file to become the last one in flash memory +
    Move the file to become the last one in flash memory.
    MSG_ACCEPT_CONNECTION - Static variable in class lejos.nxt.comm.Bluetooth
     
    MSG_ADD_DEVICE - Static variable in class lejos.nxt.comm.Bluetooth
      +
    MSG_ANY - +Static variable in class lejos.nxt.comm.Bluetooth +
     
    MSG_BEGIN_INQUIRY - Static variable in class lejos.nxt.comm.Bluetooth
      @@ -1870,6 +2525,9 @@ Static variable in class lejos.nxt.comm.MSG_CONNECT_RESULT - Static variable in class lejos.nxt.comm.Bluetooth
      +
    MSG_CONNECTION_STATUS_RESULT - +Static variable in class lejos.nxt.comm.Bluetooth +
     
    MSG_DUMP_LIST - Static variable in class lejos.nxt.comm.Bluetooth
      @@ -1879,6 +2537,9 @@ Static variable in class lejos.nxt.comm.MSG_GET_BRICK_STATUSBYTE_RESULT - Static variable in class lejos.nxt.comm.Bluetooth
      +
    MSG_GET_CONNECTION_STATUS - +Static variable in class lejos.nxt.comm.Bluetooth +
     
    MSG_GET_DISCOVERABLE - Static variable in class lejos.nxt.comm.Bluetooth
      @@ -1900,6 +2561,9 @@ Static variable in class lejos.nxt.comm.MSG_GET_LOCAL_ADDR_RESULT - Static variable in class lejos.nxt.comm.Bluetooth
      +
    MSG_GET_OPERATING_MODE - +Static variable in class lejos.nxt.comm.Bluetooth +
     
    MSG_GET_PORT_OPEN - Static variable in class lejos.nxt.comm.Bluetooth
      @@ -1912,6 +2576,9 @@ Static variable in class lejos.nxt.comm.MSG_GET_VERSION_RESULT - Static variable in class lejos.nxt.comm.Bluetooth
      +
    MSG_GOTO_DFU_MODE - +Static variable in class lejos.nxt.comm.Bluetooth +
     
    MSG_HEARTBEAT - Static variable in class lejos.nxt.comm.Bluetooth
      @@ -1951,6 +2618,9 @@ Static variable in class lejos.nxt.comm.MSG_OPEN_STREAM - Static variable in class lejos.nxt.comm.Bluetooth
      +
    MSG_OPERATING_MODE_RESULT - +Static variable in class lejos.nxt.comm.Bluetooth +
     
    MSG_PIN_CODE - Static variable in class lejos.nxt.comm.Bluetooth
      @@ -1996,6 +2666,9 @@ Static variable in class lejos.nxt.comm.MSG_SET_FRIENDLY_NAME_ACK - Static variable in class lejos.nxt.comm.Bluetooth
      +
    MSG_SET_OPERATING_MODE - +Static variable in class lejos.nxt.comm.Bluetooth +
     
    MSG_START_HEART - Static variable in class lejos.nxt.comm.Bluetooth
      @@ -2017,6 +2690,12 @@ Method in class java.util.nextInt(int) - Method in class java.util.Random
    Returns a random integer in the range 0...n-1. +
    NO_OF_SENSOR_TYPES - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    NO_SENSOR - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    NoClassDefFoundError - Error in java.lang
     
    NoClassDefFoundError(String) - Constructor for error java.lang.NoClassDefFoundError
      @@ -2029,9 +2708,15 @@ Static variable in class lejos.nxt.NORM_PRIORITY - Static variable in class java.lang.Thread
    The priority that is assigned to the primordial thread. +
    normalizedADValue - +Variable in class lejos.nxt.comm.InputValues +
    The normalized value from the Analog to Digital (AD) converter.
    NoSuchMethodError - Error in java.lang
     
    NoSuchMethodError() - Constructor for error java.lang.NoSuchMethodError
      +
    NOT_IMPLEMENTED - +Static variable in class lejos.nxt.comm.LCP +
     
    notify() - Method in class java.lang.Object
    Wake up one thread blocked on a wait(). @@ -2059,11 +2744,24 @@ Static variable in class lejos.nxt.comm.NXJ_FIND_NEXT - Static variable in class lejos.nxt.comm.LCP
      -
    NXTServerSocket - Class in <Unnamed>
     
    NXTServerSocket(int, BTConnection) - -Constructor for class NXTServerSocket +
    NXTCam - Class in lejos.nxt
    Mindsensors NXTCam.
    NXTCam(I2CPort) - +Constructor for class lejos.nxt.NXTCam +
      +
    NXTComm - Class in lejos.nxt.comm
    Initiates communication to a remote NXT.
    NXTComm() - +Constructor for class lejos.nxt.comm.NXTComm +
      +
    NXTCommand - Class in lejos.nxt.comm
    Remote access to a NXT via Bluetooth using LCP.
    NXTCommand() - +Constructor for class lejos.nxt.comm.NXTCommand +
      +
    NXTname - +Variable in class lejos.nxt.comm.DeviceInfo +
      +
    NXTProtocol - Interface in lejos.nxt.comm
    LCP constants.
    NXTServerSocket - Class in lejos.nxt.comm
    Communicates with a ServerProxy on the PC to provide a + ServerSocket interface applications on the NXT.
    NXTServerSocket(int, BTConnection) - +Constructor for class lejos.nxt.comm.NXTServerSocket
    Constructor. -
    NXTServerSocket(int, USBConnection) - -Constructor for class NXTServerSocket +
    NXTServerSocket(int, USBConnection) - +Constructor for class lejos.nxt.comm.NXTServerSocket
    Constructor.
    NXTSocket - Class in lejos.nxt.comm
    NXTSocket.
    NXTSocket(String, int, BTConnection) - Constructor for class lejos.nxt.comm.NXTSocket @@ -2085,33 +2783,378 @@ Constructor for class lejos.nxt.comm.Object - Class in java.lang
    All classes extend this one, implicitly.
    Object() - Constructor for class java.lang.Object
      +
    off() - +Method in class lejos.nxt.UltrasonicSensor +
    Turn off the sensor.
    OK - Static variable in class javax.microedition.lcdui.Command
      +
    Opcode - Interface in lejos.rcxcomm
    Opcode constants.
    OPCODE_ABSOLUTE_VALUE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_ABSOLUTE_VALUE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_ADD_TO_VARIABLE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_ADD_TO_VARIABLE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_ALIVE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_ALIVE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_AND_VARIABLE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_AND_VARIABLE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_BRANCH_ALWAYS_FAR - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_BRANCH_ALWAYS_NEAR - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_CALL_SUBROUTINE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_CLEAR_MESSAGE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_CLEAR_SENSOR_VALUE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_CLEAR_SENSOR_VALUE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_CLEAR_TIMER - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_CLEAR_TIMER_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DATALOG_NEXT - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DATALOG_NEXT_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DECREMENT_LOOP_COUNTER_FAR - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DECREMENT_LOOP_COUNTER_NEAR - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DELETE_ALL_SUBROUTINES - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DELETE_ALL_SUBROUTINES_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DELETE_ALL_TASKS - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DELETE_ALL_TASKS_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DELETE_FIRMWARE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DELETE_FIRMWARE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DELETE_SUBROUTINE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DELETE_SUBROUTINE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DELETE_TASK - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DELETE_TASK_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DIVIDE_VARIABLE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_DIVIDE_VARIABLE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_GET_BATTERY_POWER - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_GET_BATTERY_POWER_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_GET_MEMORY_MAP - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_GET_MEMORY_MAP_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_GET_VALUE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_GET_VALUE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_GET_VERSIONS - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_GET_VERSIONS_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_MASK - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_MULTIPLY_VARIABLE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_MULTIPLY_VARIABLE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_OR_VARIABLE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_OR_VARIABLE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_PLAY_SOUND_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_PLAY_TONE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_PLAY_TONE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_POWER_OFF - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_POWER_OFF_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_REMOTE_COMMAND - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SEND_MESSAGE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_DATALOG_SIZE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_DATALOG_SIZE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_DISPLAY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_DISPLAY_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_LOOP_COUNTER - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_MESSAGE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_MOTOR_DIRECTION - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_MOTOR_DIRECTION_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_MOTOR_ON_OFF - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_MOTOR_ON_OFF_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_MOTOR_POWER - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_MOTOR_POWER_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_POWER_DOWN_DELAY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_POWER_DOWN_DELAY_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_PROGRAM_NUMBER - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_PROGRAM_NUMBER_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_SENSOR_MODE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_SENSOR_MODE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_SENSOR_TYPE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_SENSOR_TYPE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_TIME - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_TIME_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_TRANSMITTER_RANGE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_TRANSMITTER_RANGE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_VARIABLE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SET_VARIABLE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SIGN_VARIABLE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SIGN_VARIABLE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_START_FIRMWARE_DOWNLOAD - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_START_FIRMWARE_DOWNLOAD_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_START_SUBROUTINE_DOWNLOAD - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_START_SUBROUTINE_DOWNLOAD_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_START_TASK - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_START_TASK_DOWNLOAD - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_START_TASK_DOWNLOAD_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_START_TASK_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_STOP_ALL_TASKS - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_STOP_ALL_TASKS_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_STOP_TASK - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_STOP_TASK_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SUBTRACT_FROM_VARIABLE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_SUBTRACT_FROM_VARIABLE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_TEST_AND_BRANCH_FAR - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_TEST_AND_BRANCH_NEAR - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_TRANSFER_DATA - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_TRANSFER_DATA_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_UNLOCK_FIRMWARE - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_UNLOCK_FIRMWARE_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_UPLOAD_DATALOG - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_UPLOAD_DATALOG_REPLY - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    OPCODE_WAIT - +Static variable in interface lejos.rcxcomm.Opcode +
      +
    open(int) - +Static method in class lejos.nxt.comm.Debug +
      +
    open() - +Static method in class lejos.nxt.comm.Debug +
      +
    open(String) - +Method in class lejos.nxt.comm.NXTComm +
      +
    open(String) - +Method in class lejos.nxt.comm.NXTCommand +
      +
    open(byte, byte) - +Method in class lejos.rcxcomm.PacketHandler +
    Set the source and destination for this connection.
    OPEN_APPEND_DATA - Static variable in class lejos.nxt.comm.LCP
      +
    OPEN_APPEND_DATA - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    OPEN_READ - Static variable in class lejos.nxt.comm.LCP
      +
    OPEN_READ - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    OPEN_READ_LINEAR - Static variable in class lejos.nxt.comm.LCP
      +
    OPEN_READ_LINEAR - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    OPEN_WRITE - Static variable in class lejos.nxt.comm.LCP
      +
    OPEN_WRITE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    OPEN_WRITE_DATA - Static variable in class lejos.nxt.comm.LCP
      +
    OPEN_WRITE_DATA - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    OPEN_WRITE_LINEAR - Static variable in class lejos.nxt.comm.LCP
      +
    OPEN_WRITE_LINEAR - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    openDataInputStream() - Method in interface javax.microedition.io.StreamConnection
    Open and return a DataInputStream - not yet implemented.
    openDataInputStream() - Method in class lejos.nxt.comm.BTConnection -
      +
    Return the DataInputStream for this connect
    openDataInputStream() - Method in class lejos.nxt.comm.USBConnection
      @@ -2120,7 +3163,7 @@ Method in interface javax.microedition.io.openDataOutputStream() - Method in class lejos.nxt.comm.BTConnection -
      +
    Return the DataOutputStream for this connection.
    openDataOutputStream() - Method in class lejos.nxt.comm.USBConnection
      @@ -2129,7 +3172,7 @@ Method in interface javax.microedition.io.openInputStream() - Method in class lejos.nxt.comm.BTConnection -
      +
    Return the InputStream for this connection.
    openInputStream() - Method in class lejos.nxt.comm.USBConnection
      @@ -2138,13 +3181,22 @@ Method in interface javax.microedition.io.openOutputStream() - Method in class lejos.nxt.comm.BTConnection -
      +
    Return the OutputStream for this connection
    openOutputStream() - Method in class lejos.nxt.comm.USBConnection
      +
    openPort() - +Static method in class lejos.nxt.comm.Bluetooth +
    Opens the port to allow incoming connections. +
    openStream() - +Method in class lejos.nxt.comm.BTConnection +
    Open the stream for this connection.
    out - Variable in class java.io.DataOutputStream
      +
    out(String) - +Static method in class lejos.nxt.comm.Debug +
     
    OutOfMemoryError - Error in java.lang
     
    OutOfMemoryError() - Constructor for error java.lang.OutOfMemoryError
      @@ -2157,6 +3209,15 @@ Constructor for class java.io.

    P

    +
    PacketHandler - Class in lejos.rcxcomm
    Abstract packet handler.
    PacketHandler() - +Constructor for class lejos.rcxcomm.PacketHandler +
      +
    PacketHandler(PacketHandler) - +Constructor for class lejos.rcxcomm.PacketHandler +
      +
    packetHandler - +Variable in class lejos.rcxcomm.RCXAbstractPort +
     
    paint(Graphics) - Method in class javax.microedition.lcdui.Alert
      @@ -2190,6 +3251,9 @@ Method in class javax.microedition.lcdui.paint(Graphics, int, int, int, int, boolean) - Method in class javax.microedition.lcdui.TextField
      +
    passivate() - +Method in interface lejos.nxt.LegacySensorPort +
     
    passivate() - Method in class lejos.nxt.RCXLightSensor
    Passivates an RCX light sensor. @@ -2208,6 +3272,9 @@ Method in class lejos.subsumption.pause() - Method in class lejos.subsumption.Activity
    Wait until we've either been made runnable or someone else has. +
    PCTFULLSCALEMODE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    peek() - Method in class java.util.Queue
    fetches an object from the start of the Queue @@ -2216,6 +3283,9 @@ Method in class java.util.Stack
    fetches an object from the stack
    does not remove it! +
    PERIODCOUNTERMODE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    PHONENUMBER - Static variable in class javax.microedition.lcdui.TextField
      @@ -2228,36 +3298,57 @@ Constructor for class lejos.navigation.Pilot(float, float, Motor, Motor, boolean) - Constructor for class lejos.navigation.Pilot
    Allocates a Pilot object, and sets the physical parameters of the NXT robot. -
    play(int, int) - -Method in class java.io.File +
    ping() - +Method in class lejos.nxt.RCXLink
      +
    ping() - +Method in class lejos.nxt.UltrasonicSensor +
    Send a single ping.
    PLAY_SOUND_FILE - Static variable in class lejos.nxt.comm.LCP
      +
    PLAY_SOUND_FILE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    PLAY_TONE - Static variable in class lejos.nxt.comm.LCP
      +
    PLAY_TONE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    playSample(int, int, int, int) - Static method in class lejos.nxt.Sound
    Internal method used to play sound sample from a file -
    playSample(File, int, int) - +
    playSample(File, int) - Static method in class lejos.nxt.Sound
      +
    playTone(int, int) - +Method in class lejos.nxt.comm.NXTCommand +
    Plays a tone on NXT speaker.
    playTone(int, int) - Static method in class lejos.nxt.Sound
    Plays a tone, given its frequency and duration.
    POLL - Static variable in class lejos.nxt.comm.LCP
      +
    POLL - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    Poll - Class in lejos.nxt
    Provides blocking access to events from the NXT.
    Poll() - Constructor for class lejos.nxt.Poll
    Constructor.
    poll(int, int) - Method in class lejos.nxt.Poll
    Wait for the sensor/button values to change then return. +
    POLL_BUFFER - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    POLL_LENGTH - Static variable in class lejos.nxt.comm.LCP
      +
    POLL_LENGTH - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    pop() - Method in class java.util.Queue
    fetches an object from the start of the Queue @@ -2275,12 +3366,21 @@ Static variable in class lejos.nxt.pow(double, double) - Static method in class java.lang.Math
    Power function. +
    POWER_OFF_RCX - +Static variable in class lejos.nxt.RCXLink +
      +
    powerOff() - +Method in class lejos.nxt.RCXLink +
     
    prefHeight - Variable in class javax.microedition.lcdui.Item
     
    prefWidth - Variable in class javax.microedition.lcdui.Item
      +
    protocolVersion - +Variable in class lejos.nxt.comm.FirmwareInfo +
     
    push(Object) - Method in class java.util.Queue
    pushes an object onto the Queue @@ -2293,6 +3393,12 @@ Method in class java.util.put(int, Object) - Method in class lejos.util.RecyclableArray
      +
    PWM_BRAKE - +Static variable in interface lejos.nxt.BasicMotorPort +
      +
    PWM_FLOAT - +Static variable in interface lejos.nxt.BasicMotorPort +
     

    @@ -2321,12 +3427,41 @@ Constructor for class java.util.Random() - Constructor for class java.util.Random
      +
    rawADValue - +Variable in class lejos.nxt.comm.InputValues +
    The raw value from the Analog to Digital (AD) converter. +
    RAWMODE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    RCXAbstractPort - Class in lejos.rcxcomm
    RCXAbstractPort provides an interface similar to java.net.Socket + Adapted from original code created by the LEGO3 Team at DTU-IAU + RCXAbstractPort implements input and output stream handling and input + buffering.
    RCXAbstractPort(PacketHandler) - +Constructor for class lejos.rcxcomm.RCXAbstractPort +
    Constructor for the RCXAbstractPort.
    RCXLightSensor - Class in lejos.nxt
    Abstraction for an RCX light sensor.
    RCXLightSensor(LegacySensorPort) - Constructor for class lejos.nxt.RCXLightSensor
    Create an RCX light sensor object attached to the specified port. +
    RCXLink - Class in lejos.nxt
    Supports Mindsensors NRLink RCX IR adapter.
    RCXLink(I2CPort) - +Constructor for class lejos.nxt.RCXLink +
     
    RCXMotor - Class in lejos.nxt
    Abstraction for an RCX motor.
    RCXMotor(BasicMotorPort) - Constructor for class lejos.nxt.RCXMotor
      +
    RCXMotorMultiplexer - Class in lejos.nxt
    Supports the mindsensors RCX Motor Multiplexer
    RCXMotorMultiplexer(I2CPort) - +Constructor for class lejos.nxt.RCXMotorMultiplexer +
      +
    RCXPlexedMotorPort - Class in lejos.nxt
    Supports a motor connected to the Mindsensors RCX Motor Multiplexer
    RCXPlexedMotorPort(RCXMotorMultiplexer, int) - +Constructor for class lejos.nxt.RCXPlexedMotorPort +
      +
    RCXPort - Class in lejos.rcxcomm
    RCXPort provides an interface similar to java.net.Socket + Adapted from original code created by the LEGO3 Team at DTU-IAU + Uses Reliable low-level comms for communication.
    RCXPort(SensorPort) - +Constructor for class lejos.rcxcomm.RCXPort +
      +
    RCXRemoteMotorPort - Class in lejos.nxt
    Supports a motor connected to a remote RCX via a mindsensord NRLink adapter
    RCXRemoteMotorPort(RCXLink, int) - +Constructor for class lejos.nxt.RCXRemoteMotorPort +
     
    read() - Method in class java.io.DataInputStream
    Reads the next byte of data from this input stream. @@ -2350,18 +3485,36 @@ Method in class java.io.InputStream
    Reads up to len bytes of data from the input stream into an array of bytes. +
    read(byte[], int, boolean) - +Method in class lejos.nxt.comm.BTConnection +
    Attempt to read data from the connection. +
    read(byte[], int) - +Method in class lejos.nxt.comm.BTConnection +
     
    read() - Method in class lejos.nxt.comm.BTInputStream
    Returns one byte as an integer between 0 and 255.
    READ - Static variable in class lejos.nxt.comm.LCP
      +
    READ - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    read() - Method in class lejos.nxt.comm.USBInputStream
      +
    read() - +Static method in class lejos.rcxcomm.LLC +
    read a single byte, if available
    readBoolean() - Method in class java.io.DataInputStream
      +
    readBooleanValue() - +Method in interface lejos.nxt.ADSensorPort +
      +
    readBooleanValue() - +Method in class lejos.nxt.remote.RemoteSensorPort +
    Reads the boolean value of the sensor.
    readBooleanValue() - Method in class lejos.nxt.SensorPort
    Reads the boolean value of the sensor. @@ -2371,9 +3524,15 @@ Static method in class lejos.nxt.readByte() - Method in class java.io.DataInputStream
      +
    readBytes(byte[]) - +Method in class lejos.nxt.RCXLink +
     
    readChar() - Method in class java.io.DataInputStream
      +
    readData() - +Method in class lejos.nxt.comm.NXTComm +
     
    readFloat() - Method in class java.io.DataInputStream
      @@ -2388,31 +3547,70 @@ Method in class lejos.nxt.readPacket(byte[], int) - Static method in class lejos.nxt.comm.Bluetooth -
    Read a data packet (with 2-byte length header) from a stream connection. +
    Read a packet from the stream. +
    readPacket(byte[], int) - +Method in class lejos.nxt.comm.BTConnection +
    Read a packet from the stream. +
    readPacket(byte[]) - +Static method in class lejos.rcxcomm.Serial +
    Read an assembled packet.
    readPage(byte[], int) - Static method in class lejos.nxt.Flash
      +
    readRawValue() - +Method in interface lejos.nxt.ADSensorPort +
      +
    readRawValue() - +Method in class lejos.nxt.remote.RemoteSensorPort +
    Reads the raw value of the sensor.
    readRawValue() - Method in class lejos.nxt.SensorPort
    Reads the raw value of the sensor.
    readShort() - Method in class java.io.DataInputStream
      +
    readValue() - +Method in interface lejos.nxt.ADSensorPort +
      +
    readValue() - +Method in class lejos.nxt.GyroSensor +
    Read the gyro value
    readValue() - Method in class lejos.nxt.LightSensor
    Read the current sensor value.
    readValue() - Method in class lejos.nxt.RCXLightSensor
    Read the current sensor value. +
    readValue() - +Method in class lejos.nxt.remote.RemoteSensorPort +
    Returns value compatible with Lego firmware.
    readValue() - Method in class lejos.nxt.SensorPort
    Returns value compatible with Lego firmware.
    readValue() - Method in class lejos.nxt.SoundSensor
    Read the current sensor value. -
    receiveReply(byte[], int) - -Static method in class lejos.nxt.comm.Bluetooth -
    Receive a command or reply from the BC4 chip. +
    receive() - +Static method in class lejos.rcxcomm.LLC +
    wait a little while for a byte to become available +
    receiveAck(byte[]) - +Method in class lejos.rcxcomm.LLCHandler +
    Receive an ack. +
    receiveAck(byte[]) - +Method in class lejos.rcxcomm.PacketHandler +
      +
    receivePacket(byte[]) - +Method in class lejos.rcxcomm.LLCHandler +
    Receive a packet. +
    receivePacket(byte[]) - +Method in class lejos.rcxcomm.LLCReliableHandler +
    Receive a packet. +
    receivePacket(byte[]) - +Method in class lejos.rcxcomm.PacketHandler +
    Receive a packet. +
    Rectangle - Class in java.awt
    Minimal Rectangle implementation.
    Rectangle(int, int, int, int) - +Constructor for class java.awt.Rectangle +
     
    Recyclable - Interface in lejos.util
    Represents a recyclable object.
    RecyclableArray - Class in lejos.util
    A recyclable array.
    recycle(Recyclable) - Method in class lejos.util.Recycler
    Reclaims a Recyclable previously allocated @@ -2420,12 +3618,18 @@ Method in class lejos.util.Recycler - Class in lejos.util
    An abstract object recycler.
    Recycler() - Constructor for class lejos.util.Recycler
    Constructs a recycler. +
    REFLECTION - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    refresh() - Method in class javax.microedition.lcdui.Graphics
     
    refresh() - Static method in class lejos.nxt.LCD
    Update the display. +
    REGULATED - +Static variable in interface lejos.nxt.comm.NXTProtocol +
    Turns on the regulation
    regulateSpeed(boolean) - Method in class lejos.navigation.Pilot
    Sets motor speed regulation on = true (default) or off = false;
    @@ -2435,6 +3639,15 @@ a line tracker or compass navigator so direction control is from sensor inputs Method in class lejos.nxt.Motor
    turns speed regulation on/off;
    Cumulative speed error is within about 1 degree after initial acceleration. +
    REGULATION_MODE_IDLE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
    No regulation will be enabled +
    REGULATION_MODE_MOTOR_SPEED - +Static variable in interface lejos.nxt.comm.NXTProtocol +
    Power control will be enabled on specified output +
    REGULATION_MODE_MOTOR_SYNC - +Static variable in interface lejos.nxt.comm.NXTProtocol +
    Synchronization will be enabled (Needs enabled on two output)
    regulator - Variable in class lejos.nxt.Motor
      @@ -2447,6 +3660,19 @@ Method in interface lejos.util.release() - Method in class lejos.util.RecyclableArray
      +
    RemoteBattery - Class in lejos.nxt.remote
    Battery readings from a remote NXT.
    RemoteBattery(NXTCommand) - +Constructor for class lejos.nxt.remote.RemoteBattery +
      +
    RemoteMotorPort - Class in lejos.nxt.remote
    Supports a motor connected to a remote NXT
    RemoteMotorPort(NXTCommand, int) - +Constructor for class lejos.nxt.remote.RemoteMotorPort +
      +
    RemoteNXT - Class in lejos.nxt.remote
    Provides an API similar to the leJOS API for accessing + motors, sensors etc.
    RemoteNXT(String) - +Constructor for class lejos.nxt.remote.RemoteNXT +
      +
    RemoteSensorPort - Class in lejos.nxt.remote
    Emulates a Sensor Port using LCP
    RemoteSensorPort(NXTCommand, int) - +Constructor for class lejos.nxt.remote.RemoteSensorPort +
     
    remove(int) - Method in class java.util.ArrayList
      @@ -2477,6 +3703,12 @@ Method in class javax.microedition.lcdui.REPLY_COMMAND - Static variable in class lejos.nxt.comm.LCP
      +
    REPLY_COMMAND - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    reset() - +Static method in class java.io.File +
    Reset the files array after an error.
    reset() - Method in class java.io.FileInputStream
    resets pointers so next read() is from the start of the file; @@ -2484,22 +3716,50 @@ Method in class java.io.InputStream
    Repositions this stream to the position at the time the mark method was last called on this input stream. -
    reset() - -Method in class lejos.nxt.Datalogger +
    reset() - +Static method in class lejos.nxt.comm.Bluetooth +
    Force a reset of the Bluetooth module. +
    reset() - +Method in class lejos.nxt.UltrasonicSensor +
    Reset the device + Performs a "soft reset" of the device. +
    reset() - +Method in class lejos.rcxcomm.LLCReliableHandler +
    Reset sequence numbers. +
    reset() - +Method in class lejos.rcxcomm.PacketHandler +
    Reset sequence numbers for this handler +
    reset() - +Method in class lejos.rcxcomm.RCXAbstractPort +
    Resets sequence numbers for this port +
    reset() - +Method in class lejos.util.Datalogger
    Clears the log; next write is at the beginning;
    RESET_MOTOR_POSITION - Static variable in class lejos.nxt.comm.LCP
      +
    RESET_MOTOR_POSITION - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    RESET_SCALED_INPUT_VALUE - Static variable in class lejos.nxt.comm.LCP
      +
    RESET_SCALED_INPUT_VALUE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    resetCartesianZero() - Method in class lejos.nxt.CompassSensor
    Changes the current direction the compass is facing into the zero angle. +
    resetMotorPosition(int, boolean) - +Method in class lejos.nxt.comm.NXTCommand +
    Resets the tachometer
    resetRunnable() - Method in class lejos.subsumption.Activity
    Reset the runnable activity. +
    resetSerial() - +Static method in class lejos.rcxcomm.Serial +
    Reset the link - null
    resetTachoCount() - Method in class lejos.navigation.Pilot
    resets tacho count for both motors @@ -2509,9 +3769,18 @@ Method in class lejos.nxt.resetTachoCount() - Method in class lejos.nxt.MotorPort
    resets the tachometer count to 0; +
    resetTachoCount() - +Method in class lejos.nxt.remote.RemoteMotorPort +
      +
    resetTachoCount() - +Method in interface lejos.nxt.Tachometer +
     
    resetTachoCountById(int) - Static method in class lejos.nxt.MotorPort
      +
    reverseDirection() - +Method in class lejos.nxt.BasicMotor +
    Reverses direction of the motor.
    reverseDirection() - Method in class lejos.nxt.Motor
    Reverses direction of the motor. @@ -2609,9 +3878,33 @@ Static method in class java.lang.run() - Method in class java.lang.Thread
      +
    run() - +Method in class lejos.nxt.comm.LCPBTResponder +
     
    run() - Method in class lejos.subsumption.Activity
    Thread entry point. +
    RUN_PROGRAM_1 - +Static variable in class lejos.nxt.RCXLink +
      +
    RUN_PROGRAM_2 - +Static variable in class lejos.nxt.RCXLink +
      +
    RUN_PROGRAM_3 - +Static variable in class lejos.nxt.RCXLink +
      +
    RUN_PROGRAM_4 - +Static variable in class lejos.nxt.RCXLink +
      +
    RUN_PROGRAM_5 - +Static variable in class lejos.nxt.RCXLink +
      +
    runMacro(int) - +Method in class lejos.nxt.RCXLink +
      +
    runProgram(int) - +Method in class lejos.nxt.RCXLink +
     
    Runtime - Class in java.lang
    Minimalist version of the standard Java Runtime class.
    RuntimeException - Exception in java.lang
     
    RuntimeException() - Constructor for exception java.lang.RuntimeException
      @@ -2620,18 +3913,33 @@ Constructor for exception java.lang.

    S

    +
    S1 - +Variable in class lejos.nxt.remote.RemoteNXT +
     
    S1 - Static variable in class lejos.nxt.SensorPort
    Port labeled 1 on NXT. +
    S2 - +Variable in class lejos.nxt.remote.RemoteNXT +
     
    S2 - Static variable in class lejos.nxt.SensorPort
    Port labeled 2 on NXT. +
    S3 - +Variable in class lejos.nxt.remote.RemoteNXT +
     
    S3 - Static variable in class lejos.nxt.SensorPort
    Port labeled 3 on NXT. +
    S4 - +Variable in class lejos.nxt.remote.RemoteNXT +
     
    S4 - Static variable in class lejos.nxt.SensorPort
    Port labeled 4 on NXT. +
    scaledValue - +Variable in class lejos.nxt.comm.InputValues +
    The scaled value starts working after the first call to the sensor.
    SCREEN - Static variable in class javax.microedition.lcdui.Command
      @@ -2663,15 +3971,55 @@ Static variable in class lejos.nxt.TextMenu
    Allows the user to scroll through the items, using the right and left buttons (forward and back) The Enter key closes the menu
    and returns the index of the selected item. -
    sendCommand(byte[], int) - -Static method in class lejos.nxt.comm.Bluetooth -
    Send a command to the BC4 chip. +
    select(int) - +Method in class lejos.nxt.TextMenu +
    Allows the user to scroll through the items, using the right and left buttons (forward and back) The Enter key closes the menu
    + and returns the index of the selected item. +
    sendBytes(byte[], int) - +Method in class lejos.nxt.RCXLink +
      +
    sendBytes(byte[], int) - +Static method in class lejos.rcxcomm.LLC +
    Send a number of bytes and wait for completion of transmission +
    sendCommand(char) - +Method in class lejos.nxt.NXTCam +
    Send a single byte command represented by a letter +
    sendData(byte[]) - +Method in class lejos.nxt.comm.NXTComm +
     
    sendData(int, byte[], int) - Method in class lejos.nxt.I2CSensor -
    Executes an I2C write transaction - not yet working. +
    Executes an I2C write transaction. +
    sendData(int, byte) - +Method in class lejos.nxt.I2CSensor +
    Executes an I2C write transaction. +
    sendData(int, byte[], int) - +Method in class lejos.nxt.UltrasonicSensor +
      +
    sendF7(int) - +Method in class lejos.nxt.RCXLink +
     
    sendPacket(byte[], int) - Static method in class lejos.nxt.comm.Bluetooth
    Send a data packet. +
    sendPacket(byte[], int) - +Method in class lejos.nxt.comm.BTConnection +
    Send a data packet. +
    sendPacket(byte[], int) - +Method in class lejos.rcxcomm.LLCHandler +
    Send a packet. +
    sendPacket(byte[], int) - +Method in class lejos.rcxcomm.LLCReliableHandler +
    Send a packet. +
    sendPacket(byte[], int) - +Method in class lejos.rcxcomm.PacketHandler +
    Send a packet. +
    sendPacket(byte[], int, int) - +Static method in class lejos.rcxcomm.Serial +
    Send a packet +
    sendRemoteCommand(int) - +Method in class lejos.nxt.RCXLink +
     
    SENSITIVE - Static variable in class javax.microedition.lcdui.TextField
      @@ -2687,9 +4035,15 @@ Static variable in class lejos.nxt.SENSOR4_MASK - Static variable in class lejos.nxt.Poll
      -
    SensorConstants - Interface in lejos.nxt
    Constants used to set Sensor types and modes.
    SensorPort - Class in lejos.nxt
    Abstraction for a NXT input port.
    SensorPortListener - Interface in lejos.nxt
    Interface for monitoring changes to the value for an +
    SensorConstants - Interface in lejos.nxt
    Constants used to set Sensor types and modes.
    sensorMode - +Variable in class lejos.nxt.comm.InputValues +
      +
    SensorPort - Class in lejos.nxt
    Abstraction for a NXT input port.
    SensorPortListener - Interface in lejos.nxt
    Interface for monitoring changes to the value for an Analogue/Digital sensor (such as a Touch, Light or Sound sensor) - on a SensorPort.
    SERIAL_MASK - + on a SensorPort.
    sensorType - +Variable in class lejos.nxt.comm.InputValues +
      +
    Serial - Class in lejos.rcxcomm
    Emulation of the RCX Serial class with mindstorms NRLINK adapter.
    SERIAL_MASK - Static variable in class lejos.nxt.Poll
     
    SERIAL_SHIFT - @@ -2716,18 +4070,51 @@ Method in class javax.microedition.lcdui.SET_BRICK_NAME - Static variable in class lejos.nxt.comm.LCP
      +
    SET_BRICK_NAME - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    SET_INPUT_MODE - Static variable in class lejos.nxt.comm.LCP
      +
    SET_INPUT_MODE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    SET_OUTPUT_STATE - Static variable in class lejos.nxt.comm.LCP
      +
    SET_OUTPUT_STATE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    setAddress(int) - +Method in class lejos.nxt.I2CSensor +
      +
    setAPDAOff() - +Method in class lejos.nxt.RCXLink +
      +
    setAPDAOn() - +Method in class lejos.nxt.RCXLink +
      +
    setArbitrator(Arbitrator2) - +Method in interface lejos.subsumption.Behavior2 +
    call back path so Behavior2 can call arbitrator.wantControl(this) when its takeControl state changes to true; +
    setAutoRefresh(int) - +Static method in class lejos.nxt.LCD +
      +
    setCalibrationData(byte[]) - +Method in class lejos.nxt.UltrasonicSensor +
    Set 3 bytes of calibration data. +
    setColor(int) - +Method in class javax.microedition.lcdui.Graphics +
     
    setCommandListener(CommandListener) - Method in class javax.microedition.lcdui.Displayable
     
    setConstraints(int) - Method in class javax.microedition.lcdui.TextBox
      +
    setContinuousInterval(byte) - +Method in class lejos.nxt.UltrasonicSensor +
    Set the ping inetrval used when in continuous mode.
    setCurrent(Screen) - Method in class javax.microedition.lcdui.Display
      @@ -2743,6 +4130,9 @@ Method in class lejos.nxt.setDefaultCommand(Command) - Method in class javax.microedition.lcdui.Spacer
      +
    setDefaultSpeed() - +Method in class lejos.nxt.RCXLink +
     
    setDelay(int) - Method in class lejos.util.Timer
    Change the delay between timedOut messages. @@ -2752,6 +4142,9 @@ Method in class lejos.nxt.comm.setDeviceClass(byte[]) - Method in class lejos.nxt.comm.BTRemoteDevice
      +
    setDirection(int, int) - +Method in class lejos.nxt.RCXMotorMultiplexer +
     
    setDisplay() - Static method in class lejos.nxt.LCD
      @@ -2761,6 +4154,9 @@ Static method in class lejos.nxt.setElementAt(Object, int) - Method in class java.util.Vector
      +
    setFactorySettings() - +Static method in class lejos.nxt.comm.Bluetooth +
    Reset the settings of the BC4 chip to the factory defaults.
    setFloodlight(boolean) - Method in class lejos.nxt.LightSensor
    Set floodlighting on or off. @@ -2773,9 +4169,18 @@ Method in class lejos.nxt.comm.setHeading(int) - Method in class lejos.navigation.CompassPilot
    sets target direction of robot facing in degrees +
    setHighSpeed() - +Method in class lejos.nxt.RCXLink +
     
    setIndicator(Gauge) - Method in class javax.microedition.lcdui.Alert
      +
    setInputMode(int, int, int) - +Method in class lejos.nxt.comm.NXTCommand +
    Tells the NXT what type of sensor you are using and the mode to operate in. +
    setIOMode(int) - +Method in class lejos.nxt.comm.BTConnection +
    Set operating mode.
    setItemCommandListener(ItemCommandListener) - Method in class javax.microedition.lcdui.Item
      @@ -2788,6 +4193,9 @@ Method in class javax.microedition.lcdui.setLabel(String) - Method in class javax.microedition.lcdui.Spacer
      +
    setListen(boolean) - +Method in class lejos.rcxcomm.PacketHandler +
    Set or unset the listen flag to keep a PC serial tower alive
    setMaxSize(int) - Method in class javax.microedition.lcdui.TextBox
      @@ -2797,28 +4205,61 @@ Method in class javax.microedition.lcdui.setMinimumSize(int, int) - Method in class javax.microedition.lcdui.Spacer
      +
    setMode(int) - +Method in interface lejos.nxt.BasicSensorPort +
      +
    setMode(int) - +Method in class lejos.nxt.remote.RemoteSensorPort +
     
    setMode(int) - Method in class lejos.nxt.SensorPort
    Sets mode compatible with Lego firmware. +
    setMotorPower(int, int) - +Method in class lejos.nxt.RCXLink +
     
    setNextRecyclable(Recyclable) - Method in class lejos.util.AbstractRecyclable
    Stores a Recyclable object.
    setNextRecyclable(Recyclable) - Method in interface lejos.util.Recyclable
    Stores a Recyclable object. +
    setOffset(int) - +Method in class lejos.nxt.GyroSensor +
    Set the offset +
    setOperatingMode(byte) - +Static method in class lejos.nxt.comm.Bluetooth +
    Set the operating mode +
    setOutputState(int, byte, int, int, int, int, int) - +Method in class lejos.nxt.comm.NXTCommand +
      +
    setPin(byte[]) - +Static method in class lejos.nxt.comm.Bluetooth +
    Set the pin to be used for pairing/connecting to the system
    setPixel(int, int, int) - Method in class javax.microedition.lcdui.Graphics
    Using rgbColor as argument even though global, because when this setPixel() method is used later it will need color argument
    setPixel(int, int, int) - Static method in class lejos.nxt.LCD -
      +
    Method to set a pixel to screen. +
    setPort(SensorPort) - +Static method in class lejos.rcxcomm.LLC +
    Set sensor port +
    setPort(SensorPort) - +Static method in class lejos.rcxcomm.Serial +
    Set the sensor port
    setPosition(float, float, float) - Method in interface lejos.navigation.Navigator
    sets robot location (x,y) and direction angle
    setPosition(float, float, float) - Method in class lejos.navigation.TachoNavigator
    sets robot location (x,y) and direction angle +
    setPower(int) - +Method in class lejos.nxt.BasicMotor +
    Sets power. +
    setPower(boolean) - +Static method in class lejos.nxt.comm.Bluetooth +
    Set the power to the module
    setPower(int) - Method in class lejos.nxt.Motor
    sets motor power. @@ -2828,6 +4269,48 @@ Method in class javax.microedition.lcdui.setPriority(int) - Method in class java.lang.Thread
    Set the priority of this thread. +
    setPWMMode(int) - +Method in interface lejos.nxt.BasicMotorPort +
      +
    setPWMMode(int) - +Method in class lejos.nxt.MotorPort +
      +
    setPWMMode(int) - +Method in class lejos.nxt.RCXPlexedMotorPort +
      +
    setPWMMode(int) - +Method in class lejos.nxt.RCXRemoteMotorPort +
      +
    setPWMMode(int) - +Method in class lejos.nxt.remote.RemoteMotorPort +
      +
    setRangeLong() - +Method in class lejos.nxt.RCXLink +
      +
    setRangeLong() - +Static method in class lejos.rcxcomm.LLC +
    Sets long range transmision. +
    setRangeLong() - +Static method in class lejos.rcxcomm.Serial +
    Set long range +
    setRangeShort() - +Method in class lejos.nxt.RCXLink +
      +
    setRangeShort() - +Static method in class lejos.rcxcomm.LLC +
    Sets short range transmision. +
    setRangeShort() - +Static method in class lejos.rcxcomm.Serial +
    Set short range +
    setRawMode() - +Method in class lejos.nxt.RCXLink +
      +
    setRCXRangeLong() - +Method in class lejos.nxt.RCXLink +
      +
    setRCXRangeShort() - +Method in class lejos.nxt.RCXLink +
     
    setScrollWrap(boolean) - Method in class javax.microedition.lcdui.ChoiceGroup
      @@ -2867,9 +4350,12 @@ Method in class lejos.navigation.setSpeed(int) - Method in class lejos.nxt.Motor
    Sets motor speed , in degrees per second; Up to 900 is posssible with 8 volts. -
    setStatus(byte) - -Static method in class lejos.nxt.comm.Bluetooth +
    setSpeed(int, int) - +Method in class lejos.nxt.RCXMotorMultiplexer
      +
    setStatus(int) - +Static method in class lejos.nxt.comm.Bluetooth +
    Set the persistent status byte for the BC4 chip
    setString(String) - Method in class javax.microedition.lcdui.Alert
      @@ -2901,6 +4387,9 @@ Method in class javax.microedition.lcdui.setTimeout(int) - Method in class javax.microedition.lcdui.Alert
      +
    setTimeOut(int) - +Method in class lejos.rcxcomm.RCXAbstractPort +
    Setter for property timeOut.
    setTitle(String) - Method in class javax.microedition.lcdui.Displayable
      @@ -2910,17 +4399,35 @@ Method in class lejos.nxt.setType(int) - Method in class javax.microedition.lcdui.Alert
      +
    setType(int) - +Method in interface lejos.nxt.BasicSensorPort +
      +
    setType(int) - +Method in class lejos.nxt.remote.RemoteSensorPort +
     
    setType(int) - Method in class lejos.nxt.SensorPort
    Sets type compatible with Lego firmware. +
    setTypeAndMode(int, int) - +Method in interface lejos.nxt.BasicSensorPort +
      +
    setTypeAndMode(int, int) - +Method in class lejos.nxt.remote.RemoteSensorPort +
     
    setTypeAndMode(int, int) - Method in class lejos.nxt.SensorPort
    Sets type and mode compatible with Lego firmware.
    setValue(int) - Method in class javax.microedition.lcdui.Gauge
      +
    setVerify(boolean) - +Method in class lejos.nxt.comm.NXTCommand +
     
    setVisibility(byte) - Static method in class lejos.nxt.comm.Bluetooth +
    Set Bluetooth visibility (discoverable) on or off for the local device +
    SHORT_RANGE_IR - +Static variable in class lejos.nxt.RCXLink
     
    show(boolean) - Method in class javax.microedition.lcdui.Display @@ -2937,9 +4444,15 @@ Method in class javax.microedition.lcdui.showNotify() - Method in class javax.microedition.lcdui.Screen
      +
    shutDown() - +Static method in class java.lang.System +
    Shutdown the brick
    shutdown() - Method in class lejos.nxt.Motor
    causes run() to exit +
    signalStrength - +Variable in class lejos.nxt.comm.DeviceInfo +
     
    sin(double) - Static method in class java.lang.Math
    Sine function using a Chebyshev-Pade approximation. @@ -2975,13 +4488,22 @@ Method in class java.io.sleep(long) - Static method in class java.lang.Thread
      +
    SLOPEMASK - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    smoothAcceleration(boolean) - Method in class lejos.nxt.Motor
    enables smoother acceleration.
    SOLID - Static variable in class javax.microedition.lcdui.Graphics
      -
    Sound - Class in lejos.nxt
    NXT sound routines.
    SoundSensor - Class in lejos.nxt
    Abstraction for a NXT sound sensor.
    SoundSensor(ADSensorPort) - +
    Sound - Class in lejos.nxt
    NXT sound routines.
    SOUND_DB - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    SOUND_DBA - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    SoundSensor - Class in lejos.nxt
    Abstraction for a NXT sound sensor.
    SoundSensor(ADSensorPort) - Constructor for class lejos.nxt.SoundSensor
    Create a sound sensor object attached to the specified port.
    SoundSensor(SensorPort, boolean) - @@ -3006,6 +4528,10 @@ Method in class java.lang.start() - Method in class lejos.subsumption.Arbitrator
    This method starts the arbitration of Behaviors. +
    start() - +Method in class lejos.subsumption.Arbitrator2 +
    This method starts the arbitration of Behaviors.
    + It iterates over the array of behaviors, highest priority first.
    start() - Method in class lejos.util.Timer
    Starts the timer, telling it to send timeOut() methods @@ -3013,15 +4539,24 @@ Method in class lejos.util.START_PROGRAM - Static variable in class lejos.nxt.comm.LCP
      +
    START_PROGRAM - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    startCalibration() - Method in class lejos.nxt.CompassSensor
    Starts calibration for Mindsensors.com compass. -
    StartUpText - Class in <Unnamed>
     
    StartUpText() - -Constructor for class StartUpText +
    startMotor(int) - +Method in class lejos.nxt.RCXLink
     
    stateChanged(SensorPort, int, int) - Method in interface lejos.nxt.SensorPortListener
    Called when the raw value of the sensor attached to the port changes. +
    status - +Variable in class lejos.nxt.comm.DeviceInfo +
      +
    status - +Variable in class lejos.nxt.comm.FirmwareInfo +
     
    steer(int) - Method in class lejos.navigation.Pilot
    Moves the NXT robot in a circular path at a specific turn rate. @@ -3050,6 +4585,10 @@ Method in class lejos.navigation.stop() - Method in class lejos.navigation.TachoNavigator
    Halts the NXT robot and calculates new x, y coordinates. +
    stop() - +Method in class lejos.nxt.BasicMotor +
    Causes motor to stop, pretty much + instantaneously.
    stop() - Method in class lejos.nxt.Motor
    Causes motor to stop, pretty much @@ -3057,18 +4596,33 @@ Method in class lejos.nxt.stop() - Method in class lejos.util.Timer
    Stops the timer. +
    STOP_ALL_PROGRAMS - +Static variable in class lejos.nxt.RCXLink +
     
    STOP_PROGRAM - Static variable in class lejos.nxt.comm.LCP
      +
    STOP_PROGRAM - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    STOP_SOUND_PLAYBACK - Static variable in class lejos.nxt.comm.LCP
      +
    STOP_SOUND_PLAYBACK - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    stopAllPrograms() - +Method in class lejos.nxt.RCXLink +
     
    stopCalibration() - Method in class lejos.nxt.CompassSensor
    Ends calibration sequence.
    StopException - Exception in lejos.subsumption
    This exception indicates that an activity should stop.
    StopException() - Constructor for exception lejos.subsumption.StopException
      +
    stopMotor(int) - +Method in class lejos.nxt.RCXLink +
     
    STR_CONFIRM - Static variable in class javax.microedition.lcdui.Alert
      @@ -3093,12 +4647,21 @@ Constructor for class javax.microedition.lcdui.StringUtils - Class in java.lang
    Utilities for non-standard String maniplulation.
    suppress() - Method in interface lejos.subsumption.Behavior
    The code in suppress() should stop the current behavior. +
    SWITCH - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    System - Class in java.lang
    System utilities.
    SYSTEM_COMMAND_NOREPLY - Static variable in class lejos.nxt.comm.LCP
      +
    SYSTEM_COMMAND_NOREPLY - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    SYSTEM_COMMAND_REPLY - Static variable in class lejos.nxt.comm.LCP
      +
    SYSTEM_COMMAND_REPLY - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    systemSound(boolean, int) - Static method in class lejos.nxt.Sound
      @@ -3107,7 +4670,7 @@ Static method in class lejos.nxt.

    T

    -
    TachoNavigator - Class in lejos.navigation
    The TachoNavigator class can keep track of the robot position and the direction angle it faces; It uses a _pilot object to control NXT robot movements.
    +
    Tachometer - Interface in lejos.nxt
    Abstraction for the tachometer built into NXT motors.
    TachoMotorPort - Interface in lejos.nxt
    Abstraction for a motor port that supports NXT motors with tachometers.
    TachoNavigator - Class in lejos.navigation
    The TachoNavigator class can keep track of the robot position and the direction angle it faces; It uses a _pilot object to control NXT robot movements.
    The position and direction angle values are updated automatically when the movement command returns after the movement is complete and and after stop() command is issued.
    TachoNavigator(float, float, Motor, Motor, boolean) - Constructor for class lejos.navigation.TachoNavigator
    Allocates a Navigator object and initializes it with the proper motors. @@ -3127,6 +4690,9 @@ Method in interface lejos.subsumption.tan(double) - Static method in class java.lang.Math
    Tangent function. +
    TEMPERATURE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    test(String, boolean) - Static method in class lejos.util.Assertion
      @@ -3180,13 +4746,10 @@ Variable in class javax.microedition.lcdui.Ticker - Class in javax.microedition.lcdui
     
    Ticker(String) - Constructor for class javax.microedition.lcdui.Ticker
      -
    TiltSensor - Class in lejos.nxt
    Abstraction for a Mindsensors (and possibly HiTechnic) +
    TiltSensor - Class in lejos.nxt
    Abstraction for a Mindsensors acceleration (tilt) sensor.
    TiltSensor(I2CPort) - Constructor for class lejos.nxt.TiltSensor
      -
    timedOut() - -Method in class lejos.nxt.Motor -
    requred by TimerListener interface
    timedOut() - Method in interface lejos.util.TimerListener
    Called every time the Timer fires. @@ -3232,8 +4795,11 @@ Method in class java.lang.TouchSensor - Class in lejos.nxt
    Abstraction for a NXT touch sensor.
    TouchSensor(ADSensorPort) - Constructor for class lejos.nxt.TouchSensor
    Create a touch sensor object attached to the specified port. -
    transmit(boolean) - -Method in class lejos.nxt.Datalogger +
    TRANSITIONCNTMODE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
      +
    transmit(boolean) - +Method in class lejos.util.Datalogger
    transmit the stored values to the PC via USB or bluetooth;
    Displays "waiting" , so then start the DataViewer.
    travel(float, boolean) - @@ -3279,7 +4845,7 @@ Method in class lejos.navigation.twoBeeps() - Static method in class lejos.nxt.Sound -
    Beeps twice - not yet implemented. +
    Beeps twice.
    TYPE_ANGLE - Static variable in interface lejos.nxt.SensorConstants
      @@ -3321,9 +4887,12 @@ Static variable in interface lejos.nxt.

    U

    -
    UltrasonicSensor - Class in lejos.nxt
    Abstraction for a NXT Ultrasonic Sensor.
    UltrasonicSensor(I2CPort) - +
    UltrasonicSensor - Class in lejos.nxt
    Abstraction for a NXT Ultrasonic Sensor.
    UltrasonicSensor(SensorPort) - Constructor for class lejos.nxt.UltrasonicSensor
      +
    UNDEFINED_ERROR - +Static variable in class lejos.nxt.comm.LCP +
     
    UNEDITABLE - Static variable in class javax.microedition.lcdui.TextField
      @@ -3342,13 +4911,13 @@ Method in class lejos.navigation.URL - Static variable in class javax.microedition.lcdui.TextField
      -
    USB - Class in lejos.nxt.comm
     
    USBConnection - Class in lejos.nxt.comm
    Represents a USB Stream Connection.
    USBConnection() - +
    USB - Class in lejos.nxt.comm
    Low-level USB access.
    USBConnection - Class in lejos.nxt.comm
    Represents a USB Stream Connection.
    USBConnection() - Constructor for class lejos.nxt.comm.USBConnection
      -
    USBInputStream - Class in lejos.nxt.comm
     
    USBInputStream() - +
    USBInputStream - Class in lejos.nxt.comm
    Implements an InputStream over USB.
    USBInputStream() - Constructor for class lejos.nxt.comm.USBInputStream
      -
    USBOutputStream - Class in lejos.nxt.comm
     
    USBOutputStream() - +
    USBOutputStream - Class in lejos.nxt.comm
    Implements an OutputStream over USB.
    USBOutputStream() - Constructor for class lejos.nxt.comm.USBOutputStream
     
    usbRead(byte[], int) - @@ -3365,6 +4934,9 @@ Static method in class lejos.nxt.comm.

    V

    +
    valid - +Variable in class lejos.nxt.comm.InputValues +
    NXT indicates if it thinks the data is valid
    valueOf(Object) - Static method in class java.lang.String
    Converts an Object to a String @@ -3388,18 +4960,31 @@ Method in class java.lang.wait(long) - Method in class java.lang.Object
    Wait until notified. -
    waitForConnection() - +
    waitForConnection(byte[]) - Static method in class lejos.nxt.comm.Bluetooth
    Wait for a remote device to connect. +
    waitForConnection() - +Static method in class lejos.nxt.comm.Bluetooth +
     
    waitForPress() - Static method in class lejos.nxt.Button
    wait for some button to be pressed
    waitForPressAndRelease() - Method in class lejos.nxt.Button
    Wait until the button is released. +
    waitTillSent() - +Static method in class lejos.rcxcomm.Serial +
    Wait until the packet is sent - null +
    wantControl(Behavior2) - +Method in class lejos.subsumption.Arbitrator2 +
    If the behavior that sent this message has higher priority than the active behavior, + the active behavior is suppressed.
    WHITE - Static variable in class javax.microedition.lcdui.Graphics
      +
    width - +Variable in class java.awt.Rectangle +
     
    width - Variable in class javax.microedition.lcdui.Displayable
      @@ -3425,12 +5010,21 @@ Method in class java.io.OutputStream
    Writes len bytes from the specified byte array starting at offset off to this output stream. +
    write(byte[], int, boolean) - +Method in class lejos.nxt.comm.BTConnection +
    Attempt to write bytes to the Bluetooth connection. +
    write(byte[], int) - +Method in class lejos.nxt.comm.BTConnection +
     
    write(int) - Method in class lejos.nxt.comm.BTOutputStream
     
    WRITE - Static variable in class lejos.nxt.comm.LCP
      +
    WRITE - +Static variable in interface lejos.nxt.comm.NXTProtocol +
     
    write(int) - Method in class lejos.nxt.comm.USBOutputStream
      @@ -3459,8 +5053,8 @@ Method in class java.io.DataOutputStream
    Writes an int to the underlying output stream as four bytes, high byte first. -
    writeLog(float) - -Method in class lejos.nxt.Datalogger +
    writeLog(float) - +Method in class lejos.util.Datalogger
    write a float value to the log
    writePage(byte[], int) - Static method in class lejos.nxt.Flash @@ -3474,9 +5068,20 @@ Variable in class java.io.

    +X

    +
    +
    x - +Variable in class java.awt.Rectangle +
      +
    +

    Y

    +
    y - +Variable in class java.awt.Rectangle +
     
    yield() - Static method in class java.lang.Thread
      @@ -3494,12 +5099,24 @@ Variable in class lejos.navigation._left - Variable in class lejos.navigation.Pilot
    left motor +
    _left0 - +Variable in class lejos.navigation.TachoNavigator +
      +
    _leftCount - +Variable in class lejos.util.ButtonCounter +
    Output only not used in calculations; use after count() returns;
    _pilot - Variable in class lejos.navigation.TachoNavigator
     
    _right - Variable in class lejos.navigation.Pilot
    right motor +
    _right0 - +Variable in class lejos.navigation.TachoNavigator +
      +
    _rightCount - +Variable in class lejos.util.ButtonCounter +
    Output only not used in calculations ; use this value after count() returns;
    _speed - Variable in class lejos.navigation.Pilot
    motor speed degrees per second. @@ -3511,7 +5128,7 @@ Variable in class lejos.navigation.diameter of tires

    -
    A B C D E F G H I J K L M N O P Q R S T U V W Y _ +A B C D E F G H I J K L M N O P Q R S T U V W X Y _ diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/index.html b/nxtOSEK/lejos_nxj/docs/apidocs/index.html index 40f307d..ea2fd9e 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/index.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/index.html @@ -2,7 +2,7 @@ - + leJOS NXT API documentation diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/awt/Rectangle.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/awt/Rectangle.html new file mode 100644 index 0000000..343b45c --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/awt/Rectangle.html @@ -0,0 +1,323 @@ + + + + + + +Rectangle (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +java.awt +
    +Class Rectangle

    +
    +java.lang.Object
    +  extended by java.awt.Rectangle
    +
    +
    +
    +
    public class Rectangle
    extends Object
    + + +

    +Minimal Rectangle implementation. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + + + + + + + + + + + + + + + + + +
    +Field Summary
    + intheight + +
    +           
    + intwidth + +
    +           
    + intx + +
    +           
    + inty + +
    +           
    +  + + + + + + + + + + +
    +Constructor Summary
    Rectangle(int x, + int y, + int width, + int height) + +
    +           
    +  + + + + + + + +
    +Method Summary
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Field Detail
    + +

    +height

    +
    +public int height
    +
    +
    +
    +
    +
    + +

    +width

    +
    +public int width
    +
    +
    +
    +
    +
    + +

    +x

    +
    +public int x
    +
    +
    +
    +
    +
    + +

    +y

    +
    +public int y
    +
    +
    +
    +
    + + + + + + + + +
    +Constructor Detail
    + +

    +Rectangle

    +
    +public Rectangle(int x,
    +                 int y,
    +                 int width,
    +                 int height)
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/awt/package-frame.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/awt/package-frame.html new file mode 100644 index 0000000..83f0253 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/awt/package-frame.html @@ -0,0 +1,32 @@ + + + + + + +java.awt (leJOS NXT API documentation) + + + + + + + + + + + +java.awt + + + + +
    +Classes  + +
    +Rectangle
    + + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/package-summary.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/awt/package-summary.html similarity index 58% rename from nxtOSEK/lejos_nxj/docs/apidocs/package-summary.html rename to nxtOSEK/lejos_nxj/docs/apidocs/java/awt/package-summary.html index e8bc929..ab0f6d9 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/package-summary.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/awt/package-summary.html @@ -2,19 +2,19 @@ - + - (leJOS NXT API documentation) +java.awt (leJOS NXT API documentation) - + - +

    Class Hierarchy


    @@ -101,13 +101,13 @@ Class Hierarchy - + - - - + + +
    @@ -119,19 +119,19 @@ Class Hierarchy  PREV  - NEXTNEXT
    - FRAMES   + FRAMES    NO FRAMES     diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/DataInputStream.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/DataInputStream.html index f30c308..b16a160 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/DataInputStream.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/DataInputStream.html @@ -2,7 +2,7 @@ - + DataInputStream (leJOS NXT API documentation) @@ -98,6 +98,10 @@ Class DataInputStream

    +Reads java data types transmitted as bytes over an InputStream. +

    + +


    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/DataOutputStream.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/DataOutputStream.html index 3577cbf..522c63b 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/DataOutputStream.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/DataOutputStream.html @@ -2,7 +2,7 @@ - + DataOutputStream (leJOS NXT API documentation) @@ -98,6 +98,10 @@ Class DataOutputStream

    +Transmits java data types as bytes over an OutputStream. +

    + +


    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/File.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/File.html index 69efec8..1cb9e1c 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/File.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/File.html @@ -2,7 +2,7 @@ - + File (leJOS NXT API documentation) @@ -97,6 +97,16 @@ Class File

    +Implements a file system using pages of flash memory. + Currently has limited functionality and only supports + one file open at a time. +

    + +

    +

    +
    Author:
    +
    Brian Bagnall
    +

    @@ -110,14 +120,6 @@ Class File -protected static short -BYTES_PER_PAGE - -
    -          Indicates the # of bytes per page in the Flash class. - - - static byte MAX_FILES @@ -172,8 +174,7 @@ Class File defrag()
    -          assumptions: the files[] array has no nulls, and is in increasing order by page_location - this scheme moves moves each file down to fill in the empty pages. +          Defrag the file system. @@ -214,7 +215,7 @@ Class File freeMemory()
    -            +          Returns to total free memory in the flash file system. @@ -222,7 +223,7 @@ Class File getIndex()
    -          returns location of file in the files[] array +          Returns location of file in the files[] array @@ -238,7 +239,7 @@ Class File getPage()
    -            +          Internal method used to get the page number of the start of the file. @@ -262,16 +263,15 @@ Class File moveToTop()
    -          move the file to become the last one in flash memory +          Move the file to become the last one in flash memory. - void -play(int freq, - int vol) +static void
    +reset()
    -            +          Reset the files array after an error.   @@ -310,21 +310,6 @@ public static final byte MAX_FILES


    -

    -BYTES_PER_PAGE

    -
    -protected static short BYTES_PER_PAGE
    -
    -
    Indicates the # of bytes per page in the Flash class. - Lawrie Griffiths determines this. Might want to access this - directly from Flash in future from a package level constant in case - we want to alter this number. -

    -

    -
    -
    -
    -

    totalFiles

    @@ -480,13 +465,16 @@ public static void format()

    createNewFile

    -public boolean createNewFile()
    +public boolean createNewFile() + throws IOException
    Creates a new file entry in the flash memory.

    -
    Returns:
    True indicates file was created in flash. False means it already existed or the size is 0 or less.
    +
    Returns:
    True indicates file was created in flash. False means it already existed or the size is 0 or less. +
    Throws: +
    IOException

    @@ -494,12 +482,15 @@ public boolean createNewFile()

    moveToTop

    -public void moveToTop()
    +public void moveToTop() + throws IOException
    -
    move the file to become the last one in flash memory +
    Move the file to become the last one in flash memory.

    -
    + +
    Throws: +
    IOException

    @@ -509,6 +500,8 @@ freeMemory
     public static int freeMemory()
    +
    Returns to total free memory in the flash file system. +

    @@ -520,7 +513,7 @@ getIndex
     public int getIndex()
    -
    returns location of file in the files[] array +
    Returns location of file in the files[] array

    @@ -532,13 +525,22 @@ public int getIndex()

    defrag

    -public static void defrag()
    +public static void defrag() + throws IOException
    -
    assumptions: the files[] array has no nulls, and is in increasing order by page_location - this scheme moves moves each file down to fill in the empty pages. +
    Defrag the file system. + + WARNING: should only be called from the startup menu. + If called from a user program, can cause the current program to + be moved resulting in a data abort of other firmware crash. + + Assumptions: the files[] array has no nulls, and is in increasing order by page_location. + This scheme moves moves each file down to fill in the empty pages.

    -
    + +
    Throws: +
    IOException

    @@ -548,18 +550,23 @@ getPage
     public int getPage()
    +
    Internal method used to get the page number of the start of the file. +

    -
    + +
    Returns:
    page number

    -

    -play

    +

    +reset

    -public void play(int freq,
    -                 int vol)
    +public static void reset()
    +
    Reset the files array after an error. + Forces listFiles to read from the file table. +

    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/FileInputStream.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/FileInputStream.html index e776bb6..393befa 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/FileInputStream.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/FileInputStream.html @@ -2,7 +2,7 @@ - + FileInputStream (leJOS NXT API documentation) @@ -98,6 +98,14 @@ Class FileInputStream

    +Reads a stream of bytes from a file. +

    + +

    +

    +
    Author:
    +
    Brian Bagnall
    +

    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/FileOutputStream.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/FileOutputStream.html index 660f7cb..09b76e7 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/FileOutputStream.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/FileOutputStream.html @@ -2,7 +2,7 @@ - + FileOutputStream (leJOS NXT API documentation) @@ -98,6 +98,14 @@ Class FileOutputStream

    +Writes a stream of bytes to a file. +

    + +

    +

    +
    Author:
    +
    Brian Bagnall
    +

    @@ -139,8 +147,7 @@ Class FileOutputStream close()
    -          write the buffer to flash memory and update the file parameters in flash - Resets pointers, so file can be writen again from beginning with the same output stream. +          Write the buffer to flash memory and update the file parameters in flash. @@ -279,7 +286,7 @@ close public void close() throws IOException

    -
    write the buffer to flash memory and update the file parameters in flash +
    Write the buffer to flash memory and update the file parameters in flash. Resets pointers, so file can be writen again from beginning with the same output stream.

    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/IOException.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/IOException.html index 945c4f6..010a279 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/IOException.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/IOException.html @@ -2,7 +2,7 @@ - + IOException (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/InputStream.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/InputStream.html index 00b0504..b04da6d 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/InputStream.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/InputStream.html @@ -2,7 +2,7 @@ - + InputStream (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/OutputStream.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/OutputStream.html index 04e4d78..195d884 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/OutputStream.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/OutputStream.html @@ -2,7 +2,7 @@ - + OutputStream (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/Serializable.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/Serializable.html index e041386..4492334 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/Serializable.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/Serializable.html @@ -2,7 +2,7 @@ - + Serializable (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/package-frame.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/package-frame.html index 1561c33..7d6fef7 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/package-frame.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/package-frame.html @@ -2,7 +2,7 @@ - + java.io (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/package-summary.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/package-summary.html index ca862b8..92cc632 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/package-summary.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/package-summary.html @@ -2,7 +2,7 @@ - + java.io (leJOS NXT API documentation) @@ -51,7 +51,7 @@ function windowTitle() PREV PACKAGE  + PREV PACKAGE   NEXT PACKAGE FRAMES   @@ -106,23 +106,23 @@ Input/Output support DataInputStream -  +Reads java data types transmitted as bytes over an InputStream. DataOutputStream -  +Transmits java data types as bytes over an OutputStream. File -  +Implements a file system using pages of flash memory. FileInputStream -  +Reads a stream of bytes from a file. FileOutputStream -  +Writes a stream of bytes to a file. InputStream @@ -192,7 +192,7 @@ Input/Output support PREV PACKAGE  + PREV PACKAGE   NEXT PACKAGE FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/package-tree.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/package-tree.html index 086b215..f71076b 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/io/package-tree.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/io/package-tree.html @@ -2,7 +2,7 @@ - + java.io Class Hierarchy (leJOS NXT API documentation) @@ -50,7 +50,7 @@ function windowTitle() PREV  + PREV   NEXT FRAMES   @@ -131,7 +131,7 @@ Interface Hierarchy PREV  + PREV   NEXT FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ArithmeticException.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ArithmeticException.html index 7a10dc3..dbccd3c 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ArithmeticException.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ArithmeticException.html @@ -2,7 +2,7 @@ - + ArithmeticException (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ArrayIndexOutOfBoundsException.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ArrayIndexOutOfBoundsException.html index 7b49d15..8e6b893 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ArrayIndexOutOfBoundsException.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ArrayIndexOutOfBoundsException.html @@ -2,7 +2,7 @@ - + ArrayIndexOutOfBoundsException (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Class.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Class.html index 17e8114..43b0832 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Class.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Class.html @@ -2,7 +2,7 @@ - + Class (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ClassCastException.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ClassCastException.html index e3f14da..7f3e6dc 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ClassCastException.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ClassCastException.html @@ -2,7 +2,7 @@ - + ClassCastException (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ClassNotFoundException.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ClassNotFoundException.html index f2fc148..9c6c397 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ClassNotFoundException.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ClassNotFoundException.html @@ -2,7 +2,7 @@ - + ClassNotFoundException (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Cloneable.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Cloneable.html index a21e1c1..bd4be37 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Cloneable.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Cloneable.html @@ -2,7 +2,7 @@ - + Cloneable (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Error.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Error.html index 918da94..193167c 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Error.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Error.html @@ -2,7 +2,7 @@ - + Error (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Exception.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Exception.html index 8bf8913..13dcb6b 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Exception.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Exception.html @@ -2,7 +2,7 @@ - + Exception (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Float.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Float.html index 9306e2e..8db3fe1 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Float.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Float.html @@ -2,7 +2,7 @@ - + Float (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/IllegalArgumentException.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/IllegalArgumentException.html index eaaf590..ce56a2e 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/IllegalArgumentException.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/IllegalArgumentException.html @@ -2,7 +2,7 @@ - + IllegalArgumentException (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/IllegalMonitorStateException.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/IllegalMonitorStateException.html index 46eb48b..d25ead0 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/IllegalMonitorStateException.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/IllegalMonitorStateException.html @@ -2,7 +2,7 @@ - + IllegalMonitorStateException (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/IllegalStateException.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/IllegalStateException.html index 0f9187a..b3a0e76 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/IllegalStateException.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/IllegalStateException.html @@ -2,7 +2,7 @@ - + IllegalStateException (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Integer.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Integer.html index 0e87649..78cb076 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Integer.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Integer.html @@ -2,7 +2,7 @@ - + Integer (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/InterruptedException.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/InterruptedException.html index fb0ce08..66f2af8 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/InterruptedException.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/InterruptedException.html @@ -2,7 +2,7 @@ - + InterruptedException (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Math.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Math.html index e760c3d..a90aef3 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Math.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Math.html @@ -2,7 +2,7 @@ - + Math (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/NoClassDefFoundError.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/NoClassDefFoundError.html index c4f5ff9..7713c11 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/NoClassDefFoundError.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/NoClassDefFoundError.html @@ -2,7 +2,7 @@ - + NoClassDefFoundError (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/NoSuchMethodError.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/NoSuchMethodError.html index ee571d5..e480451 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/NoSuchMethodError.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/NoSuchMethodError.html @@ -2,7 +2,7 @@ - + NoSuchMethodError (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/NullPointerException.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/NullPointerException.html index 00adf4e..24e1513 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/NullPointerException.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/NullPointerException.html @@ -2,7 +2,7 @@ - + NullPointerException (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Object.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Object.html index 0fb4807..83a18e3 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Object.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Object.html @@ -2,7 +2,7 @@ - + Object (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/OutOfMemoryError.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/OutOfMemoryError.html index 9ecc977..35dddb9 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/OutOfMemoryError.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/OutOfMemoryError.html @@ -2,7 +2,7 @@ - + OutOfMemoryError (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Runtime.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Runtime.html index 80eccdf..fd4eeaa 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Runtime.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Runtime.html @@ -2,7 +2,7 @@ - + Runtime (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/RuntimeException.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/RuntimeException.html index bb2b4c4..bd904ad 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/RuntimeException.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/RuntimeException.html @@ -2,7 +2,7 @@ - + RuntimeException (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/StackOverflowError.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/StackOverflowError.html index b75c92c..ce578a0 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/StackOverflowError.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/StackOverflowError.html @@ -2,7 +2,7 @@ - + StackOverflowError (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/String.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/String.html index eafcf28..d809a87 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/String.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/String.html @@ -2,7 +2,7 @@ - + String (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/StringBuffer.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/StringBuffer.html index 4c705bf..c770d7d 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/StringBuffer.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/StringBuffer.html @@ -2,7 +2,7 @@ - + StringBuffer (leJOS NXT API documentation) @@ -184,7 +184,7 @@ An expandable string of characters. Actually not very expandable!  StringBuffer -append(int aInt) +append(int i)
                @@ -369,7 +369,7 @@ public St

    append

    -public StringBuffer append(int aInt)
    +public StringBuffer append(int i)
    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/StringUtils.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/StringUtils.html index 6aeccba..8955aa7 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/StringUtils.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/StringUtils.html @@ -2,7 +2,7 @@ - + StringUtils (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/System.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/System.html index 1dba474..2e48606 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/System.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/System.html @@ -2,7 +2,7 @@ - + System (leJOS NXT API documentation) @@ -115,6 +115,18 @@ System utilities. +static void +arraycopy(Object src, + int srcOffset, + Object dest, + int destOffset, + int length) + +
    +          Copies one array to another. + + + static long currentTimeMillis() @@ -131,12 +143,28 @@ System utilities. +static void +gc() + +
    +          Collect garbage + + + static Runtime getRuntime()
              Get the singleton instance of Runtime. + + +static void +shutDown() + +
    +          Shutdown the brick +   @@ -160,6 +188,23 @@ System utilities.
    +

    +arraycopy

    +
    +public static void arraycopy(Object src,
    +                             int srcOffset,
    +                             Object dest,
    +                             int destOffset,
    +                             int length)
    +
    +
    Copies one array to another. +

    +

    +
    +
    +
    +
    +

    exit

    @@ -199,6 +244,32 @@ public static 
     
    +
    + +

    +gc

    +
    +public static void gc()
    +
    +
    Collect garbage +

    +

    +
    +
    +
    +
    + +

    +shutDown

    +
    +public static void shutDown()
    +
    +
    Shutdown the brick +

    +

    +
    +
    +

    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Thread.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Thread.html index 20e44bd..f522c3e 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Thread.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Thread.html @@ -2,7 +2,7 @@ - + Thread (leJOS NXT API documentation) @@ -92,7 +92,7 @@ Class Thread extended by java.lang.Thread
    -
    Direct Known Subclasses:
    ActivityBase
    +
    Direct Known Subclasses:
    ActivityBase, LCPBTResponder

    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ThreadDeath.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ThreadDeath.html index dec34e0..b471a19 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ThreadDeath.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/ThreadDeath.html @@ -2,7 +2,7 @@ - + ThreadDeath (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Throwable.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Throwable.html index e767dbc..26c9df2 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Throwable.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/Throwable.html @@ -2,7 +2,7 @@ - + Throwable (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/package-frame.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/package-frame.html index dd69da1..0a36dfb 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/package-frame.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/package-frame.html @@ -2,7 +2,7 @@ - + java.lang (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/package-summary.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/package-summary.html index f9fbd2d..69be659 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/package-summary.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/package-summary.html @@ -2,7 +2,7 @@ - + java.lang (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/package-tree.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/package-tree.html index 9694bec..d371f50 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/package-tree.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/lang/package-tree.html @@ -2,7 +2,7 @@ - + java.lang Class Hierarchy (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/ArrayList.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/ArrayList.html index 7b5b15f..6364439 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/ArrayList.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/ArrayList.html @@ -2,7 +2,7 @@ - + ArrayList (leJOS NXT API documentation) @@ -97,6 +97,10 @@ Class ArrayList

    +An expandable array. +

    + +

    Author:
    Andre Nijholt
    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/BitSet.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/BitSet.html index a0c1c15..a80aa2a 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/BitSet.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/BitSet.html @@ -2,7 +2,7 @@ - + BitSet (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/EmptyQueueException.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/EmptyQueueException.html index 1f3cf7c..885a84f 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/EmptyQueueException.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/EmptyQueueException.html @@ -2,7 +2,7 @@ - + EmptyQueueException (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/EmptyStackException.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/EmptyStackException.html index d29413e..1edac33 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/EmptyStackException.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/EmptyStackException.html @@ -2,7 +2,7 @@ - + EmptyStackException (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Hashtable.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Hashtable.html index a6a08cf..ba7257e 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Hashtable.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Hashtable.html @@ -2,7 +2,7 @@ - + Hashtable (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Queue.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Queue.html index 7a84d64..1c8f5a9 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Queue.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Queue.html @@ -2,7 +2,7 @@ - + Queue (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Random.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Random.html index 08dff1f..9b8da7f 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Random.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Random.html @@ -2,7 +2,7 @@ - + Random (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Stack.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Stack.html index 045e016..56d8001 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Stack.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Stack.html @@ -2,7 +2,7 @@ - + Stack (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Vector.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Vector.html index 724094c..dd476d1 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Vector.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/Vector.html @@ -2,7 +2,7 @@ - + Vector (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/package-frame.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/package-frame.html index a03652f..70d5c71 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/package-frame.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/package-frame.html @@ -2,7 +2,7 @@ - + java.util (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/package-summary.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/package-summary.html index 8d5f77b..febaa60 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/package-summary.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/package-summary.html @@ -2,7 +2,7 @@ - + java.util (leJOS NXT API documentation) @@ -92,7 +92,7 @@ Utilities ArrayList -  +An expandable array. BitSet diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/package-tree.html b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/package-tree.html index 87863e4..b56e107 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/java/util/package-tree.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/java/util/package-tree.html @@ -2,7 +2,7 @@ - + java.util Class Hierarchy (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/StreamConnection.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/StreamConnection.html index c68e22f..6cd35fd 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/StreamConnection.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/StreamConnection.html @@ -2,7 +2,7 @@ - + StreamConnection (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/package-frame.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/package-frame.html index 9ac1ae1..aeb8820 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/package-frame.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/package-frame.html @@ -2,7 +2,7 @@ - + javax.microedition.io (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/package-summary.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/package-summary.html index 3fa40e1..37a646d 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/package-summary.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/package-summary.html @@ -2,7 +2,7 @@ - + javax.microedition.io (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/package-tree.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/package-tree.html index 5564c5b..ef97b7e 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/package-tree.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/io/package-tree.html @@ -2,7 +2,7 @@ - + javax.microedition.io Class Hierarchy (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Alert.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Alert.html index b7a50c8..a7413f8 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Alert.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Alert.html @@ -2,7 +2,7 @@ - + Alert (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Choice.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Choice.html index a42b233..011af95 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Choice.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Choice.html @@ -2,7 +2,7 @@ - + Choice (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/ChoiceGroup.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/ChoiceGroup.html index c63db64..72b94c1 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/ChoiceGroup.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/ChoiceGroup.html @@ -2,7 +2,7 @@ - + ChoiceGroup (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Command.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Command.html index de18436..31a93dd 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Command.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Command.html @@ -2,7 +2,7 @@ - + Command (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/CommandListener.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/CommandListener.html index c36bd20..34b189d 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/CommandListener.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/CommandListener.html @@ -2,7 +2,7 @@ - + CommandListener (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Display.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Display.html index bb845c3..79a07c9 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Display.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Display.html @@ -2,7 +2,7 @@ - + Display (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Displayable.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Displayable.html index f8f6d0e..6747609 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Displayable.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Displayable.html @@ -2,7 +2,7 @@ - + Displayable (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Font.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Font.html index 9fc8f21..9751f99 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Font.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Font.html @@ -2,7 +2,7 @@ - + Font (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Form.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Form.html index dd87991..d9efe11 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Form.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Form.html @@ -2,7 +2,7 @@ - + Form (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Gauge.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Gauge.html index d8fa0e9..6688b7d 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Gauge.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Gauge.html @@ -2,7 +2,7 @@ - + Gauge (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Graphics.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Graphics.html index 19cf2dd..03b68bf 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Graphics.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Graphics.html @@ -2,7 +2,7 @@ - + Graphics (leJOS NXT API documentation) @@ -177,6 +177,14 @@ Preliminary Graphics class for LCD Screen  void +autoRefresh(boolean on) + +
    +            + + + + void clear()
    @@ -340,6 +348,14 @@ Preliminary Graphics class for LCD Screen  void +setColor(int rgb) + +
    +            + + + + void setPixel(int rgbColor, int x, int y) @@ -478,6 +494,17 @@ public int getCenteredX(

    +setColor

    +
    +public void setColor(int rgb)
    +
    +
    +
    +
    +
    +
    +

    setPixel

    @@ -681,6 +708,17 @@ public void clear()
    +
    + +

    +autoRefresh

    +
    +public void autoRefresh(boolean on)
    +
    +
    +
    +
    +

    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Image.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Image.html index fbc19ac..51939b9 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Image.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Image.html @@ -2,7 +2,7 @@ - + Image (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Item.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Item.html index 7392bc9..3c7d802 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Item.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Item.html @@ -2,7 +2,7 @@ - + Item (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/ItemCommandListener.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/ItemCommandListener.html index 7abd1d4..89dbfff 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/ItemCommandListener.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/ItemCommandListener.html @@ -2,7 +2,7 @@ - + ItemCommandListener (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/ItemStateListener.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/ItemStateListener.html index 5102b91..80c0866 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/ItemStateListener.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/ItemStateListener.html @@ -2,7 +2,7 @@ - + ItemStateListener (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/List.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/List.html index 1801999..634502b 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/List.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/List.html @@ -2,7 +2,7 @@ - + List (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Screen.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Screen.html index ca17205..c3565dc 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Screen.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Screen.html @@ -2,7 +2,7 @@ - + Screen (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Spacer.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Spacer.html index 0e76731..9ea676f 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Spacer.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Spacer.html @@ -2,7 +2,7 @@ - + Spacer (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/StringItem.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/StringItem.html index e4d2139..e1ccf84 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/StringItem.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/StringItem.html @@ -2,7 +2,7 @@ - + StringItem (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/TextBox.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/TextBox.html index e1e5c6c..0db9736 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/TextBox.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/TextBox.html @@ -2,7 +2,7 @@ - + TextBox (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/TextField.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/TextField.html index 52a401e..c44a77e 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/TextField.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/TextField.html @@ -2,7 +2,7 @@ - + TextField (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Ticker.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Ticker.html index 59216c6..0b2f382 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Ticker.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/Ticker.html @@ -2,7 +2,7 @@ - + Ticker (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/package-frame.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/package-frame.html index 4f85ddc..ea2a32e 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/package-frame.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/package-frame.html @@ -2,7 +2,7 @@ - + javax.microedition.lcdui (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/package-summary.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/package-summary.html index 508dc72..d9eddba 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/package-summary.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/package-summary.html @@ -2,7 +2,7 @@ - + javax.microedition.lcdui (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/package-tree.html b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/package-tree.html index 13fa0b6..b8f663c 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/package-tree.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/javax/microedition/lcdui/package-tree.html @@ -2,7 +2,7 @@ - + javax.microedition.lcdui Class Hierarchy (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/CompassNavigator.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/CompassNavigator.html index 67252a2..84e76cc 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/CompassNavigator.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/CompassNavigator.html @@ -2,7 +2,7 @@ - + CompassNavigator (leJOS NXT API documentation) @@ -101,7 +101,7 @@ Class CompassNavigator

    -The CompassPilot class, like its superclass, can keep track of the robot position and the direction angle it faces; It uses a compassPpilot bject to control NXT robot movements.
    +The CompassNavigatort class, like its superclass, can keep track of the robot position and the direction angle it faces. It uses a CompassPilot object to control NXT robot movements.
    The position and direction angle values are updated automatically when the movement command returns after the movement is complete and and after stop() command is issued. However, some commands optionally return immediately, to permit sensor monitoring in the main thread. It is then the programmers responsibility to call updateXY() when the robot motion is completed. All angles are in degrees, distances in the units used to specify robot dimensions. @@ -128,7 +128,7 @@ The CompassPilot class, like its superclass, can keep track of the robot positio Fields inherited from class lejos.navigation.TachoNavigator -_heading, _pilot +_heading, _left0, _pilot, _right0   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/CompassPilot.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/CompassPilot.html index 78626b6..f2fcfc7 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/CompassPilot.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/CompassPilot.html @@ -2,7 +2,7 @@ - + CompassPilot (leJOS NXT API documentation) @@ -98,6 +98,10 @@ Class CompassPilot

    +A Pilot that keeps track of direction using a CompassSensor. +

    + +


    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/Navigator.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/Navigator.html index cb7fb6b..4675321 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/Navigator.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/Navigator.html @@ -2,7 +2,7 @@ - + Navigator (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/Pilot.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/Pilot.html index ff2bd90..3440906 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/Pilot.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/Pilot.html @@ -2,7 +2,7 @@ - + Pilot (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/TachoNavigator.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/TachoNavigator.html index 679d8a0..8b41598 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/TachoNavigator.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/TachoNavigator.html @@ -2,7 +2,7 @@ - + TachoNavigator (leJOS NXT API documentation) @@ -133,12 +133,28 @@ The TachoNavigator class can keep track of the robot position and the direction +protected  int +_left0 + +
    +            + + + protected  Pilot _pilot
                + + +protected  int +_right0 + +
    +            +   @@ -446,6 +462,26 @@ protected float _heading


    +

    +_left0

    +
    +protected int _left0
    +
    +
    +
    +
    +
    + +

    +_right0

    +
    +protected int _right0
    +
    +
    +
    +
    +
    +

    _pilot

    @@ -918,7 +954,8 @@ updatePosition
     public void updatePosition()
    Updates robot location (x,y) and direction angle. Called by stop, and movement commands that terminate when complete. - Must be called after a command that returns immediatly, but after robot movement stops, and before another movement method is called. + If you use a movement command that returns immediately, you MUST call this method when the movement is complete. + It may also be called while movement is on progress.

    Specified by:
    updatePosition in interface Navigator
    @@ -975,7 +1012,7 @@ public void turn(float radius,
    Moves the NXT robot in a circular path through a specific angle; If waitForCompletion is true, returns when angle is reached.
    The center of the turning circle is on the right side of the robot iff parameter radius is negative. - Robot will stop when total rotation equals angle. If angle is negative, robot will move travel backwards. + Robot will stop when total rotation equals angle. If angle is negative, robot will travel backwards.

    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/package-frame.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/package-frame.html index 4dc31ed..4e54cfc 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/package-frame.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/package-frame.html @@ -2,7 +2,7 @@ - + lejos.navigation (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/package-summary.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/package-summary.html index 54117be..b951c40 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/package-summary.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/package-summary.html @@ -2,7 +2,7 @@ - + lejos.navigation (leJOS NXT API documentation) @@ -107,12 +107,11 @@ Navigation classes. CompassNavigator -The CompassPilot class, like its superclass, can keep track of the robot position and the direction angle it faces; It uses a compassPpilot bject to control NXT robot movements.
    - The position and direction angle values are updated automatically when the movement command returns after the movement is complete and and after stop() command is issued. +The CompassNavigatort class, like its superclass, can keep track of the robot position and the direction angle it faces. CompassPilot -  +A Pilot that keeps track of direction using a CompassSensor. Pilot diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/package-tree.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/package-tree.html index a2343a5..624bf36 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/package-tree.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/navigation/package-tree.html @@ -2,7 +2,7 @@ - + lejos.navigation Class Hierarchy (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ADSensorPort.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ADSensorPort.html new file mode 100644 index 0000000..ea1d52c --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ADSensorPort.html @@ -0,0 +1,292 @@ + + + + + + +ADSensorPort (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt +
    +Interface ADSensorPort

    +
    +
    All Superinterfaces:
    BasicSensorPort, SensorConstants
    +
    +
    +
    All Known Subinterfaces:
    LegacySensorPort
    +
    +
    +
    All Known Implementing Classes:
    RemoteSensorPort, SensorPort
    +
    +
    +
    +
    public interface ADSensorPort
    extends BasicSensorPort
    + + +

    +An abstraction for a port that supports Analog/Digital sensors. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from interface lejos.nxt.SensorConstants
    MODE_ANGLESTEP, MODE_BOOLEAN, MODE_CELSIUS, MODE_FARENHEIT, MODE_PCTFULLSCALE, MODE_PERIODCOUNTER, MODE_RAW, MODE_TRANSITIONCNT, TYPE_ANGLE, TYPE_CUSTOM, TYPE_LIGHT_ACTIVE, TYPE_LIGHT_INACTIVE, TYPE_LOWSPEED, TYPE_LOWSPEED_9V, TYPE_NO_SENSOR, TYPE_REFLECTION, TYPE_SOUND_DB, TYPE_SOUND_DBA, TYPE_SWITCH, TYPE_TEMPERATURE
    +  + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + booleanreadBooleanValue() + +
    +           
    + intreadRawValue() + +
    +           
    + intreadValue() + +
    +           
    + + + + + + + +
    Methods inherited from interface lejos.nxt.BasicSensorPort
    getMode, getType, setMode, setType, setTypeAndMode
    +  +

    + + + + + + + + +
    +Method Detail
    + +

    +readBooleanValue

    +
    +boolean readBooleanValue()
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +readRawValue

    +
    +int readRawValue()
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +readValue

    +
    +int readValue()
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/BasicMotor.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/BasicMotor.html new file mode 100644 index 0000000..24c85bb --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/BasicMotor.html @@ -0,0 +1,526 @@ + + + + + + +BasicMotor (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt +
    +Class BasicMotor

    +
    +java.lang.Object
    +  extended by lejos.nxt.BasicMotor
    +
    +
    +
    Direct Known Subclasses:
    Motor, RCXMotor
    +
    +
    +
    +
    public abstract class BasicMotor
    extends Object
    + + +

    +An abstraction for a motor without a tachometer, + such as an RCX motor. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + + + + + +
    +Constructor Summary
    BasicMotor() + +
    +           
    +  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + voidbackward() + +
    +          Causes motor to rotate backwards.
    + voidflt() + +
    +          Causes motor to float.
    + voidforward() + +
    +          Causes motor to rotate forward.
    + intgetMode() + +
    +          Returns the mode.
    + intgetPower() + +
    +          Returns the current power setting.
    + booleanisBackward() + +
    +          Return true if motor is backward.
    + booleanisFloating() + +
    +          Returns true iff the motor is in float mode.
    + booleanisForward() + +
    +          Return true if motor is forward.
    + booleanisMoving() + +
    +          Returns true iff the motor is in motion.
    + booleanisStopped() + +
    +          Return true if motor is stopped.
    + voidreverseDirection() + +
    +          Reverses direction of the motor.
    + voidsetPower(int power) + +
    +          Sets power.
    + voidstop() + +
    +          Causes motor to stop, pretty much + instantaneously.
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +BasicMotor

    +
    +public BasicMotor()
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +setPower

    +
    +public void setPower(int power)
    +
    +
    Sets power. +

    +

    +
    Parameters:
    power - power setting: 0 - 100
    +
    +
    +
    + +

    +getPower

    +
    +public int getPower()
    +
    +
    Returns the current power setting. +

    +

    + +
    Returns:
    power value 0-100
    +
    +
    +
    + +

    +forward

    +
    +public void forward()
    +
    +
    Causes motor to rotate forward. +

    +

    +
    +
    +
    +
    + +

    +isForward

    +
    +public boolean isForward()
    +
    +
    Return true if motor is forward. +

    +

    +
    +
    +
    +
    + +

    +backward

    +
    +public void backward()
    +
    +
    Causes motor to rotate backwards. +

    +

    +
    +
    +
    +
    + +

    +isBackward

    +
    +public boolean isBackward()
    +
    +
    Return true if motor is backward. +

    +

    +
    +
    +
    +
    + +

    +reverseDirection

    +
    +public void reverseDirection()
    +
    +
    Reverses direction of the motor. It only has + effect if the motor is moving. +

    +

    +
    +
    +
    +
    + +

    +isMoving

    +
    +public boolean isMoving()
    +
    +
    Returns true iff the motor is in motion. +

    +

    + +
    Returns:
    true iff the motor is currently in motion.
    +
    +
    +
    + +

    +flt

    +
    +public void flt()
    +
    +
    Causes motor to float. The motor will lose all power, + but this is not the same as stopping. Use this + method if you don't want your robot to trip in + abrupt turns. +

    +

    +
    +
    +
    +
    + +

    +isFloating

    +
    +public boolean isFloating()
    +
    +
    Returns true iff the motor is in float mode. +

    +

    + +
    Returns:
    true iff the motor is currently in float mode.
    +
    +
    +
    + +

    +stop

    +
    +public void stop()
    +
    +
    Causes motor to stop, pretty much + instantaneously. In other words, the + motor doesn't just stop; it will resist + any further motion. + Cancels any rotate() orders in progress +

    +

    +
    +
    +
    +
    + +

    +isStopped

    +
    +public boolean isStopped()
    +
    +
    Return true if motor is stopped. +

    +

    +
    +
    +
    +
    + +

    +getMode

    +
    +public int getMode()
    +
    +
    Returns the mode. +

    +

    + +
    Returns:
    mode 1=forward, 2=backward, 3=stopped, 4=floating
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/BasicMotorPort.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/BasicMotorPort.html new file mode 100644 index 0000000..6474200 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/BasicMotorPort.html @@ -0,0 +1,291 @@ + + + + + + +BasicMotorPort (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt +
    +Interface BasicMotorPort

    +
    +
    All Known Subinterfaces:
    TachoMotorPort
    +
    +
    +
    All Known Implementing Classes:
    MotorPort, RCXPlexedMotorPort, RCXRemoteMotorPort, RemoteMotorPort
    +
    +
    +
    +
    public interface BasicMotorPort
    + + +

    +An abstraction for a motor port that supports RCX + type motors, but not NXT motors with tachometers. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + + + + + + + + + +
    +Field Summary
    +static intPWM_BRAKE + +
    +           
    +static intPWM_FLOAT + +
    +           
    +  + + + + + + + + + + + + + + + +
    +Method Summary
    + voidcontrolMotor(int power, + int mode) + +
    +           
    + voidsetPWMMode(int mode) + +
    +           
    +  +

    + + + + + + + + +
    +Field Detail
    + +

    +PWM_FLOAT

    +
    +static final int PWM_FLOAT
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +PWM_BRAKE

    +
    +static final int PWM_BRAKE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    + + + + + + + + +
    +Method Detail
    + +

    +controlMotor

    +
    +void controlMotor(int power,
    +                  int mode)
    +
    +
    +
    +
    +
    +
    + +

    +setPWMMode

    +
    +void setPWMMode(int mode)
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/BasicSensorPort.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/BasicSensorPort.html new file mode 100644 index 0000000..7b32abc --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/BasicSensorPort.html @@ -0,0 +1,330 @@ + + + + + + +BasicSensorPort (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt +
    +Interface BasicSensorPort

    +
    +
    All Superinterfaces:
    SensorConstants
    +
    +
    +
    All Known Subinterfaces:
    ADSensorPort, I2CPort, LegacySensorPort
    +
    +
    +
    All Known Implementing Classes:
    RemoteSensorPort, SensorPort
    +
    +
    +
    +
    public interface BasicSensorPort
    extends SensorConstants
    + + +

    +An abstraction for a sensor port that supports + setting and retrieving types and modes of sensors. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from interface lejos.nxt.SensorConstants
    MODE_ANGLESTEP, MODE_BOOLEAN, MODE_CELSIUS, MODE_FARENHEIT, MODE_PCTFULLSCALE, MODE_PERIODCOUNTER, MODE_RAW, MODE_TRANSITIONCNT, TYPE_ANGLE, TYPE_CUSTOM, TYPE_LIGHT_ACTIVE, TYPE_LIGHT_INACTIVE, TYPE_LOWSPEED, TYPE_LOWSPEED_9V, TYPE_NO_SENSOR, TYPE_REFLECTION, TYPE_SOUND_DB, TYPE_SOUND_DBA, TYPE_SWITCH, TYPE_TEMPERATURE
    +  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + intgetMode() + +
    +           
    + intgetType() + +
    +           
    + voidsetMode(int mode) + +
    +           
    + voidsetType(int type) + +
    +           
    + voidsetTypeAndMode(int type, + int mode) + +
    +           
    +  +

    + + + + + + + + +
    +Method Detail
    + +

    +getMode

    +
    +int getMode()
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +getType

    +
    +int getType()
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +setMode

    +
    +void setMode(int mode)
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +setType

    +
    +void setType(int type)
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +setTypeAndMode

    +
    +void setTypeAndMode(int type,
    +                    int mode)
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Battery.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Battery.html index 3ba1b47..d23fc04 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Battery.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Battery.html @@ -2,7 +2,7 @@ - + Battery (leJOS NXT API documentation) @@ -51,7 +51,7 @@ function windowTitle() - PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   @@ -208,7 +208,7 @@ public static float getVoltage() - PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Button.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Button.html index 81165eb..a1263a6 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Button.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Button.html @@ -2,7 +2,7 @@ - + Button (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ButtonListener.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ButtonListener.html index ba2e4b1..484c836 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ButtonListener.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ButtonListener.html @@ -2,7 +2,7 @@ - + ButtonListener (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ColorSensor.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ColorSensor.html index 67a076d..143331c 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ColorSensor.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ColorSensor.html @@ -2,7 +2,7 @@ - + ColorSensor (leJOS NXT API documentation) @@ -137,7 +137,7 @@ HiTechnic color sensor.
    Constructor Summary
    -ColorSensor(lejos.nxt.I2CPort port) +ColorSensor(I2CPort port)
                @@ -191,7 +191,7 @@ HiTechnic color sensor.
    Methods inherited from class lejos.nxt.I2CSensor -getData, getProductID, getSensorType, getVersion, sendData +getData, getProductID, getSensorType, getVersion, sendData, sendData, setAddress   @@ -219,7 +219,7 @@ HiTechnic color sensor.

    ColorSensor

    -public ColorSensor(lejos.nxt.I2CPort port)
    +public ColorSensor(I2CPort port)
    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/CompassSensor.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/CompassSensor.html index 2543506..50b22e1 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/CompassSensor.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/CompassSensor.html @@ -2,7 +2,7 @@ - + CompassSensor (leJOS NXT API documentation) @@ -52,7 +52,7 @@ function windowTitle()  PREV CLASS  - NEXT CLASSNEXT CLASS
    FRAMES    NO FRAMES   @@ -136,7 +136,7 @@ Abstraction for a HiTechnic or Mindsensors compass. Constructor Summary -CompassSensor(lejos.nxt.I2CPort port) +CompassSensor(I2CPort port)
                @@ -200,7 +200,7 @@ Abstraction for a HiTechnic or Mindsensors compass. Methods inherited from class lejos.nxt.I2CSensor -getData, getProductID, getSensorType, getVersion, sendData +getData, getProductID, getSensorType, getVersion, sendData, sendData, setAddress   @@ -228,7 +228,7 @@ Abstraction for a HiTechnic or Mindsensors compass.

    CompassSensor

    -public CompassSensor(lejos.nxt.I2CPort port)
    +public CompassSensor(I2CPort port)
    @@ -349,7 +349,7 @@ public void stopCalibration()  PREV CLASS  - NEXT CLASSNEXT CLASS
    FRAMES    NO FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Flash.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Flash.html index 623a170..de0f47a 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Flash.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Flash.html @@ -2,7 +2,7 @@ - + Flash (leJOS NXT API documentation) @@ -51,8 +51,8 @@ function windowTitle() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES   @@ -72,9 +72,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD
    @@ -97,10 +97,43 @@ Class Flash

    +Read and write access to flash memory in pages. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +

    + + + + + + + + + + + + + + +
    +Field Summary
    +static shortBYTES_PER_PAGE + +
    +          Indicates the # of bytes per page in a page of Flash memory.
    +static intMAX_USER_PAGES + +
    +          Maximum number of pages available to user flash memory.
    @@ -149,6 +182,41 @@ Class Flash  

    + + + + + + + +
    +Field Detail
    + +

    +MAX_USER_PAGES

    +
    +public static final int MAX_USER_PAGES
    +
    +
    Maximum number of pages available to user flash memory. + Change this if the start of user flash memory in the + firmware changes. +

    +

    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +BYTES_PER_PAGE

    +
    +public static short BYTES_PER_PAGE
    +
    +
    Indicates the # of bytes per page in a page of Flash memory. +

    +

    +
    +
    + @@ -223,8 +291,8 @@ public static void exec(int pageNum, PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS
    FRAMES    NO FRAMES   @@ -244,9 +312,9 @@ public static void exec(int pageNum, - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/GyroSensor.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/GyroSensor.html new file mode 100644 index 0000000..2fedf55 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/GyroSensor.html @@ -0,0 +1,307 @@ + + + + + + +GyroSensor (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt +
    +Class GyroSensor

    +
    +java.lang.Object
    +  extended by lejos.nxt.GyroSensor
    +
    +
    +
    All Implemented Interfaces:
    SensorConstants
    +
    +
    +
    +
    public class GyroSensor
    extends Object
    implements SensorConstants
    + + +

    +Support the HiTechnic Gyro sensor - untested. + http://www.hitechnic.com/ +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from interface lejos.nxt.SensorConstants
    MODE_ANGLESTEP, MODE_BOOLEAN, MODE_CELSIUS, MODE_FARENHEIT, MODE_PCTFULLSCALE, MODE_PERIODCOUNTER, MODE_RAW, MODE_TRANSITIONCNT, TYPE_ANGLE, TYPE_CUSTOM, TYPE_LIGHT_ACTIVE, TYPE_LIGHT_INACTIVE, TYPE_LOWSPEED, TYPE_LOWSPEED_9V, TYPE_NO_SENSOR, TYPE_REFLECTION, TYPE_SOUND_DB, TYPE_SOUND_DBA, TYPE_SWITCH, TYPE_TEMPERATURE
    +  + + + + + + + + + + +
    +Constructor Summary
    GyroSensor(ADSensorPort port) + +
    +           
    +  + + + + + + + + + + + + + + + +
    +Method Summary
    + intreadValue() + +
    +          Read the gyro value
    + voidsetOffset(int offset) + +
    +          Set the offset
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +GyroSensor

    +
    +public GyroSensor(ADSensorPort port)
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +readValue

    +
    +public int readValue()
    +
    +
    Read the gyro value +

    +

    +
    +
    +
    + +
    Returns:
    gyro value
    +
    +
    +
    + +

    +setOffset

    +
    +public void setOffset(int offset)
    +
    +
    Set the offset +

    +

    +
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/I2CPort.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/I2CPort.html new file mode 100644 index 0000000..5f477d9 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/I2CPort.html @@ -0,0 +1,321 @@ + + + + + + +I2CPort (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt +
    +Interface I2CPort

    +
    +
    All Superinterfaces:
    BasicSensorPort, SensorConstants
    +
    +
    +
    All Known Implementing Classes:
    SensorPort
    +
    +
    +
    +
    public interface I2CPort
    extends BasicSensorPort
    + + +

    +Abstraction for a port that supports I2C sensors. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from interface lejos.nxt.SensorConstants
    MODE_ANGLESTEP, MODE_BOOLEAN, MODE_CELSIUS, MODE_FARENHEIT, MODE_PCTFULLSCALE, MODE_PERIODCOUNTER, MODE_RAW, MODE_TRANSITIONCNT, TYPE_ANGLE, TYPE_CUSTOM, TYPE_LIGHT_ACTIVE, TYPE_LIGHT_INACTIVE, TYPE_LOWSPEED, TYPE_LOWSPEED_9V, TYPE_NO_SENSOR, TYPE_REFLECTION, TYPE_SOUND_DB, TYPE_SOUND_DBA, TYPE_SWITCH, TYPE_TEMPERATURE
    +  + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + inti2cBusy() + +
    +           
    + voidi2cDisable() + +
    +           
    + voidi2cEnable() + +
    +           
    + inti2cStart(int address, + int internalAddress, + int numInternalBytes, + byte[] buffer, + int numBytes, + int transferType) + +
    +           
    + + + + + + + +
    Methods inherited from interface lejos.nxt.BasicSensorPort
    getMode, getType, setMode, setType, setTypeAndMode
    +  +

    + + + + + + + + +
    +Method Detail
    + +

    +i2cEnable

    +
    +void i2cEnable()
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +i2cDisable

    +
    +void i2cDisable()
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +i2cBusy

    +
    +int i2cBusy()
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +i2cStart

    +
    +int i2cStart(int address,
    +             int internalAddress,
    +             int numInternalBytes,
    +             byte[] buffer,
    +             int numBytes,
    +             int transferType)
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/I2CSensor.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/I2CSensor.html index 515035e..574376f 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/I2CSensor.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/I2CSensor.html @@ -2,7 +2,7 @@ - + I2CSensor (leJOS NXT API documentation) @@ -51,8 +51,8 @@ function windowTitle() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES   @@ -95,7 +95,7 @@ Class I2CSensor
    All Implemented Interfaces:
    SensorConstants
    -
    Direct Known Subclasses:
    ColorSensor, CompassSensor, TiltSensor, UltrasonicSensor
    +
    Direct Known Subclasses:
    ColorSensor, CompassSensor, IRSeeker, NXTCam, RCXLink, RCXMotorMultiplexer, TiltSensor, UltrasonicSensor

    @@ -144,7 +144,7 @@ Abstract class that implements common methods for all I2C sensors. Constructor Summary -I2CSensor(lejos.nxt.I2CPort port) +I2CSensor(I2CPort port)
                @@ -196,12 +196,29 @@ Abstract class that implements common methods for all I2C sensors.  int +sendData(int register, + byte value) + +
    +          Executes an I2C write transaction. + + + + int sendData(int register, byte[] buf, int len)
    -          Executes an I2C write transaction - not yet working. +          Executes an I2C write transaction. + + + + void +setAddress(int addr) + +
    +              @@ -229,7 +246,7 @@ Abstract class that implements common methods for all I2C sensors.

    I2CSensor

    -public I2CSensor(lejos.nxt.I2CPort port)
    +public I2CSensor(I2CPort port)
    @@ -269,7 +286,7 @@ public int sendData(int register, byte[] buf, int len)
    -
    Executes an I2C write transaction - not yet working. +
    Executes an I2C write transaction.

    @@ -281,6 +298,24 @@ public int sendData(int register,

    +

    +sendData

    +
    +public int sendData(int register,
    +                    byte value)
    +
    +
    Executes an I2C write transaction. +

    +

    +
    +
    +
    +
    Parameters:
    register - I2C register, e.g 0x42
    value - single byte to send +
    Returns:
    status zero=success, non-zero=failure
    +
    +
    +
    +

    getVersion

    @@ -330,6 +365,20 @@ public StringReturns:
    8-byte string
    +
    + +

    +setAddress

    +
    +public void setAddress(int addr)
    +
    +
    +
    +
    +
    +
    +
    +

    @@ -360,8 +409,8 @@ public String PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS
    FRAMES    NO FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/IRSeeker.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/IRSeeker.html new file mode 100644 index 0000000..fa66d2e --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/IRSeeker.html @@ -0,0 +1,310 @@ + + + + + + +IRSeeker (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt +
    +Class IRSeeker

    +
    +java.lang.Object
    +  extended by lejos.nxt.I2CSensor
    +      extended by lejos.nxt.IRSeeker
    +
    +
    +
    All Implemented Interfaces:
    SensorConstants
    +
    +
    +
    +
    public class IRSeeker
    extends I2CSensor
    + + +

    +HiTechnic IRSeeker sensor - untested. + www.hitechnic.com +

    + +

    +


    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from interface lejos.nxt.SensorConstants
    MODE_ANGLESTEP, MODE_BOOLEAN, MODE_CELSIUS, MODE_FARENHEIT, MODE_PCTFULLSCALE, MODE_PERIODCOUNTER, MODE_RAW, MODE_TRANSITIONCNT, TYPE_ANGLE, TYPE_CUSTOM, TYPE_LIGHT_ACTIVE, TYPE_LIGHT_INACTIVE, TYPE_LOWSPEED, TYPE_LOWSPEED_9V, TYPE_NO_SENSOR, TYPE_REFLECTION, TYPE_SOUND_DB, TYPE_SOUND_DBA, TYPE_SWITCH, TYPE_TEMPERATURE
    +  + + + + + + + + + + +
    +Constructor Summary
    IRSeeker(I2CPort port) + +
    +           
    +  + + + + + + + + + + + + + + + +
    +Method Summary
    + intgetDirection() + +
    +          Returns the direction of the target (1-9) + or zero if no target.
    + intgetSensorValue(int id) + +
    +          Returns value of sensor 1 - 5.
    + + + + + + + +
    Methods inherited from class lejos.nxt.I2CSensor
    getData, getProductID, getSensorType, getVersion, sendData, sendData, setAddress
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +IRSeeker

    +
    +public IRSeeker(I2CPort port)
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +getDirection

    +
    +public int getDirection()
    +
    +
    Returns the direction of the target (1-9) + or zero if no target. +

    +

    + +
    Returns:
    direction
    +
    +
    +
    + +

    +getSensorValue

    +
    +public int getSensorValue(int id)
    +
    +
    Returns value of sensor 1 - 5. +

    +

    + +
    Returns:
    sensor value (0 to 255).
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/LCD.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/LCD.html index 4567f9f..bb991a8 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/LCD.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/LCD.html @@ -2,7 +2,7 @@ - + LCD (leJOS NXT API documentation) @@ -51,8 +51,8 @@ function windowTitle() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS
    FRAMES    NO FRAMES   @@ -97,9 +97,13 @@ Class LCD

    +Text and graphics output to the LCD display. +

    + +

    Author:
    -
    Andre Nijholt
    +
    Andre Nijholt and BB

    @@ -301,6 +305,14 @@ Class LCD +static int[] +getDisplay() + +
    +            + + + static void refresh() @@ -310,6 +322,14 @@ Class LCD static void +setAutoRefresh(int mode) + +
    +            + + + +static void setDisplay()
    @@ -331,7 +351,7 @@ Class LCD int y)
    -            +          Method to set a pixel to screen.   @@ -482,6 +502,28 @@ public LCD() +

    +getDisplay

    +
    +public static int[] getDisplay()
    +
    +
    +
    +
    +
    +
    + +

    +setAutoRefresh

    +
    +public static void setAutoRefresh(int mode)
    +
    +
    +
    +
    +
    +
    +

    setPixel

    @@ -489,6 +531,8 @@ public static void setPixel(int rgbColor,
                                 int x,
                                 int y)
    +
    Method to set a pixel to screen. +

    @@ -673,8 +717,8 @@ public static void setDisplay(int[] buff) PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS
    FRAMES    NO FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/LegacySensorPort.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/LegacySensorPort.html new file mode 100644 index 0000000..fd70e86 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/LegacySensorPort.html @@ -0,0 +1,276 @@ + + + + + + +LegacySensorPort (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt +
    +Interface LegacySensorPort

    +
    +
    All Superinterfaces:
    ADSensorPort, BasicSensorPort, SensorConstants
    +
    +
    +
    All Known Implementing Classes:
    SensorPort
    +
    +
    +
    +
    public interface LegacySensorPort
    extends ADSensorPort
    + + +

    +Abstraction for a port that supports legacy RCX sensors. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from interface lejos.nxt.SensorConstants
    MODE_ANGLESTEP, MODE_BOOLEAN, MODE_CELSIUS, MODE_FARENHEIT, MODE_PCTFULLSCALE, MODE_PERIODCOUNTER, MODE_RAW, MODE_TRANSITIONCNT, TYPE_ANGLE, TYPE_CUSTOM, TYPE_LIGHT_ACTIVE, TYPE_LIGHT_INACTIVE, TYPE_LOWSPEED, TYPE_LOWSPEED_9V, TYPE_NO_SENSOR, TYPE_REFLECTION, TYPE_SOUND_DB, TYPE_SOUND_DBA, TYPE_SWITCH, TYPE_TEMPERATURE
    +  + + + + + + + + + + + + + + + +
    +Method Summary
    + voidactivate() + +
    +           
    + voidpassivate() + +
    +           
    + + + + + + + +
    Methods inherited from interface lejos.nxt.ADSensorPort
    readBooleanValue, readRawValue, readValue
    + + + + + + + +
    Methods inherited from interface lejos.nxt.BasicSensorPort
    getMode, getType, setMode, setType, setTypeAndMode
    +  +

    + + + + + + + + +
    +Method Detail
    + +

    +activate

    +
    +void activate()
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +passivate

    +
    +void passivate()
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/LightSensor.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/LightSensor.html index ce8ccf6..9505de6 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/LightSensor.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/LightSensor.html @@ -2,7 +2,7 @@ - + LightSensor (leJOS NXT API documentation) @@ -51,7 +51,7 @@ function windowTitle() PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   @@ -136,13 +136,13 @@ Abstraction for a NXT light sensor. Constructor Summary -LightSensor(lejos.nxt.ADSensorPort port) +LightSensor(ADSensorPort port)
              Create a light sensor object attached to the specified port. -LightSensor(lejos.nxt.ADSensorPort port, +LightSensor(ADSensorPort port, boolean floodlight)
    @@ -225,7 +225,7 @@ Abstraction for a NXT light sensor.

    LightSensor

    -public LightSensor(lejos.nxt.ADSensorPort port)
    +public LightSensor(ADSensorPort port)
    Create a light sensor object attached to the specified port. The sensor will be set to floodlit mode, i.e. the LED will be turned on. @@ -238,7 +238,7 @@ public LightSensor(lejos.nxt.ADSensorPort port)

    LightSensor

    -public LightSensor(lejos.nxt.ADSensorPort port,
    +public LightSensor(ADSensorPort port,
                        boolean floodlight)
    Create a light sensor object attached to the specified port, @@ -371,7 +371,7 @@ public void calibrateHigh() PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ListenerCaller.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ListenerCaller.html index 100b549..b7b60ee 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ListenerCaller.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/ListenerCaller.html @@ -2,7 +2,7 @@ - + ListenerCaller (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Motor.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Motor.html index ca6a457..35b0e94 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Motor.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Motor.html @@ -2,7 +2,7 @@ - + Motor (leJOS NXT API documentation) @@ -89,14 +89,12 @@ lejos.nxt Class Motor
     java.lang.Object
    -  extended by lejos.nxt.Motor
    +  extended by lejos.nxt.BasicMotor
    +      extended by lejos.nxt.Motor
     
    -
    -
    All Implemented Interfaces:
    TimerListener
    -

    -
    public class Motor
    extends Object
    implements TimerListener
    +
    public class Motor
    extends BasicMotor

    @@ -133,7 +131,7 @@ Abstraction for a NXT motor. Three instances of Motor

    Author:
    -
    Roger Glassey revised 26 March 2007
    +
    Roger Glassey revised 20 Dec 2007 - uses brake mode for better control

    @@ -189,7 +187,7 @@ Abstraction for a NXT motor. Three instances of Motor Constructor Summary
    -Motor(MotorPort port) +Motor(TachoMotorPort port)
                @@ -242,7 +240,7 @@ Abstraction for a NXT motor. Three instances of Motor getBasePower()
    -            +          for debugging @@ -250,7 +248,7 @@ Abstraction for a NXT motor. Three instances of Motor getError()
    -            +          for degugging @@ -303,30 +301,6 @@ Abstraction for a NXT motor. Three instances of Motor  boolean -isBackward() - -
    -          Return true if motor is backward. - - - - boolean -isFloating() - -
    -          Returns true iff the motor is in float mode. - - - - boolean -isForward() - -
    -          Return true if motor is forward. - - - - boolean isMoving()
    @@ -346,15 +320,7 @@ Abstraction for a NXT motor. Three instances of Motor isRotating()
    -          returns true when motor is rotating towarad a specified angle - - - - boolean -isStopped() - -
    -          Return true if motor is stopped. +          returns true when motor rotation task is not yet complete a specified angle @@ -462,13 +428,14 @@ Abstraction for a NXT motor. Three instances of Motor           Causes motor to stop, pretty much instantaneously. + +  + + + + - - +
    Methods inherited from class lejos.nxt.BasicMotor
    - voidtimedOut() - -
    -          requred by TimerListener interface
    isBackward, isFloating, isForward, isStopped
      @@ -548,10 +515,10 @@ public static final

    +

    Motor

    -public Motor(MotorPort port)
    +public Motor(TachoMotorPort port)
    @@ -573,9 +540,6 @@ public int getStopAngle()
    -
    -
    -

    @@ -587,7 +551,7 @@ public void forward()
    Causes motor to rotate forward.

    -
    +
    Overrides:
    forward in class BasicMotor
    @@ -603,7 +567,7 @@ public void backward()
    Causes motor to rotate backwards.

    -
    +
    Overrides:
    backward in class BasicMotor
    @@ -620,7 +584,7 @@ public void reverseDirection() effect if the motor is moving.

    -
    +
    Overrides:
    reverseDirection in class BasicMotor
    @@ -639,7 +603,7 @@ public void flt() abrupt turns.

    -
    +
    Overrides:
    flt in class BasicMotor
    @@ -659,7 +623,7 @@ public void stop() Cancels any rotate() orders in progress

    -
    +
    Overrides:
    stop in class BasicMotor
    @@ -670,12 +634,13 @@ public void stop()

    isMoving

    -public final boolean isMoving()
    +public boolean isMoving()
    +
    Description copied from class: BasicMotor
    Returns true iff the motor is in motion.

    -
    +
    Overrides:
    isMoving in class BasicMotor
    @@ -692,9 +657,6 @@ public void rotate(int angle)
    causes motor to rotate through angle.

    -
    -
    -
    Parameters:
    angle - through which the motor will rotate
    @@ -711,9 +673,6 @@ public void rotate(int angle, When the angle is reached, the method isRotating() returns false;

    -
    -
    -
    Parameters:
    angle - through which the motor will rotate
    immediateReturn - iff true, method returns immediately, thus allowing monitoring of sensors in the calling thread.
    @@ -728,9 +687,6 @@ public void rotateTo(int limitAngle) Then getTachoCount should be within +- 2 degrees of the limit angle when the method returns

    -
    -
    -
    Parameters:
    limitAngle - to which the motor will rotate
    @@ -748,9 +704,6 @@ public void rotateTo(int limitAngle, When the angle is reached, the method isRotating() returns false;

    -
    -
    -
    Parameters:
    limitAngle - to which the motor will rotate, and then stop.
    immediateReturn - iff true, method returns immediately, thus allowing monitoring of sensors in the calling thread.
    @@ -766,9 +719,6 @@ public void shutdown()
    -
    -
    -

    @@ -781,9 +731,6 @@ public void regulateSpeed(boolean yes) Cumulative speed error is within about 1 degree after initial acceleration.

    -
    -
    -
    Parameters:
    yes - is true for speed regulation on
    @@ -800,23 +747,17 @@ public void smoothAcceleration(boolean yes)
    -
    -
    -

    setSpeed

    -public final void setSpeed(int speed)
    +public void setSpeed(int speed)
    Sets motor speed , in degrees per second; Up to 900 is posssible with 8 volts.

    -
    -
    -
    Parameters:
    speed - value in degrees/sec
    @@ -833,7 +774,7 @@ field which is used by the Regulator thread. If the speed regulation is enabled unpredictable.

    -
    +
    Overrides:
    setPower in class BasicMotor
    Parameters:
    power - power setting: 0 - 100
    @@ -844,16 +785,13 @@ unpredictable.

    getSpeed

    -public final int getSpeed()
    +public int getSpeed()
    Returns the current motor speed in degrees per second

    -
    -
    -

    @@ -862,14 +800,15 @@ getMode
     public int getMode()
    +
    Description copied from class: BasicMotor
    Returns the mode.

    -
    +
    Overrides:
    getMode in class BasicMotor
    -
    Returns:
    mode 1=forward, 2=backward, 3=stopped, 4=floating
    +
    Returns:
    : 1 = forwardm, 2= backward, 3 = stop, 4 = float

    @@ -879,10 +818,11 @@ getPower
     public int getPower()
    +
    Description copied from class: BasicMotor
    Returns the current power setting.

    -
    +
    Overrides:
    getPower in class BasicMotor
    @@ -899,9 +839,6 @@ public int getLimitAngle()
    Return the angle that a Motor is rotating to.

    -
    -
    -
    Returns:
    angle in degrees
    @@ -913,14 +850,11 @@ isRotating
     public boolean isRotating()
    -
    returns true when motor is rotating towarad a specified angle +
    returns true when motor rotation task is not yet complete a specified angle

    -
    -
    -

    @@ -932,25 +866,6 @@ public boolean isRegulating()
    -
    -
    -
    -
    -
    - -

    -timedOut

    -
    -public void timedOut()
    -
    -
    requred by TimerListener interface -

    -

    -
    Specified by:
    timedOut in interface TimerListener
    -
    -
    -
    -

    @@ -964,9 +879,6 @@ public int getActualSpeed()
    -
    -
    -

    @@ -978,9 +890,6 @@ public int getTachoCount()
    Returns the tachometer count.

    -
    -
    -
    Returns:
    tachometer count in degrees
    @@ -997,9 +906,6 @@ public void resetTachoCount()
    -
    -
    -

    @@ -1008,11 +914,11 @@ getError
     public float getError()
    +
    for degugging +

    -
    -
    -
    -
    + +
    Returns:
    regulator error

    @@ -1022,64 +928,11 @@ getBasePower
     public float getBasePower()
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    -isForward

    -
    -public boolean isForward()
    -
    -
    Return true if motor is forward. +
    for debugging

    -
    -
    -
    -
    -

    -isBackward

    -
    -public boolean isBackward()
    -
    -
    Return true if motor is backward. -

    -

    -
    -
    -
    -
    - -

    -isFloating

    -
    -public boolean isFloating()
    -
    -
    Returns true iff the motor is in float mode. -

    -

    - -
    Returns:
    true iff the motor is currently in float mode.
    -
    -
    -
    - -

    -isStopped

    -
    -public boolean isStopped()
    -
    -
    Return true if motor is stopped. -

    -

    -
    +
    Returns:
    base power of regulator
    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/MotorPort.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/MotorPort.html index 3341027..2fa120e 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/MotorPort.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/MotorPort.html @@ -2,7 +2,7 @@ - + MotorPort (leJOS NXT API documentation) @@ -52,7 +52,7 @@ function windowTitle()  PREV CLASS  - NEXT CLASSNEXT CLASS
    FRAMES    NO FRAMES   @@ -91,9 +91,12 @@ Class MotorPort java.lang.Object extended by lejos.nxt.MotorPort +
    +
    All Implemented Interfaces:
    BasicMotorPort, Tachometer, TachoMotorPort
    +

    -
    public class MotorPort
    extends Object
    +
    public class MotorPort
    extends Object
    implements TachoMotorPort

    @@ -137,6 +140,15 @@ Abstraction for a NXT output port.           MotorPort C. +  + + + + + + + +
    Fields inherited from interface lejos.nxt.BasicMotorPort
    PWM_BRAKE, PWM_FLOAT
      @@ -187,6 +199,14 @@ Abstraction for a NXT output port.
                + + + void +setPWMMode(int mode) + +
    +            +   @@ -264,7 +284,7 @@ public void controlMotor(int power,
    Low-level method to control a motor.

    -
    +
    Specified by:
    controlMotor in interface BasicMotorPort
    Parameters:
    power - power from 0-100
    mode - 1=forward, 2=backward, 3=stop, 4=float
    @@ -280,7 +300,7 @@ public int getTachoCount()
    returns tachometer count

    -
    +
    Specified by:
    getTachoCount in interface Tachometer
    @@ -310,8 +330,22 @@ public void resetTachoCount()
    resets the tachometer count to 0;

    +
    Specified by:
    resetTachoCount in interface Tachometer
    +
    +
    + +
    + +

    +setPWMMode

    +
    +public void setPWMMode(int mode)
    +
    +
    +
    Specified by:
    setPWMMode in interface BasicMotorPort
    +
    @@ -361,7 +395,7 @@ public static void resetTachoCountById(int aMotor)
    NEXT CLASSNEXT CLASS - @@ -200,7 +200,7 @@ Abstraction for an RCX light sensor.

    RCXLightSensor

    -public RCXLightSensor(lejos.nxt.LegacySensorPort port)
    +public RCXLightSensor(LegacySensorPort port)
    Create an RCX light sensor object attached to the specified port. The sensor will be activated, i.e. the LED will be turned on. @@ -300,7 +300,7 @@ public int readValue()
    NEXT CLASSPREV CLASS  + NEXT CLASS + SUMMARY: NESTED | FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD
    RCXLightSensor(lejos.nxt.LegacySensorPort port) +RCXLightSensor(LegacySensorPort port)
              Create an RCX light sensor object attached to the specified port.
    @@ -89,11 +89,12 @@ lejos.nxt
    Class RCXMotor

     java.lang.Object
    -  extended by lejos.nxt.RCXMotor
    +  extended by lejos.nxt.BasicMotor
    +      extended by lejos.nxt.RCXMotor
     

    -
    public class RCXMotor
    extends Object
    +
    public class RCXMotor
    extends BasicMotor

    @@ -114,7 +115,7 @@ Abstraction for an RCX motor. Constructor Summary -RCXMotor(lejos.nxt.BasicMotorPort port) +RCXMotor(BasicMotorPort port)
                @@ -129,110 +130,14 @@ Abstraction for an RCX motor. Method Summary - - - void -backward() - -
    -          Causes motor to rotate backwards. - - - - void -flt() - -
    -          Causes motor to float. - - - - void -forward() - -
    -          Causes motor to rotate forward. - - - - int -getMode() - -
    -          Returns the mode. - - - - int -getPower() - -
    -          Returns the current power setting. - - - - boolean -isBackward() - -
    -          Return true if motor is backward. - - - - boolean -isFloating() - -
    -          Returns true iff the motor is in float mode. - - - - boolean -isForward() - -
    -          Return true if motor is forward. - - - - boolean -isMoving() - -
    -          Returns true iff the motor is in motion. - - - - boolean -isStopped() - -
    -          Return true if motor is stopped. - - - - void -reverseDirection() - -
    -          Reverses direction of the motor. - - - - void -setPower(int power) - -
    -          Sets power. + +  + + + - - +
    Methods inherited from class lejos.nxt.BasicMotor
    - voidstop() - -
    -          Causes motor to stop, pretty much - instantaneously.
    backward, flt, forward, getMode, getPower, isBackward, isFloating, isForward, isMoving, isStopped, reverseDirection, setPower, stop
      @@ -260,198 +165,8 @@ Abstraction for an RCX motor.

    RCXMotor

    -public RCXMotor(lejos.nxt.BasicMotorPort port)
    -
    -
    - - - - - - - - -
    -Method Detail
    - -

    -setPower

    -
    -public void setPower(int power)
    -
    -
    Sets power. -

    -

    -
    Parameters:
    power - power setting: 0 - 100
    -
    -
    -
    - -

    -getPower

    -
    -public int getPower()
    -
    -
    Returns the current power setting. -

    -

    - -
    Returns:
    power value 0-100
    -
    -
    -
    - -

    -forward

    -
    -public void forward()
    -
    -
    Causes motor to rotate forward. -

    -

    -
    -
    -
    -
    - -

    -isForward

    -
    -public boolean isForward()
    -
    -
    Return true if motor is forward. -

    -

    -
    -
    -
    -
    - -

    -backward

    -
    -public void backward()
    -
    -
    Causes motor to rotate backwards. -

    -

    -
    -
    -
    -
    - -

    -isBackward

    -
    -public boolean isBackward()
    -
    -
    Return true if motor is backward. -

    -

    -
    -
    -
    -
    - -

    -reverseDirection

    -
    -public void reverseDirection()
    -
    -
    Reverses direction of the motor. It only has - effect if the motor is moving. -

    -

    -
    -
    -
    -
    - -

    -isMoving

    -
    -public boolean isMoving()
    +public RCXMotor(BasicMotorPort port)
    -
    Returns true iff the motor is in motion. -

    -

    - -
    Returns:
    true iff the motor is currently in motion.
    -
    -
    -
    - -

    -flt

    -
    -public void flt()
    -
    -
    Causes motor to float. The motor will lose all power, - but this is not the same as stopping. Use this - method if you don't want your robot to trip in - abrupt turns. -

    -

    -
    -
    -
    -
    - -

    -isFloating

    -
    -public boolean isFloating()
    -
    -
    Returns true iff the motor is in float mode. -

    -

    - -
    Returns:
    true iff the motor is currently in float mode.
    -
    -
    -
    - -

    -stop

    -
    -public void stop()
    -
    -
    Causes motor to stop, pretty much - instantaneously. In other words, the - motor doesn't just stop; it will resist - any further motion. - Cancels any rotate() orders in progress -

    -

    -
    -
    -
    -
    - -

    -isStopped

    -
    -public boolean isStopped()
    -
    -
    Return true if motor is stopped. -

    -

    -
    -
    -
    -
    - -

    -getMode

    -
    -public int getMode()
    -
    -
    Returns the mode. -

    -

    - -
    Returns:
    mode 1=forward, 2=backward, 3=stopped, 4=floating
    -

    @@ -483,8 +198,8 @@ public int getMode() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS
    FRAMES    NO FRAMES   @@ -504,9 +219,9 @@ public int getMode() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/RCXMotorMultiplexer.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/RCXMotorMultiplexer.html new file mode 100644 index 0000000..e60f859 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/RCXMotorMultiplexer.html @@ -0,0 +1,428 @@ + + + + + + +RCXMotorMultiplexer (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt +
    +Class RCXMotorMultiplexer

    +
    +java.lang.Object
    +  extended by lejos.nxt.I2CSensor
    +      extended by lejos.nxt.RCXMotorMultiplexer
    +
    +
    +
    All Implemented Interfaces:
    SensorConstants
    +
    +
    +
    +
    public class RCXMotorMultiplexer
    extends I2CSensor
    + + +

    +Supports the mindsensors RCX Motor Multiplexer +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + + + + + + + + + + + + + + + + + +
    +Field Summary
    + RCXMotorA + +
    +           
    + RCXMotorB + +
    +           
    + RCXMotorC + +
    +           
    + RCXMotorD + +
    +           
    + + + + + + + +
    Fields inherited from interface lejos.nxt.SensorConstants
    MODE_ANGLESTEP, MODE_BOOLEAN, MODE_CELSIUS, MODE_FARENHEIT, MODE_PCTFULLSCALE, MODE_PERIODCOUNTER, MODE_RAW, MODE_TRANSITIONCNT, TYPE_ANGLE, TYPE_CUSTOM, TYPE_LIGHT_ACTIVE, TYPE_LIGHT_INACTIVE, TYPE_LOWSPEED, TYPE_LOWSPEED_9V, TYPE_NO_SENSOR, TYPE_REFLECTION, TYPE_SOUND_DB, TYPE_SOUND_DBA, TYPE_SWITCH, TYPE_TEMPERATURE
    +  + + + + + + + + + + +
    +Constructor Summary
    RCXMotorMultiplexer(I2CPort port) + +
    +           
    +  + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + intgetDirection(int id) + +
    +           
    + intgetSpeed(int id) + +
    +           
    + voidsetDirection(int direction, + int id) + +
    +           
    + voidsetSpeed(int speed, + int id) + +
    +           
    + + + + + + + +
    Methods inherited from class lejos.nxt.I2CSensor
    getData, getProductID, getSensorType, getVersion, sendData, sendData, setAddress
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Field Detail
    + +

    +A

    +
    +public RCXMotor A
    +
    +
    +
    +
    +
    + +

    +B

    +
    +public RCXMotor B
    +
    +
    +
    +
    +
    + +

    +C

    +
    +public RCXMotor C
    +
    +
    +
    +
    +
    + +

    +D

    +
    +public RCXMotor D
    +
    +
    +
    +
    + + + + + + + + +
    +Constructor Detail
    + +

    +RCXMotorMultiplexer

    +
    +public RCXMotorMultiplexer(I2CPort port)
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +setSpeed

    +
    +public void setSpeed(int speed,
    +                     int id)
    +
    +
    +
    +
    +
    +
    + +

    +getSpeed

    +
    +public int getSpeed(int id)
    +
    +
    +
    +
    +
    +
    + +

    +setDirection

    +
    +public void setDirection(int direction,
    +                         int id)
    +
    +
    +
    +
    +
    +
    + +

    +getDirection

    +
    +public int getDirection(int id)
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/RCXPlexedMotorPort.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/RCXPlexedMotorPort.html new file mode 100644 index 0000000..1ab40d9 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/RCXPlexedMotorPort.html @@ -0,0 +1,305 @@ + + + + + + +RCXPlexedMotorPort (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt +
    +Class RCXPlexedMotorPort

    +
    +java.lang.Object
    +  extended by lejos.nxt.RCXPlexedMotorPort
    +
    +
    +
    All Implemented Interfaces:
    BasicMotorPort
    +
    +
    +
    +
    public class RCXPlexedMotorPort
    extends Object
    implements BasicMotorPort
    + + +

    +Supports a motor connected to the Mindsensors RCX Motor Multiplexer +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from interface lejos.nxt.BasicMotorPort
    PWM_BRAKE, PWM_FLOAT
    +  + + + + + + + + + + +
    +Constructor Summary
    RCXPlexedMotorPort(RCXMotorMultiplexer plex, + int id) + +
    +           
    +  + + + + + + + + + + + + + + + +
    +Method Summary
    + voidcontrolMotor(int power, + int mode) + +
    +           
    + voidsetPWMMode(int mode) + +
    +           
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +RCXPlexedMotorPort

    +
    +public RCXPlexedMotorPort(RCXMotorMultiplexer plex,
    +                          int id)
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +controlMotor

    +
    +public void controlMotor(int power,
    +                         int mode)
    +
    +
    +
    Specified by:
    controlMotor in interface BasicMotorPort
    +
    +
    +
    +
    +
    +
    + +

    +setPWMMode

    +
    +public void setPWMMode(int mode)
    +
    +
    +
    Specified by:
    setPWMMode in interface BasicMotorPort
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/RCXRemoteMotorPort.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/RCXRemoteMotorPort.html new file mode 100644 index 0000000..6b3fd16 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/RCXRemoteMotorPort.html @@ -0,0 +1,305 @@ + + + + + + +RCXRemoteMotorPort (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt +
    +Class RCXRemoteMotorPort

    +
    +java.lang.Object
    +  extended by lejos.nxt.RCXRemoteMotorPort
    +
    +
    +
    All Implemented Interfaces:
    BasicMotorPort
    +
    +
    +
    +
    public class RCXRemoteMotorPort
    extends Object
    implements BasicMotorPort
    + + +

    +Supports a motor connected to a remote RCX via a mindsensord NRLink adapter +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from interface lejos.nxt.BasicMotorPort
    PWM_BRAKE, PWM_FLOAT
    +  + + + + + + + + + + +
    +Constructor Summary
    RCXRemoteMotorPort(RCXLink link, + int id) + +
    +           
    +  + + + + + + + + + + + + + + + +
    +Method Summary
    + voidcontrolMotor(int power, + int mode) + +
    +           
    + voidsetPWMMode(int mode) + +
    +           
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +RCXRemoteMotorPort

    +
    +public RCXRemoteMotorPort(RCXLink link,
    +                          int id)
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +controlMotor

    +
    +public void controlMotor(int power,
    +                         int mode)
    +
    +
    +
    Specified by:
    controlMotor in interface BasicMotorPort
    +
    +
    +
    +
    +
    +
    + +

    +setPWMMode

    +
    +public void setPWMMode(int mode)
    +
    +
    +
    Specified by:
    setPWMMode in interface BasicMotorPort
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SensorConstants.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SensorConstants.html index 588eab4..4069c25 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SensorConstants.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SensorConstants.html @@ -2,7 +2,7 @@ - + SensorConstants (leJOS NXT API documentation) @@ -51,7 +51,7 @@ function windowTitle() PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   @@ -88,7 +88,10 @@ lejos.nxt
    Interface SensorConstants
    -
    All Known Implementing Classes:
    ColorSensor, CompassSensor, I2CSensor, LightSensor, RCXLightSensor, SoundSensor, TiltSensor, TouchSensor, UltrasonicSensor
    +
    All Known Subinterfaces:
    ADSensorPort, BasicSensorPort, I2CPort, LegacySensorPort
    +
    +
    +
    All Known Implementing Classes:
    ColorSensor, CompassSensor, GyroSensor, I2CSensor, IRSeeker, LightSensor, NXTCam, RCXLightSensor, RCXLink, RCXMotorMultiplexer, RemoteSensorPort, SensorPort, SoundSensor, TiltSensor, TouchSensor, UltrasonicSensor

    @@ -513,7 +516,7 @@ static final int MODE_ANGLESTEP PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SensorPort.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SensorPort.html index d2ac2c0..cd3a230 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SensorPort.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SensorPort.html @@ -2,7 +2,7 @@ - + SensorPort (leJOS NXT API documentation) @@ -92,11 +92,11 @@ Class SensorPort extended by lejos.nxt.SensorPort
    -
    All Implemented Interfaces:
    ListenerCaller
    +
    All Implemented Interfaces:
    ADSensorPort, BasicSensorPort, I2CPort, LegacySensorPort, ListenerCaller, SensorConstants

    -
    public class SensorPort
    extends Object
    implements ListenerCaller
    +
    public class SensorPort
    extends Object
    implements LegacySensorPort, I2CPort, ListenerCaller

    @@ -454,7 +454,7 @@ public final int readRawValue()

    Reads the raw value of the sensor.

    -
    +
    Specified by:
    readRawValue in interface ADSensorPort
    @@ -471,7 +471,7 @@ public final boolean readBooleanValue() Do not use - currently returns the raw value.

    -
    +
    Specified by:
    readBooleanValue in interface ADSensorPort
    @@ -528,7 +528,7 @@ public final void activate() the LED go on when you call this method.

    -
    +
    Specified by:
    activate in interface LegacySensorPort
    @@ -544,7 +544,7 @@ public final void passivate()
    Passivates an RCX sensor sensor.

    -
    +
    Specified by:
    passivate in interface LegacySensorPort
    @@ -560,7 +560,7 @@ public int getMode()
    Returns mode compatible with Lego firmware.

    -
    +
    Specified by:
    getMode in interface BasicSensorPort
    @@ -576,7 +576,7 @@ public int getType()
    Returns type compatible with Lego firmware.

    -
    +
    Specified by:
    getType in interface BasicSensorPort
    @@ -593,7 +593,7 @@ public void setTypeAndMode(int type,
    Sets type and mode compatible with Lego firmware.

    -
    +
    Specified by:
    setTypeAndMode in interface BasicSensorPort
    @@ -609,7 +609,7 @@ public void setType(int type)
    Sets type compatible with Lego firmware.

    -
    +
    Specified by:
    setType in interface BasicSensorPort
    @@ -625,7 +625,7 @@ public void setMode(int mode)
    Sets mode compatible with Lego firmware.

    -
    +
    Specified by:
    setMode in interface BasicSensorPort
    @@ -641,7 +641,7 @@ public int readValue()
    Returns value compatible with Lego firmware.

    -
    +
    Specified by:
    readValue in interface ADSensorPort
    @@ -743,7 +743,7 @@ public void i2cEnable()
    Low-level method to enable I2C on the port.

    -
    +
    Specified by:
    i2cEnable in interface I2CPort
    @@ -759,7 +759,7 @@ public void i2cDisable()
    Low-level method to disable I2C on the port.

    -
    +
    Specified by:
    i2cDisable in interface I2CPort
    @@ -775,7 +775,7 @@ public int i2cBusy()
    Low-level method to test if I2C connection is busy.

    -
    +
    Specified by:
    i2cBusy in interface I2CPort
    @@ -796,7 +796,7 @@ public int i2cStart(int address,
    Low-level method to start an I2C transaction.

    -
    +
    Specified by:
    i2cStart in interface I2CPort
    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SensorPortListener.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SensorPortListener.html index e0d3faf..bdd628d 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SensorPortListener.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SensorPortListener.html @@ -2,7 +2,7 @@ - + SensorPortListener (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Sound.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Sound.html index 39e4694..5447293 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Sound.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Sound.html @@ -2,7 +2,7 @@ - + Sound (leJOS NXT API documentation) @@ -118,7 +118,7 @@ NXT sound routines. C2
    -          Play a system sound - not yet implemented. +          Play a system sound.   @@ -136,7 +136,7 @@ NXT sound routines. beep()
    -          Beeps once - not yet implemented. +          Beeps once. @@ -152,7 +152,7 @@ NXT sound routines. beepSequenceUp()
    -          Downward tones. +          Upward tones. @@ -173,8 +173,7 @@ NXT sound routines. static void -playSample(File file, - int freq, +playSample(File file, int vol)
    @@ -215,7 +214,7 @@ NXT sound routines. twoBeeps()
    -          Beeps twice - not yet implemented. +          Beeps twice.   @@ -245,15 +244,14 @@ C2
     public static int C2
    -
    Play a system sound - not yet implemented. +
    Play a system sound. - - +
    aCodeResulting Sound
    0short beep
    1double beep
    2descending arpeggio
    3ascending arpeggio
    4long, low beep
    5quick ascending arpeggio
    4long, low buzz

    @@ -287,7 +285,7 @@ beep
     public static void beep()
    -
    Beeps once - not yet implemented. +
    Beeps once.

    @@ -300,7 +298,7 @@ twoBeeps
     public static void twoBeeps()
    -
    Beeps twice - not yet implemented. +
    Beeps twice.

    @@ -326,7 +324,7 @@ beepSequenceUp
     public static void beepSequenceUp()
    -
    Downward tones. +
    Upward tones.

    @@ -385,20 +383,19 @@ public static void playSample(int page,
    Internal method used to play sound sample from a file

    -
    Parameters:
    page - the start page of the file
    len - the length of the file
    freq - the frequency
    vol - the volume
    +
    Parameters:
    page - the start page of the file
    len - the length of the file
    freq - the frequency
    vol - the volume 1000 corresponds to 100%, 100 to 10%, 2500 to 250%

    -

    +

    playSample

     public static void playSample(File file,
    -                              int freq,
                                   int vol)
    -
    Parameters:
    file - the 8-bit PWM (WAV) sample file
    freq - the average frequency to play the sample at
    vol - the sound volume
    +
    Parameters:
    file - the 8-bit PWM (WAV) sample file
    vol - the volume percentage 0 - 100
    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SoundSensor.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SoundSensor.html index 7d7fb9c..ccabc1b 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SoundSensor.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/SoundSensor.html @@ -2,7 +2,7 @@ - + SoundSensor (leJOS NXT API documentation) @@ -52,7 +52,7 @@ function windowTitle()  PREV CLASS  - NEXT CLASSNEXT CLASS
    FRAMES    NO FRAMES   @@ -135,7 +135,7 @@ Abstraction for a NXT sound sensor. Constructor Summary -SoundSensor(lejos.nxt.ADSensorPort port) +SoundSensor(ADSensorPort port)
              Create a sound sensor object attached to the specified port. @@ -200,7 +200,7 @@ Abstraction for a NXT sound sensor.

    SoundSensor

    -public SoundSensor(lejos.nxt.ADSensorPort port)
    +public SoundSensor(ADSensorPort port)
    Create a sound sensor object attached to the specified port. The sensor will be set to DB mode. @@ -295,7 +295,7 @@ public int readValue()  PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TachoMotorPort.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TachoMotorPort.html new file mode 100644 index 0000000..133c8cd --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TachoMotorPort.html @@ -0,0 +1,223 @@ + + + + + + +TachoMotorPort (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt +
    +Interface TachoMotorPort

    +
    +
    All Superinterfaces:
    BasicMotorPort, Tachometer
    +
    +
    +
    All Known Implementing Classes:
    MotorPort, RemoteMotorPort
    +
    +
    +
    +
    public interface TachoMotorPort
    extends BasicMotorPort, Tachometer
    + + +

    +Abstraction for a motor port that supports NXT motors with tachometers. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from interface lejos.nxt.BasicMotorPort
    PWM_BRAKE, PWM_FLOAT
    +  + + + + + + + +
    +Method Summary
    + + + + + + + +
    Methods inherited from interface lejos.nxt.BasicMotorPort
    controlMotor, setPWMMode
    + + + + + + + +
    Methods inherited from interface lejos.nxt.Tachometer
    getTachoCount, resetTachoCount
    +  +

    + +


    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Tachometer.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Tachometer.html new file mode 100644 index 0000000..9d7e151 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Tachometer.html @@ -0,0 +1,234 @@ + + + + + + +Tachometer (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt +
    +Interface Tachometer

    +
    +
    All Known Subinterfaces:
    TachoMotorPort
    +
    +
    +
    All Known Implementing Classes:
    MotorPort, RemoteMotorPort
    +
    +
    +
    +
    public interface Tachometer
    + + +

    +Abstraction for the tachometer built into NXT motors. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + + + + + + + + + + +
    +Method Summary
    + intgetTachoCount() + +
    +           
    + voidresetTachoCount() + +
    +           
    +  +

    + + + + + + + + +
    +Method Detail
    + +

    +getTachoCount

    +
    +int getTachoCount()
    +
    +
    +
    +
    +
    +
    + +

    +resetTachoCount

    +
    +void resetTachoCount()
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TextMenu.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TextMenu.html index dcd0c1d..a0ac218 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TextMenu.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TextMenu.html @@ -2,7 +2,7 @@ - + TextMenu (leJOS NXT API documentation) @@ -51,7 +51,7 @@ function windowTitle() PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   @@ -186,6 +186,15 @@ Displays a list of items. The select() method allows the user to scroll the lis + int +select(int selectedIndex) + +
    +          Allows the user to scroll through the items, using the right and left buttons (forward and back) The Enter key closes the menu
    + and returns the index of the selected item. + + +  void setItems(String[] items) @@ -323,6 +332,8 @@ public int select()
    Allows the user to scroll through the items, using the right and left buttons (forward and back) The Enter key closes the menu
    and returns the index of the selected item.
    The menu display wraps items that scroll off the top will reappear on the bottom and vice versa. + + The selectedIndex is set to the first menu item.

    @@ -331,6 +342,24 @@ public int select()

    +

    +select

    +
    +public int select(int selectedIndex)
    +
    +
    Allows the user to scroll through the items, using the right and left buttons (forward and back) The Enter key closes the menu
    + and returns the index of the selected item.
    + The menu display wraps items that scroll off the top will reappear on the bottom and vice versa. + + This version of select allows the selected index to be set when the menu is first displayed. +

    +

    +
    Parameters:
    selectedIndex - the idex to start the menu on +
    Returns:
    the index of the selected item
    +
    +
    +
    +

    quit

    @@ -372,7 +401,7 @@ public void quit()
    PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TiltSensor.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TiltSensor.html index 2b54e93..25b7b22 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TiltSensor.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TiltSensor.html @@ -2,7 +2,7 @@ - + TiltSensor (leJOS NXT API documentation) @@ -101,7 +101,7 @@ Class TiltSensor

    -Abstraction for a Mindsensors (and possibly HiTechnic) +Abstraction for a Mindsensors acceleration (tilt) sensor.

    @@ -137,7 +137,7 @@ Abstraction for a Mindsensors (and possibly HiTechnic) Constructor Summary -TiltSensor(lejos.nxt.I2CPort port) +TiltSensor(I2CPort port)
                @@ -155,10 +155,27 @@ Abstraction for a Mindsensors (and possibly HiTechnic)  int +getXAccel() + +
    +          Acceleration along X axis. + + + + int getXTilt()
    -          Returns X tilt value. +          Tilt of sensor along X-axis (see top of Mindsensors.com sensor for + diagram of axis). + + + + int +getYAccel() + +
    +          Acceleration along Y axis. @@ -171,6 +188,14 @@ Abstraction for a Mindsensors (and possibly HiTechnic)  int +getZAccel() + +
    +          Acceleration along Z axis. + + + + int getZTilt()
    @@ -183,7 +208,7 @@ Abstraction for a Mindsensors (and possibly HiTechnic) Methods inherited from class lejos.nxt.I2CSensor -getData, getProductID, getSensorType, getVersion, sendData +getData, getProductID, getSensorType, getVersion, sendData, sendData, setAddress   @@ -211,7 +236,7 @@ Abstraction for a Mindsensors (and possibly HiTechnic)

    TiltSensor

    -public TiltSensor(lejos.nxt.I2CPort port)
    +public TiltSensor(I2CPort port)
    @@ -230,10 +255,12 @@ getXTilt
     public int getXTilt()
    -
    Returns X tilt value. +
    Tilt of sensor along X-axis (see top of Mindsensors.com sensor for + diagram of axis). 128 is level.

    -
    + +
    Returns:
    X tilt value, or -1 if call failed

    @@ -246,7 +273,8 @@ public int getYTilt()
    Returns Y tilt value.

    -
    + +
    Returns:
    Y tilt value, or -1 if call failed

    @@ -259,7 +287,53 @@ public int getZTilt()
    Returns Z tilt value.

    + +
    Returns:
    Z tilt value, or -1 if call failed
    +
    +
    + +

    +getXAccel

    +
    +public int getXAccel()
    +
    +
    Acceleration along X axis. Positive or negative values in mg. + (g = acceleration due to gravity = 9.81 m/s^2) +

    +

    + +
    Returns:
    Acceleration e.g. 9810 mg (falling on earth)
    +
    +
    +
    + +

    +getYAccel

    +
    +public int getYAccel()
    +
    +
    Acceleration along Y axis. Positive or negative values in mg. + (g = acceleration due to gravity = 9.81 m/s^2) +

    +

    + +
    Returns:
    Acceleration e.g. 9810 mg (falling on earth)
    +
    +
    +
    + +

    +getZAccel

    +
    +public int getZAccel()
    +
    +
    Acceleration along Z axis. Positive or negative values in mg. + (g = acceleration due to gravity = 9.81 m/s^2) +

    +

    + +
    Returns:
    Acceleration e.g. 9810 mg (falling on earth)
    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TouchSensor.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TouchSensor.html index fabc342..867ffe2 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TouchSensor.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/TouchSensor.html @@ -2,7 +2,7 @@ - + TouchSensor (leJOS NXT API documentation) @@ -136,7 +136,7 @@ Abstraction for a NXT touch sensor. Constructor Summary
    -TouchSensor(lejos.nxt.ADSensorPort port) +TouchSensor(ADSensorPort port)
              Create a touch sensor object attached to the specified port. @@ -185,7 +185,7 @@ Abstraction for a NXT touch sensor.

    TouchSensor

    -public TouchSensor(lejos.nxt.ADSensorPort port)
    +public TouchSensor(ADSensorPort port)
    Create a touch sensor object attached to the specified port.

    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/UltrasonicSensor.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/UltrasonicSensor.html index 92f59b9..13a3731 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/UltrasonicSensor.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/UltrasonicSensor.html @@ -2,7 +2,7 @@ - + UltrasonicSensor (leJOS NXT API documentation) @@ -136,7 +136,7 @@ Abstraction for a NXT Ultrasonic Sensor. Constructor Summary -UltrasonicSensor(lejos.nxt.I2CPort port) +UltrasonicSensor(SensorPort port)
                @@ -154,10 +154,136 @@ Abstraction for a NXT Ultrasonic Sensor.  int +capture() + +
    +          Set capture mode + Set the sensor into capture mode. + + + + int +continuous() + +
    +          Switch to continuous ping mode. + + + + int +getCalibrationData(byte[] data) + +
    +          Return 3 bytes of calibration data. + + + + byte +getContinuousInterval() + +
    +          Return the interval used in continuous mode. + + + + int +getData(int register, + byte[] buf, + int len) + +
    +          Executes an I2C read transaction and waits for the result. + + + + int getDistance()
    -          Return distance of object. +          Return distance to an object. + + + + int +getDistances(int[] dist) + +
    +          Return an array of 8 echo distances. + + + + int +getFactoryData(byte[] data) + +
    +          Return 10 bytes of factory calibration data. + + + + byte +getMode() + +
    +          Returns the current operating mode of the sensor. + + + + String +getUnits() + +
    +          Return a string indicating the type of units in use by the unit. + + + + int +off() + +
    +          Turn off the sensor. + + + + int +ping() + +
    +          Send a single ping. + + + + int +reset() + +
    +          Reset the device + Performs a "soft reset" of the device. + + + + int +sendData(int register, + byte[] buf, + int len) + +
    +          Executes an I2C write transaction. + + + + int +setCalibrationData(byte[] data) + +
    +          Set 3 bytes of calibration data. + + + + int +setContinuousInterval(byte interval) + +
    +          Set the ping inetrval used when in continuous mode.   @@ -166,7 +292,7 @@ Abstraction for a NXT Ultrasonic Sensor. Methods inherited from class lejos.nxt.I2CSensor -getData, getProductID, getSensorType, getVersion, sendData +getProductID, getSensorType, getVersion, sendData, setAddress   @@ -191,10 +317,10 @@ Abstraction for a NXT Ultrasonic Sensor. -

    +

    UltrasonicSensor

    -public UltrasonicSensor(lejos.nxt.I2CPort port)
    +public UltrasonicSensor(SensorPort port)
    @@ -208,18 +334,292 @@ public UltrasonicSensor(lejos.nxt.I2CPort port) +

    +getData

    +
    +public int getData(int register,
    +                   byte[] buf,
    +                   int len)
    +
    +
    Description copied from class: I2CSensor
    +
    Executes an I2C read transaction and waits for the result. +

    +

    +
    Overrides:
    getData in class I2CSensor
    +
    +
    +
    Parameters:
    register - I2C register, e.g 0x41
    buf - Buffer to return data
    len - Length of the return data +
    Returns:
    status zero=success, non-zero=failure
    +
    +
    +
    + +

    +sendData

    +
    +public int sendData(int register,
    +                    byte[] buf,
    +                    int len)
    +
    +
    Description copied from class: I2CSensor
    +
    Executes an I2C write transaction. +

    +

    +
    Overrides:
    sendData in class I2CSensor
    +
    +
    +
    Parameters:
    register - I2C register, e.g 0x42
    buf - Buffer containing data to send
    len - Length of data to send +
    Returns:
    status zero=success, non-zero=failure
    +
    +
    +
    +

    getDistance

     public int getDistance()
    -
    Return distance of object. +
    Return distance to an object. To ensure that the data returned is valid + this method may have to wait a short while for the distance data to + become available.

    Returns:
    distance or 255 if no object in range
    +
    + +

    +getDistances

    +
    +public int getDistances(int[] dist)
    +
    +
    Return an array of 8 echo distances. These are generated when using ping + mode. A value of 255 indicates that no echo was obtained. The array must + contain at least 8 elements, if not -1 is returned. If the distnace data + is not yet available the method will wait until it is. +

    +

    + +
    Returns:
    0 if ok <> 0 otherwise
    +
    +
    +
    + +

    +ping

    +
    +public int ping()
    +
    +
    Send a single ping. + The sensor operates in two modes, continuous and ping. When in continuous + mode the sensor sends out pings as often as it can and the most recently + obtained result is available via a call to getDistance. When in ping mode + a ping is only transmitted when a call is made to ping. This sends a + single ping and up to 8 echoes are captured. These may be read by making + a call to getDistance and passing a suitable array. A delay of + approximately 20ms is required between the call to ping and getDistance. + This delay is not included in the method. Calls to getDistance before + this period may result in an error or no data being returned. The normal + getDistance call may also be used with ping, returning information for + the first echo. Calling this method will disable teh default continuous + mode, to switch back to continuous mode call continuous. +

    +

    + +
    Returns:
    0 if ok <> 0 otherwise
    +
    +
    +
    + +

    +continuous

    +
    +public int continuous()
    +
    +
    Switch to continuous ping mode. + This method enables continuous ping and capture mode. This is the default + operating mode of the sensor. Please the notes for ping for more details. +

    +

    + +
    Returns:
    0 if ok <> 0 otherwise
    +
    +
    +
    + +

    +off

    +
    +public int off()
    +
    +
    Turn off the sensor. + This call disables the sensor. No pings will be issued after this call, + until either ping, continuous or reset is called. +

    +

    + +
    Returns:
    0 if ok <> 0 otherwise
    +
    +
    +
    + +

    +capture

    +
    +public int capture()
    +
    +
    Set capture mode + Set the sensor into capture mode. The Lego documentation states: + "Within this mode the sensor will measure whether any other ultrasonic + sensors are within the vicinity. With this information a program can + evaluate when it is best to make a new measurement which will not + conflict with other ultrasonic sensors." + I have no way of testing this. Perhaps someone with a second NXT could + check it out! +

    +

    + +
    Returns:
    0 if ok <> 0 otherwise
    +
    +
    +
    + +

    +reset

    +
    +public int reset()
    +
    +
    Reset the device + Performs a "soft reset" of the device. Restores things to the default + state. Following this call the sensor will be operating in continuous + mode. +

    +

    + +
    Returns:
    0 if ok <> 0 otherwise
    +
    +
    +
    + +

    +getFactoryData

    +
    +public int getFactoryData(byte[] data)
    +
    +
    Return 10 bytes of factory calibration data. The bytes are as follows + data[0] : Factory zero (cal1) + data[1] : Factory scale factor (cal2) + data[2] : Factory scale divisor. +

    +

    + +
    Returns:
    0 if ok <> 0 otherwise
    +
    +
    +
    + +

    +getUnits

    +
    +public String getUnits()
    +
    +
    Return a string indicating the type of units in use by the unit. + The default response is 10E-2m indicating centimetres in use. +

    +

    + +
    Returns:
    7 byte string
    +
    +
    +
    + +

    +getCalibrationData

    +
    +public int getCalibrationData(byte[] data)
    +
    +
    Return 3 bytes of calibration data. The bytes are as follows + data[0] : zero (cal1) + data[1] : scale factor (cal2) + data[2] : scale divisor. +

    +

    + +
    Returns:
    0 if ok <> 0 otherwise
    +
    +
    +
    + +

    +setCalibrationData

    +
    +public int setCalibrationData(byte[] data)
    +
    +
    Set 3 bytes of calibration data. The bytes are as follows + data[0] : zero (cal1) + data[1] : scale factor (cal2) + data[2] : scale divisor. + + This does not currently seem to work. +

    +

    + +
    Returns:
    0 if ok <> 0 otherwise
    +
    +
    +
    + +

    +getContinuousInterval

    +
    +public byte getContinuousInterval()
    +
    +
    Return the interval used in continuous mode. + This seems to be in the range 1-15. It can be read and set. However tests + seem to show it has no effect. Others have reported that this does vary + the ping interval (when used in other implementations). Please report + any new results. +

    +

    + +
    Returns:
    -1 if error otherwise the interval
    +
    +
    +
    + +

    +setContinuousInterval

    +
    +public int setContinuousInterval(byte interval)
    +
    +
    Set the ping inetrval used when in continuous mode. + See getContinuousInterval for more details. +

    +

    + +
    Returns:
    0 if 0k <> 0 otherwise.
    +
    +
    +
    + +

    +getMode

    +
    +public byte getMode()
    +
    +
    Returns the current operating mode of the sensor. + 0 : sensor is off + 1 : Single shot ping mode + 2 : continuous ping mode (default) + 3 : Event capture mode +

    +

    + +
    Returns:
    -1 if error otherwise the operating mode
    +
    +

    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTConnection.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTConnection.html index 221af4e..8339a63 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTConnection.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTConnection.html @@ -2,7 +2,7 @@ - + BTConnection (leJOS NXT API documentation) @@ -72,9 +72,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD
    -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -100,14 +100,81 @@ Class BTConnection

    -Represents a Bluetooth Stream Connection. +Provides a Bluetooth connection + Supports both packetized and stream based commincation. + Blocking and non-blocking I/O. + Notes: + Because of the limited buffer space and the way that several connections + have to share the interface to the Bluetooth device data may be lost. This + will happen if a switch into command mode is required when there is data + arriving from the remote connection that can not be placed into the input + buffer. Every attempt is made to avoid this but it can happen. Application + programs can help avoid this problem by: + 1) Using just a single Bluetooth connection + 2) Using Bluetooth commands while data transfers are in progress. + 3) Performing application level flow control to avoid more then 256 bytes + of data being sent from the remote side at any one time. + 4) Reading any pending data as soon as possible. + If data is lost then calls to read and write will return -2 to indicate the + problem. If using packet mode then the input stream can be re-synchronized + by issuing a read to discard the partial packet which may be in the input + buffer.


    + + + + + + + + + + + + + + + + + + +
    +Field Summary
    +static intAM_ALWAYS + +
    +           
    +static intAM_DISABLE + +
    +           
    +static intAM_OUTPUT + +
    +           
    +  + + + + + + + + + + +
    +Constructor Summary
    BTConnection(int chan) + +
    +           
    @@ -118,11 +185,43 @@ Represents a Bluetooth Stream Connection. + int +available() + +
    +            + + + + int +available(int what) + +
    +          Indicate the number of bytes available to be read. + + +  void close()
    -          Close the stream connection +          Close the connection. + + + + void +closeStream() + +
    +          Close the stream for this connection. + + + + int +getSignalStrength() + +
    +          Get the signal strength of this connection. @@ -130,7 +229,7 @@ Represents a Bluetooth Stream Connection. openDataInputStream()
    -          Open and return a DataInputStream - not yet implemented. +          Return the DataInputStream for this connect @@ -138,7 +237,7 @@ Represents a Bluetooth Stream Connection. openDataOutputStream()
    -          Open and return a DataOutputStream - not yet implemented. +          Return the DataOutputStream for this connection. @@ -146,7 +245,7 @@ Represents a Bluetooth Stream Connection. openInputStream()
    -          Open and return an InputStream - not yet implemented. +          Return the InputStream for this connection. @@ -154,7 +253,79 @@ Represents a Bluetooth Stream Connection. openOutputStream()
    -          Open and return an OutputStream - not yet implemented. +          Return the OutputStream for this connection + + + + void +openStream() + +
    +          Open the stream for this connection. + + + + int +read(byte[] data, + int len) + +
    +            + + + + int +read(byte[] data, + int outLen, + boolean wait) + +
    +          Attempt to read data from the connection. + + + + int +readPacket(byte[] buf, + int len) + +
    +          Read a packet from the stream. + + + + void +sendPacket(byte[] buf, + int bufLen) + +
    +          Send a data packet. + + + + void +setIOMode(int mode) + +
    +          Set operating mode. + + + + int +write(byte[] data, + int len) + +
    +            + + + + int +write(byte[] data, + int len, + boolean wait) + +
    +          Attempt to write bytes to the Bluetooth connection.   @@ -169,6 +340,62 @@ Represents a Bluetooth Stream Connection.  

    + + + + + + + +
    +Field Detail
    + +

    +AM_DISABLE

    +
    +public static final int AM_DISABLE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +AM_ALWAYS

    +
    +public static final int AM_ALWAYS
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +AM_OUTPUT

    +
    +public static final int AM_OUTPUT
    +
    +
    +
    See Also:
    Constant Field Values
    +
    + + + + + + + + +
    +Constructor Detail
    + +

    +BTConnection

    +
    +public BTConnection(int chan)
    +
    +
    + @@ -182,17 +409,229 @@ Represents a Bluetooth Stream Connection.

    close

    -public void close()
    -           throws IOException
    +public void close()
    -
    Description copied from interface: StreamConnection
    -
    Close the stream connection +
    Close the connection. Flush any pending output. Inform the remote side + that the connection is now closed. Free resources.

    Specified by:
    close in interface StreamConnection
    +
    +
    +
    +
    + +

    +write

    +
    +public int write(byte[] data,
    +                 int len,
    +                 boolean wait)
    +
    +
    Attempt to write bytes to the Bluetooth connection. Optionally wait if it + is not possible to write at the moment. Supports both packet and stream + write opperations. If in packet mode a set of header bytes indicating + the size of the packet will be sent ahead of the data. + NOTE: If in packet mode and writing large packets (> 254 bytes), then + the blocking mode (wait = true), should be used to ensure that the packet + is sent correctly. +

    +

    +
    +
    +
    +
    Parameters:
    data - The data to be written.
    len - The number of bytes to write.
    wait - True if the call should block until all of the data has + been sent. +
    Returns:
    > 0 number of bytes written. + 0 Request would have blocked (and wait was false). + -1 An error occurred + -2 Data has been lost (See notes above).
    +
    +
    +
    + +

    +write

    +
    +public int write(byte[] data,
    +                 int len)
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +read

    +
    +public int read(byte[] data,
    +                int outLen,
    +                boolean wait)
    +
    +
    Attempt to read data from the connection. Optionally wait for data to + become available. Supports both packet and stream mode operations. When + in packet mode the packet length bytes are automatically processed. The + read will return just a single packet. If the packet is larger then the + requested length then the rest of the packet will be returned in the + following reads. If wait is true then in packet mode the call will wait + until either the entire packet can be read or outLen bytes are available. + In stream mode the call will return if at least 1 byte has been read. +

    +

    +
    +
    +
    +
    Parameters:
    data - Location to return the data. If null the data is discarded.
    outLen - Max number of bytes to read.
    wait - Should the call block waiting for data. +
    Returns:
    > 0 number of bytes read.
    +
    +
    +
    + +

    +read

    +
    +public int read(byte[] data,
    +                int len)
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +available

    +
    +public int available(int what)
    +
    +
    Indicate the number of bytes available to be read. Supports both packet + mode and stream connections. +

    +

    +
    +
    +
    +
    Parameters:
    what - 0 (all modes) return the number of bytes that can be + read without blocking. + 1 (packet mode) return the number of bytes still to be + read from the current packet. + 2 (packet mode) return the length of the current packet.
    +
    +
    +
    + +

    +available

    +
    +public int available()
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +setIOMode

    +
    +public void setIOMode(int mode)
    +
    +
    Set operating mode. Controls the packet/stream mode of this channel. + For packet mode it defines the header size to be used. +

    +

    +
    +
    +
    +
    Parameters:
    mode - Size of header, 0 indicates stream mode.
    +
    +
    +
    + +

    +readPacket

    +
    +public int readPacket(byte[] buf,
    +                      int len)
    +
    +
    Read a packet from the stream. Do not block and for small packets + (< 254 bytes), do not return a partial packet. +

    +

    +
    +
    +
    +
    Parameters:
    buf - Buffer to read data into.
    len - Number of bytes to read. +
    Returns:
    > 0 number of bytes read. + other values see read.
    +
    +
    +
    +

    +sendPacket

    +
    +public void sendPacket(byte[] buf,
    +                       int bufLen)
    +
    +
    Send a data packet. + Must be in data mode. +

    +

    +
    +
    +
    +
    Parameters:
    buf - the data to send
    bufLen - the number of bytes to send
    +
    +
    +
    + +

    +openInputStream

    +
    +public InputStream openInputStream()
    +                            throws IOException
    +
    +
    Return the InputStream for this connection. +

    +

    +
    Specified by:
    openInputStream in interface StreamConnection
    +
    +
    + +
    Returns:
    the input stream +
    Throws: +
    IOException
    +
    +
    +
    + +

    +openOutputStream

    +
    +public OutputStream openOutputStream()
    +                              throws IOException
    +
    +
    Return the OutputStream for this connection +

    +

    +
    Specified by:
    openOutputStream in interface StreamConnection
    +
    +
    + +
    Returns:
    the output stream
    Throws:
    IOException
    @@ -205,14 +644,14 @@ openDataInputStream public DataInputStream openDataInputStream() throws IOException
    -
    Description copied from interface: StreamConnection
    -
    Open and return a DataInputStream - not yet implemented. +
    Return the DataInputStream for this connect

    Specified by:
    openDataInputStream in interface StreamConnection
    +
    Returns:
    the data input stream
    Throws:
    IOException
    @@ -225,56 +664,68 @@ openDataOutputStream public DataOutputStream openDataOutputStream() throws IOException
    -
    Description copied from interface: StreamConnection
    -
    Open and return a DataOutputStream - not yet implemented. +
    Return the DataOutputStream for this connection.

    Specified by:
    openDataOutputStream in interface StreamConnection
    +
    Returns:
    the data output stream
    Throws:
    IOException

    -

    -openInputStream

    +

    +closeStream

    -public InputStream openInputStream()
    -                            throws IOException
    +public void closeStream()
    -
    Description copied from interface: StreamConnection
    -
    Open and return an InputStream - not yet implemented. +
    Close the stream for this connection. + This suspends the connection and switch the BC4 chip to command mode.

    -
    Specified by:
    openInputStream in interface StreamConnection
    +
    +
    +
    +
    +
    -
    Throws: -
    IOException +

    +openStream

    +
    +public void openStream()
    +
    +
    Open the stream for this connection. + This resumes the connection and switches the BC4 chip to data mode. +

    +

    +
    +
    +
    +

    -

    -openOutputStream

    +

    +getSignalStrength

    -public OutputStream openOutputStream()
    -                              throws IOException
    +public int getSignalStrength()
    -
    Description copied from interface: StreamConnection
    -
    Open and return an OutputStream - not yet implemented. +
    Get the signal strength of this connection. + This necessitates closing and reopening the data stream.

    -
    Specified by:
    openOutputStream in interface StreamConnection
    +
    -
    Throws: -
    IOException
    +
    Returns:
    a value from 0 to 255
    @@ -328,9 +779,9 @@ public Out - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD
    -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD
    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTInputStream.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTInputStream.html index 022a521..5762f22 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTInputStream.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTInputStream.html @@ -2,7 +2,7 @@ - + BTInputStream (leJOS NXT API documentation) @@ -72,9 +72,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -104,28 +104,12 @@ Extends InputStream for BlueTooth; implements available()

    Author:
    -
    Roger Glassey revised on june 23, 2007
    +
    Roger Glassey revised on june 23, 2007, modified for Bluetooth2

    - - - - - - - - - - -
    -Constructor Summary
    BTInputStream() - -
    -           
    @@ -180,23 +164,6 @@ Extends InputStream for BlueTooth; implements available()  

    - - - - - - - -
    -Constructor Detail
    - -

    -BTInputStream

    -
    -public BTInputStream()
    -
    -
    - @@ -310,9 +277,9 @@ public void close() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTOutputStream.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTOutputStream.html index 3af27fb..6a08384 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTOutputStream.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTOutputStream.html @@ -2,7 +2,7 @@ - + BTOutputStream (leJOS NXT API documentation) @@ -72,9 +72,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -98,33 +98,30 @@ Class BTOutputStream

    +Implements an OutputStream over Bluetooth. +

    + +


    - + - + +Method Summary - + - -
    -Constructor Summary
    BTOutputStream() + + voidflush()
    -           
    -  - - - - - - +          Flushes this output stream and forces any buffered output bytes + to be written out. - +
    -Method Summary
    @@ -141,7 +138,7 @@ Class BTOutputStream Methods inherited from class java.io.OutputStream
    close, flush, write, writeclose, write, write
      @@ -156,23 +153,6 @@ Class BTOutputStream  

    - - - - - - - -
    -Constructor Detail
    - -

    -BTOutputStream

    -
    -public BTOutputStream()
    -
    -
    - @@ -205,6 +185,30 @@ public void write(int b)
    Parameters:
    b - the byte.
    +
    + +

    +flush

    +
    +public void flush()
    +
    +
    Description copied from class: OutputStream
    +
    Flushes this output stream and forces any buffered output bytes + to be written out. The general contract of flush is + that calling it is an indication that, if any bytes previously + written have been buffered by the implementation of the output + stream, such bytes should immediately be written to their + intended destination. +

    + The flush method of OutputStream does nothing. +

    +

    +
    Overrides:
    flush in class OutputStream
    +
    +
    +
    +
    +

    @@ -256,9 +260,9 @@ public void write(int b) - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTRemoteDevice.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTRemoteDevice.html index 3a66c06..b6618d5 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTRemoteDevice.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/BTRemoteDevice.html @@ -2,7 +2,7 @@ - + BTRemoteDevice (leJOS NXT API documentation) @@ -52,7 +52,7 @@ function windowTitle()  PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   @@ -97,6 +97,14 @@ Class BTRemoteDevice

    +Represents a remote Bluetooth device. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +

    @@ -354,7 +362,7 @@ public byte[] getDeviceClass()  PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/Bluetooth.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/Bluetooth.html index 2653849..afd6ae6 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/Bluetooth.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/Bluetooth.html @@ -2,7 +2,7 @@ - + Bluetooth (leJOS NXT API documentation) @@ -72,9 +72,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -97,7 +97,9 @@ Class Bluetooth

    -Support for Bluetooth communications. +Provides Bluetooth comminications. + Allows inbound and outbound connections. + Provides access to to device registration.

    @@ -115,6 +117,30 @@ Support for Bluetooth communications. static int +BT_PENDING_INPUT + +
    +            + + + +static int +BT_PENDING_OUTPUT + +
    +            + + + +static byte[] +defaultPin + +
    +            + + + +static int MSG_ACCEPT_CONNECTION
    @@ -131,6 +157,14 @@ Support for Bluetooth communications. static int +MSG_ANY + +
    +            + + + +static int MSG_BEGIN_INQUIRY
    @@ -195,6 +229,14 @@ Support for Bluetooth communications. static int +MSG_CONNECTION_STATUS_RESULT + +
    +            + + + +static int MSG_DUMP_LIST
    @@ -219,6 +261,14 @@ Support for Bluetooth communications. static int +MSG_GET_CONNECTION_STATUS + +
    +            + + + +static int MSG_GET_DISCOVERABLE
    @@ -275,6 +325,14 @@ Support for Bluetooth communications. static int +MSG_GET_OPERATING_MODE + +
    +            + + + +static int MSG_GET_PORT_OPEN
    @@ -307,6 +365,14 @@ Support for Bluetooth communications. static int +MSG_GOTO_DFU_MODE + +
    +            + + + +static int MSG_HEARTBEAT
    @@ -411,6 +477,14 @@ Support for Bluetooth communications. static int +MSG_OPERATING_MODE_RESULT + +
    +            + + + +static int MSG_PIN_CODE
    @@ -531,6 +605,14 @@ Support for Bluetooth communications. static int +MSG_SET_OPERATING_MODE + +
    +            + + + +static int MSG_START_HEART
    @@ -538,6 +620,22 @@ Support for Bluetooth communications.   + + + + + + + + + + +
    +Constructor Summary
    Bluetooth() + +
    +           
    @@ -557,10 +655,28 @@ Support for Bluetooth communications. static int -btGetCmdMode() +btGetBC4CmdMode() + +
    +          Low-level method to get the BC4 chip mode + + + +static int +btPending()
    -          Low-level nethod to get the BC4 chip mode - does not work. +          Low-Level method to access the Bluetooth interface. + + + +static int +btRead(byte[] buf, + int off, + int len) + +
    +          Low-level method to read BT data @@ -582,7 +698,7 @@ Support for Bluetooth communications. static void -btSetCmdMode(int mode) +btSetArmCmdMode(int mode)
              Low-level method to switch BC4 chip between command @@ -591,10 +707,60 @@ Support for Bluetooth communications. static void +btSetCmdMode(int mode) + +
    +          Set the BC4 mode, and wait for that mode to be confirmed by the chip. + + + +static void +btSetResetHigh() + +
    +          Low-level method to take the BC4 reset line high + + + +static void +btSetResetLow() + +
    +          Low-level method to take the BC4 reset line low + + + +static void btStartADConverter()
    -          Low-level method to start ADC converter - does not wok. +          Low-level method to start ADC converter + + + +static int +btWrite(byte[] buf, + int off, + int len) + +
    +          Low-level method to write BT data + + + +static int +closeConnection(byte handle) + +
    +          Close an open connection + + + +static byte[] +closePort() + +
    +          Closes the port to disallow incoming connections. @@ -610,11 +776,29 @@ Support for Bluetooth communications. connect(byte[] device_addr)
    +          Connects to a Device by it's Byte-Device-Address Array + Uses default pin "1234" + + + +static BTConnection +connect(byte[] device_addr, + byte[] pin) + +
              Connects to a Device by it's Byte-Device-Address Array static byte[] +getConnectionStatus() + +
    +          Get the status of all connections + + + +static byte[] getFriendlyName()
    @@ -648,7 +832,40 @@ Support for Bluetooth communications. static int -getStatus() +getOperatingMode() + +
    +          Get the operating mode (stream breaking or not) + + + +static byte[] +getPin() + +
    +          Return the pin to be used for pairing/connecting to the system + + + +static int +getPortOpen() + +
    +          Get the port open status, + i.e whether connections are being accepted + + + +static boolean +getPower() + +
    +          Return the current state of the module power + + + +static int +getResetCount()
                @@ -656,10 +873,35 @@ Support for Bluetooth communications. static int +getSignalStrength(byte handle) + +
    +          Get the Bluetooth signal strength (link quality) + Higher values mean stronger signal. + + + +static int +getStatus() + +
    +          Get the persistent status value from the BC4 chip + + + +static byte[] +getVersion() + +
    +          Get the major and minor version of the BlueCore code + + + +static int getVisibility()
    -            +          Get the visibility (discoverable) status of the device @@ -669,33 +911,32 @@ Support for Bluetooth communications. byte[] cod)

    -            +          Start a Bluetooth inquiry process static String -lookupName(byte[] deviceAddr) +lookupName(byte[] addr)
              Look up the name of a device using its address -static int -readPacket(byte[] buf, - int bufLen) +static byte[]
    +openPort()
    -          Read a data packet (with 2-byte length header) from a stream connection. +          Opens the port to allow incoming connections. static int -receiveReply(byte[] buf, - int bufLen) +readPacket(byte[] buf, + int len)
    -          Receive a command or reply from the BC4 chip. +          Read a packet from the stream. @@ -708,11 +949,10 @@ Support for Bluetooth communications. static void -sendCommand(byte[] cmd, - int len) +reset()
    -          Send a command to the BC4 chip. +          Force a reset of the Bluetooth module. @@ -725,7 +965,15 @@ Support for Bluetooth communications. -static void +static int +setFactorySettings() + +
    +          Reset the settings of the BC4 chip to the factory defaults. + + + +static boolean setFriendlyName(byte[] name)
    @@ -733,19 +981,43 @@ Support for Bluetooth communications. +static int +setOperatingMode(byte mode) + +
    +          Set the operating mode + + + static void -setStatus(byte status) +setPin(byte[] newPin)
    -            +          Set the pin to be used for pairing/connecting to the system static void +setPower(boolean on) + +
    +          Set the power to the module + + + +static int +setStatus(int status) + +
    +          Set the persistent status byte for the BC4 chip + + + +static int setVisibility(byte visible)
    -            +          Set Bluetooth visibility (discoverable) on or off for the local device @@ -753,6 +1025,14 @@ Support for Bluetooth communications. waitForConnection()
    +            + + + +static BTConnection +waitForConnection(byte[] pin) + +
              Wait for a remote device to connect. @@ -1306,48 +1586,186 @@ public static final int MSG_SET_BRICK_STATUSBYTE

    See Also:
    Constant Field Values
    +
    - - - - - - - -
    -Method Detail
    - -

    -btSend

    +

    +MSG_GET_OPERATING_MODE

    -public static void btSend(byte[] buf,
    -                          int len)
    +public static final int MSG_GET_OPERATING_MODE
    -
    Low-level method to send a BT command or data -

    -

    -
    Parameters:
    buf - the buffer to send
    len - the number of bytes to send
    -
    +
    +
    See Also:
    Constant Field Values

    -

    -btReceive

    +

    +MSG_SET_OPERATING_MODE

    -public static void btReceive(byte[] buf)
    +public static final int MSG_SET_OPERATING_MODE
    -
    Low-level method to receive BT replies or data +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +MSG_OPERATING_MODE_RESULT

    +
    +public static final int MSG_OPERATING_MODE_RESULT
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +MSG_GET_CONNECTION_STATUS

    +
    +public static final int MSG_GET_CONNECTION_STATUS
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +MSG_CONNECTION_STATUS_RESULT

    +
    +public static final int MSG_CONNECTION_STATUS_RESULT
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +MSG_GOTO_DFU_MODE

    +
    +public static final int MSG_GOTO_DFU_MODE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +MSG_ANY

    +
    +public static final int MSG_ANY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +BT_PENDING_INPUT

    +
    +public static final int BT_PENDING_INPUT
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +BT_PENDING_OUTPUT

    +
    +public static final int BT_PENDING_OUTPUT
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +defaultPin

    +
    +public static final byte[] defaultPin
    +
    +
    +
    +
    + + + + + + + + +
    +Constructor Detail
    + +

    +Bluetooth

    +
    +public Bluetooth()
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +btWrite

    +
    +public static int btWrite(byte[] buf,
    +                          int off,
    +                          int len)
    +
    +
    Low-level method to write BT data

    -
    Parameters:
    buf - the buffer to receive data in
    +
    Parameters:
    buf - the buffer to send
    off - the offset to start the write from.
    len - the number of bytes to send +
    Returns:
    number of bytes actually written

    -

    -btSetCmdMode

    +

    +btRead

    -public static void btSetCmdMode(int mode)
    +public static int btRead(byte[] buf, + int off, + int len) +
    +
    Low-level method to read BT data +

    +

    +
    Parameters:
    buf - the buffer to read data into
    off - the offset at which to start the transfer
    len - the number of bytes to read +
    Returns:
    number of bytes actually read
    +
    +
    +
    + +

    +btPending

    +
    +public static int btPending()
    +
    +
    Low-Level method to access the Bluetooth interface. Bitwise values returned. +

    +

    + +
    Returns:
    0 No data pending + 0x1 input pending + 0x2 output pending
    +
    +
    +
    + +

    +btSetArmCmdMode

    +
    +public static void btSetArmCmdMode(int mode)
    Low-level method to switch BC4 chip between command and data (stream) mode. @@ -1358,12 +1776,12 @@ public static void btSetCmdMode(int mode)

    -

    -btGetCmdMode

    +

    +btGetBC4CmdMode

    -public static int btGetCmdMode()
    +public static int btGetBC4CmdMode()
    -
    Low-level nethod to get the BC4 chip mode - does not work. +
    Low-level method to get the BC4 chip mode

    @@ -1376,7 +1794,7 @@ btStartADConverter
     public static void btStartADConverter()
    -
    Low-level method to start ADC converter - does not wok. +
    Low-level method to start ADC converter

    @@ -1384,119 +1802,149 @@ public static void btStartADConverter()

    -

    -sendCommand

    +

    +btSetResetLow

    -public static void sendCommand(byte[] cmd,
    -                               int len)
    +public static void btSetResetLow()
    -
    Send a command to the BC4 chip. Must be in command mode. +
    Low-level method to take the BC4 reset line low

    -
    Parameters:
    cmd - the command
    len - the number of bytes
    +

    -

    -receiveReply

    +

    +btSetResetHigh

    -public static int receiveReply(byte[] buf,
    -                               int bufLen)
    +public static void btSetResetHigh()
    -
    Receive a command or reply from the BC4 chip. - Must be in command mode. +
    Low-level method to take the BC4 reset line high

    -
    Parameters:
    buf - the buffer to receive the reply
    bufLen - the length of the buffer -
    Returns:
    the number of bytes received
    +

    -

    -readPacket

    +

    +btSend

    -public static int readPacket(byte[] buf,
    -                             int bufLen)
    +public static void btSend(byte[] buf, + int len)
    -
    Read a data packet (with 2-byte length header) from a stream connection. - Must be in data mode. +
    Low-level method to send a BT command or data

    -
    Parameters:
    buf - the buffer to receive the data in
    bufLen - the length of the buffer -
    Returns:
    the number of bytes received
    +
    Parameters:
    buf - the buffer to send
    len - the number of bytes to send

    -

    -sendPacket

    +

    +btReceive

    -public static void sendPacket(byte[] buf,
    -                              int bufLen)
    +public static void btReceive(byte[] buf)
    -
    Send a data packet. - Must be in data mode. +
    Low-level method to receive BT replies or data

    -
    Parameters:
    buf - the data to send
    bufLen - the number of bytes to send
    +
    Parameters:
    buf - the buffer to receive data in

    -

    -waitForConnection

    +

    +setPin

    -public static BTConnection waitForConnection()
    +public static void setPin(byte[] newPin)
    -
    Wait for a remote device to connect. - Pin currently must be 1234. +
    Set the pin to be used for pairing/connecting to the system

    +
    Parameters:
    newPin - the new pin code
    +
    +
    +
    -
    Returns:
    a BTConnection +

    +getPin

    +
    +public static byte[] getPin()
    +
    +
    Return the pin to be used for pairing/connecting to the system +

    +

    + +
    Returns:
    The current pin code

    -

    -getFriendlyName

    +

    +closeConnection

    -public static byte[] getFriendlyName()
    +public static int closeConnection(byte handle)
    -
    Get the friendly name of the local device +
    Close an open connection

    +
    Parameters:
    handle - the handle for the connection +
    Returns:
    the status 0 = success
    +
    +
    +
    -
    Returns:
    the friendly name +

    +openPort

    +
    +public static byte[] openPort()
    +
    +
    Opens the port to allow incoming connections. +

    +

    + +
    Returns:
    an array of three bytes: success, handle, ps_success

    -

    -setFriendlyName

    +

    +closePort

    -public static void setFriendlyName(byte[] name)
    +public static byte[] closePort()
    -
    Set the name of the local device +
    Closes the port to disallow incoming connections.

    -
    Parameters:
    name - the friendly name for the device
    + +
    Returns:
    an array of two bytes: success, ps_success

    -

    -getLocalAddress

    +

    +waitForConnection

    -public static byte[] getLocalAddress()
    +public static BTConnection waitForConnection(byte[] pin)
    -
    get the Bluetooth address of the local device +
    Wait for a remote device to connect.

    +
    Parameters:
    pin - the pin to use +
    Returns:
    a BTConnection
    +
    +
    +
    -
    Returns:
    the local address +

    +waitForConnection

    +
    +public static BTConnection waitForConnection()
    +
    +
    +

    @@ -1521,6 +1969,7 @@ connect public static BTConnection connect(byte[] device_addr)
    Connects to a Device by it's Byte-Device-Address Array + Uses default pin "1234"

    Parameters:
    device_addr - byte-Array with device-Address @@ -1529,6 +1978,77 @@ public static

    +connect

    +
    +public static BTConnection connect(byte[] device_addr,
    +                                   byte[] pin)
    +
    +
    Connects to a Device by it's Byte-Device-Address Array +

    +

    +
    Parameters:
    device_addr - byte-Array with device-Address
    pin - the pin to use +
    Returns:
    BTConnection Object or null
    +
    +
    +
    + +

    +getSignalStrength

    +
    +public static int getSignalStrength(byte handle)
    +
    +
    Get the Bluetooth signal strength (link quality) + Higher values mean stronger signal. +

    +

    + +
    Returns:
    link quality value 0 to 255.
    +
    +
    +
    + +

    +getFriendlyName

    +
    +public static byte[] getFriendlyName()
    +
    +
    Get the friendly name of the local device +

    +

    + +
    Returns:
    the friendly name
    +
    +
    +
    + +

    +setFriendlyName

    +
    +public static boolean setFriendlyName(byte[] name)
    +
    +
    Set the name of the local device +

    +

    +
    Parameters:
    name - the friendly name for the device
    +
    +
    +
    + +

    +getLocalAddress

    +
    +public static byte[] getLocalAddress()
    +
    +
    get the Bluetooth address of the local device +

    +

    + +
    Returns:
    the local address
    +
    +
    +
    +

    getKnownDevicesList

    @@ -1536,7 +2056,7 @@ public static 
    @@ -1597,8 +2117,11 @@ public static 

    lookupName

    -public static String lookupName(byte[] deviceAddr)
    +public static String lookupName(byte[] addr)
    Look up the name of a device using its address

    -
    Parameters:
    deviceAddr - +
    Parameters:
    addr - device address
    Returns:
    friendly name of device

    +

    +getConnectionStatus

    +
    +public static byte[] getConnectionStatus()
    +
    +
    Get the status of all connections +

    +

    + +
    Returns:
    byte array of status for each handle
    +
    +
    +
    + +

    +getVersion

    +
    +public static byte[] getVersion()
    +
    +
    Get the major and minor version of the BlueCore code +

    +

    + +
    Returns:
    an array of two bytes: major version, minor version
    +
    +
    +
    +

    getStatus

     public static int getStatus()
    +
    Get the persistent status value from the BC4 chip +

    -
    + +
    Returns:
    the byte value

    -

    +

    setStatus

    -public static void setStatus(byte status)
    +public static int setStatus(int status)
    +
    Set the persistent status byte for the BC4 chip +

    -
    +
    Parameters:
    status - the byte status value +
    Returns:
    < 0 Error

    @@ -1644,8 +2201,41 @@ getVisibility
     public static int getVisibility()
    +
    Get the visibility (discoverable) status of the device +

    + +
    Returns:
    1 = visible, 0 = invisible
    +
    +
    + +

    +getPortOpen

    +
    +public static int getPortOpen()
    +
    +
    Get the port open status, + i.e whether connections are being accepted +

    +

    + +
    Returns:
    1 if the port is open, 0 otherwise
    +
    +
    +
    + +

    +getOperatingMode

    +
    +public static int getOperatingMode()
    +
    +
    Get the operating mode (stream breaking or not) +

    +

    + +
    Returns:
    0 = stream breaking mode, 1 = don't break stream mode + < 0 Error

    @@ -1653,12 +2243,143 @@ public static int getVisibility()

    setVisibility

    -public static void setVisibility(byte visible)
    +public static int setVisibility(byte visible) +
    +
    Set Bluetooth visibility (discoverable) on or off for the local device +

    +

    +
    Parameters:
    visible - true to set visibility on, false to set it off +
    Returns:
    < 0 error
    +
    +
    +
    + +

    +setFactorySettings

    +
    +public static int setFactorySettings()
    +
    +
    Reset the settings of the BC4 chip to the factory defaults. + The NXT should be restarted after this. +

    +

    +
    +
    +
    +
    + +

    +setOperatingMode

    +
    +public static int setOperatingMode(byte mode)
    +
    +
    Set the operating mode +

    +

    +
    Parameters:
    mode - 0 = Stream breaking, 1 don't break stream +
    Returns:
    < 0 error
    +
    +
    +
    + +

    +reset

    +
    +public static void reset()
    +
    +
    Force a reset of the Bluetooth module. + Notes: + After this call power will be on. + Any existing connections will be closed + Any listening threads will be aborted +

    +

    +
    +
    +
    +
    + +

    +setPower

    +
    +public static void setPower(boolean on)
    +
    +
    Set the power to the module +

    +

    +
    Parameters:
    on - power on or off
    +
    +
    +
    + +

    +getPower

    +
    +public static boolean getPower()
    +
    +
    Return the current state of the module power +

    +

    + +
    Returns:
    power on or off
    +
    +
    +
    + +

    +getResetCount

    +
    +public static int getResetCount()
    +
    + +

    +readPacket

    +
    +public static int readPacket(byte[] buf,
    +                             int len)
    +
    +
    Read a packet from the stream. Do not block and for small packets + (< 254 bytes), do not return a partial packet. +

    +

    +
    Parameters:
    buf - Buffer to read data into.
    len - Number of bytes to read. +
    Returns:
    > 0 number of bytes read. + other values see read.
    +
    +
    +
    + +

    +sendPacket

    +
    +public static void sendPacket(byte[] buf,
    +                              int bufLen)
    +
    +
    Send a data packet. + Must be in data mode. +

    +

    +
    Parameters:
    buf - the data to send
    bufLen - the number of bytes to send
    +
    +
    +
    + +

    +btSetCmdMode

    +
    +public static void btSetCmdMode(int mode)
    +
    +
    Set the BC4 mode, and wait for that mode to be confirmed by the chip. +

    +

    +
    Parameters:
    mode - the requested mode 1 == Command mode 0 == Stream mode
    +
    +

    @@ -1710,9 +2431,9 @@ public static void setVisibility(byte visible) - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD
    -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD
    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/Debug.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/Debug.html new file mode 100644 index 0000000..61fca18 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/Debug.html @@ -0,0 +1,311 @@ + + + + + + +Debug (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt.comm +
    +Class Debug

    +
    +java.lang.Object
    +  extended by lejos.nxt.comm.Debug
    +
    +
    +
    +
    public class Debug
    extends Object
    + + +

    +This class provides a simple way of sending debug output for viewing on a + PC. The output is transmitted via the nxt USB connection. If open is not + called or if the connection to the PC is timed out, then the debug output + is dicarded. +

    + +

    +


    + +

    + + + + + + + + + + + +
    +Constructor Summary
    Debug() + +
    +           
    +  + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    +static voidclose() + +
    +           
    +static voidopen() + +
    +           
    +static voidopen(int timeout) + +
    +           
    +static voidout(String s) + +
    +           
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +Debug

    +
    +public Debug()
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +open

    +
    +public static void open(int timeout)
    +
    +
    +
    +
    +
    +
    + +

    +open

    +
    +public static void open()
    +
    +
    +
    +
    +
    +
    + +

    +out

    +
    +public static void out(String s)
    +
    +
    +
    +
    +
    +
    + +

    +close

    +
    +public static void close()
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/DeviceInfo.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/DeviceInfo.html new file mode 100644 index 0000000..f6848c7 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/DeviceInfo.html @@ -0,0 +1,331 @@ + + + + + + +DeviceInfo (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt.comm +
    +Class DeviceInfo

    +
    +java.lang.Object
    +  extended by lejos.nxt.comm.DeviceInfo
    +
    +
    +
    +
    public class DeviceInfo
    extends Object
    + + +

    +Represents a remote NXT accessed via LCP. +

    + +

    +


    + +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Field Summary
    + StringbluetoothAddress + +
    +           
    + intfreeFlash + +
    +           
    + StringNXTname + +
    +           
    + intsignalStrength + +
    +           
    + bytestatus + +
    +           
    +  + + + + + + + + + + +
    +Constructor Summary
    DeviceInfo() + +
    +           
    +  + + + + + + + +
    +Method Summary
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Field Detail
    + +

    +status

    +
    +public byte status
    +
    +
    +
    +
    +
    + +

    +NXTname

    +
    +public String NXTname
    +
    +
    +
    +
    +
    + +

    +bluetoothAddress

    +
    +public String bluetoothAddress
    +
    +
    +
    +
    +
    + +

    +signalStrength

    +
    +public int signalStrength
    +
    +
    +
    +
    +
    + +

    +freeFlash

    +
    +public int freeFlash
    +
    +
    +
    +
    + + + + + + + + +
    +Constructor Detail
    + +

    +DeviceInfo

    +
    +public DeviceInfo()
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/FirmwareInfo.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/FirmwareInfo.html new file mode 100644 index 0000000..5a97eb1 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/FirmwareInfo.html @@ -0,0 +1,295 @@ + + + + + + +FirmwareInfo (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt.comm +
    +Class FirmwareInfo

    +
    +java.lang.Object
    +  extended by lejos.nxt.comm.FirmwareInfo
    +
    +
    +
    +
    public class FirmwareInfo
    extends Object
    + + +

    +Firmware information for a remote NXT accessed via LCP. +

    + +

    +


    + +

    + + + + + + + + + + + + + + + + + + + +
    +Field Summary
    + StringfirmwareVersion + +
    +           
    + StringprotocolVersion + +
    +           
    + bytestatus + +
    +           
    +  + + + + + + + + + + +
    +Constructor Summary
    FirmwareInfo() + +
    +           
    +  + + + + + + + +
    +Method Summary
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Field Detail
    + +

    +status

    +
    +public byte status
    +
    +
    +
    +
    +
    + +

    +protocolVersion

    +
    +public String protocolVersion
    +
    +
    +
    +
    +
    + +

    +firmwareVersion

    +
    +public String firmwareVersion
    +
    +
    +
    +
    + + + + + + + + +
    +Constructor Detail
    + +

    +FirmwareInfo

    +
    +public FirmwareInfo()
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/InputValues.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/InputValues.html new file mode 100644 index 0000000..ed3a1e6 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/InputValues.html @@ -0,0 +1,421 @@ + + + + + + +InputValues (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt.comm +
    +Class InputValues

    +
    +java.lang.Object
    +  extended by lejos.nxt.comm.InputValues
    +
    +
    +
    +
    public class InputValues
    extends Object
    + + +

    +Sensor input values for a remote NXT accessed via LCP. +

    + +

    +

    +
    Author:
    +
    Brian Bagnall
    +
    +
    + +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Field Summary
    + shortcalibratedValue + +
    +          Currently unused.
    + intinputPort + +
    +           
    + booleanisCalibrated + +
    +           
    + intnormalizedADValue + +
    +          The normalized value from the Analog to Digital (AD) converter.
    + intrawADValue + +
    +          The raw value from the Analog to Digital (AD) converter.
    + shortscaledValue + +
    +          The scaled value starts working after the first call to the sensor.
    + intsensorMode + +
    +           
    + intsensorType + +
    +           
    + booleanvalid + +
    +          NXT indicates if it thinks the data is valid
    +  + + + + + + + + + + +
    +Constructor Summary
    InputValues() + +
    +           
    +  + + + + + + + +
    +Method Summary
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Field Detail
    + +

    +inputPort

    +
    +public int inputPort
    +
    +
    +
    +
    +
    + +

    +valid

    +
    +public boolean valid
    +
    +
    NXT indicates if it thinks the data is valid +

    +

    +
    +
    +
    + +

    +isCalibrated

    +
    +public boolean isCalibrated
    +
    +
    +
    +
    +
    + +

    +sensorType

    +
    +public int sensorType
    +
    +
    +
    +
    +
    + +

    +sensorMode

    +
    +public int sensorMode
    +
    +
    +
    +
    +
    + +

    +rawADValue

    +
    +public int rawADValue
    +
    +
    The raw value from the Analog to Digital (AD) converter. +

    +

    +
    +
    +
    + +

    +normalizedADValue

    +
    +public int normalizedADValue
    +
    +
    The normalized value from the Analog to Digital (AD) converter. I really don't + know for sure which values are normalized yet. + 0 to 1023 +

    +

    +
    +
    +
    + +

    +scaledValue

    +
    +public short scaledValue
    +
    +
    The scaled value starts working after the first call to the sensor. + The first value will be the raw value, but after that it produces scaled values. + With the touch sensor, off scales to 0 and on scales to 1. +

    +

    +
    +
    +
    + +

    +calibratedValue

    +
    +public short calibratedValue
    +
    +
    Currently unused. +

    +

    +
    +
    + + + + + + + + +
    +Constructor Detail
    + +

    +InputValues

    +
    +public InputValues()
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/LCP.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/LCP.html index d0b62c4..67ad5d1 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/LCP.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/LCP.html @@ -2,7 +2,7 @@ - + LCP (leJOS NXT API documentation) @@ -51,8 +51,8 @@ function windowTitle() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES   @@ -164,6 +164,14 @@ Implements the Lego Communication Protocol, static byte +DIRECTORY_FULL + +
    +            + + + +static byte FILE_NOT_FOUND
    @@ -235,6 +243,22 @@ Implements the Lego Communication Protocol, +static Queue[] +inBoxes + +
    +            + + + +static byte +INSUFFICIENT_MEMORY + +
    +            + + + static byte KEEP_ALIVE @@ -268,6 +292,22 @@ Implements the Lego Communication Protocol, static byte +MAILBOX_EMPTY + +
    +            + + + +static byte +MESSAGE_READ + +
    +            + + + +static byte MESSAGE_WRITE
    @@ -276,6 +316,14 @@ Implements the Lego Communication Protocol, static byte +NOT_IMPLEMENTED + +
    +            + + + +static byte NXJ_DEFRAG
    @@ -484,6 +532,14 @@ Implements the Lego Communication Protocol, static byte +UNDEFINED_ERROR + +
    +            + + + +static byte WRITE
    @@ -509,6 +565,15 @@ Implements the Lego Communication Protocol,
              Emulates a Lego firmware Direct or System command + + +static void +messageWrite(int mailbox, + String msg) + +
    +            +   @@ -532,6 +597,16 @@ Implements the Lego Communication Protocol,
    +

    +inBoxes

    +
    +public static Queue[] inBoxes
    +
    +
    +
    +
    +
    +

    DIRECT_COMMAND_REPLY

    @@ -762,6 +837,16 @@ public static final byte GET_CURRENT_PROGRAM_NAME

    +

    +MESSAGE_READ

    +
    +public static final byte MESSAGE_READ
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    +

    NXJ_DISCONNECT

    @@ -992,6 +1077,16 @@ public static final byte NXJ_FIND_NEXT

    +

    +MAILBOX_EMPTY

    +
    +public static final byte MAILBOX_EMPTY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    +

    FILE_NOT_FOUND

    @@ -1000,6 +1095,46 @@ public static final byte FILE_NOT_FOUND
    See Also:
    Constant Field Values
    +
    + +

    +INSUFFICIENT_MEMORY

    +
    +public static final byte INSUFFICIENT_MEMORY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +DIRECTORY_FULL

    +
    +public static final byte DIRECTORY_FULL
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +UNDEFINED_ERROR

    +
    +public static final byte UNDEFINED_ERROR
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +NOT_IMPLEMENTED

    +
    +public static final byte NOT_IMPLEMENTED
    +
    +
    +
    See Also:
    Constant Field Values
    +
    @@ -1021,7 +1156,19 @@ public static int emulateCommand(byte[] cmd,
    Emulates a Lego firmware Direct or System command

    -
    Parameters:
    cmd - the buffer containing the command
    cmdLen - the legth of the command
    +
    Parameters:
    cmd - the buffer containing the command
    cmdLen - the length of the command +
    + +
    + +

    +messageWrite

    +
    +public static void messageWrite(int mailbox,
    +                                String msg)
    +
    +
    +
    @@ -1054,8 +1201,8 @@ public static int emulateCommand(byte[] cmd, PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS
    FRAMES    NO FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/LCPBTResponder.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/LCPBTResponder.html new file mode 100644 index 0000000..66572ca --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/LCPBTResponder.html @@ -0,0 +1,286 @@ + + + + + + +LCPBTResponder (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt.comm +
    +Class LCPBTResponder

    +
    +java.lang.Object
    +  extended by java.lang.Thread
    +      extended by lejos.nxt.comm.LCPBTResponder
    +
    +
    +
    +
    public class LCPBTResponder
    extends Thread
    + + +

    +Support for LCP commands over Bluetooth in user programs. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from class java.lang.Thread
    MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    +  + + + + + + + + + + +
    +Constructor Summary
    LCPBTResponder() + +
    +           
    +  + + + + + + + + + + + +
    +Method Summary
    + voidrun() + +
    +           
    + + + + + + + +
    Methods inherited from class java.lang.Thread
    currentThread, getPriority, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, setDaemon, setPriority, sleep, start, yield
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +LCPBTResponder

    +
    +public LCPBTResponder()
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +run

    +
    +public void run()
    +
    +
    +
    Specified by:
    run in class Thread
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTComm.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTComm.html new file mode 100644 index 0000000..fbe2801 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTComm.html @@ -0,0 +1,321 @@ + + + + + + +NXTComm (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt.comm +
    +Class NXTComm

    +
    +java.lang.Object
    +  extended by lejos.nxt.comm.NXTComm
    +
    +
    +
    +
    public class NXTComm
    extends Object
    + + +

    +Initiates communication to a remote NXT. Used by NXTCommand + to implement the Lego Communications Protocol (LCP). +

    + +

    +


    + +

    + + + + + + + + + + + +
    +Constructor Summary
    NXTComm() + +
    +           
    +  + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + voidclose() + +
    +           
    + booleanopen(String name) + +
    +           
    + byte[]readData() + +
    +           
    + voidsendData(byte[] data) + +
    +           
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +NXTComm

    +
    +public NXTComm()
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +open

    +
    +public boolean open(String name)
    +             throws IOException
    +
    +
    + +
    Throws: +
    IOException
    +
    +
    +
    + +

    +sendData

    +
    +public void sendData(byte[] data)
    +              throws IOException
    +
    +
    + +
    Throws: +
    IOException
    +
    +
    +
    + +

    +readData

    +
    +public byte[] readData()
    +                throws IOException
    +
    +
    + +
    Throws: +
    IOException
    +
    +
    +
    + +

    +close

    +
    +public void close()
    +           throws IOException
    +
    +
    + +
    Throws: +
    IOException
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTCommand.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTCommand.html new file mode 100644 index 0000000..7788268 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTCommand.html @@ -0,0 +1,615 @@ + + + + + + +NXTCommand (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt.comm +
    +Class NXTCommand

    +
    +java.lang.Object
    +  extended by lejos.nxt.comm.NXTCommand
    +
    +
    +
    All Implemented Interfaces:
    NXTProtocol
    +
    +
    +
    +
    public class NXTCommand
    extends Object
    implements NXTProtocol
    + + +

    +Remote access to a NXT via Bluetooth using LCP. +

    + +

    +


    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from interface lejos.nxt.comm.NXTProtocol
    ANGLE, ANGLESTEPSMODE, BOOLEANMODE, BOOT, BRAKE, CELSIUSMODE, CLOSE, CUSTOM, DELETE, DELETE_USER_FLASH, DIRECT_COMMAND_NOREPLY, DIRECT_COMMAND_REPLY, FAHRENHEITMODE, FIND_FIRST, FIND_NEXT, GET_BATTERY_LEVEL, GET_CURRENT_PROGRAM_NAME, GET_DEVICE_INFO, GET_FIRMWARE_VERSION, GET_INPUT_VALUES, GET_OUTPUT_STATE, HIGH_SPEED_BUFFER, KEEP_ALIVE, LIGHT_ACTIVE, LIGHT_INACTIVE, LOWSPEED, LOWSPEED_9V, LS_GET_STATUS, LS_READ, LS_WRITE, MESSAGE_READ, MESSAGE_WRITE, MODEMASK, MOTOR_RUN_STATE_IDLE, MOTOR_RUN_STATE_RAMPDOWN, MOTOR_RUN_STATE_RAMPUP, MOTOR_RUN_STATE_RUNNING, MOTORON, NO_OF_SENSOR_TYPES, NO_SENSOR, OPEN_APPEND_DATA, OPEN_READ, OPEN_READ_LINEAR, OPEN_WRITE, OPEN_WRITE_DATA, OPEN_WRITE_LINEAR, PCTFULLSCALEMODE, PERIODCOUNTERMODE, PLAY_SOUND_FILE, PLAY_TONE, POLL, POLL_BUFFER, POLL_LENGTH, RAWMODE, READ, REFLECTION, REGULATED, REGULATION_MODE_IDLE, REGULATION_MODE_MOTOR_SPEED, REGULATION_MODE_MOTOR_SYNC, REPLY_COMMAND, RESET_MOTOR_POSITION, RESET_SCALED_INPUT_VALUE, SET_BRICK_NAME, SET_INPUT_MODE, SET_OUTPUT_STATE, SLOPEMASK, SOUND_DB, SOUND_DBA, START_PROGRAM, STOP_PROGRAM, STOP_SOUND_PLAYBACK, SWITCH, SYSTEM_COMMAND_NOREPLY, SYSTEM_COMMAND_REPLY, TEMPERATURE, TRANSITIONCNTMODE, WRITE
    +  + + + + + + + + + + +
    +Constructor Summary
    NXTCommand() + +
    +           
    +  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + voidclose() + +
    +          Call the close() command when your program ends, otherwise you + will have to turn the NXT brick off/on before you run another + program using iCommand.
    + bytedeleteUserFlash() + +
    +          Deletes user flash memory (not including system modules).
    + intgetBatteryLevel() + +
    +           
    + DeviceInfogetDeviceInfo() + +
    +           
    + FirmwareInfogetFirmwareVersion() + +
    +           
    + InputValuesgetInputValues(int port) + +
    +           
    + intgetTachoCount(int port) + +
    +          Retrieves tacho count.
    + voidopen(String name) + +
    +           
    + byteplayTone(int frequency, + int duration) + +
    +          Plays a tone on NXT speaker.
    + byteresetMotorPosition(int port, + boolean relative) + +
    +          Resets the tachometer
    + bytesetInputMode(int port, + int sensorType, + int sensorMode) + +
    +          Tells the NXT what type of sensor you are using and the mode to operate in.
    + bytesetOutputState(int port, + byte power, + int mode, + int regulationMode, + int turnRatio, + int runState, + int tachoLimit) + +
    +           
    + voidsetVerify(boolean verify) + +
    +           
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +NXTCommand

    +
    +public NXTCommand()
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +open

    +
    +public void open(String name)
    +          throws IOException
    +
    +
    +
    +
    +
    + +
    Throws: +
    IOException
    +
    +
    +
    + +

    +setOutputState

    +
    +public byte setOutputState(int port,
    +                           byte power,
    +                           int mode,
    +                           int regulationMode,
    +                           int turnRatio,
    +                           int runState,
    +                           int tachoLimit)
    +                    throws IOException
    +
    +
    +
    +
    +
    +
    Parameters:
    port - - Output port (0 - 2 or 0xFF for all three)
    power - - Setpoint for power. (-100 to 100)
    mode - - Setting the modes MOTORON, BRAKE, and/or REGULATED. This parameter is a bitfield, so to put it in brake mode and regulated, use BRAKEMODE + REGULATED
    regulationMode - - see NXTProtocol for enumerations
    turnRatio - - Need two motors? (-100 to 100)
    runState - - see NXTProtocol for enumerations
    tachoLimit - - Number of degrees(?) to rotate before stopping. +
    Throws: +
    IOException
    +
    +
    +
    + +

    +getTachoCount

    +
    +public int getTachoCount(int port)
    +                  throws IOException
    +
    +
    Retrieves tacho count. +

    +

    +
    +
    +
    +
    Parameters:
    port - - 0 to 3 +
    Returns:
    tacho count +
    Throws: +
    IOException
    +
    +
    +
    + +

    +resetMotorPosition

    +
    +public byte resetMotorPosition(int port,
    +                               boolean relative)
    +                        throws IOException
    +
    +
    Resets the tachometer +

    +

    +
    +
    +
    +
    Parameters:
    port - Output port (0-2)
    relative - TRUE: position relative to last movement, FALSE: absolute position +
    Throws: +
    IOException
    +
    +
    +
    + +

    +setVerify

    +
    +public void setVerify(boolean verify)
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +close

    +
    +public void close()
    +           throws IOException
    +
    +
    Call the close() command when your program ends, otherwise you + will have to turn the NXT brick off/on before you run another + program using iCommand. +

    +

    +
    +
    +
    + +
    Throws: +
    IOException
    +
    +
    +
    + +

    +getBatteryLevel

    +
    +public int getBatteryLevel()
    +                    throws IOException
    +
    +
    +
    +
    +
    + +
    Throws: +
    IOException
    +
    +
    +
    + +

    +getInputValues

    +
    +public InputValues getInputValues(int port)
    +                           throws IOException
    +
    +
    +
    +
    +
    + +
    Throws: +
    IOException
    +
    +
    +
    + +

    +setInputMode

    +
    +public byte setInputMode(int port,
    +                         int sensorType,
    +                         int sensorMode)
    +                  throws IOException
    +
    +
    Tells the NXT what type of sensor you are using and the mode to operate in. +

    +

    +
    +
    +
    +
    Parameters:
    port - - 0 to 3
    sensorType - - Enumeration for sensor type (see NXTProtocol)
    sensorMode - - Enumeration for sensor mode (see NXTProtocol) +
    Throws: +
    IOException
    +
    +
    +
    + +

    +playTone

    +
    +public byte playTone(int frequency,
    +                     int duration)
    +              throws IOException
    +
    +
    Plays a tone on NXT speaker. If a new tone is sent while the previous tone is playing, + the new tone command will stop the old tone command. +

    +

    +
    +
    +
    +
    Parameters:
    frequency -
    duration - - In milliseconds. +
    Returns:
    - Returns true if command worked, false if it failed. +
    Throws: +
    IOException
    +
    +
    +
    + +

    +getDeviceInfo

    +
    +public DeviceInfo getDeviceInfo()
    +                         throws IOException
    +
    +
    +
    +
    +
    + +
    Throws: +
    IOException
    +
    +
    +
    + +

    +getFirmwareVersion

    +
    +public FirmwareInfo getFirmwareVersion()
    +                                throws IOException
    +
    +
    +
    +
    +
    + +
    Throws: +
    IOException
    +
    +
    +
    + +

    +deleteUserFlash

    +
    +public byte deleteUserFlash()
    +                     throws IOException
    +
    +
    Deletes user flash memory (not including system modules). +

    +

    +
    +
    +
    + +
    Returns:
    0 for success +
    Throws: +
    IOException
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTProtocol.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTProtocol.html new file mode 100644 index 0000000..b8449b4 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTProtocol.html @@ -0,0 +1,1612 @@ + + + + + + +NXTProtocol (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt.comm +
    +Interface NXTProtocol

    +
    +
    All Known Implementing Classes:
    NXTCommand, RemoteBattery, RemoteMotorPort, RemoteSensorPort
    +
    +
    +
    +
    public interface NXTProtocol
    + + +

    +LCP constants. +

    + +

    +


    + +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Field Summary
    +static byteANGLE + +
    +           
    +static byteANGLESTEPSMODE + +
    +           
    +static byteBOOLEANMODE + +
    +           
    +static byteBOOT + +
    +           
    +static byteBRAKE + +
    +          Use run/brake instead of run/float in PWM
    +static byteCELSIUSMODE + +
    +           
    +static byteCLOSE + +
    +           
    +static byteCUSTOM + +
    +           
    +static byteDELETE + +
    +           
    +static byteDELETE_USER_FLASH + +
    +           
    +static byteDIRECT_COMMAND_NOREPLY + +
    +           
    +static byteDIRECT_COMMAND_REPLY + +
    +           
    +static byteFAHRENHEITMODE + +
    +           
    +static byteFIND_FIRST + +
    +           
    +static byteFIND_NEXT + +
    +           
    +static byteGET_BATTERY_LEVEL + +
    +           
    +static byteGET_CURRENT_PROGRAM_NAME + +
    +           
    +static byteGET_DEVICE_INFO + +
    +           
    +static byteGET_FIRMWARE_VERSION + +
    +           
    +static byteGET_INPUT_VALUES + +
    +           
    +static byteGET_OUTPUT_STATE + +
    +           
    +static byteHIGH_SPEED_BUFFER + +
    +           
    +static byteKEEP_ALIVE + +
    +           
    +static byteLIGHT_ACTIVE + +
    +           
    +static byteLIGHT_INACTIVE + +
    +           
    +static byteLOWSPEED + +
    +           
    +static byteLOWSPEED_9V + +
    +           
    +static byteLS_GET_STATUS + +
    +           
    +static byteLS_READ + +
    +           
    +static byteLS_WRITE + +
    +           
    +static byteMESSAGE_READ + +
    +           
    +static byteMESSAGE_WRITE + +
    +           
    +static byteMODEMASK + +
    +           
    +static byteMOTOR_RUN_STATE_IDLE + +
    +          Output will be idle
    +static byteMOTOR_RUN_STATE_RAMPDOWN + +
    +          Output will ramp-down
    +static byteMOTOR_RUN_STATE_RAMPUP + +
    +          Output will ramp-up
    +static byteMOTOR_RUN_STATE_RUNNING + +
    +          Output will be running
    +static byteMOTORON + +
    +          Turn on the specified motor
    +static byteNO_OF_SENSOR_TYPES + +
    +           
    +static byteNO_SENSOR + +
    +           
    +static byteOPEN_APPEND_DATA + +
    +           
    +static byteOPEN_READ + +
    +           
    +static byteOPEN_READ_LINEAR + +
    +           
    +static byteOPEN_WRITE + +
    +           
    +static byteOPEN_WRITE_DATA + +
    +           
    +static byteOPEN_WRITE_LINEAR + +
    +           
    +static bytePCTFULLSCALEMODE + +
    +           
    +static bytePERIODCOUNTERMODE + +
    +           
    +static bytePLAY_SOUND_FILE + +
    +           
    +static bytePLAY_TONE + +
    +           
    +static bytePOLL + +
    +           
    +static bytePOLL_BUFFER + +
    +           
    +static bytePOLL_LENGTH + +
    +           
    +static byteRAWMODE + +
    +           
    +static byteREAD + +
    +           
    +static byteREFLECTION + +
    +           
    +static byteREGULATED + +
    +          Turns on the regulation
    +static byteREGULATION_MODE_IDLE + +
    +          No regulation will be enabled
    +static byteREGULATION_MODE_MOTOR_SPEED + +
    +          Power control will be enabled on specified output
    +static byteREGULATION_MODE_MOTOR_SYNC + +
    +          Synchronization will be enabled (Needs enabled on two output)
    +static byteREPLY_COMMAND + +
    +           
    +static byteRESET_MOTOR_POSITION + +
    +           
    +static byteRESET_SCALED_INPUT_VALUE + +
    +           
    +static byteSET_BRICK_NAME + +
    +           
    +static byteSET_INPUT_MODE + +
    +           
    +static byteSET_OUTPUT_STATE + +
    +           
    +static byteSLOPEMASK + +
    +           
    +static byteSOUND_DB + +
    +           
    +static byteSOUND_DBA + +
    +           
    +static byteSTART_PROGRAM + +
    +           
    +static byteSTOP_PROGRAM + +
    +           
    +static byteSTOP_SOUND_PLAYBACK + +
    +           
    +static byteSWITCH + +
    +           
    +static byteSYSTEM_COMMAND_NOREPLY + +
    +           
    +static byteSYSTEM_COMMAND_REPLY + +
    +           
    +static byteTEMPERATURE + +
    +           
    +static byteTRANSITIONCNTMODE + +
    +           
    +static byteWRITE + +
    +           
    +  +

    + + + + + + + + +
    +Field Detail
    + +

    +DIRECT_COMMAND_REPLY

    +
    +static final byte DIRECT_COMMAND_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +SYSTEM_COMMAND_REPLY

    +
    +static final byte SYSTEM_COMMAND_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +REPLY_COMMAND

    +
    +static final byte REPLY_COMMAND
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +DIRECT_COMMAND_NOREPLY

    +
    +static final byte DIRECT_COMMAND_NOREPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +SYSTEM_COMMAND_NOREPLY

    +
    +static final byte SYSTEM_COMMAND_NOREPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPEN_READ

    +
    +static final byte OPEN_READ
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPEN_WRITE

    +
    +static final byte OPEN_WRITE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +READ

    +
    +static final byte READ
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +WRITE

    +
    +static final byte WRITE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +CLOSE

    +
    +static final byte CLOSE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +DELETE

    +
    +static final byte DELETE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +FIND_FIRST

    +
    +static final byte FIND_FIRST
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +FIND_NEXT

    +
    +static final byte FIND_NEXT
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +GET_FIRMWARE_VERSION

    +
    +static final byte GET_FIRMWARE_VERSION
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPEN_WRITE_LINEAR

    +
    +static final byte OPEN_WRITE_LINEAR
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPEN_READ_LINEAR

    +
    +static final byte OPEN_READ_LINEAR
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPEN_WRITE_DATA

    +
    +static final byte OPEN_WRITE_DATA
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPEN_APPEND_DATA

    +
    +static final byte OPEN_APPEND_DATA
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +BOOT

    +
    +static final byte BOOT
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +SET_BRICK_NAME

    +
    +static final byte SET_BRICK_NAME
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +GET_DEVICE_INFO

    +
    +static final byte GET_DEVICE_INFO
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +DELETE_USER_FLASH

    +
    +static final byte DELETE_USER_FLASH
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +POLL_LENGTH

    +
    +static final byte POLL_LENGTH
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +POLL

    +
    +static final byte POLL
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +POLL_BUFFER

    +
    +static final byte POLL_BUFFER
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +HIGH_SPEED_BUFFER

    +
    +static final byte HIGH_SPEED_BUFFER
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +START_PROGRAM

    +
    +static final byte START_PROGRAM
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +STOP_PROGRAM

    +
    +static final byte STOP_PROGRAM
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +PLAY_SOUND_FILE

    +
    +static final byte PLAY_SOUND_FILE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +PLAY_TONE

    +
    +static final byte PLAY_TONE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +SET_OUTPUT_STATE

    +
    +static final byte SET_OUTPUT_STATE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +SET_INPUT_MODE

    +
    +static final byte SET_INPUT_MODE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +GET_OUTPUT_STATE

    +
    +static final byte GET_OUTPUT_STATE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +GET_INPUT_VALUES

    +
    +static final byte GET_INPUT_VALUES
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +RESET_SCALED_INPUT_VALUE

    +
    +static final byte RESET_SCALED_INPUT_VALUE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +MESSAGE_WRITE

    +
    +static final byte MESSAGE_WRITE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +RESET_MOTOR_POSITION

    +
    +static final byte RESET_MOTOR_POSITION
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +GET_BATTERY_LEVEL

    +
    +static final byte GET_BATTERY_LEVEL
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +STOP_SOUND_PLAYBACK

    +
    +static final byte STOP_SOUND_PLAYBACK
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +KEEP_ALIVE

    +
    +static final byte KEEP_ALIVE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +LS_GET_STATUS

    +
    +static final byte LS_GET_STATUS
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +LS_WRITE

    +
    +static final byte LS_WRITE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +LS_READ

    +
    +static final byte LS_READ
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +GET_CURRENT_PROGRAM_NAME

    +
    +static final byte GET_CURRENT_PROGRAM_NAME
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +MESSAGE_READ

    +
    +static final byte MESSAGE_READ
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +MOTORON

    +
    +static final byte MOTORON
    +
    +
    Turn on the specified motor +

    +

    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +BRAKE

    +
    +static final byte BRAKE
    +
    +
    Use run/brake instead of run/float in PWM +

    +

    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +REGULATED

    +
    +static final byte REGULATED
    +
    +
    Turns on the regulation +

    +

    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +REGULATION_MODE_IDLE

    +
    +static final byte REGULATION_MODE_IDLE
    +
    +
    No regulation will be enabled +

    +

    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +REGULATION_MODE_MOTOR_SPEED

    +
    +static final byte REGULATION_MODE_MOTOR_SPEED
    +
    +
    Power control will be enabled on specified output +

    +

    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +REGULATION_MODE_MOTOR_SYNC

    +
    +static final byte REGULATION_MODE_MOTOR_SYNC
    +
    +
    Synchronization will be enabled (Needs enabled on two output) +

    +

    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +MOTOR_RUN_STATE_IDLE

    +
    +static final byte MOTOR_RUN_STATE_IDLE
    +
    +
    Output will be idle +

    +

    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +MOTOR_RUN_STATE_RAMPUP

    +
    +static final byte MOTOR_RUN_STATE_RAMPUP
    +
    +
    Output will ramp-up +

    +

    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +MOTOR_RUN_STATE_RUNNING

    +
    +static final byte MOTOR_RUN_STATE_RUNNING
    +
    +
    Output will be running +

    +

    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +MOTOR_RUN_STATE_RAMPDOWN

    +
    +static final byte MOTOR_RUN_STATE_RAMPDOWN
    +
    +
    Output will ramp-down +

    +

    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +NO_SENSOR

    +
    +static final byte NO_SENSOR
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +SWITCH

    +
    +static final byte SWITCH
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +TEMPERATURE

    +
    +static final byte TEMPERATURE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +REFLECTION

    +
    +static final byte REFLECTION
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +ANGLE

    +
    +static final byte ANGLE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +LIGHT_ACTIVE

    +
    +static final byte LIGHT_ACTIVE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +LIGHT_INACTIVE

    +
    +static final byte LIGHT_INACTIVE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +SOUND_DB

    +
    +static final byte SOUND_DB
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +SOUND_DBA

    +
    +static final byte SOUND_DBA
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +CUSTOM

    +
    +static final byte CUSTOM
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +LOWSPEED

    +
    +static final byte LOWSPEED
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +LOWSPEED_9V

    +
    +static final byte LOWSPEED_9V
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +NO_OF_SENSOR_TYPES

    +
    +static final byte NO_OF_SENSOR_TYPES
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +RAWMODE

    +
    +static final byte RAWMODE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +BOOLEANMODE

    +
    +static final byte BOOLEANMODE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +TRANSITIONCNTMODE

    +
    +static final byte TRANSITIONCNTMODE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +PERIODCOUNTERMODE

    +
    +static final byte PERIODCOUNTERMODE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +PCTFULLSCALEMODE

    +
    +static final byte PCTFULLSCALEMODE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +CELSIUSMODE

    +
    +static final byte CELSIUSMODE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +FAHRENHEITMODE

    +
    +static final byte FAHRENHEITMODE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +ANGLESTEPSMODE

    +
    +static final byte ANGLESTEPSMODE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +SLOPEMASK

    +
    +static final byte SLOPEMASK
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +MODEMASK

    +
    +static final byte MODEMASK
    +
    +
    +
    See Also:
    Constant Field Values
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/NXTServerSocket.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTServerSocket.html similarity index 57% rename from nxtOSEK/lejos_nxj/docs/apidocs/NXTServerSocket.html rename to nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTServerSocket.html index 66b6e77..c44e455 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/NXTServerSocket.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTServerSocket.html @@ -2,14 +2,14 @@ - + NXTServerSocket (leJOS NXT API documentation) - + - + @@ -83,17 +83,25 @@ DETAIL: FIELD | CONSTR |&n

    + +lejos.nxt.comm +
    Class NXTServerSocket

    -java.lang.Object
    -  extended by NXTServerSocket
    +java.lang.Object
    +  extended by lejos.nxt.comm.NXTServerSocket
     

    -
    public class NXTServerSocket
    extends Object
    +
    public class NXTServerSocket
    extends Object

    +Communicates with a ServerProxy on the PC to provide a + ServerSocket interface applications on the NXT. +

    + +


    @@ -107,15 +115,15 @@ Class NXTServerSocket Constructor Summary -NXTServerSocket(int port, - BTConnection btc) +NXTServerSocket(int port, + BTConnection btc)
              Constructor. -NXTServerSocket(int port, - USBConnection usbc) +NXTServerSocket(int port, + USBConnection usbc)
              Constructor. @@ -132,8 +140,8 @@ Class NXTServerSocket - NXTSocket -accept() + NXTSocket +accept()
              Waits untill there is a socket connection available. @@ -142,10 +150,10 @@ Class NXTServerSocket   - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, waitequals, getClass, hashCode, notify, notifyAll, toString, wait, wait
      @@ -165,15 +173,15 @@ Class NXTServerSocket NXTServerSocket

     public NXTServerSocket(int port,
    -                       BTConnection btc)
    -                throws IOException
    + BTConnection btc) + throws IOException
    Constructor. Creates a new Server Socket over an open bluetooth connection

    Parameters:
    port - The port to listen on
    btc - The bluetooth connection to open
    Throws: -
    IOException
    +
    IOException

    @@ -181,15 +189,15 @@ public NXTServerSocket(int port, NXTServerSocket
     public NXTServerSocket(int port,
    -                       USBConnection usbc)
    -                throws IOException
    + USBConnection usbc) + throws IOException
    Constructor. Creates a new Server Socket over an open usb connection

    Parameters:
    port - The port to listen on
    usbc - The usb connection to open
    Throws: -
    IOException
    +
    IOException
    @@ -205,8 +213,8 @@ public NXTServerSocket(int port,

    accept

    -public NXTSocket accept()
    -                 throws IOException
    +public NXTSocket accept() + throws IOException
    Waits untill there is a socket connection available. When this becomes true a new NXTSocket is returned @@ -215,7 +223,7 @@ public N
    Returns:
    NXTSocket
    Throws: -
    IOException
    +
    IOException
    @@ -231,13 +239,13 @@ public N - + - - - + + +
    @@ -248,20 +256,20 @@ public N - PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS
    - FRAMES   + FRAMES    NO FRAMES     diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTSocket.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTSocket.html index 65e4194..4392df0 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTSocket.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/NXTSocket.html @@ -2,7 +2,7 @@ - + NXTSocket (leJOS NXT API documentation) @@ -51,7 +51,7 @@ function windowTitle() PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   @@ -378,7 +378,7 @@ public Inpu PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USB.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USB.html index 4a61b9c..78a2bc4 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USB.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USB.html @@ -2,7 +2,7 @@ - + USB (leJOS NXT API documentation) @@ -97,6 +97,14 @@ Class USB

    +Low-level USB access. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +

    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USBConnection.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USBConnection.html index d563b0d..a94d465 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USBConnection.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USBConnection.html @@ -2,7 +2,7 @@ - + USBConnection (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USBInputStream.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USBInputStream.html index e9ab693..b97ee76 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USBInputStream.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USBInputStream.html @@ -2,7 +2,7 @@ - + USBInputStream (leJOS NXT API documentation) @@ -98,6 +98,14 @@ Class USBInputStream

    +Implements an InputStream over USB. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +

    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USBOutputStream.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USBOutputStream.html index b3bb43a..31acbc9 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USBOutputStream.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/USBOutputStream.html @@ -2,7 +2,7 @@ - + USBOutputStream (leJOS NXT API documentation) @@ -98,6 +98,14 @@ Class USBOutputStream

    +Implements an OutputStream over USB. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +

    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/package-frame.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/package-frame.html index e0dd4bb..e5b117d 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/package-frame.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/package-frame.html @@ -2,7 +2,7 @@ - + lejos.nxt.comm (leJOS NXT API documentation) @@ -20,6 +20,17 @@ lejos.nxt.comm (leJOS NXT API documentation) + +
    +Interfaces  + +
    +NXTProtocol
    + + + + + + NEXT PACKAGENEXT PACKAGENEXTNEXT +SensorPortListener +
    +Tachometer +
    +TachoMotorPort
    Classes 
    @@ -33,8 +44,24 @@ Classes
     
    BTRemoteDevice
    +Debug +
    +DeviceInfo +
    +FirmwareInfo +
    +InputValues +
    LCP
    +LCPBTResponder +
    +NXTComm +
    +NXTCommand +
    +NXTServerSocket +
    NXTSocket
    USB diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/package-summary.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/package-summary.html index 6555734..94f134f 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/package-summary.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/comm/package-summary.html @@ -2,7 +2,7 @@ - + lejos.nxt.comm (leJOS NXT API documentation) @@ -52,7 +52,7 @@ function windowTitle()
    @@ -40,6 +54,8 @@ Interfaces
      Classes
     
    +BasicMotor +
    Battery
    Button @@ -48,12 +64,14 @@ Classes
     
    CompassSensor
    -Datalogger -
    Flash
    +GyroSensor +
    I2CSensor
    +IRSeeker +
    LCD
    LightSensor @@ -62,12 +80,22 @@ Classes
     
    MotorPort
    +NXTCam +
    Poll
    RCXLightSensor
    +RCXLink +
    RCXMotor
    +RCXMotorMultiplexer +
    +RCXPlexedMotorPort +
    +RCXRemoteMotorPort +
    SensorPort
    Sound diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/package-summary.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/package-summary.html index 31f1774..ff766a6 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/package-summary.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/package-summary.html @@ -2,7 +2,7 @@ - + lejos.nxt (leJOS NXT API documentation) @@ -91,10 +91,32 @@ Access to NXT sensors, motors, etc. Interface Summary +ADSensorPort +An abstraction for a port that supports Analog/Digital sensors. + + +BasicMotorPort +An abstraction for a motor port that supports RCX + type motors, but not NXT motors with tachometers. + + +BasicSensorPort +An abstraction for a sensor port that supports + setting and retrieving types and modes of sensors. + + ButtonListener Abstraction for receiver of button events. +I2CPort +Abstraction for a port that supports I2C sensors. + + +LegacySensorPort +Abstraction for a port that supports legacy RCX sensors. + + ListenerCaller Interface for calling calling lejos listeners. @@ -108,6 +130,14 @@ Access to NXT sensors, motors, etc. Analogue/Digital sensor (such as a Touch, Light or Sound sensor) on a SensorPort. + +Tachometer +Abstraction for the tachometer built into NXT motors. + + +TachoMotorPort +Abstraction for a motor port that supports NXT motors with tachometers. +   @@ -119,6 +149,11 @@ Access to NXT sensors, motors, etc. Class Summary +BasicMotor +An abstraction for a motor without a tachometer, + such as an RCX motor. + + Battery Provides access to Battery. @@ -136,21 +171,24 @@ Access to NXT sensors, motors, etc. Abstraction for a HiTechnic or Mindsensors compass. -Datalogger -Datalogger class; stores float values then then transmits via bluetooth or usb
    - works with DataViewer in pctools. +Flash +Read and write access to flash memory in pages. -Flash -  +GyroSensor +Support the HiTechnic Gyro sensor - untested. I2CSensor Abstract class that implements common methods for all I2C sensors. +IRSeeker +HiTechnic IRSeeker sensor - untested. + + LCD -  +Text and graphics output to the LCD display. LightSensor @@ -165,6 +203,10 @@ Access to NXT sensors, motors, etc. Abstraction for a NXT output port. +NXTCam +Mindsensors NXTCam. + + Poll Provides blocking access to events from the NXT. @@ -173,10 +215,26 @@ Access to NXT sensors, motors, etc. Abstraction for an RCX light sensor. +RCXLink +Supports Mindsensors NRLink RCX IR adapter. + + RCXMotor Abstraction for an RCX motor. +RCXMotorMultiplexer +Supports the mindsensors RCX Motor Multiplexer + + +RCXPlexedMotorPort +Supports a motor connected to the Mindsensors RCX Motor Multiplexer + + +RCXRemoteMotorPort +Supports a motor connected to a remote RCX via a mindsensord NRLink adapter + + SensorPort Abstraction for a NXT input port. @@ -194,7 +252,7 @@ Access to NXT sensors, motors, etc. TiltSensor -Abstraction for a Mindsensors (and possibly HiTechnic) +Abstraction for a Mindsensors acceleration (tilt) sensor. diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/package-tree.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/package-tree.html index 82d6aa3..72538c6 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/package-tree.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/package-tree.html @@ -2,7 +2,7 @@ - + lejos.nxt Class Hierarchy (leJOS NXT API documentation) @@ -87,14 +87,20 @@ Class Hierarchy

    @@ -103,7 +109,19 @@ Class Hierarchy Interface Hierarchy +
  • lejos.nxt.BasicMotorPort +
  • lejos.nxt.ButtonListener
  • lejos.nxt.ListenerCaller
  • lejos.nxt.SensorConstants +
  • lejos.nxt.SensorPortListener
  • lejos.nxt.Tachometer +
    diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteBattery.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteBattery.html new file mode 100644 index 0000000..ab86609 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteBattery.html @@ -0,0 +1,303 @@ + + + + + + +RemoteBattery (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt.remote +
    +Class RemoteBattery

    +
    +java.lang.Object
    +  extended by lejos.nxt.remote.RemoteBattery
    +
    +
    +
    All Implemented Interfaces:
    NXTProtocol
    +
    +
    +
    +
    public class RemoteBattery
    extends Object
    implements NXTProtocol
    + + +

    +Battery readings from a remote NXT. +

    + +

    +


    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from interface lejos.nxt.comm.NXTProtocol
    ANGLE, ANGLESTEPSMODE, BOOLEANMODE, BOOT, BRAKE, CELSIUSMODE, CLOSE, CUSTOM, DELETE, DELETE_USER_FLASH, DIRECT_COMMAND_NOREPLY, DIRECT_COMMAND_REPLY, FAHRENHEITMODE, FIND_FIRST, FIND_NEXT, GET_BATTERY_LEVEL, GET_CURRENT_PROGRAM_NAME, GET_DEVICE_INFO, GET_FIRMWARE_VERSION, GET_INPUT_VALUES, GET_OUTPUT_STATE, HIGH_SPEED_BUFFER, KEEP_ALIVE, LIGHT_ACTIVE, LIGHT_INACTIVE, LOWSPEED, LOWSPEED_9V, LS_GET_STATUS, LS_READ, LS_WRITE, MESSAGE_READ, MESSAGE_WRITE, MODEMASK, MOTOR_RUN_STATE_IDLE, MOTOR_RUN_STATE_RAMPDOWN, MOTOR_RUN_STATE_RAMPUP, MOTOR_RUN_STATE_RUNNING, MOTORON, NO_OF_SENSOR_TYPES, NO_SENSOR, OPEN_APPEND_DATA, OPEN_READ, OPEN_READ_LINEAR, OPEN_WRITE, OPEN_WRITE_DATA, OPEN_WRITE_LINEAR, PCTFULLSCALEMODE, PERIODCOUNTERMODE, PLAY_SOUND_FILE, PLAY_TONE, POLL, POLL_BUFFER, POLL_LENGTH, RAWMODE, READ, REFLECTION, REGULATED, REGULATION_MODE_IDLE, REGULATION_MODE_MOTOR_SPEED, REGULATION_MODE_MOTOR_SYNC, REPLY_COMMAND, RESET_MOTOR_POSITION, RESET_SCALED_INPUT_VALUE, SET_BRICK_NAME, SET_INPUT_MODE, SET_OUTPUT_STATE, SLOPEMASK, SOUND_DB, SOUND_DBA, START_PROGRAM, STOP_PROGRAM, STOP_SOUND_PLAYBACK, SWITCH, SYSTEM_COMMAND_NOREPLY, SYSTEM_COMMAND_REPLY, TEMPERATURE, TRANSITIONCNTMODE, WRITE
    +  + + + + + + + + + + +
    +Constructor Summary
    RemoteBattery(NXTCommand nxtCommand) + +
    +           
    +  + + + + + + + + + + + + + + + +
    +Method Summary
    + floatgetVoltage() + +
    +          The NXT uses 6 batteries of 1.5 V each.
    + intgetVoltageMilliVolt() + +
    +          The NXT uses 6 batteries of 1500 mV each.
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +RemoteBattery

    +
    +public RemoteBattery(NXTCommand nxtCommand)
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +getVoltageMilliVolt

    +
    +public int getVoltageMilliVolt()
    +
    +
    The NXT uses 6 batteries of 1500 mV each. +

    +

    +
    +
    +
    + +
    Returns:
    Battery voltage in mV. ~9000 = full.
    +
    +
    +
    + +

    +getVoltage

    +
    +public float getVoltage()
    +
    +
    The NXT uses 6 batteries of 1.5 V each. +

    +

    +
    +
    +
    + +
    Returns:
    Battery voltage in Volt. ~9V = full.
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteMotorPort.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteMotorPort.html new file mode 100644 index 0000000..6088dc9 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteMotorPort.html @@ -0,0 +1,358 @@ + + + + + + +RemoteMotorPort (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt.remote +
    +Class RemoteMotorPort

    +
    +java.lang.Object
    +  extended by lejos.nxt.remote.RemoteMotorPort
    +
    +
    +
    All Implemented Interfaces:
    BasicMotorPort, NXTProtocol, Tachometer, TachoMotorPort
    +
    +
    +
    +
    public class RemoteMotorPort
    extends Object
    implements NXTProtocol, TachoMotorPort
    + + +

    +Supports a motor connected to a remote NXT +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from interface lejos.nxt.comm.NXTProtocol
    ANGLE, ANGLESTEPSMODE, BOOLEANMODE, BOOT, BRAKE, CELSIUSMODE, CLOSE, CUSTOM, DELETE, DELETE_USER_FLASH, DIRECT_COMMAND_NOREPLY, DIRECT_COMMAND_REPLY, FAHRENHEITMODE, FIND_FIRST, FIND_NEXT, GET_BATTERY_LEVEL, GET_CURRENT_PROGRAM_NAME, GET_DEVICE_INFO, GET_FIRMWARE_VERSION, GET_INPUT_VALUES, GET_OUTPUT_STATE, HIGH_SPEED_BUFFER, KEEP_ALIVE, LIGHT_ACTIVE, LIGHT_INACTIVE, LOWSPEED, LOWSPEED_9V, LS_GET_STATUS, LS_READ, LS_WRITE, MESSAGE_READ, MESSAGE_WRITE, MODEMASK, MOTOR_RUN_STATE_IDLE, MOTOR_RUN_STATE_RAMPDOWN, MOTOR_RUN_STATE_RAMPUP, MOTOR_RUN_STATE_RUNNING, MOTORON, NO_OF_SENSOR_TYPES, NO_SENSOR, OPEN_APPEND_DATA, OPEN_READ, OPEN_READ_LINEAR, OPEN_WRITE, OPEN_WRITE_DATA, OPEN_WRITE_LINEAR, PCTFULLSCALEMODE, PERIODCOUNTERMODE, PLAY_SOUND_FILE, PLAY_TONE, POLL, POLL_BUFFER, POLL_LENGTH, RAWMODE, READ, REFLECTION, REGULATED, REGULATION_MODE_IDLE, REGULATION_MODE_MOTOR_SPEED, REGULATION_MODE_MOTOR_SYNC, REPLY_COMMAND, RESET_MOTOR_POSITION, RESET_SCALED_INPUT_VALUE, SET_BRICK_NAME, SET_INPUT_MODE, SET_OUTPUT_STATE, SLOPEMASK, SOUND_DB, SOUND_DBA, START_PROGRAM, STOP_PROGRAM, STOP_SOUND_PLAYBACK, SWITCH, SYSTEM_COMMAND_NOREPLY, SYSTEM_COMMAND_REPLY, TEMPERATURE, TRANSITIONCNTMODE, WRITE
    + + + + + + + +
    Fields inherited from interface lejos.nxt.BasicMotorPort
    PWM_BRAKE, PWM_FLOAT
    +  + + + + + + + + + + +
    +Constructor Summary
    RemoteMotorPort(NXTCommand nxtCommand, + int id) + +
    +           
    +  + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + voidcontrolMotor(int power, + int mode) + +
    +           
    + intgetTachoCount() + +
    +           
    + voidresetTachoCount() + +
    +           
    + voidsetPWMMode(int mode) + +
    +           
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +RemoteMotorPort

    +
    +public RemoteMotorPort(NXTCommand nxtCommand,
    +                       int id)
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +controlMotor

    +
    +public void controlMotor(int power,
    +                         int mode)
    +
    +
    +
    Specified by:
    controlMotor in interface BasicMotorPort
    +
    +
    +
    +
    +
    +
    + +

    +getTachoCount

    +
    +public int getTachoCount()
    +
    +
    +
    Specified by:
    getTachoCount in interface Tachometer
    +
    +
    +
    +
    +
    +
    + +

    +resetTachoCount

    +
    +public void resetTachoCount()
    +
    +
    +
    Specified by:
    resetTachoCount in interface Tachometer
    +
    +
    +
    +
    +
    +
    + +

    +setPWMMode

    +
    +public void setPWMMode(int mode)
    +
    +
    +
    Specified by:
    setPWMMode in interface BasicMotorPort
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteNXT.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteNXT.html new file mode 100644 index 0000000..277b651 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteNXT.html @@ -0,0 +1,531 @@ + + + + + + +RemoteNXT (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt.remote +
    +Class RemoteNXT

    +
    +java.lang.Object
    +  extended by lejos.nxt.remote.RemoteNXT
    +
    +
    +
    +
    public class RemoteNXT
    extends Object
    + + +

    +Provides an API similar to the leJOS API for accessing + motors, sensors etc. on a remote NXT accessed over + Bluetooth using LCP. +

    + +

    +


    + +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Field Summary
    + MotorA + +
    +           
    + MotorB + +
    +           
    + RemoteBatteryBattery + +
    +           
    + MotorC + +
    +           
    + RemoteSensorPortS1 + +
    +           
    + RemoteSensorPortS2 + +
    +           
    + RemoteSensorPortS3 + +
    +           
    + RemoteSensorPortS4 + +
    +           
    +  + + + + + + + + + + +
    +Constructor Summary
    RemoteNXT(String name) + +
    +           
    +  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + bytedeleteFlashMemory() + +
    +          Deletes all user programs and data in FLASH memory
    + StringgetBluetoothAddress() + +
    +          Get the bluetooth address of the remorte device
    + StringgetBrickName() + +
    +          Get the name of the remote brick
    + StringgetFirmwareVersion() + +
    +          Return Lego firmware vserion
    + intgetFlashMemory() + +
    +           
    + StringgetProtocolVersion() + +
    +          Return LCP protocol version
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Field Detail
    + +

    +A

    +
    +public Motor A
    +
    +
    +
    +
    +
    + +

    +B

    +
    +public Motor B
    +
    +
    +
    +
    +
    + +

    +C

    +
    +public Motor C
    +
    +
    +
    +
    +
    + +

    +Battery

    +
    +public RemoteBattery Battery
    +
    +
    +
    +
    +
    + +

    +S1

    +
    +public RemoteSensorPort S1
    +
    +
    +
    +
    +
    + +

    +S2

    +
    +public RemoteSensorPort S2
    +
    +
    +
    +
    +
    + +

    +S3

    +
    +public RemoteSensorPort S3
    +
    +
    +
    +
    +
    + +

    +S4

    +
    +public RemoteSensorPort S4
    +
    +
    +
    +
    + + + + + + + + +
    +Constructor Detail
    + +

    +RemoteNXT

    +
    +public RemoteNXT(String name)
    +          throws IOException
    +
    +
    + +
    Throws: +
    IOException
    +
    + + + + + + + + +
    +Method Detail
    + +

    +getBrickName

    +
    +public String getBrickName()
    +
    +
    Get the name of the remote brick +

    +

    + +
    Returns:
    name of remote brick
    +
    +
    +
    + +

    +getBluetoothAddress

    +
    +public String getBluetoothAddress()
    +
    +
    Get the bluetooth address of the remorte device +

    +

    + +
    Returns:
    address with hex pairs separated by colons
    +
    +
    +
    + +

    +getFlashMemory

    +
    +public int getFlashMemory()
    +
    +
    + +
    Returns:
    Free memory remaining in FLASH
    +
    +
    +
    + +

    +getFirmwareVersion

    +
    +public String getFirmwareVersion()
    +
    +
    Return Lego firmware vserion +

    +

    + +
    Returns:
    .
    +
    +
    +
    + +

    +getProtocolVersion

    +
    +public String getProtocolVersion()
    +
    +
    Return LCP protocol version +

    +

    + +
    Returns:
    .
    +
    +
    +
    + +

    +deleteFlashMemory

    +
    +public byte deleteFlashMemory()
    +
    +
    Deletes all user programs and data in FLASH memory +

    +

    + +
    Returns:
    zero for success
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteSensorPort.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteSensorPort.html new file mode 100644 index 0000000..1433a82 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/RemoteSensorPort.html @@ -0,0 +1,472 @@ + + + + + + +RemoteSensorPort (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.nxt.remote +
    +Class RemoteSensorPort

    +
    +java.lang.Object
    +  extended by lejos.nxt.remote.RemoteSensorPort
    +
    +
    +
    All Implemented Interfaces:
    ADSensorPort, BasicSensorPort, NXTProtocol, SensorConstants
    +
    +
    +
    +
    public class RemoteSensorPort
    extends Object
    implements NXTProtocol, ADSensorPort
    + + +

    +Emulates a Sensor Port using LCP +

    + +

    +


    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from interface lejos.nxt.comm.NXTProtocol
    ANGLE, ANGLESTEPSMODE, BOOLEANMODE, BOOT, BRAKE, CELSIUSMODE, CLOSE, CUSTOM, DELETE, DELETE_USER_FLASH, DIRECT_COMMAND_NOREPLY, DIRECT_COMMAND_REPLY, FAHRENHEITMODE, FIND_FIRST, FIND_NEXT, GET_BATTERY_LEVEL, GET_CURRENT_PROGRAM_NAME, GET_DEVICE_INFO, GET_FIRMWARE_VERSION, GET_INPUT_VALUES, GET_OUTPUT_STATE, HIGH_SPEED_BUFFER, KEEP_ALIVE, LIGHT_ACTIVE, LIGHT_INACTIVE, LOWSPEED, LOWSPEED_9V, LS_GET_STATUS, LS_READ, LS_WRITE, MESSAGE_READ, MESSAGE_WRITE, MODEMASK, MOTOR_RUN_STATE_IDLE, MOTOR_RUN_STATE_RAMPDOWN, MOTOR_RUN_STATE_RAMPUP, MOTOR_RUN_STATE_RUNNING, MOTORON, NO_OF_SENSOR_TYPES, NO_SENSOR, OPEN_APPEND_DATA, OPEN_READ, OPEN_READ_LINEAR, OPEN_WRITE, OPEN_WRITE_DATA, OPEN_WRITE_LINEAR, PCTFULLSCALEMODE, PERIODCOUNTERMODE, PLAY_SOUND_FILE, PLAY_TONE, POLL, POLL_BUFFER, POLL_LENGTH, RAWMODE, READ, REFLECTION, REGULATED, REGULATION_MODE_IDLE, REGULATION_MODE_MOTOR_SPEED, REGULATION_MODE_MOTOR_SYNC, REPLY_COMMAND, RESET_MOTOR_POSITION, RESET_SCALED_INPUT_VALUE, SET_BRICK_NAME, SET_INPUT_MODE, SET_OUTPUT_STATE, SLOPEMASK, SOUND_DB, SOUND_DBA, START_PROGRAM, STOP_PROGRAM, STOP_SOUND_PLAYBACK, SWITCH, SYSTEM_COMMAND_NOREPLY, SYSTEM_COMMAND_REPLY, TEMPERATURE, TRANSITIONCNTMODE, WRITE
    + + + + + + + +
    Fields inherited from interface lejos.nxt.SensorConstants
    MODE_ANGLESTEP, MODE_BOOLEAN, MODE_CELSIUS, MODE_FARENHEIT, MODE_PCTFULLSCALE, MODE_PERIODCOUNTER, MODE_RAW, MODE_TRANSITIONCNT, TYPE_ANGLE, TYPE_CUSTOM, TYPE_LIGHT_ACTIVE, TYPE_LIGHT_INACTIVE, TYPE_LOWSPEED, TYPE_LOWSPEED_9V, TYPE_NO_SENSOR, TYPE_REFLECTION, TYPE_SOUND_DB, TYPE_SOUND_DBA, TYPE_SWITCH, TYPE_TEMPERATURE
    +  + + + + + + + + + + +
    +Constructor Summary
    RemoteSensorPort(NXTCommand nxtCommand, + int id) + +
    +           
    +  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + intgetId() + +
    +           
    + intgetMode() + +
    +           
    + intgetType() + +
    +           
    + booleanreadBooleanValue() + +
    +          Reads the boolean value of the sensor.
    + intreadRawValue() + +
    +          Reads the raw value of the sensor.
    + intreadValue() + +
    +          Returns value compatible with Lego firmware.
    + voidsetMode(int mode) + +
    +           
    + voidsetType(int type) + +
    +           
    + voidsetTypeAndMode(int type, + int mode) + +
    +           
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +RemoteSensorPort

    +
    +public RemoteSensorPort(NXTCommand nxtCommand,
    +                        int id)
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +getId

    +
    +public int getId()
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +

    +getType

    +
    +public int getType()
    +
    +
    +
    Specified by:
    getType in interface BasicSensorPort
    +
    +
    +
    +
    +
    +
    + +

    +getMode

    +
    +public int getMode()
    +
    +
    +
    Specified by:
    getMode in interface BasicSensorPort
    +
    +
    +
    +
    +
    +
    + +

    +setTypeAndMode

    +
    +public void setTypeAndMode(int type,
    +                           int mode)
    +
    +
    +
    Specified by:
    setTypeAndMode in interface BasicSensorPort
    +
    +
    +
    +
    +
    +
    + +

    +setType

    +
    +public void setType(int type)
    +
    +
    +
    Specified by:
    setType in interface BasicSensorPort
    +
    +
    +
    +
    +
    +
    + +

    +setMode

    +
    +public void setMode(int mode)
    +
    +
    +
    Specified by:
    setMode in interface BasicSensorPort
    +
    +
    +
    +
    +
    +
    + +

    +readBooleanValue

    +
    +public boolean readBooleanValue()
    +
    +
    Reads the boolean value of the sensor. +

    +

    +
    Specified by:
    readBooleanValue in interface ADSensorPort
    +
    +
    + +
    Returns:
    Boolean value of sensor.
    +
    +
    +
    + +

    +readRawValue

    +
    +public int readRawValue()
    +
    +
    Reads the raw value of the sensor. +

    +

    +
    Specified by:
    readRawValue in interface ADSensorPort
    +
    +
    + +
    Returns:
    Raw sensor value. Range is device dependent.
    +
    +
    +
    + +

    +readValue

    +
    +public int readValue()
    +
    +
    Returns value compatible with Lego firmware. +

    +

    +
    Specified by:
    readValue in interface ADSensorPort
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/package-frame.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/package-frame.html new file mode 100644 index 0000000..502f354 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/package-frame.html @@ -0,0 +1,38 @@ + + + + + + +lejos.nxt.remote (leJOS NXT API documentation) + + + + + + + + + + + +lejos.nxt.remote + + + + +
    +Classes  + +
    +RemoteBattery +
    +RemoteMotorPort +
    +RemoteNXT +
    +RemoteSensorPort
    + + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/package-summary.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/package-summary.html new file mode 100644 index 0000000..63e6b87 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/package-summary.html @@ -0,0 +1,180 @@ + + + + + + +lejos.nxt.remote (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    +

    +Package lejos.nxt.remote +

    +Remote NXT access over Bluetooth +

    +See: +
    +          Description +

    + + + + + + + + + + + + + + + + + + + + + +
    +Class Summary
    RemoteBatteryBattery readings from a remote NXT.
    RemoteMotorPortSupports a motor connected to a remote NXT
    RemoteNXTProvides an API similar to the leJOS API for accessing + motors, sensors etc.
    RemoteSensorPortEmulates a Sensor Port using LCP
    +  + +

    +

    +Package lejos.nxt.remote Description +

    + +

    +Remote NXT access over Bluetooth +

    + +

    +

    +
    +
    + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/package-tree.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/package-tree.html new file mode 100644 index 0000000..d81d365 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/remote/package-tree.html @@ -0,0 +1,150 @@ + + + + + + +lejos.nxt.remote Class Hierarchy (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    +
    +

    +Hierarchy For Package lejos.nxt.remote +

    +
    +
    +
    Package Hierarchies:
    All Packages
    +
    +

    +Class Hierarchy +

    + +
    + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/LLC.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/LLC.html new file mode 100644 index 0000000..efd8c26 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/LLC.html @@ -0,0 +1,438 @@ + + + + + + +LLC (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.rcxcomm +
    +Class LLC

    +
    +java.lang.Object
    +  extended by lejos.rcxcomm.LLC
    +
    +
    +
    +
    public class LLC
    extends Object
    + + +

    +Emulates RCX LLC class using the RCXLink class. +

    + +

    +


    + +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    +static RCXLinkgetLink() + +
    +          Return the RCXLink object associated with LLC
    +static voidinit() + +
    +          Initialize LLC an
    +static voidinit(SensorPort port) + +
    +          Initialize LLC and set port
    +static booleanisSendError() + +
    +          Return the error status of the last send
    +static booleanisSending() + +
    +          Indicate whether the last send is still active
    +static intread() + +
    +          read a single byte, if available
    +static intreceive() + +
    +          wait a little while for a byte to become available
    +static booleansendBytes(byte[] buf, + int len) + +
    +          Send a number of bytes and wait for completion of transmission
    +static voidsetPort(SensorPort port) + +
    +          Set sensor port
    +static voidsetRangeLong() + +
    +          Sets long range transmision.
    +static voidsetRangeShort() + +
    +          Sets short range transmision.
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Method Detail
    + +

    +init

    +
    +public static void init(SensorPort port)
    +
    +
    Initialize LLC and set port +

    +

    +
    +
    +
    +
    + +

    +init

    +
    +public static void init()
    +
    +
    Initialize LLC an +

    +

    +
    +
    +
    +
    + +

    +setPort

    +
    +public static void setPort(SensorPort port)
    +
    +
    Set sensor port +

    +

    +
    +
    +
    +
    + +

    +read

    +
    +public static int read()
    +
    +
    read a single byte, if available +

    +

    + +
    Returns:
    the byte read, or -1 if no byte is available
    +
    +
    +
    + +

    +isSending

    +
    +public static boolean isSending()
    +
    +
    Indicate whether the last send is still active +

    +

    + +
    Returns:
    true if still sending, else false
    +
    +
    +
    + +

    +isSendError

    +
    +public static boolean isSendError()
    +
    +
    Return the error status of the last send +

    +

    + +
    Returns:
    true if still sending, else false
    +
    +
    +
    + +

    +sendBytes

    +
    +public static boolean sendBytes(byte[] buf,
    +                                int len)
    +
    +
    Send a number of bytes and wait for completion of transmission +

    +

    +
    Parameters:
    buf - the array of bytes to send
    len - the number of bytes to send +
    Returns:
    true if the send is successful, else false
    +
    +
    +
    + +

    +receive

    +
    +public static int receive()
    +
    +
    wait a little while for a byte to become available +

    +

    + +
    Returns:
    the byte received, or -1 if no byte available
    +
    +
    +
    + +

    +setRangeLong

    +
    +public static void setRangeLong()
    +
    +
    Sets long range transmision. +

    +

    +
    +
    +
    +
    + +

    +setRangeShort

    +
    +public static void setRangeShort()
    +
    +
    Sets short range transmision. +

    +

    +
    +
    +
    +
    + +

    +getLink

    +
    +public static RCXLink getLink()
    +
    +
    Return the RCXLink object associated with LLC +

    +

    + +
    Returns:
    the RCXLink used
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/LLCHandler.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/LLCHandler.html new file mode 100644 index 0000000..f1f4646 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/LLCHandler.html @@ -0,0 +1,389 @@ + + + + + + +LLCHandler (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.rcxcomm +
    +Class LLCHandler

    +
    +java.lang.Object
    +  extended by lejos.rcxcomm.PacketHandler
    +      extended by lejos.rcxcomm.LLCHandler
    +
    +
    +
    +
    public class LLCHandler
    extends PacketHandler
    + + +

    +Packet handler than implement the LLC packet protocol. + Deals with packets and acks. + Supports independent streams of data in both directions. +

    + +

    +


    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from class lejos.rcxcomm.PacketHandler
    lowerHandler
    +  + + + + + + + + + + +
    +Constructor Summary
    LLCHandler(SensorPort port) + +
    +           
    +  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + booleanisAckAvailable() + +
    +          Check if an Ack is available
    + booleanisPacketAvailable() + +
    +          Check if a packet is available
    + intreceiveAck(byte[] buffer) + +
    +          Receive an ack.
    + intreceivePacket(byte[] buffer) + +
    +          Receive a packet.
    + booleansendPacket(byte[] packet, + int len) + +
    +          Send a packet.
    + + + + + + + +
    Methods inherited from class lejos.rcxcomm.PacketHandler
    close, getError, open, reset, setListen
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +LLCHandler

    +
    +public LLCHandler(SensorPort port)
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +sendPacket

    +
    +public boolean sendPacket(byte[] packet,
    +                          int len)
    +
    +
    Send a packet. +

    +

    +
    Specified by:
    sendPacket in class PacketHandler
    +
    +
    +
    Parameters:
    packet - the bytes to send
    len - the number of bytes to send +
    Returns:
    true if the send was successful, else false
    +
    +
    +
    + +

    +receivePacket

    +
    +public int receivePacket(byte[] buffer)
    +
    +
    Receive a packet. +

    +

    +
    Specified by:
    receivePacket in class PacketHandler
    +
    +
    +
    Parameters:
    buffer - the buffer to receive the packet into +
    Returns:
    the number of bytes received
    +
    +
    +
    + +

    +receiveAck

    +
    +public int receiveAck(byte[] buffer)
    +
    +
    Receive an ack. +

    +

    +
    Overrides:
    receiveAck in class PacketHandler
    +
    +
    +
    Parameters:
    buffer - the buffer to receive the ack into +
    Returns:
    the number of bytes received
    +
    +
    +
    + +

    +isPacketAvailable

    +
    +public boolean isPacketAvailable()
    +
    +
    Check if a packet is available +

    +

    +
    Specified by:
    isPacketAvailable in class PacketHandler
    +
    +
    + +
    Returns:
    true if a Packet is available, else false
    +
    +
    +
    + +

    +isAckAvailable

    +
    +public boolean isAckAvailable()
    +
    +
    Check if an Ack is available +

    +

    +
    Overrides:
    isAckAvailable in class PacketHandler
    +
    +
    + +
    Returns:
    true if ack is available, else false
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/LLCReliableHandler.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/LLCReliableHandler.html new file mode 100644 index 0000000..bb4aea0 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/LLCReliableHandler.html @@ -0,0 +1,362 @@ + + + + + + +LLCReliableHandler (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.rcxcomm +
    +Class LLCReliableHandler

    +
    +java.lang.Object
    +  extended by lejos.rcxcomm.PacketHandler
    +      extended by lejos.rcxcomm.LLCReliableHandler
    +
    +
    +
    +
    public class LLCReliableHandler
    extends PacketHandler
    + + +

    +A Packet handler that guarantees reliable delivery using checksums, + acks, and a single bit sequence number. +

    + +

    +


    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from class lejos.rcxcomm.PacketHandler
    lowerHandler
    +  + + + + + + + + + + +
    +Constructor Summary
    LLCReliableHandler(PacketHandler handler) + +
    +           
    +  + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + booleanisPacketAvailable() + +
    +          Check if a packet is available.
    + intreceivePacket(byte[] buffer) + +
    +          Receive a packet.
    + voidreset() + +
    +          Reset sequence numbers.
    + booleansendPacket(byte[] packet, + int len) + +
    +          Send a packet.
    + + + + + + + +
    Methods inherited from class lejos.rcxcomm.PacketHandler
    close, getError, isAckAvailable, open, receiveAck, setListen
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +LLCReliableHandler

    +
    +public LLCReliableHandler(PacketHandler handler)
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +reset

    +
    +public void reset()
    +
    +
    Reset sequence numbers. +

    +

    +
    Overrides:
    reset in class PacketHandler
    +
    +
    +
    +
    +
    +
    + +

    +sendPacket

    +
    +public boolean sendPacket(byte[] packet,
    +                          int len)
    +
    +
    Send a packet. +

    +

    +
    Specified by:
    sendPacket in class PacketHandler
    +
    +
    +
    Parameters:
    packet - the bytes to send
    len - the number of bytes to send +
    Returns:
    true if send successful, else false
    +
    +
    +
    + +

    +receivePacket

    +
    +public int receivePacket(byte[] buffer)
    +
    +
    Receive a packet. +

    +

    +
    Specified by:
    receivePacket in class PacketHandler
    +
    +
    +
    Parameters:
    buffer - the buffer to receive the packet into +
    Returns:
    the number of bytes received
    +
    +
    +
    + +

    +isPacketAvailable

    +
    +public boolean isPacketAvailable()
    +
    +
    Check if a packet is available. +

    +

    +
    Specified by:
    isPacketAvailable in class PacketHandler
    +
    +
    + +
    Returns:
    true if a packet is available, else false
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/Opcode.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/Opcode.html new file mode 100644 index 0000000..85df444 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/Opcode.html @@ -0,0 +1,2042 @@ + + + + + + +Opcode (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.rcxcomm +
    +Interface Opcode

    +
    +
    All Known Implementing Classes:
    RCXLink
    +
    +
    +
    +
    public interface Opcode
    + + +

    +Opcode constants. +

    + +

    +


    + +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Field Summary
    +static byteOPCODE_ABSOLUTE_VALUE + +
    +           
    +static byteOPCODE_ABSOLUTE_VALUE_REPLY + +
    +           
    +static byteOPCODE_ADD_TO_VARIABLE + +
    +           
    +static byteOPCODE_ADD_TO_VARIABLE_REPLY + +
    +           
    +static byteOPCODE_ALIVE + +
    +           
    +static byteOPCODE_ALIVE_REPLY + +
    +           
    +static byteOPCODE_AND_VARIABLE + +
    +           
    +static byteOPCODE_AND_VARIABLE_REPLY + +
    +           
    +static byteOPCODE_BRANCH_ALWAYS_FAR + +
    +           
    +static byteOPCODE_BRANCH_ALWAYS_NEAR + +
    +           
    +static byteOPCODE_CALL_SUBROUTINE + +
    +           
    +static byteOPCODE_CLEAR_MESSAGE + +
    +           
    +static byteOPCODE_CLEAR_SENSOR_VALUE + +
    +           
    +static byteOPCODE_CLEAR_SENSOR_VALUE_REPLY + +
    +           
    +static byteOPCODE_CLEAR_TIMER + +
    +           
    +static byteOPCODE_CLEAR_TIMER_REPLY + +
    +           
    +static byteOPCODE_DATALOG_NEXT + +
    +           
    +static byteOPCODE_DATALOG_NEXT_REPLY + +
    +           
    +static byteOPCODE_DECREMENT_LOOP_COUNTER_FAR + +
    +           
    +static byteOPCODE_DECREMENT_LOOP_COUNTER_NEAR + +
    +           
    +static byteOPCODE_DELETE_ALL_SUBROUTINES + +
    +           
    +static byteOPCODE_DELETE_ALL_SUBROUTINES_REPLY + +
    +           
    +static byteOPCODE_DELETE_ALL_TASKS + +
    +           
    +static byteOPCODE_DELETE_ALL_TASKS_REPLY + +
    +           
    +static byteOPCODE_DELETE_FIRMWARE + +
    +           
    +static byteOPCODE_DELETE_FIRMWARE_REPLY + +
    +           
    +static byteOPCODE_DELETE_SUBROUTINE + +
    +           
    +static byteOPCODE_DELETE_SUBROUTINE_REPLY + +
    +           
    +static byteOPCODE_DELETE_TASK + +
    +           
    +static byteOPCODE_DELETE_TASK_REPLY + +
    +           
    +static byteOPCODE_DIVIDE_VARIABLE + +
    +           
    +static byteOPCODE_DIVIDE_VARIABLE_REPLY + +
    +           
    +static byteOPCODE_GET_BATTERY_POWER + +
    +           
    +static byteOPCODE_GET_BATTERY_POWER_REPLY + +
    +           
    +static byteOPCODE_GET_MEMORY_MAP + +
    +           
    +static byteOPCODE_GET_MEMORY_MAP_REPLY + +
    +           
    +static byteOPCODE_GET_VALUE + +
    +           
    +static byteOPCODE_GET_VALUE_REPLY + +
    +           
    +static byteOPCODE_GET_VERSIONS + +
    +           
    +static byteOPCODE_GET_VERSIONS_REPLY + +
    +           
    +static byteOPCODE_MASK + +
    +           
    +static byteOPCODE_MULTIPLY_VARIABLE + +
    +           
    +static byteOPCODE_MULTIPLY_VARIABLE_REPLY + +
    +           
    +static byteOPCODE_OR_VARIABLE + +
    +           
    +static byteOPCODE_OR_VARIABLE_REPLY + +
    +           
    +static byteOPCODE_PLAY_SOUND_REPLY + +
    +           
    +static byteOPCODE_PLAY_TONE + +
    +           
    +static byteOPCODE_PLAY_TONE_REPLY + +
    +           
    +static byteOPCODE_POWER_OFF + +
    +           
    +static byteOPCODE_POWER_OFF_REPLY + +
    +           
    +static byteOPCODE_REMOTE_COMMAND + +
    +           
    +static byteOPCODE_SEND_MESSAGE + +
    +           
    +static byteOPCODE_SET_DATALOG_SIZE + +
    +           
    +static byteOPCODE_SET_DATALOG_SIZE_REPLY + +
    +           
    +static byteOPCODE_SET_DISPLAY + +
    +           
    +static byteOPCODE_SET_DISPLAY_REPLY + +
    +           
    +static byteOPCODE_SET_LOOP_COUNTER + +
    +           
    +static byteOPCODE_SET_MESSAGE + +
    +           
    +static byteOPCODE_SET_MOTOR_DIRECTION + +
    +           
    +static byteOPCODE_SET_MOTOR_DIRECTION_REPLY + +
    +           
    +static byteOPCODE_SET_MOTOR_ON_OFF + +
    +           
    +static byteOPCODE_SET_MOTOR_ON_OFF_REPLY + +
    +           
    +static byteOPCODE_SET_MOTOR_POWER + +
    +           
    +static byteOPCODE_SET_MOTOR_POWER_REPLY + +
    +           
    +static byteOPCODE_SET_POWER_DOWN_DELAY + +
    +           
    +static byteOPCODE_SET_POWER_DOWN_DELAY_REPLY + +
    +           
    +static byteOPCODE_SET_PROGRAM_NUMBER + +
    +           
    +static byteOPCODE_SET_PROGRAM_NUMBER_REPLY + +
    +           
    +static byteOPCODE_SET_SENSOR_MODE + +
    +           
    +static byteOPCODE_SET_SENSOR_MODE_REPLY + +
    +           
    +static byteOPCODE_SET_SENSOR_TYPE + +
    +           
    +static byteOPCODE_SET_SENSOR_TYPE_REPLY + +
    +           
    +static byteOPCODE_SET_TIME + +
    +           
    +static byteOPCODE_SET_TIME_REPLY + +
    +           
    +static byteOPCODE_SET_TRANSMITTER_RANGE + +
    +           
    +static byteOPCODE_SET_TRANSMITTER_RANGE_REPLY + +
    +           
    +static byteOPCODE_SET_VARIABLE + +
    +           
    +static byteOPCODE_SET_VARIABLE_REPLY + +
    +           
    +static byteOPCODE_SIGN_VARIABLE + +
    +           
    +static byteOPCODE_SIGN_VARIABLE_REPLY + +
    +           
    +static byteOPCODE_START_FIRMWARE_DOWNLOAD + +
    +           
    +static byteOPCODE_START_FIRMWARE_DOWNLOAD_REPLY + +
    +           
    +static byteOPCODE_START_SUBROUTINE_DOWNLOAD + +
    +           
    +static byteOPCODE_START_SUBROUTINE_DOWNLOAD_REPLY + +
    +           
    +static byteOPCODE_START_TASK + +
    +           
    +static byteOPCODE_START_TASK_DOWNLOAD + +
    +           
    +static byteOPCODE_START_TASK_DOWNLOAD_REPLY + +
    +           
    +static byteOPCODE_START_TASK_REPLY + +
    +           
    +static byteOPCODE_STOP_ALL_TASKS + +
    +           
    +static byteOPCODE_STOP_ALL_TASKS_REPLY + +
    +           
    +static byteOPCODE_STOP_TASK + +
    +           
    +static byteOPCODE_STOP_TASK_REPLY + +
    +           
    +static byteOPCODE_SUBTRACT_FROM_VARIABLE + +
    +           
    +static byteOPCODE_SUBTRACT_FROM_VARIABLE_REPLY + +
    +           
    +static byteOPCODE_TEST_AND_BRANCH_FAR + +
    +           
    +static byteOPCODE_TEST_AND_BRANCH_NEAR + +
    +           
    +static byteOPCODE_TRANSFER_DATA + +
    +           
    +static byteOPCODE_TRANSFER_DATA_REPLY + +
    +           
    +static byteOPCODE_UNLOCK_FIRMWARE + +
    +           
    +static byteOPCODE_UNLOCK_FIRMWARE_REPLY + +
    +           
    +static byteOPCODE_UPLOAD_DATALOG + +
    +           
    +static byteOPCODE_UPLOAD_DATALOG_REPLY + +
    +           
    +static byteOPCODE_WAIT + +
    +           
    +  +

    + + + + + + + + +
    +Field Detail
    + +

    +OPCODE_MASK

    +
    +static final byte OPCODE_MASK
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_ALIVE

    +
    +static final byte OPCODE_ALIVE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_GET_VALUE

    +
    +static final byte OPCODE_GET_VALUE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_MOTOR_POWER

    +
    +static final byte OPCODE_SET_MOTOR_POWER
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_VARIABLE

    +
    +static final byte OPCODE_SET_VARIABLE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_GET_VERSIONS

    +
    +static final byte OPCODE_GET_VERSIONS
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_MOTOR_DIRECTION_REPLY

    +
    +static final byte OPCODE_SET_MOTOR_DIRECTION_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_CALL_SUBROUTINE

    +
    +static final byte OPCODE_CALL_SUBROUTINE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_GET_MEMORY_MAP

    +
    +static final byte OPCODE_GET_MEMORY_MAP
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_MOTOR_ON_OFF

    +
    +static final byte OPCODE_SET_MOTOR_ON_OFF
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_TIME

    +
    +static final byte OPCODE_SET_TIME
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_PLAY_TONE

    +
    +static final byte OPCODE_PLAY_TONE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_ADD_TO_VARIABLE

    +
    +static final byte OPCODE_ADD_TO_VARIABLE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_START_TASK_DOWNLOAD

    +
    +static final byte OPCODE_START_TASK_DOWNLOAD
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_CLEAR_SENSOR_VALUE_REPLY

    +
    +static final byte OPCODE_CLEAR_SENSOR_VALUE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_BRANCH_ALWAYS_NEAR

    +
    +static final byte OPCODE_BRANCH_ALWAYS_NEAR
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_GET_BATTERY_POWER

    +
    +static final byte OPCODE_GET_BATTERY_POWER
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_TRANSMITTER_RANGE

    +
    +static final byte OPCODE_SET_TRANSMITTER_RANGE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_SENSOR_TYPE

    +
    +static final byte OPCODE_SET_SENSOR_TYPE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_DISPLAY

    +
    +static final byte OPCODE_SET_DISPLAY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SUBTRACT_FROM_VARIABLE

    +
    +static final byte OPCODE_SUBTRACT_FROM_VARIABLE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_START_SUBROUTINE_DOWNLOAD

    +
    +static final byte OPCODE_START_SUBROUTINE_DOWNLOAD
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DELETE_SUBROUTINE_REPLY

    +
    +static final byte OPCODE_DELETE_SUBROUTINE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DECREMENT_LOOP_COUNTER_NEAR

    +
    +static final byte OPCODE_DECREMENT_LOOP_COUNTER_NEAR
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DELETE_ALL_TASKS

    +
    +static final byte OPCODE_DELETE_ALL_TASKS
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_SENSOR_MODE

    +
    +static final byte OPCODE_SET_SENSOR_MODE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_WAIT

    +
    +static final byte OPCODE_WAIT
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DIVIDE_VARIABLE

    +
    +static final byte OPCODE_DIVIDE_VARIABLE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_TRANSFER_DATA

    +
    +static final byte OPCODE_TRANSFER_DATA
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_POWER_DOWN_DELAY_REPLY

    +
    +static final byte OPCODE_SET_POWER_DOWN_DELAY_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_STOP_ALL_TASKS

    +
    +static final byte OPCODE_STOP_ALL_TASKS
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_DATALOG_SIZE

    +
    +static final byte OPCODE_SET_DATALOG_SIZE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_UNLOCK_FIRMWARE_REPLY

    +
    +static final byte OPCODE_UNLOCK_FIRMWARE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_UPLOAD_DATALOG_REPLY

    +
    +static final byte OPCODE_UPLOAD_DATALOG_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_MULTIPLY_VARIABLE

    +
    +static final byte OPCODE_MULTIPLY_VARIABLE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_CLEAR_TIMER_REPLY

    +
    +static final byte OPCODE_CLEAR_TIMER_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_POWER_OFF

    +
    +static final byte OPCODE_POWER_OFF
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DELETE_TASK

    +
    +static final byte OPCODE_DELETE_TASK
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DATALOG_NEXT

    +
    +static final byte OPCODE_DATALOG_NEXT
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_OR_VARIABLE_REPLY

    +
    +static final byte OPCODE_OR_VARIABLE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SIGN_VARIABLE

    +
    +static final byte OPCODE_SIGN_VARIABLE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DELETE_FIRMWARE

    +
    +static final byte OPCODE_DELETE_FIRMWARE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_PROGRAM_NUMBER_REPLY

    +
    +static final byte OPCODE_SET_PROGRAM_NUMBER_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DELETE_ALL_SUBROUTINES

    +
    +static final byte OPCODE_DELETE_ALL_SUBROUTINES
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_START_TASK

    +
    +static final byte OPCODE_START_TASK
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_BRANCH_ALWAYS_FAR

    +
    +static final byte OPCODE_BRANCH_ALWAYS_FAR
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_AND_VARIABLE_REPLY

    +
    +static final byte OPCODE_AND_VARIABLE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_ABSOLUTE_VALUE

    +
    +static final byte OPCODE_ABSOLUTE_VALUE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_START_FIRMWARE_DOWNLOAD

    +
    +static final byte OPCODE_START_FIRMWARE_DOWNLOAD
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_STOP_TASK_REPLY

    +
    +static final byte OPCODE_STOP_TASK_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_STOP_TASK

    +
    +static final byte OPCODE_STOP_TASK
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_START_FIRMWARE_DOWNLOAD_REPLY

    +
    +static final byte OPCODE_START_FIRMWARE_DOWNLOAD_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_LOOP_COUNTER

    +
    +static final byte OPCODE_SET_LOOP_COUNTER
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_ABSOLUTE_VALUE_REPLY

    +
    +static final byte OPCODE_ABSOLUTE_VALUE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_AND_VARIABLE

    +
    +static final byte OPCODE_AND_VARIABLE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_TEST_AND_BRANCH_NEAR

    +
    +static final byte OPCODE_TEST_AND_BRANCH_NEAR
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_START_TASK_REPLY

    +
    +static final byte OPCODE_START_TASK_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DELETE_ALL_SUBROUTINES_REPLY

    +
    +static final byte OPCODE_DELETE_ALL_SUBROUTINES_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_CLEAR_MESSAGE

    +
    +static final byte OPCODE_CLEAR_MESSAGE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_PROGRAM_NUMBER

    +
    +static final byte OPCODE_SET_PROGRAM_NUMBER
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DELETE_FIRMWARE_REPLY

    +
    +static final byte OPCODE_DELETE_FIRMWARE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DECREMENT_LOOP_COUNTER_FAR

    +
    +static final byte OPCODE_DECREMENT_LOOP_COUNTER_FAR
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SIGN_VARIABLE_REPLY

    +
    +static final byte OPCODE_SIGN_VARIABLE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_OR_VARIABLE

    +
    +static final byte OPCODE_OR_VARIABLE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DATALOG_NEXT_REPLY

    +
    +static final byte OPCODE_DATALOG_NEXT_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_TEST_AND_BRANCH_FAR

    +
    +static final byte OPCODE_TEST_AND_BRANCH_FAR
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DELETE_TASK_REPLY

    +
    +static final byte OPCODE_DELETE_TASK_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_POWER_OFF_REPLY

    +
    +static final byte OPCODE_POWER_OFF_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_CLEAR_TIMER

    +
    +static final byte OPCODE_CLEAR_TIMER
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_MULTIPLY_VARIABLE_REPLY

    +
    +static final byte OPCODE_MULTIPLY_VARIABLE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_UPLOAD_DATALOG

    +
    +static final byte OPCODE_UPLOAD_DATALOG
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_UNLOCK_FIRMWARE

    +
    +static final byte OPCODE_UNLOCK_FIRMWARE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_DATALOG_SIZE_REPLY

    +
    +static final byte OPCODE_SET_DATALOG_SIZE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_PLAY_SOUND_REPLY

    +
    +static final byte OPCODE_PLAY_SOUND_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_STOP_ALL_TASKS_REPLY

    +
    +static final byte OPCODE_STOP_ALL_TASKS_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_POWER_DOWN_DELAY

    +
    +static final byte OPCODE_SET_POWER_DOWN_DELAY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_TRANSFER_DATA_REPLY

    +
    +static final byte OPCODE_TRANSFER_DATA_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SEND_MESSAGE

    +
    +static final byte OPCODE_SEND_MESSAGE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DIVIDE_VARIABLE_REPLY

    +
    +static final byte OPCODE_DIVIDE_VARIABLE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_SENSOR_MODE_REPLY

    +
    +static final byte OPCODE_SET_SENSOR_MODE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DELETE_ALL_TASKS_REPLY

    +
    +static final byte OPCODE_DELETE_ALL_TASKS_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_DELETE_SUBROUTINE

    +
    +static final byte OPCODE_DELETE_SUBROUTINE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_START_SUBROUTINE_DOWNLOAD_REPLY

    +
    +static final byte OPCODE_START_SUBROUTINE_DOWNLOAD_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SUBTRACT_FROM_VARIABLE_REPLY

    +
    +static final byte OPCODE_SUBTRACT_FROM_VARIABLE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_DISPLAY_REPLY

    +
    +static final byte OPCODE_SET_DISPLAY_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_SENSOR_TYPE_REPLY

    +
    +static final byte OPCODE_SET_SENSOR_TYPE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_TRANSMITTER_RANGE_REPLY

    +
    +static final byte OPCODE_SET_TRANSMITTER_RANGE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_GET_BATTERY_POWER_REPLY

    +
    +static final byte OPCODE_GET_BATTERY_POWER_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_CLEAR_SENSOR_VALUE

    +
    +static final byte OPCODE_CLEAR_SENSOR_VALUE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_START_TASK_DOWNLOAD_REPLY

    +
    +static final byte OPCODE_START_TASK_DOWNLOAD_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_REMOTE_COMMAND

    +
    +static final byte OPCODE_REMOTE_COMMAND
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_ADD_TO_VARIABLE_REPLY

    +
    +static final byte OPCODE_ADD_TO_VARIABLE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_PLAY_TONE_REPLY

    +
    +static final byte OPCODE_PLAY_TONE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_TIME_REPLY

    +
    +static final byte OPCODE_SET_TIME_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_MOTOR_ON_OFF_REPLY

    +
    +static final byte OPCODE_SET_MOTOR_ON_OFF_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_GET_MEMORY_MAP_REPLY

    +
    +static final byte OPCODE_GET_MEMORY_MAP_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_MOTOR_DIRECTION

    +
    +static final byte OPCODE_SET_MOTOR_DIRECTION
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_GET_VERSIONS_REPLY

    +
    +static final byte OPCODE_GET_VERSIONS_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_VARIABLE_REPLY

    +
    +static final byte OPCODE_SET_VARIABLE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_MOTOR_POWER_REPLY

    +
    +static final byte OPCODE_SET_MOTOR_POWER_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_GET_VALUE_REPLY

    +
    +static final byte OPCODE_GET_VALUE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_ALIVE_REPLY

    +
    +static final byte OPCODE_ALIVE_REPLY
    +
    +
    +
    See Also:
    Constant Field Values
    +
    +
    + +

    +OPCODE_SET_MESSAGE

    +
    +static final byte OPCODE_SET_MESSAGE
    +
    +
    +
    See Also:
    Constant Field Values
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/PacketHandler.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/PacketHandler.html new file mode 100644 index 0000000..5ffb669 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/PacketHandler.html @@ -0,0 +1,504 @@ + + + + + + +PacketHandler (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.rcxcomm +
    +Class PacketHandler

    +
    +java.lang.Object
    +  extended by lejos.rcxcomm.PacketHandler
    +
    +
    +
    Direct Known Subclasses:
    LLCHandler, LLCReliableHandler
    +
    +
    +
    +
    public abstract class PacketHandler
    extends Object
    + + +

    +Abstract packet handler. + Implementations must include sendPacket, receivePacket and + isPacketAvailable(). The other methods are optional. +

    + +

    +


    + +

    + + + + + + + + + + + +
    +Field Summary
    +protected  PacketHandlerlowerHandler + +
    +           
    +  + + + + + + + + + + + + + +
    +Constructor Summary
    PacketHandler() + +
    +           
    PacketHandler(PacketHandler handler) + +
    +           
    +  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + voidclose() + +
    +          Close this packet handler and all lower layers.
    + intgetError() + +
    +          Get the last error.
    + booleanisAckAvailable() + +
    +          Check if an ack is available
    +abstract  booleanisPacketAvailable() + +
    +          Check if a packet is available
    + voidopen(byte source, + byte destination) + +
    +          Set the source and destination for this connection.
    + intreceiveAck(byte[] buffer) + +
    +           
    +abstract  intreceivePacket(byte[] buffer) + +
    +          Receive a packet.
    + voidreset() + +
    +          Reset sequence numbers for this handler
    +abstract  booleansendPacket(byte[] packet, + int len) + +
    +          Send a packet.
    + voidsetListen(boolean listen) + +
    +          Set or unset the listen flag to keep a PC serial tower alive
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Field Detail
    + +

    +lowerHandler

    +
    +protected PacketHandler lowerHandler
    +
    +
    +
    +
    + + + + + + + + +
    +Constructor Detail
    + +

    +PacketHandler

    +
    +public PacketHandler()
    +
    +
    +
    + +

    +PacketHandler

    +
    +public PacketHandler(PacketHandler handler)
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +open

    +
    +public void open(byte source,
    +                 byte destination)
    +
    +
    Set the source and destination for this connection. +

    +

    +
    +
    +
    +
    + +

    +reset

    +
    +public void reset()
    +
    +
    Reset sequence numbers for this handler +

    +

    +
    +
    +
    +
    + +

    +setListen

    +
    +public void setListen(boolean listen)
    +
    +
    Set or unset the listen flag to keep a PC serial tower alive +

    +

    +
    Parameters:
    listen - true to set listen mode, else false
    +
    +
    +
    + +

    +sendPacket

    +
    +public abstract boolean sendPacket(byte[] packet,
    +                                   int len)
    +
    +
    Send a packet. +

    +

    +
    Parameters:
    packet - the bytes to send
    len - the number of bytes to send +
    Returns:
    true if the send was successful, else false
    +
    +
    +
    + +

    +receivePacket

    +
    +public abstract int receivePacket(byte[] buffer)
    +
    +
    Receive a packet. +

    +

    +
    Parameters:
    buffer - the buffer to receive the packet into +
    Returns:
    the number of bytes received
    +
    +
    +
    + +

    +receiveAck

    +
    +public int receiveAck(byte[] buffer)
    +
    +
    +
    +
    +
    +
    + +

    +isPacketAvailable

    +
    +public abstract boolean isPacketAvailable()
    +
    +
    Check if a packet is available +

    +

    + +
    Returns:
    true if a Packet is available, else false
    +
    +
    +
    + +

    +isAckAvailable

    +
    +public boolean isAckAvailable()
    +
    +
    Check if an ack is available +

    +

    + +
    Returns:
    true if a ack is available, else false
    +
    +
    +
    + +

    +close

    +
    +public void close()
    +
    +
    Close this packet handler and all lower layers. +

    +

    +
    +
    +
    +
    + +

    +getError

    +
    +public int getError()
    +
    +
    Get the last error. +

    +

    + +
    Returns:
    the error number, or zero for success
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/RCXAbstractPort.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/RCXAbstractPort.html new file mode 100644 index 0000000..0c60c46 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/RCXAbstractPort.html @@ -0,0 +1,418 @@ + + + + + + +RCXAbstractPort (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.rcxcomm +
    +Class RCXAbstractPort

    +
    +java.lang.Object
    +  extended by lejos.rcxcomm.RCXAbstractPort
    +
    +
    +
    Direct Known Subclasses:
    RCXPort
    +
    +
    +
    +
    public abstract class RCXAbstractPort
    extends Object
    + + +

    +RCXAbstractPort provides an interface similar to java.net.Socket + Adapted from original code created by the LEGO3 Team at DTU-IAU + RCXAbstractPort implements input and output stream handling and input + buffering. It uses a packet handler for sending and receivng packets. + This version is abstract because it has no packet handler defined. + Specific versions of RCXAbstractPort override the constructor and + set up the packet handler to use a specific protocol stack. +

    + +

    +

    +
    Author:
    +
    Brian Bagnall, Lawrie Griffiths
    +
    +
    + +

    + + + + + + + + + + + +
    +Field Summary
    +protected  PacketHandlerpacketHandler + +
    +           
    +  + + + + + + + + + + +
    +Constructor Summary
    RCXAbstractPort(PacketHandler handler) + +
    +          Constructor for the RCXAbstractPort.
    +  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + voidclose() + +
    +          Closes this RCXPort, stopping the Listener thread.
    + InputStreamgetInputStream() + +
    +          Returns an input stream for this RCXPort.
    + OutputStreamgetOutputStream() + +
    +          Returns an output stream for this RCXPort.
    + intgetTimeOut() + +
    +          Getter for property timeOut.
    + voidreset() + +
    +          Resets sequence numbers for this port
    + voidsetTimeOut(int timeOut) + +
    +          Setter for property timeOut.
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Field Detail
    + +

    +packetHandler

    +
    +protected PacketHandler packetHandler
    +
    +
    +
    +
    + + + + + + + + +
    +Constructor Detail
    + +

    +RCXAbstractPort

    +
    +public RCXAbstractPort(PacketHandler handler)
    +                throws IOException
    +
    +
    Constructor for the RCXAbstractPort. + Opens the port, and sets the protocol packet handler. +

    +

    +
    Parameters:
    handler - the packet handler +
    Throws: +
    IOException
    +
    + + + + + + + + +
    +Method Detail
    + +

    +getInputStream

    +
    +public InputStream getInputStream()
    +
    +
    Returns an input stream for this RCXPort. +

    +

    + +
    Returns:
    an input stream for reading bytes from this RCXPort.
    +
    +
    +
    + +

    +getOutputStream

    +
    +public OutputStream getOutputStream()
    +
    +
    Returns an output stream for this RCXPort. +

    +

    + +
    Returns:
    an output stream for writing bytes to this RCXPort.
    +
    +
    +
    + +

    +reset

    +
    +public void reset()
    +
    +
    Resets sequence numbers for this port +

    +

    +
    +
    +
    +
    + +

    +close

    +
    +public void close()
    +
    +
    Closes this RCXPort, stopping the Listener thread. +

    +

    +
    +
    +
    +
    + +

    +getTimeOut

    +
    +public int getTimeOut()
    +
    +
    Getter for property timeOut. +

    +

    + +
    Returns:
    Value of property timeOut.
    +
    +
    +
    + +

    +setTimeOut

    +
    +public void setTimeOut(int timeOut)
    +
    +
    Setter for property timeOut. +

    +

    +
    Parameters:
    timeOut - New value of property timeOut.
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/RCXPort.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/RCXPort.html new file mode 100644 index 0000000..c916ec9 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/RCXPort.html @@ -0,0 +1,267 @@ + + + + + + +RCXPort (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.rcxcomm +
    +Class RCXPort

    +
    +java.lang.Object
    +  extended by lejos.rcxcomm.RCXAbstractPort
    +      extended by lejos.rcxcomm.RCXPort
    +
    +
    +
    +
    public class RCXPort
    extends RCXAbstractPort
    + + +

    +RCXPort provides an interface similar to java.net.Socket + Adapted from original code created by the LEGO3 Team at DTU-IAU + Uses Reliable low-level comms for communication. + This is a two-layer comms stack consisting of LLCReliableHandler + and LLCHandler. It ensures that all packets get through. + Communication will stop when the IR tower is not in view or in range, + and will resume when it comes back into view. + RCXPort does not support addressing - it broadcasts messages to all devices. +

    + +

    +

    +
    Author:
    +
    Brian Bagnall, Lawrie Griffiths
    +
    +
    + +

    + + + + + + + +
    +Field Summary
    + + + + + + + +
    Fields inherited from class lejos.rcxcomm.RCXAbstractPort
    packetHandler
    +  + + + + + + + + + + +
    +Constructor Summary
    RCXPort(SensorPort port) + +
    +           
    +  + + + + + + + +
    +Method Summary
    + + + + + + + +
    Methods inherited from class lejos.rcxcomm.RCXAbstractPort
    close, getInputStream, getOutputStream, getTimeOut, reset, setTimeOut
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +RCXPort

    +
    +public RCXPort(SensorPort port)
    +        throws IOException
    +
    +
    + +
    Throws: +
    IOException
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/Serial.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/Serial.html new file mode 100644 index 0000000..7732dc7 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/Serial.html @@ -0,0 +1,402 @@ + + + + + + +Serial (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.rcxcomm +
    +Class Serial

    +
    +java.lang.Object
    +  extended by lejos.rcxcomm.Serial
    +
    +
    +
    +
    public class Serial
    extends Object
    + + +

    +Emulation of the RCX Serial class with mindstorms NRLINK adapter. +

    + +

    +

    +
    Author:
    +
    Lawrie Griffiths
    +
    +
    + +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    +static RCXLinkgetLink() + +
    +          Get the RCXLink object associated with the Serial class
    +static booleanisPacketAvailable() + +
    +          Test if a packet is available
    +static intreadPacket(byte[] aBuffer) + +
    +          Read an assembled packet.
    +static voidresetSerial() + +
    +          Reset the link - null
    +static booleansendPacket(byte[] aBuffer, + int aOffset, + int aLen) + +
    +          Send a packet
    +static voidsetPort(SensorPort port) + +
    +          Set the sensor port
    +static voidsetRangeLong() + +
    +          Set long range
    +static voidsetRangeShort() + +
    +          Set short range
    +static voidwaitTillSent() + +
    +          Wait until the packet is sent - null
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Method Detail
    + +

    +setPort

    +
    +public static void setPort(SensorPort port)
    +
    +
    Set the sensor port +

    +

    +
    Parameters:
    port - the sensor port the link is connected to
    +
    +
    +
    + +

    +readPacket

    +
    +public static int readPacket(byte[] aBuffer)
    +
    +
    Read an assembled packet. NRLink only seems to read + one byte at a time reliably, and does not + return zero bytes. +

    +

    +
    Parameters:
    aBuffer - the buffer to return the packet into +
    Returns:
    the number of bytes in the packet
    +
    +
    +
    + +

    +isPacketAvailable

    +
    +public static boolean isPacketAvailable()
    +
    +
    Test if a packet is available +

    +

    + +
    Returns:
    true iff a packiet is available
    +
    +
    +
    + +

    +sendPacket

    +
    +public static boolean sendPacket(byte[] aBuffer,
    +                                 int aOffset,
    +                                 int aLen)
    +
    +
    Send a packet +

    +

    +
    Parameters:
    aBuffer - the buffer containing the packet
    aOffset - the offset in the buffer - must be zero
    aLen - the length of the packet +
    Returns:
    true iff the packet was successfully sent
    +
    +
    +
    + +

    +setRangeLong

    +
    +public static void setRangeLong()
    +
    +
    Set long range +

    +

    +
    +
    +
    +
    + +

    +setRangeShort

    +
    +public static void setRangeShort()
    +
    +
    Set short range +

    +

    +
    +
    +
    +
    + +

    +resetSerial

    +
    +public static void resetSerial()
    +
    +
    Reset the link - null +

    +

    +
    +
    +
    +
    + +

    +waitTillSent

    +
    +public static void waitTillSent()
    +
    +
    Wait until the packet is sent - null +

    +

    +
    +
    +
    +
    + +

    +getLink

    +
    +public static RCXLink getLink()
    +
    +
    Get the RCXLink object associated with the Serial class +

    +

    + +
    Returns:
    the link
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/package-frame.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/package-frame.html new file mode 100644 index 0000000..7a6a9e6 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/package-frame.html @@ -0,0 +1,55 @@ + + + + + + +lejos.rcxcomm (leJOS NXT API documentation) + + + + + + + + + + + +lejos.rcxcomm + + + + +
    +Interfaces  + +
    +Opcode
    + + + + + + +
    +Classes  + +
    +LLC +
    +LLCHandler +
    +LLCReliableHandler +
    +PacketHandler +
    +RCXAbstractPort +
    +RCXPort +
    +Serial
    + + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/package-summary.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/package-summary.html new file mode 100644 index 0000000..f2b5d45 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/package-summary.html @@ -0,0 +1,211 @@ + + + + + + +lejos.rcxcomm (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    +

    +Package lejos.rcxcomm +

    +Emulation of RCX communication classes +

    +See: +
    +          Description +

    + + + + + + + + + +
    +Interface Summary
    OpcodeOpcode constants.
    +  + +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +Class Summary
    LLCEmulates RCX LLC class using the RCXLink class.
    LLCHandlerPacket handler than implement the LLC packet protocol.
    LLCReliableHandlerA Packet handler that guarantees reliable delivery using checksums, + acks, and a single bit sequence number.
    PacketHandlerAbstract packet handler.
    RCXAbstractPortRCXAbstractPort provides an interface similar to java.net.Socket + Adapted from original code created by the LEGO3 Team at DTU-IAU + RCXAbstractPort implements input and output stream handling and input + buffering.
    RCXPortRCXPort provides an interface similar to java.net.Socket + Adapted from original code created by the LEGO3 Team at DTU-IAU + Uses Reliable low-level comms for communication.
    SerialEmulation of the RCX Serial class with mindstorms NRLINK adapter.
    +  + +

    +

    +Package lejos.rcxcomm Description +

    + +

    +Emulation of RCX communication classes +

    + +

    +

    +
    +
    + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/package-tree.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/package-tree.html new file mode 100644 index 0000000..7297c92 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/rcxcomm/package-tree.html @@ -0,0 +1,156 @@ + + + + + + +lejos.rcxcomm Class Hierarchy (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    +
    +

    +Hierarchy For Package lejos.rcxcomm +

    +
    +
    +
    Package Hierarchies:
    All Packages
    +
    +

    +Class Hierarchy +

    + +

    +Interface Hierarchy +

    + +
    + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Activity.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Activity.html index 13a30e6..4eb3247 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Activity.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Activity.html @@ -2,7 +2,7 @@ - + Activity (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/ActivityBase.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/ActivityBase.html index 4962995..5da1cbe 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/ActivityBase.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/ActivityBase.html @@ -2,7 +2,7 @@ - + ActivityBase (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Arbitrator.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Arbitrator.html index 9b2b348..4bf3941 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Arbitrator.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Arbitrator.html @@ -2,7 +2,7 @@ - + Arbitrator (leJOS NXT API documentation) @@ -52,7 +52,7 @@ function windowTitle()  PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   @@ -241,7 +241,7 @@ public void start()  PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Arbitrator2.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Arbitrator2.html new file mode 100644 index 0000000..3714d1b --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Arbitrator2.html @@ -0,0 +1,302 @@ + + + + + + +Arbitrator2 (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.subsumption +
    +Class Arbitrator2

    +
    +java.lang.Object
    +  extended by lejos.subsumption.Arbitrator2
    +
    +
    +
    +
    public class Arbitrator2
    extends Object
    + + +

    +Arbitrator2 controls which behavior should currently be active in + a behavior control system. This implementation is simpler than the original, but the behaviors it uses must implement + the Behavior2 interface. In this architecture, when a behavior wants control, it must call arbitrator.wantControl(); +

    + +

    +

    +
    Version:
    +
    1 27-sept 2007
    +
    Author:
    +
    Roger Glassey (after Brian Bagnall)
    +
    +
    + +

    + + + + + + + + + + + +
    +Constructor Summary
    Arbitrator2(Behavior2[] behaviors) + +
    +          Allocates an Arbitrator2 object and initializes it with an array of + Behavior2 objects.
    +  + + + + + + + + + + + + + + + +
    +Method Summary
    + voidstart() + +
    +          This method starts the arbitration of Behaviors.
    + It iterates over the array of behaviors, highest priority first.
    + voidwantControl(Behavior2 theBehavior) + +
    +          If the behavior that sent this message has higher priority than the active behavior, + the active behavior is suppressed.
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +Arbitrator2

    +
    +public Arbitrator2(Behavior2[] behaviors)
    +
    +
    Allocates an Arbitrator2 object and initializes it with an array of + Behavior2 objects. + The largest index in the Behavior array will have the + highest priority level, and hence will suppress all lower priority + behaviors if it calls wantContorol on this. + The new arbitrator calls setArbitrator() on each Behavior to + establish the call back link. The Behaviors in an Arbitrator can not + be changed once the arbitrator is initialized.
    + NOTE: Once the Arbitrator is initialized, the method go() must be + called to begin the arbitration. +

    +

    +
    Parameters:
    behaviors - An array of Behavior objects. The behavior of largest index has the highest proiroty.
    +
    + + + + + + + + +
    +Method Detail
    + +

    +start

    +
    +public void start()
    +
    +
    This method starts the arbitration of Behaviors.
    + It iterates over the array of behaviors, highest priority first. and calls the takeControl() method. If true is + returned, it calls action() on that behavior. When the action() method returns (either because it was completed or it was suppressed) the search starts again. +If no behavior returns true, this method exits. +

    +

    +
    +
    +
    +
    + +

    +wantControl

    +
    +public void wantControl(Behavior2 theBehavior)
    +
    +
    If the behavior that sent this message has higher priority than the active behavior, + the active behavior is suppressed. +

    +

    +
    Parameters:
    theBehavior -
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Behavior.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Behavior.html index efe9866..8d1d670 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Behavior.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Behavior.html @@ -2,7 +2,7 @@ - + Behavior (leJOS NXT API documentation) @@ -51,8 +51,8 @@ function windowTitle() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS
    FRAMES    NO FRAMES   @@ -87,6 +87,9 @@ DETAIL: FIELD | CONSTR | METHO lejos.subsumption
    Interface Behavior +
    +
    All Known Subinterfaces:
    Behavior2
    +

    public interface Behavior
    @@ -253,8 +256,8 @@ void suppress() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Behavior2.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Behavior2.html new file mode 100644 index 0000000..dd85ccb --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/Behavior2.html @@ -0,0 +1,244 @@ + + + + + + +Behavior2 (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +lejos.subsumption +
    +Interface Behavior2

    +
    +
    All Superinterfaces:
    Behavior
    +
    +
    +
    +
    public interface Behavior2
    extends Behavior
    + + +

    +This interface works with Aribtrator2. + The Behavior2 interface represents an object embodying a specific + behavior belonging to a robot. Each behavior must define three things:
    + 1) The circumstances to make this behavior seize control of the robot. + e.g. When the touch sensor determines the robot has collided with an object.
    + When this happens, the Behavior must inform the Arbitrator that is ready to take control. + It does this by calling arbitrator.wantControl(this) and also by returning true when the + arbitrator calls takeControl();
    + 2) The action to exhibit when this behavior takes control. + e.g. Back up and turn. The action() method does this.
    + 3) The actions to perform when another behavior has seized control from this + behavior. + e.g. Stop the current movement and update coordinates. The method suprews() does this.
    + 4)establish a call back path the arbitrator by implementing the setArbitrator() method.
    + A behavior control system has one or more Behavior objects. When you have defined + these objects, create an array of them and use that array to initialize an + Arbitrator object. +

    + +

    +

    +
    Version:
    +
    2 3-Dec - 2007
    +
    Author:
    +
    Roger Glassey
    +
    See Also:
    Arbitrator2
    +
    + +

    + + + + + + + + + + + + +
    +Method Summary
    + voidsetArbitrator(Arbitrator2 theArbitrator) + +
    +          call back path so Behavior2 can call arbitrator.wantControl(this) when its takeControl state changes to true;
    + + + + + + + +
    Methods inherited from interface lejos.subsumption.Behavior
    action, suppress, takeControl
    +  +

    + + + + + + + + +
    +Method Detail
    + +

    +setArbitrator

    +
    +void setArbitrator(Arbitrator2 theArbitrator)
    +
    +
    call back path so Behavior2 can call arbitrator.wantControl(this) when its takeControl state changes to true; +

    +

    +
    +
    +
    +
    Parameters:
    theArbitrator -
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/StopException.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/StopException.html index 9f75cd2..7870e3e 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/StopException.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/StopException.html @@ -2,7 +2,7 @@ - + StopException (leJOS NXT API documentation) @@ -51,7 +51,7 @@ function windowTitle() PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   @@ -203,7 +203,7 @@ public StopException() PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/package-frame.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/package-frame.html index 6595172..1da1474 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/package-frame.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/package-frame.html @@ -2,7 +2,7 @@ - + lejos.subsumption (leJOS NXT API documentation) @@ -23,7 +23,9 @@ lejos.subsumption (leJOS NXT API documentation) Interfaces 
    -Behavior
    +Behavior +
    +Behavior2
    @@ -38,7 +40,9 @@ Classes
     
    ActivityBase
    -Arbitrator +Arbitrator +
    +Arbitrator2 diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/package-summary.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/package-summary.html index 2500b9d..6e2b58e 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/package-summary.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/package-summary.html @@ -2,7 +2,7 @@ - + lejos.subsumption (leJOS NXT API documentation) @@ -51,7 +51,7 @@ function windowTitle() PREV PACKAGE  + PREV PACKAGE   NEXT PACKAGE FRAMES   @@ -95,6 +95,10 @@ Support for subsumption architecture. The Behavior interface represents an object embodying a specific behavior belonging to a robot. + +Behavior2 +This interface works with Aribtrator2. +   @@ -118,6 +122,11 @@ Support for subsumption architecture. Arbitrator controls which behavior should currently be active in a behavior control system. + +Arbitrator2 +Arbitrator2 controls which behavior should currently be active in + a behavior control system. +   @@ -181,7 +190,7 @@ Two different methods of supporting subsumption are available:
    PREV PACKAGE  + PREV PACKAGE   NEXT PACKAGE FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/package-tree.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/package-tree.html index 24972ec..e9ff0b9 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/package-tree.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/subsumption/package-tree.html @@ -2,7 +2,7 @@ - + lejos.subsumption Class Hierarchy (leJOS NXT API documentation) @@ -50,7 +50,7 @@ function windowTitle() PREV  + PREV   NEXT FRAMES   @@ -87,7 +87,7 @@ Class Hierarchy
    • java.lang.Object
        -
      • lejos.subsumption.Arbitrator
      • java.lang.Thread
        @@ -131,7 +133,7 @@ Interface Hierarchy PREV  + PREV   NEXT FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/AbstractRecyclable.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/AbstractRecyclable.html index b744317..e5c4f63 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/AbstractRecyclable.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/AbstractRecyclable.html @@ -2,7 +2,7 @@ - + AbstractRecyclable (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/ArrayRecycler.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/ArrayRecycler.html index a8b0792..dc3ce91 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/ArrayRecycler.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/ArrayRecycler.html @@ -2,7 +2,7 @@ - + ArrayRecycler (leJOS NXT API documentation) diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/Assertion.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/Assertion.html index bd4407e..822c8e8 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/Assertion.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/Assertion.html @@ -2,7 +2,7 @@ - + Assertion (leJOS NXT API documentation) @@ -52,7 +52,7 @@ function windowTitle()  PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   @@ -258,7 +258,7 @@ public static void testEQ(  PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/ButtonCounter.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/ButtonCounter.html new file mode 100644 index 0000000..dd88dc0 --- /dev/null +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/ButtonCounter.html @@ -0,0 +1,417 @@ + + + + + + +ButtonCounter (leJOS NXT API documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + +
        + + + +
        + +

        + +lejos.util +
        +Class ButtonCounter

        +
        +java.lang.Object
        +  extended by lejos.util.ButtonCounter
        +
        +
        +
        +
        public class ButtonCounter
        extends Object
        + + +

        +This is class is for data entry using the NXT keyboard. +Counts number of presses of left and right buttons
        +Press ENTER together with together with LEFT or RIGHT to decrease the count. +Press ESCAPE or ENTER alone to end counting. +Displays the count as it is entered, and makes a sound with each button press. +Stores the count in public fields +

        + +

        +

        +
        Author:
        +
        Roger Glassey 8/20/07
        +
        +
        + +

        + + + + + + + + + + + + + + + +
        +Field Summary
        + int_leftCount + +
        +          Output only not used in calculations; use after count() returns;
        + int_rightCount + +
        +          Output only not used in calculations ; use this value after count() returns;
        +  + + + + + + + + + + +
        +Constructor Summary
        ButtonCounter() + +
        +           
        +  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +Method Summary
        + voidcount() + +
        +          called by count( string)
        + voidcount(String s) + +
        +          Start counting; parameter string is displayed; use it to identify this particular call
        +returns when ESC or ENTER button is pressed
        +Hold Enter and left or right to decrease count, otherwise it increases
        +counters are reset when this method is called.
        + voidcount(String s, + int left, + int right) + +
        +          Initializes values of left count and right count.
        + intgetLeftCount() + +
        +          Use this method after counting is complete;
        + intgetRightCount() + +
        +          Use this method after counting is complete;
        + + + + + + + +
        Methods inherited from class java.lang.Object
        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
        +  +

        + + + + + + + + +
        +Field Detail
        + +

        +_rightCount

        +
        +public int _rightCount
        +
        +
        Output only not used in calculations ; use this value after count() returns; +

        +

        +
        +
        +
        + +

        +_leftCount

        +
        +public int _leftCount
        +
        +
        Output only not used in calculations; use after count() returns; +

        +

        +
        +
        + + + + + + + + +
        +Constructor Detail
        + +

        +ButtonCounter

        +
        +public ButtonCounter()
        +
        +
        + + + + + + + + +
        +Method Detail
        + +

        +getRightCount

        +
        +public int getRightCount()
        +
        +
        Use this method after counting is complete; +

        +

        + +
        Returns:
        value of right count.
        +
        +
        +
        + +

        +getLeftCount

        +
        +public int getLeftCount()
        +
        +
        Use this method after counting is complete; +

        +

        + +
        Returns:
        value of left count.
        +
        +
        +
        + +

        +count

        +
        +public void count(String s)
        +
        +
        Start counting; parameter string is displayed; use it to identify this particular call
        +returns when ESC or ENTER button is pressed
        +Hold Enter and left or right to decrease count, otherwise it increases
        +counters are reset when this method is called. +

        +

        +
        +
        +
        +
        + +

        +count

        +
        +public void count()
        +
        +
        called by count( string) +

        +

        +
        +
        +
        +
        + +

        +count

        +
        +public void count(String s,
        +                  int left,
        +                  int right)
        +
        +
        Initializes values of left count and right count. + Displays parameter s ; sets _leftcount = left, _rightCount = right +

        +

        +
        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + +
        + +
        + + + +
        + + + diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Datalogger.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/Datalogger.html similarity index 84% rename from nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Datalogger.html rename to nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/Datalogger.html index f767386..5d42436 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Datalogger.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/util/Datalogger.html @@ -2,12 +2,12 @@ - + Datalogger (leJOS NXT API documentation) - + @@ -51,10 +51,10 @@ function windowTitle() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS
        - FRAMES   + FRAMES    NO FRAMES