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

A

AbstractKartControlActivity - Class in ch.hevs.kart
Basic activity for all kart control activities.
AbstractKartControlActivity() - Constructor for class ch.hevs.kart.AbstractKartControlActivity
 
addInstruction(KartSequence.Instruction.OpCode, short) - Method in class ch.hevs.kart.KartSequence
Adds a new instruction with the given opcode and operand to the end of the sequence.
addInstruction(KartSequence.Instruction) - Method in class ch.hevs.kart.KartSequence
Adds the given instruction to the end of the sequence.
addKartListener(KartListener) - Method in class ch.hevs.kart.Kart
Adds the passed kart listener to the kart.
addStatusRegisterListener(KartStatusRegisterListener) - Method in class ch.hevs.kart.Kart
Adds the passed status listener to the kart.
Animation - Class in ch.hevs.kart.utils
Support for simple animations that run in the background (without blocking the Android App's main thread).
Animation.Builder - Class in ch.hevs.kart.utils
Builder in order to construct animations comfortable.
Animation.ExclusiveRunner - Class in ch.hevs.kart.utils
The ExclusiveRunner class ensures that only exactly one animation is running at the same time in its context.
apply(KartSetup) - Method in class ch.hevs.kart.KartSetup
Applies all parameters of the given Kart setup to this setup.
availableSequences(Context) - Static method in class ch.hevs.kart.KartSequence
Returns a list of the available kart sequence files.

B

batteryVoltageChanged(Kart, float) - Method in interface ch.hevs.kart.KartListener
The battery level has changed.
build() - Method in class ch.hevs.kart.KartSequence.Builder
Creates and returns the actual kart sequence.
build() - Method in class ch.hevs.kart.utils.Animation.Builder
Builds the animation.
Builder() - Static method in class ch.hevs.kart.KartSequence
Creates and returns a new Builder in order to construct a Kart sequence.
Builder(Kart) - Static method in class ch.hevs.kart.utils.Animation
Returns a new Animation.Builder instance that can be used to build custom LED/Kart animations.

C

cancel() - Method in class ch.hevs.kart.utils.Animation
Cancels the animation.
cancel() - Method in class ch.hevs.kart.utils.Animation.ExclusiveRunner
Cancels the actual animation that runs in the runner's context.
cancelRunningSequence() - Method in class ch.hevs.kart.Kart
Cancels the actually running sequence.
ch.hevs.kart - package ch.hevs.kart
Summer school : Kart HES-SO Valais // Wallis summer school project.
ch.hevs.kart.utils - package ch.hevs.kart.utils
Summer school : Kart HES-SO Valais // Wallis summer school project.
clearHwSetting(KartHardwareSettings) - Method in class ch.hevs.kart.KartSetup
Clears the given hardware setting flag.
connectionStatusChanged(Kart, boolean) - Method in interface ch.hevs.kart.KartListener
The connection status to the Kart has changed.

D

decreaseDriveSpeed() - Method in class ch.hevs.kart.Kart
Decreases the drive speed (throttle) by the smallest possible amount.
drive(int) - Method in class ch.hevs.kart.KartSequence.Builder
This instruction changes the speed of the kart.
driveMaxSpeed() - Method in class ch.hevs.kart.KartSetup
Returns the maximal speed a kart is allowed to drive with.
driveMaxSpeed(int) - Method in class ch.hevs.kart.KartSetup
Sets the maximal speed a kart is allowed to drive with.
drivePwmPeriod() - Method in class ch.hevs.kart.KartSetup
Returns the drive motor control block PWM period.
drivePwmPeriod(int) - Method in class ch.hevs.kart.KartSetup
Sets the drive motor control block PWM period.
during(int) - Method in class ch.hevs.kart.KartSequence.Builder
This instruction will leave the Kart in the exact same state for the given amount of milliseconds.

E

ExclusiveRunner() - Constructor for class ch.hevs.kart.utils.Animation.ExclusiveRunner
 

F

fromAddress(int) - Static method in enum ch.hevs.kart.KartStatusRegister
Creates a status register enumerator from the given register address.
fromString(String) - Static method in class ch.hevs.kart.KartSequence.Instruction
Tries to convert a string into an instruction.

G

getAddress() - Method in enum ch.hevs.kart.KartControlRegister
Returns the address of the register in the kart's memory.
getAddress() - Method in enum ch.hevs.kart.KartStatusRegister
Returns the actual address of the status register in the Kart's register memory.
getBatteryLevel() - Method in class ch.hevs.kart.Kart
Returns the battery level from 0.0 (empty) to 1.0 (full).
getControlRegisterSigned(KartControlRegister) - Method in class ch.hevs.kart.Kart
Returns the actual value of the control register.
getControlRegisterUnsigned(KartControlRegister) - Method in class ch.hevs.kart.Kart
Returns the actual value of the control register.
getDriveSpeed() - Method in class ch.hevs.kart.Kart
Returns the actual absolute drive speed (throttle) in the range [-15, 15].
getDriveSpeedNormalized() - Method in class ch.hevs.kart.Kart
Returns the actual normalized drive speed (throttle) in the range [-1.0, 1.0].
getInstruction(int) - Method in class ch.hevs.kart.KartSequence
Returns a reference to the instruction at the given index in order to modify the instruction or null if the index is outside the sequence bounds.
getLed(int) - Method in class ch.hevs.kart.Kart
Gets the status if the LED/digital output at the given index.
getOpCode() - Method in class ch.hevs.kart.KartSequence.Instruction
Returns the opcode (command) of the instruction.
getOperand() - Method in class ch.hevs.kart.KartSequence.Instruction
Returns the operand (argument) of the instruction.
getStatusRegisterSigned(KartStatusRegister) - Method in class ch.hevs.kart.Kart
Returns the actual value of the status register.
getStatusRegisterUnsigned(KartStatusRegister) - Method in class ch.hevs.kart.Kart
Returns the actual value of the status register.
getSteeringControlPosition() - Method in class ch.hevs.kart.Kart
Returns the actual absolute steering control position.
getSteeringControlPositionNormalized() - Method in class ch.hevs.kart.Kart
Returns the actual normalized steering control position.
getSteeringPosition() - Method in class ch.hevs.kart.Kart
Returns the actual absolute steering position (It is the actual position of the steering system, not the target value).
getSteeringPositionNormalized() - Method in class ch.hevs.kart.Kart
Returns the actual normalized steering position (not the set point) in the range [-1.0, 1.0].

H

hardwareSettings() - Method in class ch.hevs.kart.KartSetup
Returns the Kart's actual hardware settings.
hardwareSettings(EnumSet<KartHardwareSettings>) - Method in class ch.hevs.kart.KartSetup
Changes all of the hardware settings flags to the given values.

I

increaseDriveSpeed() - Method in class ch.hevs.kart.Kart
Increases the drive speed (throttle) by the smallest possible amount.
insertInstruction(int, KartSequence.Instruction.OpCode, short) - Method in class ch.hevs.kart.KartSequence
Adds a new instruction with the given opcode and operand to the given index of the sequence.
insertInstruction(int, KartSequence.Instruction) - Method in class ch.hevs.kart.KartSequence
Adds the given instruction to the given index of the sequence.
Instruction(KartSequence.Instruction.OpCode, short) - Constructor for class ch.hevs.kart.KartSequence.Instruction
A complete kart instruction consisting of an opcode and an operand.
isRunning() - Method in class ch.hevs.kart.utils.Animation
Returns true if the animation is actually running and false if not.
isSequenceRunning() - Method in class ch.hevs.kart.Kart
Returns true if a sequence is actually running (or downloaded) on the kart, false if no sequence is running.
isSteeringEndContactTriggered() - Method in class ch.hevs.kart.Kart
Returns true if the steering end contact is closed, false otherwise.
isSteeringPositionReached() - Method in class ch.hevs.kart.Kart
Returns true if the kart has reached the target steering position, false otherwise.

J

jump(int) - Method in class ch.hevs.kart.KartSequence.Builder
This operation will jump to the instruction that is pointed by the operand.

K

kart - Variable in class ch.hevs.kart.AbstractKartControlActivity
The Kart object.
Kart - Class in ch.hevs.kart
Kart object.
KartControlRegister - Enum in ch.hevs.kart
Enumeration used to identify the control registers of the Kart.
KartHardwareSettings - Enum in ch.hevs.kart
Kart hardware settings flags.
KartListener - Interface in ch.hevs.kart
Interface to implement if an object is interested in basic kart status changes.
KartSequence - Class in ch.hevs.kart
A KartSequence is a step-by-step sequence of commands that can be uploaded to a Kart.
KartSequence() - Constructor for class ch.hevs.kart.KartSequence
 
KartSequence.Builder - Class in ch.hevs.kart
Builder which has to be used in order to construct new KartSequences.
KartSequence.Instruction - Class in ch.hevs.kart
Instruction class, represents a single instruction (opcode + operand).
KartSequence.Instruction.OpCode - Enum in ch.hevs.kart
Enumerates the opcodes actually supported by the Kart'a sequencer vm.
KartSetup - Class in ch.hevs.kart
Groups all kart settings together and allows a convenient kart setup.
KartSetup() - Constructor for class ch.hevs.kart.KartSetup
Creates a new, kart setup with all parameters set to their defaults.
KartStatusRegister - Enum in ch.hevs.kart
Enumerates the different status registers that a kart is sending to the smart-phone.
KartStatusRegisterListener - Interface in ch.hevs.kart
Low-level interface in order to get changes from the remote kart represented by a Kart instance.

L

ledOff(int) - Method in class ch.hevs.kart.KartSequence.Builder
This instruction will turn the LED at the given index (0..3) off or generally spoken, the digital output will be deactivated.
ledOff(int) - Method in class ch.hevs.kart.utils.Animation.Builder
Turns the LED or digital output on the Kart at the given index off.
ledOn(int) - Method in class ch.hevs.kart.KartSequence.Builder
This instruction will turn the LED at the given index (0..3) on or generally spoken, the digital output will be activated.
ledOn(int) - Method in class ch.hevs.kart.utils.Animation.Builder
Turns the LED or digital output on the Kart at the given index on.
limit(T, T, T) - Static method in class ch.hevs.kart.utils.Limits
Generic limit function.
Limits - Class in ch.hevs.kart.utils
Offers static methods in order to limit values to a given range.
Limits() - Constructor for class ch.hevs.kart.utils.Limits
 
load(String, Context) - Static method in class ch.hevs.kart.KartSequence
Tries to load a kart sequence from the given XML file.
load(String, Activity) - Static method in class ch.hevs.kart.KartSetup
Loads the kart settings from the given name.
loadFromBundle(Bundle) - Static method in class ch.hevs.kart.KartSequence
Tries to load a kart sequence from the given bundle.
loop(Animation) - Method in class ch.hevs.kart.utils.Animation.ExclusiveRunner
Starts the animation and executes the animation in a loop infinitely.
loop() - Method in class ch.hevs.kart.utils.Animation
Starts the animation and executes the animation in a loop infinitely.

M

MAXIMAL_SPEED - Static variable in class ch.hevs.kart.Kart
Maximal kart drive speed.
message(Kart, String) - Method in interface ch.hevs.kart.KartListener
The kart has a message to display, most of the time this are cryptic messages just for developers, but they might be helpful to display during development...
MINIMAL_SPEED - Static variable in class ch.hevs.kart.Kart
Minimal drive speed (maximal backwards).

N

nop() - Method in class ch.hevs.kart.KartSequence.Builder
This instruction does nothing.

O

onCreate(Bundle) - Method in class ch.hevs.kart.AbstractKartControlActivity
 
onDraw(Canvas) - Method in class ch.hevs.kart.utils.VerticalSeekBar
 
onMeasure(int, int) - Method in class ch.hevs.kart.utils.VerticalSeekBar
 
onPause() - Method in class ch.hevs.kart.AbstractKartControlActivity
 
onResume() - Method in class ch.hevs.kart.AbstractKartControlActivity
 
onSizeChanged(int, int, int, int) - Method in class ch.hevs.kart.utils.VerticalSeekBar
 
onTimeout() - Method in class ch.hevs.kart.utils.Timer
This method will be called either once after the specified delay or periodically whenever the timer expires.
onTouchEvent(MotionEvent) - Method in class ch.hevs.kart.utils.VerticalSeekBar
 
outputs(int) - Method in class ch.hevs.kart.KartSequence.Builder
This instruction sets the four LED outputs to the values of the four least significant bytes of the given value.

P

perform(Runnable) - Method in class ch.hevs.kart.utils.Animation.Builder
Performs a custom action that can be passed as Runnable implementation to the builder method call.

R

ready() - Method in class ch.hevs.kart.utils.Timer
If this method returns true, it is save to schedule the timer.
removeInstruction(int) - Method in class ch.hevs.kart.KartSequence
Removes the instruction at the given index from the sequence.
removeKartListener(KartListener) - Method in class ch.hevs.kart.Kart
Removes the kart listener.
removeStatusRegisterListener(KartStatusRegisterListener) - Method in class ch.hevs.kart.Kart
Removes the given status register listener.
requestFullscreen() - Method in class ch.hevs.kart.AbstractKartControlActivity
Shows the activity fullscreen - without the soft buttons displayed.
resetSteering() - Method in class ch.hevs.kart.Kart
Resets the steering subsystem of the kart.
run(KartSequence) - Method in class ch.hevs.kart.Kart
Uploads the sequence to the kart's sequence player and starts it.
run(Animation) - Method in class ch.hevs.kart.utils.Animation.ExclusiveRunner
Starts the animation passed by animation and executes the animation exactly once.
run() - Method in class ch.hevs.kart.utils.Animation
Starts the animation and executes the animation exactly once.

S

save(String, Context) - Method in class ch.hevs.kart.KartSequence
Saves the sequence as XML file inside the application's private data location.
save(String, Activity) - Method in class ch.hevs.kart.KartSetup
Saves the kart settings under the given identifier.
saveToBundle(Bundle) - Method in class ch.hevs.kart.KartSequence
Saves the sequence to the given bundle.
scheduleOnce(int) - Method in class ch.hevs.kart.utils.Timer
Schedules the timer once to expire after the given delay.
schedulePeriodically(int) - Method in class ch.hevs.kart.utils.Timer
Schedules the timer continuously using the given interval.
sequenceCompleted(Kart) - Method in interface ch.hevs.kart.KartListener
A sequence that was started using Kart.run(KartSequence) has been completed.
sequenceSize() - Method in class ch.hevs.kart.KartSequence.Builder
Returns the number of instructions in the sequence that is actually under construction by the builder.
setControlRegister(KartControlRegister, int) - Method in class ch.hevs.kart.Kart
Sets the given control register to the given value.
setDriveSpeed(int) - Method in class ch.hevs.kart.Kart
Sets the drive speed (throttle) to the given absolute value.
setDriveSpeedNormalized(float) - Method in class ch.hevs.kart.Kart
Sets the drive speed (throttle) to the given normalized value.
setEnabledForAllSubviews(View, boolean) - Static method in class ch.hevs.kart.AbstractKartControlActivity
Sets the enabled flag on the given view and all its subviews.
setHwSetting(KartHardwareSettings) - Method in class ch.hevs.kart.KartSetup
Sets the given hardware setting flag.
setLed(int, boolean) - Method in class ch.hevs.kart.Kart
Sets the LED or digital output at the give index [0,3] to the given value (true=on, false=off).
setOnSeekBarChangeListener(SeekBar.OnSeekBarChangeListener) - Method in class ch.hevs.kart.utils.VerticalSeekBar
 
setOperand(short) - Method in class ch.hevs.kart.KartSequence.Instruction
Changes the operand (argument) of the instruction.
setProgress(int) - Method in class ch.hevs.kart.utils.VerticalSeekBar
 
setSteeringPosition(int) - Method in class ch.hevs.kart.Kart
Sets the steering position on the kart to the given absolute value.
setSteeringPositionNormalized(float) - Method in class ch.hevs.kart.Kart
Sets the steering position on the kart to the given normalized value.
setup() - Method in class ch.hevs.kart.Kart
Returns a reference to the kart setup.
showKartSetupPopup() - Method in class ch.hevs.kart.AbstractKartControlActivity
Shows a pop-up menu that enables the user to adjust kart setup and save the settings as default settings for the given kart.
size() - Method in class ch.hevs.kart.KartSequence
Returns the number of instructions in the sequence.
statusRegisterHasChanged(Kart, KartStatusRegister, int) - Method in interface ch.hevs.kart.KartStatusRegisterListener
This method is called by a Kart instance to which this listener has been registered for every register that changed it's value.
steer(int) - Method in class ch.hevs.kart.KartSequence.Builder
This instruction changes the steering to the given position.
steeringCenterPosition(int) - Method in class ch.hevs.kart.KartSetup
Sets the steering motor central position.
steeringEndSwitchAddress() - Method in class ch.hevs.kart.KartSetup
Returns the steering end switch address from which emulated end switch the data is considered by the steering FSM.
steeringEndSwitchAddress(int) - Method in class ch.hevs.kart.KartSetup
Sets the steering end switch address from which emulated end switch the data is considered by the steering FSM.
steeringMaxPosition() - Method in class ch.hevs.kart.KartSetup
Returns the maximal step count at the opposite site of the stepper end contact switch.
steeringMaxPosition(int) - Method in class ch.hevs.kart.KartSetup
Sets the maximal step count of the steering motor.
steeringPositionChanged(Kart, int, float) - Method in interface ch.hevs.kart.KartListener
Called by the kart whenever the actual steering position has changed.
steeringPositionReachedChanged(Kart, boolean) - Method in interface ch.hevs.kart.KartListener
The steering system has changed its state.
steeringStepPeriod() - Method in class ch.hevs.kart.KartSetup
Returns the steering motor driver step period.
steeringStepPeriod(int) - Method in class ch.hevs.kart.KartSetup
Sets the steering motor driver step period.
stop() - Method in class ch.hevs.kart.utils.Timer
Stops/cancels/pauses the pending timer.

T

Timer - Class in ch.hevs.kart.utils
Schedules one-shot or recurring tasks for execution.
Timer() - Constructor for class ch.hevs.kart.utils.Timer
 
toByte() - Method in enum ch.hevs.kart.KartSequence.Instruction.OpCode
Converts the opcode to a byte that can be interpreted by the kart VM.
toggleLed(int) - Method in class ch.hevs.kart.Kart
Toggles the LED/digital output at the given index.
toString() - Method in class ch.hevs.kart.KartSequence.Instruction
Returns a string representation of the instruction.
toXmlTag() - Method in class ch.hevs.kart.KartSequence.Instruction
Converts the instruction to an XML tag that can be embedded into XML files.
travel(int) - Method in class ch.hevs.kart.KartSequence.Builder
This instruction will leave the Kart in the exact same state until the given amount of pulses are counted on hall sensor 1.
turnSteeringBy(int) - Method in class ch.hevs.kart.Kart
Turns the steering position by the given absolute number of steps.
turnSteeringNormalizedBy(float) - Method in class ch.hevs.kart.Kart
Turns the steering position by the given normalized amount.

U

until(Callable<Boolean>) - Method in class ch.hevs.kart.utils.Animation.Builder
Tests repeatedly the given condition until the condition returns true, then the animation is continued.
until(Callable<Boolean>, int) - Method in class ch.hevs.kart.utils.Animation.Builder
Tests repeatedly the given condition until the condition returns true, then the animation is continued.
updateInterval() - Method in class ch.hevs.kart.KartSetup
Returns the update interval of the Kart in seconds.
updateInterval(float) - Method in class ch.hevs.kart.KartSetup
Sets the update interval of the Kart in seconds.

V

valueOf(String) - Static method in enum ch.hevs.kart.KartControlRegister
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.hevs.kart.KartHardwareSettings
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.hevs.kart.KartSequence.Instruction.OpCode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.hevs.kart.KartStatusRegister
Returns the enum constant of this type with the specified name.
values() - Static method in enum ch.hevs.kart.KartControlRegister
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.hevs.kart.KartHardwareSettings
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.hevs.kart.KartSequence.Instruction.OpCode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.hevs.kart.KartStatusRegister
Returns an array containing the constants of this enum type, in the order they are declared.
VerticalSeekBar - Class in ch.hevs.kart.utils
Enables to render a seek bar view vertically.
VerticalSeekBar(Context) - Constructor for class ch.hevs.kart.utils.VerticalSeekBar
 
VerticalSeekBar(Context, AttributeSet, int) - Constructor for class ch.hevs.kart.utils.VerticalSeekBar
 
VerticalSeekBar(Context, AttributeSet) - Constructor for class ch.hevs.kart.utils.VerticalSeekBar
 

W

wait(int) - Method in class ch.hevs.kart.utils.Animation.Builder
Waits the given amount of milliseconds before the next step of the animation will be executed.
A B C D E F G H I J K L M N O P R S T U V W