lewis.devices.chopper.devices.states

Members

DefaultAcceleratingState

DefaultIdleState

DefaultInitState

DefaultParkedState

DefaultParkingState

DefaultPhaseLockedState

DefaultPhaseLockingState

DefaultStoppedState

DefaultStoppingState

on_entry

class lewis.devices.chopper.devices.states.DefaultAcceleratingState(acceleration=5.0)[source]

Bases: State

in_state(dt) None[source]

Handle in-state event.

Raised repeatedly, once per cycle, while idling in this state. Exactly one in-state event occurs per cycle for every StateMachine. This is always the last event of the cycle.

Parameters:

dt – Delta T since last cycle.

on_entry(dt) None[source]

Handle entry event. Raised once, when this state is entered.

Parameters:

dt – Delta T since last cycle.

class lewis.devices.chopper.devices.states.DefaultIdleState(acceleration=0.05)[source]

Bases: State

in_state(dt) None[source]

Handle in-state event.

Raised repeatedly, once per cycle, while idling in this state. Exactly one in-state event occurs per cycle for every StateMachine. This is always the last event of the cycle.

Parameters:

dt – Delta T since last cycle.

class lewis.devices.chopper.devices.states.DefaultInitState[source]

Bases: State

on_entry(dt) None[source]

Handle entry event. Raised once, when this state is entered.

Parameters:

dt – Delta T since last cycle.

class lewis.devices.chopper.devices.states.DefaultParkedState[source]

Bases: State

class lewis.devices.chopper.devices.states.DefaultParkingState(parking_speed=5.0)[source]

Bases: State

in_state(dt) None[source]

Handle in-state event.

Raised repeatedly, once per cycle, while idling in this state. Exactly one in-state event occurs per cycle for every StateMachine. This is always the last event of the cycle.

Parameters:

dt – Delta T since last cycle.

on_entry(dt) None[source]

Handle entry event. Raised once, when this state is entered.

Parameters:

dt – Delta T since last cycle.

class lewis.devices.chopper.devices.states.DefaultPhaseLockedState[source]

Bases: State

class lewis.devices.chopper.devices.states.DefaultPhaseLockingState(phase_locking_speed=5.0)[source]

Bases: State

in_state(dt) None[source]

Handle in-state event.

Raised repeatedly, once per cycle, while idling in this state. Exactly one in-state event occurs per cycle for every StateMachine. This is always the last event of the cycle.

Parameters:

dt – Delta T since last cycle.

on_entry(dt) None[source]

Handle entry event. Raised once, when this state is entered.

Parameters:

dt – Delta T since last cycle.

class lewis.devices.chopper.devices.states.DefaultStoppedState[source]

Bases: State

on_entry(dt) None[source]

Handle entry event. Raised once, when this state is entered.

Parameters:

dt – Delta T since last cycle.

class lewis.devices.chopper.devices.states.DefaultStoppingState(acceleration=5.0)[source]

Bases: State

in_state(dt) None[source]

Handle in-state event.

Raised repeatedly, once per cycle, while idling in this state. Exactly one in-state event occurs per cycle for every StateMachine. This is always the last event of the cycle.

Parameters:

dt – Delta T since last cycle.

on_entry(dt) None[source]

Handle entry event. Raised once, when this state is entered.

Parameters:

dt – Delta T since last cycle.