Source stringclasses 1
value | Date int32 2.01k 2.01k | Text stringlengths 3 15.9M | Token_count int32 1 2.44M |
|---|---|---|---|
github-java-corpus | 2,012 | package lejos.util;
/**
* Elapsed time watch (in milliseconds) <br>
* To use - construct a new instance.
* @author Roger Glassey
* version 2
*/
public class Stopwatch
{
/**
records system clock time (in milliseconds) when reset() was executed
*/
private int t0 = (int)System.currentTimeMillis()... | 134 |
github-java-corpus | 2,012 | package lejos.util;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Simple collection of time delay routines that are non interruptable.
* @author andy
*/
public class Delay {
/**... | 508 |
github-java-corpus | 2,012 | package lejos.util;
import java.io.PrintStream;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
public class Matrix implements Cloneable, java.io.Serializable {
/* ----------------... | 5,790 |
github-java-corpus | 2,012 | package lejos.util;
/**
* Class used in debugging to test assertions. Implementation
* is platform dependent. For example the unix_impl version
* will print the string and throw an error if an assertion fails.
* The rcx_impl version will only throw an error.
*
* @author Paul Andrews
*/
public class Assertion {
... | 265 |
github-java-corpus | 2,012 | package lejos.util;
import lejos.nxt.comm.*;
import lejos.nxt.*;
import java.io.*;
/**
* Datalogger class; stores float values then then transmits via bluetooth or usb<br>
* works with DataViewer in pctools.
* Default size is 512. Capacity is limited only by the available ram.
* @author Roger Glassey - ... | 945 |
github-java-corpus | 2,012 | package lejos.util;
import lejos.nxt.Button;
import lejos.nxt.LCD;
/**
*Displays a list of items. The select() method allows the user to scroll the list using the right and left keys to scroll forward and backward
* through the list. The location of the list , and an optional title can be specified.
* @author Rog... | 1,787 |
github-java-corpus | 2,012 | package lejos.util;
/**
* Listener used with Timer.
*
* @see lejos.util.Timer
* @author <a href="mailto:rvbijl39<at>calvin<dot>edu">Ryan VanderBijl</a>
*/
public interface TimerListener
{
/**
* Called every time the Timer fires.
*/
public void timedOut();
}
| 81 |
github-java-corpus | 2,012 | package lejos.util;
import lejos.nxt.*;
/**
This is class is for data entry using the NXT keyboard.
Counts number of presses of left and right buttons <br>
Press ENTER together with together with LEFT or RIGHT to decrease the count.
Press ESCAPE to end counting.
Displays the count as it is entered, and makes a soun... | 727 |
github-java-corpus | 2,012 | package lejos.util;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/** LU Decomposition.
<P>
For an m-by-n matrix A with m >= n, the LU decomposition is an m-by-n
unit lower tria... | 2,321 |
github-java-corpus | 2,012 | package lejos.util;
import lejos.nxt.LCD;
/**
* This class has been developed to use it in case of you have
* to tests leJOS programs and you need to show in NXT Display data
* but you don't need to design a User Interface.
*
* This class is very useful to debug algorithms in your NXT brick.
*
* @au... | 673 |
github-java-corpus | 2,012 | package lejos.geom;
import java.awt.geom.*;
/**
* Represents a line and supports calculating the point of intersection of two
* line segments.
*
* @author Lawrie Griffiths
*
* <br/><br/>WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS ... | 847 |
github-java-corpus | 2,012 | package lejos.geom;
import java.awt.geom.*;
/**
* Point with float co-ordinates for use in navigation.
*
* @author Lawrie Griffiths
*
*/
public class Point extends Point2D.Float {
public Point(float x, float y) {
super(x,y);
}
}
| 62 |
github-java-corpus | 2,012 | package lejos.addon.gps;
import java.util.*;
import lejos.nxt.Button;
/**
* Class designed to manage all NMEA Sentence.
*
* GGA and RMC Sentence needs to validate data.
* This class has methods to validate received data
*
* @author BB
*/
abstract public class NMEASentence {
static byte ... | 1,284 |
github-java-corpus | 2,012 | package lejos.addon.gps;
import java.util.*;
/**
* This class has been designed to manage a GSA Sentence
*
* GPS DOP and active satellites
*
* eg1. $GPGSA,A,3,,,,,,16,18,,22,24,,,3.6,2.1,2.2*3C
* eg2. $GPGSA,A,3,19,28,14,18,27,22,31,39,,,,,1.7,1.0,1.3*35
*
* 1 = Mode:
* M=Manual, fo... | 924 |
github-java-corpus | 2,012 | package lejos.addon.gps;
import java.util.*;
/**
* RMC is a Class designed to manage RMC Sentences from a NMEA GPS Receiver
*
* RMC - NMEA has its own version of essential gps pvt (position, velocity, time) data. It is called RMC, The Recommended Minimum, which will look similar to:
*
* $GPRMC,12351... | 1,238 |
github-java-corpus | 2,012 | package lejos.addon.gps;
import java.util.*;
/**
* This class has been designed to manage a GSV Sentence
*
* GPS Satellites in View
*
* eg. $GPGSV,3,1,11,03,03,111,00,04,15,270,00,06,01,010,00,13,06,292,00*74
* $GPGSV,3,2,11,14,25,170,00,16,57,208,39,18,67,296,40,19,40,246,00*74
* $GPGSV,3... | 1,289 |
github-java-corpus | 2,012 | package lejos.addon.gps;
import java.io.*;
import java.util.*;
import lejos.nxt.Button;
/**
* This class manages data received from a GPS Device.
* SimpleGPS Class manages the following NMEA Sentences
* which supply location, heading, and speed data:
*
* <li>GPGGA (location data)
* <li>GPVTG (hea... | 3,053 |
github-java-corpus | 2,012 | package lejos.addon.gps;
import java.io.*;
import java.util.*;
/**
* This class manages a data received from a GPS Device.
* GPS Class manages the following NMEA Sentences:
*
* GPRMC
* GPGSV
* GPGSA
* GPGGA (superclass)
* GPVTG (superclass)
*
* @author BB
* @author Juan Antonio Brenha Mo... | 1,568 |
github-java-corpus | 2,012 | package lejos.addon.gps;
import java.util.*;
/**
* This class has been designed to manage a GGA Sentence
*
* GGA - essential fix data which provide 3D location and accuracy data.
*
* $GPGGA,123519,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,,*47
*
* Where:
* GGA Global Positi... | 1,508 |
github-java-corpus | 2,012 | package lejos.addon.gps;
import java.util.EventListener;
import javax.microedition.location.Coordinates;
/**
* This is the interface to manage events with GPS
*
* @author Juan Antonio Brenha Moral
*
*/
public interface GPSListener extends EventListener{
// TODO: Probably just one sentenceRec... | 261 |
github-java-corpus | 2,012 | package lejos.addon.gps;
/**
* This class models data extracted from NMEA GSV Sentence
*
* $GPGSV,1,1,13,02,02,213,,03,-3,000,,11,00,121,,14,13,172,05*67
*
* 4 = SV PRN number
* 5 = Elevation in degrees, 90 maximum
* 6 = Azimuth, degrees from true north, 000 to 359
* 7 = SNR, 00-99 dB... | 1,085 |
github-java-corpus | 2,012 | package lejos.addon.gps;
import java.util.*;
/**
* VTGSentence is a Class designed to manage VTG Sentences from a NMEA GPS Receiver
*
* $GPVTG
*
* Track Made Good and Ground Speed.
*
* eg1. $GPVTG,360.0,T,348.7,M,000.0,N,000.0,K*43
* eg2. $GPVTG,054.7,T,034.4,M,005.5,N,010.2,K*41
*
* ... | 826 |
github-java-corpus | 2,012 | package lejos.addon.keyboard;
import java.io.*;
import javax.bluetooth.*;
import javax.microedition.io.*;
import lejos.util.Delay;
/*
* Developer Notes:
* TODO: The preferred paradigm is to allow multiple text fields, multiple apps in MIDP
* and the one with focus is the one that gets the key events. s... | 5,552 |
github-java-corpus | 2,012 | package lejos.addon.keyboard;
/**
* Contains data for a KeyEvent. Passed to KeyListener objects.
* @author BB
*
*/
public class KeyEvent {
public static final int SHIFT_MASK = 1;
public static final int CTRL_MASK = 2;
public static final int META_MASK = 4;
public static final int ALT_MASK = 8;
... | 7,564 |
github-java-corpus | 2,012 | package lejos.addon.keyboard;
// package lejos.devices; // UNCOMMENT
/**
* This interface is for classes that wish to receive keyboard events.
*
* @author BB
* @see Keyboard
* @see KeyEvent
* @since 0.6
*/
public interface KeyListener {
/**
* This method is called when a key is typed. A key i... | 301 |
github-java-corpus | 2,012 | package lejos.charset;
public interface CharsetEncoder
{
int getMaxCharLength();
/**
* Writes the encoding of the codepoint to the byte-array.
* The codepoint may be -1 to indicate an undecodable codepoint.
*
* @param codepoint the character to encode
* @param target target byte array
* @param offset ... | 176 |
github-java-corpus | 2,012 | package lejos.charset;
public class UTF8Encoder implements CharsetEncoder
{
public int getMaxCharLength()
{
return 4;
}
public int encode(int codepoint, byte[] target, int offset)
{
if (codepoint < 0 || codepoint > 0x1FFFFF)
target[offset++] = (byte)'?';
else if (codepoint <= 0x7F)
target[offset++] ... | 434 |
github-java-corpus | 2,012 | package lejos.charset;
public class Latin1Decoder implements CharsetDecoder
{
public int decode(byte[] buf, int offset, int limit)
{
return buf[offset] & 0xFF;
}
public int estimateByteCount(byte[] buf, int offset, int limit)
{
return 1;
}
public int getMaxCharLength()
{
return 1;
}
}
| 82 |
github-java-corpus | 2,012 | package lejos.charset;
public interface CharsetDecoder
{
int getMaxCharLength();
/**
* Calculates a Unicode codepoint from the bytes in the buffer.
* If the bytes in the buffer cannot be decoded, because they are
* malformed or because there is not enough data, then the '?' character
* should be returned.
... | 403 |
github-java-corpus | 2,012 | package lejos.charset;
public class Latin1Encoder implements CharsetEncoder
{
public int getMaxCharLength()
{
return 1;
}
public int encode(int codepoint, byte[] target, int offset)
{
if (codepoint < 0 || codepoint > 0xFF)
codepoint = '?';
target[offset] = (byte)codepoint;
return offset + 1;
}
... | 110 |
github-java-corpus | 2,012 | package lejos.charset;
public class UTF8Decoder implements CharsetDecoder
{
private static final int MIN_NON_ASCII = 0x80;
private static final int MIN_UTF8_SEQ2 = 0xC0;
private static final int MIN_UTF8_SEQ3 = 0xE0;
private static final int MIN_UTF8_SEQ4 = 0xF0;
private static final int MIN_UTF8_SEQ5 = 0xF8;
p... | 608 |
github-java-corpus | 2,012 | package lejos.nxt;
import lejos.robotics.*;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* LEGO Color Sensor driver.
* This driver provides access to the LEGO Color sensor. It allows ... | 2,140 |
github-java-corpus | 2,012 | package lejos.nxt;
import java.io.*;
/**
* A simple output stream that implements console output.
* It writes to the bottom line of the screen, scrolling the
* LCD up one line when writing to character position 0,
* and starting a new line when the position reaches 16
* or a new line character is wriit... | 200 |
github-java-corpus | 2,012 | package lejos.nxt;
/**
* Abstraction for a port that supports I2C sensors.
*
* @author Lawrie Griffiths
*
*/
public interface I2CPort extends BasicSensorPort {
public static final int STANDARD_MODE = 0;
public static final int LEGO_MODE = 1;
public static final int ALWAYS_ACTIVE = 2;
public stati... | 477 |
github-java-corpus | 2,012 | package lejos.nxt;
/**
* This class is designed for use by other lejos classes to
* read persistent settings. User programs should use the Settings class
*
* @author Lawrie Griffiths
*
*/
public class SystemSettings {
private static final int SETTINGS_PAGE = 0;
private static final int MAX_SETTI... | 1,015 |
github-java-corpus | 2,012 | package lejos.nxt;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Constants used to set Sensor types and modes.
*
*/
public interface SensorConstants {
public static final int TYPE_... | 393 |
github-java-corpus | 2,012 | package lejos.nxt;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* An abstraction for a motor port that supports RCX
* type motors, but not NXT motors with tachometers.
*
* @author L... | 141 |
github-java-corpus | 2,012 | package lejos.nxt;
import lejos.robotics.Encoder;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Abstraction for a motor port that supports NXT motors with tachometers.
*
* @author ... | 104 |
github-java-corpus | 2,012 | package lejos.nxt;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Abstraction for a NXT touch sensor.
* Also works with RCX touch sensors.
*
*/
public class TouchSensor implements S... | 216 |
github-java-corpus | 2,012 | package lejos.nxt;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Abstraction for a NXT sound sensor.
*
*/
public class SoundSensor implements SensorConstants {
ADSensorPort port;
... | 387 |
github-java-corpus | 2,012 | package lejos.nxt;
import lejos.robotics.RangeFinder;
import lejos.util.Delay;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Abstraction for a NXT Ultrasonic Sensor.
*
*/
public cla... | 3,064 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
/**
* Support for LCP commands
*
* @author Lawrie Griffiths/Andy Shaw
*
*/
public class LCPResponder extends Thread {
protected NXTCommConnector connector = null;
protected NXTConnection conn = null;
protected boolean running = true;
/**
* Create a Responder using th... | 740 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
/**
* Support for LCP commands over Bluetooth in user programs.
*
* @author Lawrie Griffiths
*
*/
public class LCPBTResponder extends LCPResponder {
public LCPBTResponder()
{
super(Bluetooth.getConnector());
}
}
| 63 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
import lejos.nxt.*;
import java.io.*;
import javax.microedition.io.*;
import lejos.util.Delay;
/**
* Generic lejos nxt connection class. Provide access to standard read/write
* methods. This code supports both asynchronous (used for Bluetooth connections)
* and synchronous (used for USB an... | 4,712 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
import java.util.*;
import javax.bluetooth.DeviceClass;
import javax.bluetooth.DiscoveryListener;
import javax.bluetooth.RemoteDevice;
import lejos.nxt.SystemSettings;
import lejos.util.Delay;
/**
* Provides Bluetooth communications.
* Allows inbound and outbound connections.
* Provides a... | 15,063 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
import java.io.*;
/**
* Implements an OutputStream over Bluetooth.
*
*/
public class NXTOutputStream extends OutputStream {
private byte[] buffer;
private int numBytes = 0;
private NXTConnection conn = null;
NXTOutputStream(NXTConnection conn, int buffSize)
{
this.conn = conn;
... | 175 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
import lejos.nxt.*;
import java.io.*;
import lejos.util.Delay;
/**
* This class provides a simple way of sending output for viewing on a
* PC. The output is transmitted via the nxt USB connection or via Bluetooth.
* If open is not called or if the connection to the PC is timed out, ... | 765 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
import lejos.util.Delay;
/**
* Low-level USB access.
*
* @author Lawrie Griffiths, extended to support streams by Andy Shaw
*
*/
public class USB extends NXTCommDevice {
public static final int RESET = 0x40000000;
static final int BUFSZ = 64;
static final int USB_STREAM = 1;
... | 1,642 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
import java.io.*;
import lejos.nxt.*;
/**
* Provides a Bluetooth connection
* Supports both packetized, raw and stream based communincation.
* Blocking and non-blocking I/O.
* Notes:
* Because of the limited buffer space and the way that several connections
* have to share the interfac... | 2,336 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
import lejos.nxt.*;
import java.io.*;
/**
*
* Provides a USB connection
* Supports both packetized, raw and stream based communincation.
* Blocking and non-blocking I/O.
*
* Notes
* When using the low level read/write functions no buffering is provided. This
* means that for read ope... | 887 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
import lejos.util.Delay;
/**
* Low-level RS485/BitBus Network implementation
* This class provides simple low level access to the underlying RS485 hardware
* implemented on port 4 of the Lego NXT.
*
* It also supports a higher level network connection based on this hardware, in
* the form... | 7,746 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
/**
* Connection object for an RS485/BitBus connection
* This object models a single BitBus connection. It works closely with
* the BitBus controller object to perform packet based I/O. It provides
* buffer space, address bindings and flow control for connection. It also
* handles h... | 1,917 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
import lejos.nxt.*;
/**
* Base class for nxt communications devices. Provides a common address/name,
* plus utility functions.
* @author andy
*/
abstract public class NXTCommDevice
{
public static final int ADDRESS_LEN = 6;
public static final int NAME_LEN = 16;
pub... | 1,185 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
import java.io.*;
import lejos.nxt.*;
import java.util.*;
import lejos.util.Delay;
/**
*
* Implements the Lego Communication Protocol,
* with some extensions for lejos NXJ.
*
*/
public class LCP {
private static byte[] i2cBuffer = new byte[16];
private static File[] files = null;
... | 5,291 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
import java.io.*;
/**
* Extends InputStream for BlueTooth; implements available()
* @author Roger Glassey revised on june 23, 2007, modified for Bluetooth2
*/
public class NXTInputStream extends InputStream {
private byte buf[];
private int bufIdx = 0, bufSize = 0;
private NXTConnectio... | 419 |
github-java-corpus | 2,012 | package lejos.nxt.comm;
/**
* Standard interface to connect/wait for a connection.
* @author andy
*/
public abstract class NXTCommConnector {
/**
* Open a connection to the specified name/address using the given I/O mode
* @param target The name or address of the device/host to connect to.
* @pa... | 202 |
github-java-corpus | 2,012 | package lejos.nxt;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* An abstraction for a sensor port that supports
* setting and retrieving types and modes of sensors.
*
* @author La... | 133 |
github-java-corpus | 2,012 | package lejos.nxt;
/**
* Interface for calling calling lejos listeners.
*/
public interface ListenerCaller {
void callListeners();
}
| 28 |
github-java-corpus | 2,012 | /**
* NXT access classes.
*/
package lejos.nxt;
/**
* Provides access to Battery.
*/
public class Battery
{
private static final int RECHARGEABLE = 0x8000;
private static final int VOLTAGE_MASK = 0x3fff;
private Battery()
{
}
/**
* Returns the battery status.
* Low bits are the voltage in mV... | 264 |
github-java-corpus | 2,012 |
package lejos.nxt;
/**
* Text and graphics output to the LCD display.
*
* @author Andre Nijholt and BB bitBlt and other mods Andy Shaw
*/
public class LCD {
public static final int SCREEN_WIDTH = 100;
public static final int SCREEN_HEIGHT = 64;
public static final int DISPLAY_WIDTH = 100;
p... | 2,556 |
github-java-corpus | 2,012 | package lejos.nxt;
import lejos.robotics.DCMotor;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* An abstraction for a motor without a tachometer,
* such as an RCX motor.
*
* @auth... | 800 |
github-java-corpus | 2,012 | package lejos.nxt;
import java.io.*;
import lejos.util.Delay;
/**
* NXT sound routines.
*
*/
public class Sound
{
private static final int RIFF_HDR_SIZE = 44;
private static final int RIFF_RIFF_SIG = 0x52494646;
private static final int RIFF_WAVE_SIG = 0x57415645;
private static final int RIFF_FMT... | 2,997 |
github-java-corpus | 2,012 | package lejos.nxt;
import lejos.nxt.ADSensorPort;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Abstraction for a port that supports legacy RCX sensors.
*
* @author Lawrie Griffith... | 110 |
github-java-corpus | 2,012 | package lejos.nxt;
/**
* Utility class for dispatching events to button, sensor and serial listeners.
*
* @author Paul Andrews
*/
class ListenerThread extends Thread
{
static ListenerThread singleton = new ListenerThread();
private static final int MAX_LISTENER_CALLERS = 7;
private static int [] masks;
pri... | 463 |
github-java-corpus | 2,012 | package lejos.nxt;
/**
* Abstraction for receiver of button events.
* @see lejos.nxt.Button#addButtonListener
*/
public interface ButtonListener
{
public void buttonPressed (Button b);
public void buttonReleased (Button b);
}
| 55 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.SensorPort;
import lejos.nxt.I2CSensor;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* This class allows you to use a Sony Playstation 2 contr... | 1,139 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.I2CPort;
import lejos.nxt.I2CSensor;
import java.awt.*;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Mindsensors NXTCam.
* w... | 848 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.*;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* MServo, is a abstraction to model any RC Servo (continuous and non continuous) pl... | 1,020 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.*;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* This class manages the sensor NXT Line Leader from Mindsensors.
* The sensor add... | 1,052 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.I2CPort;
import lejos.nxt.I2CSensor;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* HiTechnic IRSeeker sensor - untested.
* www.h... | 317 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.robotics.DCMotor;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Motor class for PFMate class
*
* @author Michael Smith <mdsmitty@g... | 848 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.*;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Supports Mindsensors PF Mate<br>
* This device is used to control Lego Power Fun... | 714 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.I2CPort;
import lejos.nxt.I2CSensor;
import lejos.nxt.rcxcomm.Opcode;
import lejos.util.Delay;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*... | 1,931 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.I2CSensor;
import lejos.nxt.I2CPort;
import lejos.util.Delay;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Class for controll... | 3,137 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.SensorPort;
import lejos.nxt.I2CSensor;
import java.util.ArrayList;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Abstraction for... | 609 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.BasicMotorPort;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Supports a motor connected to the Mindsensors RCX Motor Multiplexer
... | 264 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.I2CPort;
import lejos.nxt.I2CSensor;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Supports Mindsensors DIST-Nx series of Optical ... | 2,949 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.I2CPort;
import lejos.nxt.I2CSensor;
import lejos.robotics.*;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Abstraction for a HiTechnic or Min... | 897 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.I2CPort;
import lejos.nxt.I2CSensor;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Supports Mindsensors RXMux<br>
* This sensor ... | 449 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.SensorPort;
import lejos.nxt.I2CSensor;
import java.util.ArrayList;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* This class has ... | 1,642 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.*;
/**
* MotorPort for PF Motors using HiTechnic IRLink
*
* @author Lawrie Griffiths
*
*/
public class PFMotorPort implements BasicMotorPort {
private int channel, slot;
private IRLink link;
private static final int[] modeTranslation = {1,2,3,0};
pu... | 209 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.*;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Supports HiTechnics EOPD (Electro Optical Proximity Detector) sensor.<br>
* This sensor is ... | 476 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.*;
import lejos.robotics.Colors;
import lejos.robotics.LampLightDetector;
import lejos.robotics.Colors.Color;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUIL... | 983 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.SensorPort;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* LServo, Lattebox Servo, is a abstraction to model any RC Servo (continous... | 900 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.I2CPort;
import lejos.nxt.I2CSensor;
import java.util.*;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Supports for HiTechnic IRL... | 852 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.I2CPort;
import lejos.nxt.I2CSensor;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* This class works with HiTechnic or Mindsensors acceleratio... | 1,303 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.I2CPort;
import lejos.nxt.I2CSensor;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Supports the mindsensors RCX Motor Multiplexer
... | 404 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.BasicMotor;
import lejos.nxt.BasicMotorPort;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Abstraction for an RCX motor.
*
*/
public class... | 115 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.BasicMotorPort;
import lejos.util.Delay;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Supports a motor connected to a remot... | 418 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.I2CPort;
import lejos.nxt.I2CSensor;
import lejos.util.Delay;
/**
* Support for the Codatex RFID Sensor.
* See www.codatex,com for details.
* Notes this device requires delays between various commands for them to
* function correctly, it also enters a sleep mode and... | 1,938 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.ADSensorPort;
import lejos.nxt.SensorConstants;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Support the HiTechnic Gyro sensor... | 237 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.I2CSensor;
import lejos.nxt.I2CPort;
import lejos.robotics.ColorDetector;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* HiTechnic... | 1,637 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.*;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
*Abstraction for an RCX temperature sensor.
*
* @author Soren Hilmer
*
*... | 335 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.SensorConstants;
import lejos.nxt.LegacySensorPort;
import lejos.robotics.Tachometer;
import lejos.util.Delay;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUI... | 1,272 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.SensorPort;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* LDCMotor, Lattebox DC Motor, is a abstraction to model any DCMotor connec... | 519 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.SensorPort;
import lejos.nxt.I2CSensor;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* Generic abstraction to manage RC Servos and ... | 1,710 |
github-java-corpus | 2,012 | package lejos.nxt.addon;
import lejos.nxt.*;
/*
* WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
*/
/**
* This class has been designed to manage the device
* MSC8, Mindsensors NXT Servo ... | 869 |
github-java-corpus | 2,012 | package lejos.nxt;
/**
* Abstract class that implements common methods for all I2C sensors.
*
* Extend this class to implement new I2C sensors.
*
* @author Lawrie Griffiths (lawrie.griffiths@ntlworld.com).
*
*/
public class I2CSensor implements SensorConstants {
/**
* Returns the version number of the sens... | 1,134 |
github-java-corpus | 2,012 | package lejos.nxt.debug;
/**
* This class provides the primary interface to the debug capabilities of leJOS.
* It has two main functions:
* 1. To provide access to the internal VM and program structures:
* Threads
* Stacks
* Methods
* Classes
* 2. Provide an event based mechanism that allows Java... | 530 |
github-java-corpus | 2,012 | package lejos.nxt.debug;
import lejos.nxt.*;
/**
* Simple debug monitor that can be run alongside and nxj program. This class
* catches unhandled excpetions and user interrupts (accept + escape key), it
* displays information about the event (stack trace etc.). The user is then
* abble to either perform a... | 1,032 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.