Skip navigation links
A B C D E F G H I L M O P R S T U V W 

A

addListener(GopigoListener) - Method in class com.dexterind.gopigo.Gopigo
Adds a GopigoListener to the listeners list.
ADDRESS - Static variable in class com.dexterind.gopigo.components.Board
The device's address.
ANALOG_READ - Static variable in class com.dexterind.gopigo.utils.Commands
Analog read on a port.
ANALOG_WRITE - Static variable in class com.dexterind.gopigo.utils.Commands
Analog read on a port.
analogRead(int) - Method in class com.dexterind.gopigo.components.Board
Executes an analog read on the pin.
analogWrite(int, int) - Method in class com.dexterind.gopigo.components.Board
Executes an analog write on the pin.

B

backward(boolean) - Method in class com.dexterind.gopigo.behaviours.Motion
Moves backward the Gopigo.
BACKWARD - Static variable in class com.dexterind.gopigo.components.Motor
The backward command.
board - Static variable in class com.dexterind.gopigo.behaviours.Motion
The main object which handles the methods to get access to the resources connected to the board.
Board - Class in com.dexterind.gopigo.components
Defines all the methods to get access to the resources connected to the board.
Board() - Constructor for class com.dexterind.gopigo.components.Board
 
board - Static variable in class com.dexterind.gopigo.components.Encoders
The main object which handles the methods to get access to the resources connected to the board.
board - Static variable in class com.dexterind.gopigo.components.Led
The main object which handles the methods to get access to the resources connected to the board.
board - Static variable in class com.dexterind.gopigo.components.Motor
The main object which handles the methods to get access to the resources connected to the board.
board - Static variable in class com.dexterind.gopigo.components.Servo
The main object which handles the methods to get access to the resources connected to the board.
board - Static variable in class com.dexterind.gopigo.components.UltraSonicSensor
The main object which handles the methods to get access to the resources connected to the board.
board - Variable in class com.dexterind.gopigo.Gopigo
The main object which handles the methods to get access to the resources connected to the board.
BWD - Static variable in class com.dexterind.gopigo.utils.Commands
Move backward with PID.

C

com.dexterind.gopigo - package com.dexterind.gopigo
 
com.dexterind.gopigo.behaviours - package com.dexterind.gopigo.behaviours
 
com.dexterind.gopigo.components - package com.dexterind.gopigo.components
 
com.dexterind.gopigo.events - package com.dexterind.gopigo.events
 
com.dexterind.gopigo.utils - package com.dexterind.gopigo.utils
 
command - Variable in class com.dexterind.gopigo.components.Motor
The current command.
Commands - Class in com.dexterind.gopigo.utils
 
Commands() - Constructor for class com.dexterind.gopigo.utils.Commands
 
CONFIG - Static variable in class com.dexterind.gopigo.utils.Debug
The "config" log level.
criticalVoltage - Variable in class com.dexterind.gopigo.Gopigo
The critical voltage value.

D

debug - Variable in class com.dexterind.gopigo.behaviours.Motion
The debug object.
debug - Variable in class com.dexterind.gopigo.components.Board
The debug object.
debug - Variable in class com.dexterind.gopigo.components.Encoders
The debug object.
debug - Variable in class com.dexterind.gopigo.components.Led
The debug object.
debug - Variable in class com.dexterind.gopigo.components.Motor
The debug object.
debug - Variable in class com.dexterind.gopigo.components.Servo
The debug object.
debug - Variable in class com.dexterind.gopigo.components.UltraSonicSensor
The debug object.
debug - Variable in class com.dexterind.gopigo.Gopigo
The debug object.
Debug - Class in com.dexterind.gopigo.utils
If the debug mode is ON this class will write the given log into a log file.
Debug(String) - Constructor for class com.dexterind.gopigo.utils.Debug
 
debug - Variable in class com.dexterind.gopigo.utils.Debug
The flag to set to enable or disable the debug.
decreaseSpeed() - Method in class com.dexterind.gopigo.behaviours.Motion
Decreases the speed of both the motors.
device - Variable in class com.dexterind.gopigo.components.Board
The I2CDevice object.
DIGITAL_READ - Static variable in class com.dexterind.gopigo.utils.Commands
Digital read on a port.
DIGITAL_WRITE - Static variable in class com.dexterind.gopigo.utils.Commands
Digital write on a port.
digitalRead(int) - Method in class com.dexterind.gopigo.components.Board
Executes a digital read on the pin.
digitalWrite(int, int) - Method in class com.dexterind.gopigo.components.Board
Executes a digital write on the pin.
directions - Variable in class com.dexterind.gopigo.behaviours.Motion
The HashMap of the directions.
DIS_COM_TIMEOUT - Static variable in class com.dexterind.gopigo.utils.Commands
Disable the communication timeout.
DIS_ENC - Static variable in class com.dexterind.gopigo.utils.Commands
Disable the encoders.
DIS_SERVO - Static variable in class com.dexterind.gopigo.utils.Commands
Disable the servo.
disable() - Method in class com.dexterind.gopigo.components.Encoders
Disables the encoders.
disable() - Method in class com.dexterind.gopigo.components.Servo
Disables the servo motor.
disableCommunicationTimeout() - Method in class com.dexterind.gopigo.behaviours.Motion
Disables the communication timeout.
DSPD - Static variable in class com.dexterind.gopigo.utils.Commands
Decrease the speed by 10.

E

EN_COM_TIMEOUT - Static variable in class com.dexterind.gopigo.utils.Commands
Enable the communication timeout.
EN_ENC - Static variable in class com.dexterind.gopigo.utils.Commands
Enable the encoders.
EN_SERVO - Static variable in class com.dexterind.gopigo.utils.Commands
Enable the servo.
enable() - Method in class com.dexterind.gopigo.components.Encoders
Enables the encoders.
enable() - Method in class com.dexterind.gopigo.components.Servo
Enables the servo motor.
enableCommunicationTimeout(int) - Method in class com.dexterind.gopigo.behaviours.Motion
Enables the communication timeout.
ENC_READ - Static variable in class com.dexterind.gopigo.utils.Commands
Read the encoder values.
ENC_TGT - Static variable in class com.dexterind.gopigo.utils.Commands
Set the encoder targeting.
Encoders - Class in com.dexterind.gopigo.components
Implements the methods needed to set, read, enable or disable the encoders.
Encoders() - Constructor for class com.dexterind.gopigo.components.Encoders
 
encoders - Variable in class com.dexterind.gopigo.Gopigo
The encoders.
ERROR - Static variable in class com.dexterind.gopigo.utils.Statuses
The ERROR status.

F

fh - Variable in class com.dexterind.gopigo.utils.Debug
The log file handler.
FINE - Static variable in class com.dexterind.gopigo.utils.Debug
The "fine" log level.
FINER - Static variable in class com.dexterind.gopigo.utils.Debug
The "finer" log level.
FINEST - Static variable in class com.dexterind.gopigo.utils.Debug
The "finest" log level.
fireEvent(EventObject) - Method in class com.dexterind.gopigo.Gopigo
Fires an event to the listeners.
forward(boolean) - Method in class com.dexterind.gopigo.behaviours.Motion
Moves forward the Gopigo.
FORWARD - Static variable in class com.dexterind.gopigo.components.Motor
The forward command.
free() - Method in class com.dexterind.gopigo.Gopigo
Sets the GoPiGo free.
FW_VER - Static variable in class com.dexterind.gopigo.utils.Commands
Read the firmware version.
FWD - Static variable in class com.dexterind.gopigo.utils.Commands
Move forward with PID.

G

getCriticalVoltage() - Method in class com.dexterind.gopigo.Gopigo
Returns the critical voltage value.
getDistance() - Method in class com.dexterind.gopigo.components.UltraSonicSensor
Reads the distance through the ultrasonic sound.
getInstance() - Static method in class com.dexterind.gopigo.behaviours.Motion
Provides a global point of access to the Motion instance.
getInstance() - Static method in class com.dexterind.gopigo.components.Board
Provides a global point of access to the Board instance.
getInstance() - Static method in class com.dexterind.gopigo.components.Encoders
Provides a global point of access to the Encoders instance.
getInstance() - Static method in class com.dexterind.gopigo.components.Servo
Provides a global point of access to the Servo instance.
getInstance() - Static method in class com.dexterind.gopigo.components.UltraSonicSensor
Provides a global point of access to the UltraSonicSensor instance.
getInstance() - Static method in class com.dexterind.gopigo.Gopigo
Provides a global point of access to the Gopigo instance.
getMinVoltage() - Method in class com.dexterind.gopigo.Gopigo
Returns the min.
Gopigo - Class in com.dexterind.gopigo
The main class for the Gopigo.
Gopigo() - Constructor for class com.dexterind.gopigo.Gopigo
Instanciates the components and the behaviours of the Gopigo.
GopigoListener - Interface in com.dexterind.gopigo
 

H

halt() - Method in class com.dexterind.gopigo.Gopigo
Halts the GoPiGo if necessary.
HALT - Static variable in class com.dexterind.gopigo.utils.Statuses
The HALT status.

I

increaseSpeed() - Method in class com.dexterind.gopigo.behaviours.Motion
Increases the speed of both the motors.
INFO - Static variable in class com.dexterind.gopigo.utils.Debug
The "info" log level.
init() - Method in class com.dexterind.gopigo.components.Board
Initializes the board executing a writing test catching the error.
init() - Method in class com.dexterind.gopigo.Gopigo
Initializes the Gopigo and fires an event once the init is done.
INIT - Static variable in class com.dexterind.gopigo.utils.Statuses
The INIT status.
initVoltageCheck() - Method in class com.dexterind.gopigo.Gopigo
Initializes a timer which will checks the voltage and will fires and event in case of low voltage.
instance - Static variable in class com.dexterind.gopigo.behaviours.Motion
The instance of the current object.
instance - Static variable in class com.dexterind.gopigo.components.Board
The instance of the current object.
instance - Static variable in class com.dexterind.gopigo.components.Encoders
The instance of the current object.
instance - Static variable in class com.dexterind.gopigo.components.Servo
The instance of the current object.
instance - Static variable in class com.dexterind.gopigo.components.UltraSonicSensor
The instance of the current object.
instance - Static variable in class com.dexterind.gopigo.Gopigo
The instance of the current object.
isHalt - Variable in class com.dexterind.gopigo.Gopigo
The flag for the halted status.
isHalt() - Method in class com.dexterind.gopigo.Gopigo
It returns the halt status.
isInit - Variable in class com.dexterind.gopigo.Gopigo
The flag for the initialized status.
isOperative() - Method in class com.dexterind.gopigo.Gopigo
It returns the operativity status.
ISPD - Static variable in class com.dexterind.gopigo.utils.Commands
Increase the speed by 10.

L

Led - Class in com.dexterind.gopigo.components
Handles the LED functions.
Led(int) - Constructor for class com.dexterind.gopigo.components.Led
 
LED - Static variable in class com.dexterind.gopigo.utils.Commands
Turn ON/OFF the LEDs.
ledLeft - Variable in class com.dexterind.gopigo.Gopigo
The left led.
ledRight - Variable in class com.dexterind.gopigo.Gopigo
The right led.
left() - Method in class com.dexterind.gopigo.behaviours.Motion
Moves the Gopigo to the left.
LEFT - Static variable in class com.dexterind.gopigo.components.Led
The left pin ID.
LEFT - Static variable in class com.dexterind.gopigo.components.Motor
The left motor ID.
LEFT - Static variable in class com.dexterind.gopigo.utils.Commands
Turn left by turning off one motor.
LEFT_COMMAND - Static variable in class com.dexterind.gopigo.components.Motor
The left motor command.
LEFT_PIN - Static variable in class com.dexterind.gopigo.components.Led
The left pin code.
LEFT_ROT - Static variable in class com.dexterind.gopigo.utils.Commands
Rotate left by running both motors in opposite direction.
leftWithRotation() - Method in class com.dexterind.gopigo.behaviours.Motion
Rotates the Gopigo to the left.
listeners - Variable in class com.dexterind.gopigo.Gopigo
The list of the listeners which are listening for some event.
log(int, String) - Method in class com.dexterind.gopigo.utils.Debug
Writes the log message with the given level.
logDir - Variable in class com.dexterind.gopigo.utils.Debug
The default directory where the log will be created.
logFile - Variable in class com.dexterind.gopigo.utils.Debug
The default filename for the log.
logger - Variable in class com.dexterind.gopigo.utils.Debug
The logger object.

M

M1 - Static variable in class com.dexterind.gopigo.utils.Commands
Control motor1.
M2 - Static variable in class com.dexterind.gopigo.utils.Commands
Control motor2.
minVoltage - Variable in class com.dexterind.gopigo.Gopigo
The minimum voltage value.
Motion - Class in com.dexterind.gopigo.behaviours
Handles all the methods related to the movement of the GoPigo.
Motion() - Constructor for class com.dexterind.gopigo.behaviours.Motion
 
motion - Variable in class com.dexterind.gopigo.Gopigo
The motion behaviour object.
Motor - Class in com.dexterind.gopigo.components
Handles the motor functions.
Motor(int) - Constructor for class com.dexterind.gopigo.components.Motor
 
