-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpierre.py
30 lines (21 loc) · 1.18 KB
/
pierre.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Importações de pacotes externos
import time
from libs.SerialCommunication import SerialCommunication
if __name__ == "__main__":
serialCommunication = SerialCommunication(port='COM11')
serialCommunication.startCommunication()
# messageToSend = {'command':'rotacionar', 'value': 90}
# print(messageToSend, '\n -> ', serialCommunication.communication(messageToSend))
# messageToSend = {'command':'subir_descer', 'value': 10}
# print(messageToSend, '\n -> ', serialCommunication.communication(messageToSend))
# messageToSend = {'command':'zerar', 'value': -1}
# print(messageToSend, '\n -> ', serialCommunication.communication(messageToSend))
# messageToSend = {'command':'ima', 'value': 1}
# print(messageToSend, '\n -> ', serialCommunication.communication(messageToSend))
# time.sleep(5)
# messageToSend = {'command':'ima', 'value': -1}
# print(messageToSend, '\n -> ', serialCommunication.communication(messageToSend))
# for i in range(5):
# messageToSend = {'command':'sensores', 'value': -1}
# print(messageToSend, '\n -> ', serialCommunication.communication(messageToSend))
# time.sleep(1)