diff --git a/transmit.py b/transmit.py index 26f85ad4..c465fe2d 100644 --- a/transmit.py +++ b/transmit.py @@ -827,15 +827,17 @@ if __name__ == "__main__": # if (image_present == False): start = time.perf_counter() camera_photo() + print(time.perf_counter() - start) ## system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") # > /dev/null 2>&1") ## print("Photo taken") + print(time.perf_counter() - start) system("/home/pi/ssdv/ssdv -e -n -i " + str(image_id) + " -q 3 -J /home/pi/CubeSatSim/camera_out.jpg /home/pi/CubeSatSim/image_file.bin") print("image_id: " + str(image_id) + "\n") image_id = ( image_id + 1 ) % 256 print("new image_id: " + str(image_id) + "\n") print("Elapsed time: ") print(time.perf_counter() - start) - sleep(0.5) +# sleep(0.5) # else: sleep(0.6) elif (mode == 'e'): # code based on https://zr6aic.blogspot.com/2016/11/creating-2m-fm-repeater-with-raspberry.html