Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding poller for camera #116

Merged
merged 1 commit into from
Apr 3, 2017
Merged

Conversation

mtlynch
Copy link
Collaborator

@mtlynch mtlynch commented Apr 1, 2017

Adding a separate photo interval flag to control frequency of photos and log output for the camera manager.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.03%) to 80.919% when pulling 9693a04 on mtlynch:bring-back-camera into 13d8eb0 on JeetShetty:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.03%) to 80.919% when pulling 9693a04 on mtlynch:bring-back-camera into 13d8eb0 on JeetShetty:master.

def make_camera_poller(photo_interval, image_path, record_queue):
local_clock = clock.LocalClock()
poller_factory = poller.SensorPollerFactory(local_clock, photo_interval,
record_queue)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Optional) Feels strange to create a new poller factory just for the camera poller. My first thought was to just add a poll_interval argument to create_camera_poller, but that also doesn't feel good.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I agree but I couldn't think of anything either. My initial approach was to add a photo_interval parameter to the main sensor factory but that felt klunkier.

Adding a separate photo interval flag to control frequency of photos

Adding logging message in camera_manager
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.01%) to 80.526% when pulling 6fe5a62 on mtlynch:bring-back-camera into 02bc9b1 on JeetShetty:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.01%) to 80.526% when pulling 6fe5a62 on mtlynch:bring-back-camera into 02bc9b1 on JeetShetty:master.

@mtlynch mtlynch merged commit dfc41fe into JeetShetty:master Apr 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants