Skip to content

Commit 9144457

Browse files
committed
idk
1 parent c3dad39 commit 9144457

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

image.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/python
2+
# camera module for photogrammetric timelapse
3+
# 8/30/17
4+
5+
import os
6+
import logging
7+
import datetime
8+
import picamera
9+
10+
11+
class Camera(object):
12+
'''class to hold camera and file management functions'''
13+
14+
def __init__(self):
15+
self.base_pi_path = base_pi_path
16+
self.base_remote_path = longpaths.base_remote_path
17+
self.remote_copy_path = '/Volumes/RAGU/longlapse/dayze'
18+
self.host = longpaths.host
19+
self.scp_host = longpaths.scp_host
20+
self.copied = False
21+
self.pixels = (2592, 1944)
22+
self.framerate = 1
23+
self.led = False
24+
self.vflip = True
25+
self.hflip = True
26+
self.meter_mode = 'backlit'
27+
self.iso = 100
28+
self.awb_mode = 'off'
29+
self.awb_gains = (Fraction(447, 256), Fraction(255, 256))
30+
# self.exposure_mode = 'off' # exposure_mode off disables picam.analog_gain & picam.digital_gain, which are not directly settable; however picamera docs turning this off after gains have settled
File renamed without changes.

picnic.py renamed to old_sockets/picnic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/python
22
# socket code adapted from Richard Garsthagen's scripts at pi3dscan.com
3+
# NOTE: look into python socketserver module or tornado library to handle sockets
34
# 12/19/16
45

56
import socket
@@ -24,6 +25,7 @@ def config_socket():
2425

2526
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
2627
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
28+
# '' is a symbolic name for host parameter that means all available interfaces
2729
sock.bind(('', MCAST_PORT))
2830
mreq = struct.pack("4sl", socket.inet_aton(MCAST_GRP), socket.INADDR_ANY)
2931
sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)

0 commit comments

Comments
 (0)