gsgr.config

gsgr.config.cfg = <gsgr.config.Config object>

Type:    Config

class gsgr.config.Config

Bases: object

LEFT_SENSOR

Type:    int

RIGHT_SENSOR

Type:    int

LEFT_SENSOR_TYPE

Type:    Optional[int]

RIGHT_SENSOR_TYPE

Type:    Optional[int]

LEFT_SW_SENSOR

Type:    int

RIGHT_SW_SENSOR

Type:    int

LEFT_MOTOR

Type:    int

RIGHT_MOTOR

Type:    int

DRIVING_MOTORS

Type:    tuple[int, int]

GEAR_SHAFT

Type:    int

GEAR_SELECTOR

Type:    int

GEAR_SELECTOR_OFFSET

Type:    int

TIRE_CIRCUMFRENCE

Type:    float

DEBUG_NOSCROLL

Type:    bool

DEBUG_FOCUS

Type:    bool

DEBUG_RAISE_BATTERY

Type:    bool

DEBUG_DISPLAY_ERRORS

Type:    bool

LOOP_THROTTLE

Type:    float

GYRO_TOLERANCE

Type:    int

GYRO_DRIVE_PID

Type:    PID

GYRO_TURN_PID

Type:    PID

GYRO_TURN_MINMAX_SPEED

Type:    tuple[int, int]

LANDSCAPE

Type:    bool

GYRO_OFF

Type:    int

class gsgr.config.PID(p, i, d)

Create new instance of PID(p, i, d)

d

Type:    _tuplegetter

Alias for field number 2

i

Type:    _tuplegetter

Alias for field number 1

p

Type:    _tuplegetter

Alias for field number 0

class gsgr.config.configure(**kwargs)
gyro_drive(pid)
gyro_turn(pid=None, minmax_speed=None)
gyro_tolerance(tolernce)