blob: 86e95bf78ec3039d50854fe569c4ac8c99f5727b (
plain) (
blame)
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
31
32
33
34
35
36
37
38
39
|
from pendulum import System
import time
from sys import exit
#import pandas
sys = System(angular_units = 'Radians')
for x in range(0,10):
angle, linear = sys.measure()
print("Angle: " + str(angle) + ", Linear: " + str(linear))
sys.add_results(linear, angle, angle)
time.sleep(0.2)
exit()
#class test():
# def __init__(self, x, theta):
# self.x = 0
# self.theta = 0
#
# def getINFO(self, theta):
# #theta, x = self.System.measure()
# theta, x = self.sys.measure()
#
#while(1):
# test.getINFO()
# print("t")
# #print("theta",test.theta)
# #print("x",test.x)
#
|