MOTOR_BWD - Static variable in class com.dexterind.gopigo.utils.Commands
Move backward without PID.
MOTOR_FWD - Static variable in class com.dexterind.gopigo.utils.Commands
Move forward without PID.
motorLeft - Variable in class com.dexterind.gopigo.Gopigo
The left motor.
motorRight - Variable in class com.dexterind.gopigo.Gopigo
The right motor.
move(int, int) - Method in class com.dexterind.gopigo.components.Motor
Moves the motor in the direction at the given speed.
move(int) - Method in class com.dexterind.gopigo.components.Servo
Moves the servo motor to the position.

O

off() - Method in class com.dexterind.gopigo.components.Led
Turns the led OFF.
OK - Static variable in class com.dexterind.gopigo.utils.Statuses
The OK status.
on() - Method in class com.dexterind.gopigo.components.Led
Turns the led ON.
onHalt() - Method in class com.dexterind.gopigo.Gopigo
Fires a "HALT" StatusEvent
onStatusEvent(StatusEvent) - Method in interface com.dexterind.gopigo.GopigoListener
 
onVoltageEvent(VoltageEvent) - Method in interface com.dexterind.gopigo.GopigoListener
 

P

pin - Variable in class com.dexterind.gopigo.components.Led
The current pin code.
pin - Variable in class com.dexterind.gopigo.components.UltraSonicSensor
The current pin.
PIN_MODE - Static variable in class com.dexterind.gopigo.utils.Commands
Set up the pin mode on a port.
PIN_MODE_INPUT - Static variable in class com.dexterind.gopigo.components.Board
The input mode for the pin.
PIN_MODE_OUTPUT - Static variable in class com.dexterind.gopigo.components.Board
The output mode for the pin.
position - Variable in class com.dexterind.gopigo.components.Servo
The current position value

R

read(int) - Method in class com.dexterind.gopigo.components.Encoders
Reads the encoding value for the motor.
READ_ENC_STATUS - Static variable in class com.dexterind.gopigo.utils.Commands
Read the encoder status.
readI2c(int) - Method in class com.dexterind.gopigo.components.Board
Reads the number of bytes from the I2C device.
readStatus() - Method in class com.dexterind.gopigo.components.Board
Reads the current status.
readStatus() - Method in class com.dexterind.gopigo.components.Encoders
Reads the encoders status.
readTimeoutStatus() - Method in class com.dexterind.gopigo.behaviours.Motion
Reads the timeout status.
removeListener(GopigoListener) - Method in class com.dexterind.gopigo.Gopigo
Removes a GopigoListener from the listeners list.
reset() - Method in class com.dexterind.gopigo.Gopigo
Resets the Gopigo.
right() - Method in class com.dexterind.gopigo.behaviours.Motion
Moves the Gopigo to the right.
RIGHT - Static variable in class com.dexterind.gopigo.components.Led
The right pin ID.
RIGHT - Static variable in class com.dexterind.gopigo.components.Motor
The right motor ID.
RIGHT - Static variable in class com.dexterind.gopigo.utils.Commands
Turn right by turning off one motor.
RIGHT_COMMAND - Static variable in class com.dexterind.gopigo.components.Motor
The right motor command.
RIGHT_PIN - Static variable in class com.dexterind.gopigo.components.Led
The right pin code.
RIGHT_ROT - Static variable in class com.dexterind.gopigo.utils.Commands
Rotate right by running both motors in opposite direction.
rightWithRotation() - Method in class com.dexterind.gopigo.behaviours.Motion
Rotates the Gopigo to the right.

S

serialVersionUID - Static variable in class com.dexterind.gopigo.events.StatusEvent
 
serialVersionUID - Static variable in class com.dexterind.gopigo.events.VoltageEvent
 
Servo - Class in com.dexterind.gopigo.components
It allows to move, enable or disable the servo motor.
Servo() - Constructor for class com.dexterind.gopigo.components.Servo
 
