File size: 506 Bytes
e418c5a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
""""
This file just runs both leg collections at once.
The 3 second delay between scripts is because we experienced some I2C errors when trying to
instantaneously access both I2C busses on the Jetson. 
"""

import subprocess
import time

DELAY_SECONDS = 3

right = 'right.py'
left = 'left.py'

print(f"Running {right}")
subprocess.run(["python",right])

print(f"Waiting {DELAY_SECONDS} seconds...")
time.sleep(DELAY_SECONDS)

print(f"Running {left}")
subprocess.run(["python",left])

print("Run complete.")