
| Current Path : /proc/thread-self/root/home/jstimm/Desktop/50_dev2017/1330__canpy/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //proc/thread-self/root/home/jstimm/Desktop/50_dev2017/1330__canpy/canbus.py |
# -*- coding: utf-8 -*-
import os
import re
import sys
import time
import random
#************************************************************************
class CAN (object):
def __init__ (self,communication_matrix={}):
"""
The communication matrix is a dictionary which maps message id s
to lists of signals, example:
{ "7a3": "SIGNAL_A,7,SIGNAL_B,1,SIGNAL_C,17",
"e41": "SIGNAL_D,3,SIGNAL_E,1",
....
}
Sending of Signals then shall be translated into a list of messages
"""
self.signals = 1
#communication_matrix
self.communication_matrix = communication_matrix
#*************************************************************************