|
|
|
@ -166,16 +166,18 @@ def increment_mode():
|
|
|
|
print("Changing mode now")
|
|
|
|
print("Changing mode now")
|
|
|
|
# system("/home/pi/CubeSatSim/config -" + mode)
|
|
|
|
# system("/home/pi/CubeSatSim/config -" + mode)
|
|
|
|
# system("reboot -h now")
|
|
|
|
# system("reboot -h now")
|
|
|
|
|
|
|
|
print
|
|
|
|
sleep(10);
|
|
|
|
# sleep(10);
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
print("can't change mode")
|
|
|
|
print("can't change mode")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print("Squelch Command and Control active")
|
|
|
|
debug_mode = False
|
|
|
|
debug_mode = False
|
|
|
|
if (len(sys.argv)) > 1:
|
|
|
|
if (len(sys.argv)) > 1:
|
|
|
|
# print("There are arguments!")
|
|
|
|
# print("There are arguments!")
|
|
|
|
if ('d' == sys.argv[1]):
|
|
|
|
if ('d' == sys.argv[1]):
|
|
|
|
debug_mode = True
|
|
|
|
debug_mode = True
|
|
|
|
|
|
|
|
print("Debug mode - mode changes not made")
|
|
|
|
|
|
|
|
|
|
|
|
GPIO.setmode(GPIO.BCM)
|
|
|
|
GPIO.setmode(GPIO.BCM)
|
|
|
|
GPIO.setwarnings(False)
|
|
|
|
GPIO.setwarnings(False)
|
|
|
|
|