|
|
|
@ -8,7 +8,7 @@ if __name__ == "__main__":
|
|
|
|
# print("There are arguments!")
|
|
|
|
# print("There are arguments!")
|
|
|
|
if ('d' == sys.argv[1]):
|
|
|
|
if ('d' == sys.argv[1]):
|
|
|
|
debug_mode = 1
|
|
|
|
debug_mode = 1
|
|
|
|
try:
|
|
|
|
|
|
|
|
for line in sys.stdin:
|
|
|
|
for line in sys.stdin:
|
|
|
|
if (debug_mode):
|
|
|
|
if (debug_mode):
|
|
|
|
print(line)
|
|
|
|
print(line)
|
|
|
|
@ -40,5 +40,4 @@ if __name__ == "__main__":
|
|
|
|
print("/home/pi/CubeSatSim/config -" + mode)
|
|
|
|
print("/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("Done")
|
|
|
|
print("Done")
|
|
|
|
|