Home | Trees | Indices | Help |
---|
|
Author: tang.tiong.yew@gmail.com (Tang Tiong Yew)
Classes | |
DriverError | |
SerialCommandInterface A higher-level wrapper around PySerial specifically designed for use with Parallax Eddie Propeller Board. |
|
Eddiebot Represents a Eddiebot robot. |
Variables | |
EDDIE_OPCODES = dict(start= '', baud= '', control= '', safe= '
|
|
REMOTE_OPCODES = {129: 'left', 130: 'forward', 131: 'right', 1
|
|
BAUD_RATES = 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 2
|
|
CHARGING_STATES = 'not-charging', 'charging-recovery', 'chargi
|
|
OI_MODES = 'off', 'passive', 'safe', 'full'
|
|
WHEEL_DROP_CASTER = 0x10
|
|
WHEEL_DROP_LEFT = 0x08
|
|
WHEEL_DROP_RIGHT = 0x04
|
|
BUMP_LEFT = 0x02
|
|
BUMP_RIGHT = 0x01
|
|
OVERCURRENTS_DRIVE_LEFT = 0x10
|
|
OVERCURRENTS_DRIVE_RIGHT = 0x08
|
|
OVERCURRENTS_MAIN_BRUSH = 0x04
|
|
OVERCURRENTS_VACUUM = 0x02
|
|
OVERCURRENTS_SIDE_BRUSH = 0x01
|
|
BUTTON_POWER = 0x08
|
|
BUTTON_SPOT = 0x04
|
|
BUTTON_CLEAN = 0x02
|
|
BUTTON_MAX = 0x01
|
|
SENSOR_GROUP_PACKET_LENGTHS = {0: 26, 1: 10, 2: 6, 3: 10, 4: 1
|
|
RADIUS_TURN_IN_PLACE_CW = -2000
|
|
RADIUS_TURN_IN_PLACE_CCW = 2000
|
|
RADIUS_STRAIGHT = 32768
|
|
RADIUS_MAX = 2000
|
|
VELOCITY_MAX = 127
|
|
VELOCITY_SLOW = int(VELOCITY_MAX* 0.10)
|
|
VELOCITY_FAST = int(VELOCITY_MAX* 0.66)
|
|
PWM_RATIO_FORWARD_MAX = 127
|
|
PWM_RATIO_BACKWARD_MAX = -127
|
|
MAX_WHEEL_SPEED = 70
|
|
WHEEL_SEPARATION = 260
|
|
SERIAL_TIMEOUT = 2
|
|
START_DELAY = 5
|
|
BAUDRATE = 115200
|
Variables Details |
EDDIE_OPCODES
|
REMOTE_OPCODES
|
BAUD_RATES
|
CHARGING_STATES
|
SENSOR_GROUP_PACKET_LENGTHS
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun Oct 5 23:39:28 2014 | http://epydoc.sourceforge.net |