private.py 245 Bytes
Newer Older
Chetan Sharma's avatar
Chetan Sharma committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from sensors import Machine, Spindle, TFD
from queue import Queue
import time
PORT_1 = '/dev/ttyS26'
PORT_2 = '/dev/ttyS5'

outQueue = Queue()
tfd = TFD(PORT_1)



while True:
    print(tfd.get_force())


# 0.03325758958259111 is positive weight