|
|
|
@ -136,6 +136,7 @@ def increment_mode():
|
|
|
|
print("can't write to .mode file")
|
|
|
|
print("can't write to .mode file")
|
|
|
|
|
|
|
|
|
|
|
|
def camera_photo():
|
|
|
|
def camera_photo():
|
|
|
|
|
|
|
|
system("sudo rm /home/pi/CubeSatSim/camera_out.jpg")
|
|
|
|
stored_image = False
|
|
|
|
stored_image = False
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") # > /dev/null 2>&1")
|
|
|
|
system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") # > /dev/null 2>&1")
|
|
|
|
@ -792,7 +793,7 @@ if __name__ == "__main__":
|
|
|
|
print("Turning LED on/off and listening for carrier")
|
|
|
|
print("Turning LED on/off and listening for carrier")
|
|
|
|
image_index = 1;
|
|
|
|
image_index = 1;
|
|
|
|
while 1:
|
|
|
|
while 1:
|
|
|
|
print ("LED on")
|
|
|
|
# print ("LED on")
|
|
|
|
output(txLed, txLedOff)
|
|
|
|
output(txLed, txLedOff)
|
|
|
|
sleep(0.4)
|
|
|
|
sleep(0.4)
|
|
|
|
# if (command_tx == False):
|
|
|
|
# if (command_tx == False):
|
|
|
|
@ -811,7 +812,7 @@ if __name__ == "__main__":
|
|
|
|
if (mode == 'b'):
|
|
|
|
if (mode == 'b'):
|
|
|
|
sleep(4.2)
|
|
|
|
sleep(4.2)
|
|
|
|
else: # FunCube mode image
|
|
|
|
else: # FunCube mode image
|
|
|
|
print("Checking image_file.bin")
|
|
|
|
# print("Checking image_file.bin")
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
file = open("/home/pi/CubeSatSim/image_file.bin")
|
|
|
|
file = open("/home/pi/CubeSatSim/image_file.bin")
|
|
|
|
file.close()
|
|
|
|
file.close()
|
|
|
|
|