remove hardcoded init; is done in i_feed and will be fetched from entity_ident
This commit is contained in:
parent
058529d979
commit
e1cf74b599
@ -74,15 +74,4 @@ class TrafficLight:
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# TODO fetch and use data from Entity Ident
|
...
|
||||||
|
|
||||||
tl1 = TrafficLight(tlid='traffic-light-1', switching_time=SWITCHING_TIME)
|
|
||||||
tl1.start()
|
|
||||||
|
|
||||||
time.sleep(1)
|
|
||||||
tl2 = TrafficLight(tlid='traffic-light-2', switching_time=240)
|
|
||||||
tl2.start()
|
|
||||||
|
|
||||||
time.sleep(1)
|
|
||||||
tl3 = TrafficLight(tlid='traffic-light-3', switching_time=360)
|
|
||||||
tl3.start()
|
|
||||||
|
|||||||
@ -230,15 +230,4 @@ class Vehicle:
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# TODO fetch and use data from Entity Ident
|
...
|
||||||
|
|
||||||
v1 = Vehicle(vin='SB164ABN1PE082000')
|
|
||||||
v1.start_driving()
|
|
||||||
|
|
||||||
time.sleep(1)
|
|
||||||
v2 = Vehicle(vin='SB999ABN1PE082111')
|
|
||||||
v2.start_driving()
|
|
||||||
|
|
||||||
time.sleep(0.5)
|
|
||||||
v3 = Vehicle(vin='SB555ABN1PE082555')
|
|
||||||
v3.start_driving()
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user