improvements for op codes

This commit is contained in:
Robin Müller 2022-10-18 11:41:14 +02:00
parent 80a57cdc70
commit 0ddb9587ba
3 changed files with 13 additions and 13 deletions

View File

@ -13,7 +13,7 @@
<option name="ADD_SOURCE_ROOTS" value="true" /> <option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" /> <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtcc.py" /> <option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtcc.py" />
<option name="PARAMETERS" value="-s pdu1" /> <option name="PARAMETERS" value="-s pdu1 -l" />
<option name="SHOW_COMMAND_LINE" value="false" /> <option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="true" /> <option name="EMULATE_TERMINAL" value="true" />
<option name="MODULE_MODE" value="false" /> <option name="MODULE_MODE" value="false" />

View File

@ -13,7 +13,7 @@
<option name="ADD_SOURCE_ROOTS" value="true" /> <option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" /> <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtcc.py" /> <option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtcc.py" />
<option name="PARAMETERS" value="-s pdu2" /> <option name="PARAMETERS" value="-s pdu2 -l" />
<option name="SHOW_COMMAND_LINE" value="false" /> <option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="true" /> <option name="EMULATE_TERMINAL" value="true" />
<option name="MODULE_MODE" value="false" /> <option name="MODULE_MODE" value="false" />

View File

@ -8,20 +8,20 @@ from .common import command_mode
class AcsOpCodes: class AcsOpCodes:
ACS_ASS_A_SIDE = ["0", "acs-a"] ACS_ASS_A_SIDE = ["0", "a"]
ACS_ASS_B_SIDE = ["1", "acs-b"] ACS_ASS_B_SIDE = ["1", "b"]
ACS_ASS_DUAL_MODE = ["2", "acs-d"] ACS_ASS_DUAL_MODE = ["2", "dual"]
ACS_ASS_OFF = ["3", "acs-off"] ACS_ASS_OFF = ["3", "off"]
ACS_ASS_A_ON = ["4", "acs-ao"] ACS_ASS_A_ON = ["4", "a_on"]
ACS_ASS_B_ON = ["5", "acs-bo"] ACS_ASS_B_ON = ["5", "b_on"]
ACS_ASS_DUAL_ON = ["6", "acs-do"] ACS_ASS_DUAL_ON = ["6", "dual_on"]
class SusOpCodes: class SusOpCodes:
SUS_ASS_NOM_SIDE = ["0", "sus-nom"] SUS_ASS_NOM_SIDE = ["0", "nom"]
SUS_ASS_RED_SIDE = ["1", "sus-red"] SUS_ASS_RED_SIDE = ["1", "red"]
SUS_ASS_DUAL_MODE = ["2", "sus-d"] SUS_ASS_DUAL_MODE = ["2", "dual"]
SUS_ASS_OFF = ["3", "sus-off"] SUS_ASS_OFF = ["3", "off"]
class DualSideSubmodes(enum.IntEnum): class DualSideSubmodes(enum.IntEnum):