|
|
|
@ -27,6 +27,7 @@ if __name__ == "__main__":
|
|
|
|
if ('d' == sys.argv[1]):
|
|
|
|
if ('d' == sys.argv[1]):
|
|
|
|
debug_mode = True
|
|
|
|
debug_mode = True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
for line in sys.stdin:
|
|
|
|
for line in sys.stdin:
|
|
|
|
# if (debug_mode):
|
|
|
|
# if (debug_mode):
|
|
|
|
print(line, end =" ")
|
|
|
|
print(line, end =" ")
|
|
|
|
@ -170,8 +171,9 @@ if __name__ == "__main__":
|
|
|
|
print("\n/home/pi/CubeSatSim/config -" + mode)
|
|
|
|
print("\n/home/pi/CubeSatSim/config -" + mode)
|
|
|
|
system("/home/pi/CubeSatSim/config -" + mode)
|
|
|
|
system("/home/pi/CubeSatSim/config -" + mode)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
change_mode = False
|
|
|
|
change_mode = False
|
|
|
|
|
|
|
|
except:
|
|
|
|
|
|
|
|
print("Error reading line (probably due to UTF-8 issue)")
|
|
|
|
|
|
|
|
|
|
|
|
print("Waiting 5 seconds to allow unplug and plug of soundcard")
|
|
|
|
print("Waiting 5 seconds to allow unplug and plug of soundcard")
|
|
|
|
sleep(5)
|
|
|
|
sleep(5)
|
|
|
|
|