Package ch.hevs.kart
package ch.hevs.kart
Summer school 1: Kart
HES-SO Valois // Wallis summer school project. This is the main package in order to interact with the Kart.Kart
is a virtual representation of the real Kart which can be queried for it's current state and environment and can be manipulated in
order to execute actions on the real Kart.
In order to get notified about changes on the state or environment of the Kart rather than to call
the getter methods periodically, you can register either a KartListener
in order to get notified whenever the steering position, the
battery level changes or any other registers reports a new value.
The KartSetup
class allows you to easily configure your Kart's hardware settings.-
ClassDescriptionBase activity for all kart control activities.Kart interface.Kart hardware settings flags.The Drive PWM period as 16 bit unsigned integer (UINT16, 0..65535).Drive motor speed as 5 bit signed integer (INT5, -15..15).Hardware settings register.LED control register.Allows to control the sequence virtual machine on the kart.Allows to upload a sequence to the kart's sequence player memory.Specifies the address at which the end switch is read at bit 0 (if it isn't local).The Stepper (Steering) motor step period as 16 bit unsigned integer (UINT16).Steering target position as 16 bit unsigned (UINT16) register.Update interval (from kart to App) in milliseconds.Proximity sensor 1 ambient light measure.Proximity sensor 2 ambient light measure.Proximity sensor 3 ambient light measure.Proximity sensor 4 ambient light measure.ADC value of the battery voltage level measure.Ultrasonic distance ranger value.State of the external steering end switch.Hall sensor 1 pulse count.Hall sensor 2 pulse count.Proximity sensor 1 value.Proximity sensor 2 value.Proximity sensor 3 value.Proximity sensor 4 value.Embedded sequence player status.Actual steering position.Steering FSM status.The Drive PWM clock prescaler as 16 bit unsigned integer (UINT16, 0..65535).Drive motor speed as 5 bit signed integer (INT5, -15..15).LED control register for LED 1.LED control register for LED 2.LED control register for LED 3.LED control register for LED 4.LED control register for LED 5.LED control register for LED 6.LED control register for LED 7.LED control register for LED 8.Hardware settings register.The Stepper (Steering) motor step clock prescaler as 16 bit unsigned integer (UINT16).Steering target angle (position) as 16 bit unsigned (UINT16) register.ADC value of the current measure.Digital input values.Hall sensor 1 pulse count.Hall sensor 2 pulse count.Ultrasonic distance ranger value.ADC value of the battery voltage level measure.Actual steering angle (position).Steering FSM status.A KartSequence is a step-by-step sequence of commands that can be uploaded to a Kart.Builder which has to be used in order to construct new KartSequences.Instruction class, represents a single instruction (opcode + operand).Enumerates the opcodes actually supported by the Kart's sequencer vm.Sequencer interface.Kart setup interface