Bugfix: Path to PCANBasic was not correct. Now using a relative path to the sub directory.
This commit is contained in:
parent
dc965eb600
commit
a04155be8c
13 changed files with 685 additions and 647 deletions
17
.project
Normal file
17
.project
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>CANLibrary</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.python.pydev.PyDevBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.python.pydev.pythonNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
12
.pydevproject
Normal file
12
.pydevproject
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?eclipse-pydev version="1.0"?>
|
||||
|
||||
<pydev_project>
|
||||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
|
||||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
|
||||
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
|
||||
<path>/CANLibrary</path>
|
||||
<path>/CANLibrary/PCANBasic</path>
|
||||
<path>/CANLibrary/pycrc</path>
|
||||
</pydev_pathproperty>
|
||||
</pydev_project>
|
||||
6
.settings/org.eclipse.core.resources.prefs
Normal file
6
.settings/org.eclipse.core.resources.prefs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
eclipse.preferences.version=1
|
||||
encoding//CANLibrary/CanMessage.py=UTF-8
|
||||
encoding//CANLibrary/CanSignal.py=UTF-8
|
||||
encoding//CANLibrary/PCan.py=UTF-8
|
||||
encoding//CANLibrary/example.py=UTF-8
|
||||
encoding//pycrc/crc_algorithms.py=latin1
|
||||
|
|
@ -60,8 +60,11 @@ pcan.sendMessage(pcan.Messages['mMotor_2'])
|
|||
|
||||
# receive messages, if the signal MO1_Drehzahl has changed, print the new value
|
||||
while True:
|
||||
#print 'send'
|
||||
pcan.sendMessage(pcan.Messages['mMotor_2'])
|
||||
dataOld = pcan.Messages['mMotor_1'].Signals['MO1_Drehzahl'].GetData()
|
||||
|
||||
#print 'receive'
|
||||
pcan.receiveMessage()
|
||||
if pcan.Messages['mMotor_1'].Signals['MO1_Drehzahl'].GetData() != dataOld:
|
||||
print 'mMotor_1.Data', pcan.Messages['mMotor_1'].Data
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ class PCANBasic:
|
|||
def __init__(self):
|
||||
# Loads the PCANBasic.dll
|
||||
#
|
||||
self.__m_dllBasic = windll.LoadLibrary("PCANBasic")
|
||||
self.__m_dllBasic = windll.LoadLibrary("../PCANBasic/PCANBasic")
|
||||
if self.__m_dllBasic == None:
|
||||
print "Exception: The PCAN-Basic DLL couldn't be loaded!"
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
pycrc/pycrc.pyc
BIN
pycrc/pycrc.pyc
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue