| | |
| | | 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 |
| | |
| | | SA1_Status_ParkButtonReq_dic = { |
| | | 'No request': 0x0, |
| | | 'Driver request park button': 1, |
| | | 'Park Button fault': 2, |
| | | 'Park button fault': 2, |
| | | 'Reserved': 3 |
| | | } |
| | | SA1_Status_UnlockButtonReq_dic = { |
| | |
| | | TIMING_DICT.keys())[self.devicedescription.baudrate] |
| | | self._usbcan = USBCAN(device_type=4, |
| | | device_index=0, |
| | | can_index=0, |
| | | can_index=self.devicedescription.channel, |
| | | bitrate=bitrate, |
| | | can_filters=can_filters) |
| | | if not self._usbcan.InitAndStart(): |
| | |
| | | pass |
| | | |
| | | def TestPresentEvent(self): |
| | | self.udsclient. |
| | | if self.UI.radioButton.isChecked(): |
| | | self.TestPresentTimer.start(3000) |
| | | else: |