Compare commits
No commits in common. "c33d4c03508e84d0fca11b1f6ab96bda5b58b892" and "f9c7676c92e88e18d6c8779e4c9bd6e4f44a6e35" have entirely different histories.
c33d4c0350
...
f9c7676c92
|
@ -5,7 +5,3 @@ __pycache__
|
||||||
*.stl
|
*.stl
|
||||||
*.FCStd1
|
*.FCStd1
|
||||||
|
|
||||||
# Artifacts
|
|
||||||
*.png
|
|
||||||
*.jpg
|
|
||||||
*.wav
|
|
||||||
|
|
17
sstv.py
17
sstv.py
|
@ -1,15 +1,9 @@
|
||||||
from shutil import copyfile
|
from shutil import copyfile
|
||||||
from PIL import Image, ImageFont, ImageDraw
|
from PIL import Image, ImageFont, ImageDraw
|
||||||
from pysstv import color
|
from pysstv import color
|
||||||
|
from picamera import PiCamera
|
||||||
import logging as log
|
import logging as log
|
||||||
|
|
||||||
try:
|
|
||||||
from picamera import PiCamera
|
|
||||||
except ModuleNotFoundError:
|
|
||||||
log.info("Running in simulator mode")
|
|
||||||
|
|
||||||
|
|
||||||
def take_photo():
|
def take_photo():
|
||||||
# This def is meant to take a photograph from the robot,
|
# This def is meant to take a photograph from the robot,
|
||||||
# it should include all steps and error checking to raise the mast
|
# it should include all steps and error checking to raise the mast
|
||||||
|
@ -22,12 +16,9 @@ def take_photo():
|
||||||
# Software to take the photo should be here
|
# Software to take the photo should be here
|
||||||
#copyfile('photos/camera_latest.jpg', 'working/working.jpg')
|
#copyfile('photos/camera_latest.jpg', 'working/working.jpg')
|
||||||
log.debug('Initalizing camera.')
|
log.debug('Initalizing camera.')
|
||||||
try:
|
camera = PiCamera()
|
||||||
camera = PiCamera()
|
log.info('Saving photo.')
|
||||||
log.info('Saving photo.')
|
camera.capture('working/working.jpg')
|
||||||
camera.capture('working/working.jpg')
|
|
||||||
except NameError:
|
|
||||||
log.info("Running in simulator mode, not replacing test pattern")
|
|
||||||
|
|
||||||
def mark_photo():
|
def mark_photo():
|
||||||
log.info('Opening photo for viewing.')
|
log.info('Opening photo for viewing.')
|
||||||
|
|
Loading…
Reference in New Issue