servo - Variable in class com.dexterind.gopigo.Gopigo
The servo motor.
SERVO - Static variable in class com.dexterind.gopigo.utils.Commands
Rotate the servo.
SET_LEFT_SPEED - Static variable in class com.dexterind.gopigo.utils.Commands
Set the speed of the right motor.
SET_RIGHT_SPEED - Static variable in class com.dexterind.gopigo.utils.Commands
Set the speed of the left motor.
setCriticalVoltage(double) - Method in class com.dexterind.gopigo.Gopigo
Sets the critical voltage value.
setLeftSpeed(int) - Method in class com.dexterind.gopigo.behaviours.Motion
Sets the speed only for the left motor.
setMinVoltage(double) - Method in class com.dexterind.gopigo.Gopigo
Sets the min.
setPin(int) - Method in class com.dexterind.gopigo.components.UltraSonicSensor
Sets the pin to use for the sensor.
setPinMode(int, int) - Method in class com.dexterind.gopigo.components.Board
Sets the pin mode to use on the pin.
setRightSpeed(int) - Method in class com.dexterind.gopigo.behaviours.Motion
Sets the speed only for the right motor.
setSpeed(int) - Method in class com.dexterind.gopigo.behaviours.Motion
Sets the speed for both the motors.
SEVERE - Static variable in class com.dexterind.gopigo.utils.Debug
The "severe" log level.
sleep(int) - Method in class com.dexterind.gopigo.components.Board
Executes a sleep on the thread for the number of milliseconds.
status - Variable in class com.dexterind.gopigo.events.StatusEvent
The status of the event.
Statuses - Class in com.dexterind.gopigo.utils
 
Statuses() - Constructor for class com.dexterind.gopigo.utils.Statuses
 
StatusEvent - Class in com.dexterind.gopigo.events
A status event is fired at every change to the GoPiGo status.
StatusEvent(Object) - Constructor for class com.dexterind.gopigo.events.StatusEvent
 
StatusEvent(Object, int) - Constructor for class com.dexterind.gopigo.events.StatusEvent
 
stop() - Method in class com.dexterind.gopigo.behaviours.Motion
Stops any kind of movement.
STOP - Static variable in class com.dexterind.gopigo.utils.Commands
Stop the GoPiGo.

T

targeting(int, int, int) - Method in class com.dexterind.gopigo.components.Encoders
Sets the targeting for both the motors.
TIMEOUT_STATUS - Static variable in class com.dexterind.gopigo.utils.Commands
Read the timeout status.
TRIM_READ - Static variable in class com.dexterind.gopigo.utils.Commands
Read the trim values.
TRIM_TEST - Static variable in class com.dexterind.gopigo.utils.Commands
Test the trim values.
TRIM_WRITE - Static variable in class com.dexterind.gopigo.utils.Commands
Write the trim values.
trimRead() - Method in class com.dexterind.gopigo.behaviours.Motion
Reads the current Trim value.
trimTest(int) - Method in class com.dexterind.gopigo.behaviours.Motion
Executes a Trim test.
trimWrite(int) - Method in class com.dexterind.gopigo.behaviours.Motion
Sets the Trim value.

U

UltraSonicSensor - Class in com.dexterind.gopigo.components
It get access to the ultrasonic sensor distance calculation.
UltraSonicSensor() - Constructor for class com.dexterind.gopigo.components.UltraSonicSensor
 
ultraSonicSensor - Variable in class com.dexterind.gopigo.Gopigo
The ultrasonic sensor.
UNUSED - Static variable in class com.dexterind.gopigo.utils.Commands
This allows us to be more specific about which commands contain unused ints
US - Static variable in class com.dexterind.gopigo.utils.Commands
Read the distance from the ultrasonic sensor.

V

value - Variable in class com.dexterind.gopigo.events.VoltageEvent
The value of the voltage.
version() - Method in class com.dexterind.gopigo.components.Board
Returns the firmware version.
volt() - Method in class com.dexterind.gopigo.components.Board
Returns the current voltage on the board.
VOLT - Static variable in class com.dexterind.gopigo.utils.Commands
Read the voltage of the batteries.
VoltageEvent - Class in com.dexterind.gopigo.events
A voltage event is fired by the voltage check task and it contains the current voltage value in volts.
VoltageEvent(Object) - Constructor for class com.dexterind.gopigo.events.VoltageEvent
 
VoltageEvent(Object, double) - Constructor for class com.dexterind.gopigo.events.VoltageEvent
 
voltageTimer - Variable in class com.dexterind.gopigo.Gopigo
The timer which will be in charge to check the voltage value.
voltageTimerTime - Variable in class com.dexterind.gopigo.Gopigo
The time in milliseconds between successive task executions.

W

WARNING - Static variable in class com.dexterind.gopigo.utils.Debug
The "warning" log level.
writeI2c(int...) - Method in class com.dexterind.gopigo.components.Board
Writes the bytes to the I2C device.
A B C D E F G H I L M O P R S T U V W 
Skip navigation links