| | |
| | | 0xDF03: PartNumberCodec(3), |
| | | 0xDF04: PartNumberCodec(3), |
| | | 0x1000: PartNumberCodec(2), |
| | | 0xF010: AsciiCodec(16), |
| | | 0xF019: AsciiCodec(16), |
| | | 0x2102: AsciiCodec(64) |
| | | } |
| | | try: |
| | | config = configparser.ConfigParser() |
| | |
| | | reqpos = TCU2_ShiterLevel_dic['M'] |
| | | self.pre_ShiftLeverPos = "P" |
| | | self.max_pos = 'Shifter position Zero' |
| | | elif shift.position is SA1_Status_GearShftPosReq_dic[ |
| | | 'Shifter not initialized']: |
| | | pass |
| | | else: |
| | | if shift.position is not SA1_Status_GearShftPosReq_dic[ |
| | | 'Shifter position Zero']: |
| | |
| | | self.pre_ShiftLeverPos = [ |
| | | k for k, v in TCU2_ShiterLevel_dic.items() if v == reqpos |
| | | ][0] |
| | | |
| | | data = self.pack_TCU2(reqpos) |
| | | return data |