Пример #1
0
    def loadTable(self, event):
        '''
        Send packet to toggle logging
        '''
        # Check connected
        if not commsConnectWarning.confirmConnected(gui.frame):
            return

        # Set expecting flag
        self._expecting = True

        data = {
            'type': 'RetrieveBlockFromRAM',
            'block_id': 0
        }

        self.controller.action('comms.sendMemoryRequest', data)
Пример #2
0
    def onCellUpdate(self, load, rpm, value):
        '''
        Send update request to ecu with new value
        '''
        # Check connected
        if not commsConnectWarning.confirmConnected(gui.frame):
            return

        data = {
            'type': 'UpdateMainTableCell',
            'block_id': self.table_id,
            'load': load,
            'rpm': rpm,
            'value': value,
        }

        self.GetParent().controller.action('comms.updateMainTableCell', data)