Skip to content

K Variables with two values #87

@artlazza

Description

@artlazza

I came across an issue while programming using the library.

The command:

event_to_trigger = Event(b'TURBINE_IGNITION_SWITCH_SET1', sm)
event_to_trigger(2)

Works fine and the switch moves accordingly. The variable is K:TURBINE_IGNITION_SWITCH_SET1 requires one value.

However, when dealing with a K variable that requires two values the program crashes, K:ELECTRICAL_BUS_TO_CIRCUIT_CONNECTION_TOGGLE variable for example.

If I try:

event_to_trigger = Event(b'ELECTRICAL_BUS_TO_CIRCUIT_CONNECTION_TOGGLE', sm)
event_to_trigger(11, 1)

It catches and exception and crashes.

Is there any way to pass two values for a K variable? Passing them in a row didn't work (two separate event_to_trigger commands with different values).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions