aboutsummaryrefslogtreecommitdiffstats
path: root/System/Tests/test_System.py
blob: c05affc867fe28d63980603bb31b0ffc60e75bda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# This test file implements a super simple control-type function for testing the System library.
# DO NOT TEST ON ASSEMBLED PHYSICAL SYSTEM! It will probably break it.
import time

from System.system import System
        
# Main program
sys = System(angular_units = 'Radians')
while 1:
    angle, linear = sys.measure()
    print("Angle: " + str(angle) + ", Linear: " + str(linear))
    time.sleep(0.2)