slave-testbench-23/realTest.py

38 lines
753 B
Python
Raw Permalink Normal View History

2023-04-01 18:53:28 +02:00
import canTest
import voltageTest
import tempTest
import eProm
def startBalancingTest():
2023-04-01 18:55:55 +02:00
message = [5, 0xC, 0, 0xF, 0xF, 0xE, 0xE]
2023-04-01 20:35:33 +02:00
print("====================")
2023-04-01 18:55:55 +02:00
print("startBalancing")
canTest.waitForUserInput(True)
canTest.sendMessageOnCan(message)
2023-04-01 18:53:28 +02:00
2023-06-04 17:50:49 +02:00
2023-04-01 20:35:33 +02:00
canTest.CanTest()
eProm.ePromTest()
voltageTest.voltagesTest()
2023-06-04 17:50:49 +02:00
#tempTest.tempTest()
2023-04-01 18:53:28 +02:00
2023-04-01 20:35:33 +02:00
startBalancingTest()
2023-04-01 18:53:28 +02:00
"""
print("start Temp test")
message = [3, 0xc, 0, 0xf, 0xf, 0xe, 0xe]
canTest.waitForUserInput(True)
canTest.sendMessageOnCan(message)
answer = canTest.recive();
print(answer.data)
print("start eprom test")
message = [4, 0xc, 0, 0xf, 0xf, 0xe, 0xe,0x00]
canTest.waitForUserInput(True)
canTest.sendMessageOnCan(message)
answer = canTest.recive();
print(answer.data)
"""