-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
def make_camera_poller(photo_interval, image_path, record_queue): | ||
local_clock = clock.LocalClock() | ||
poller_factory = poller.SensorPollerFactory(local_clock, photo_interval, | ||
record_queue) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
9693a04
to
fd8f7d8
Compare
Adding a separate photo interval flag to control frequency of photos Adding logging message in camera_manager
fd8f7d8
to
6fe5a62
Compare
Adding a separate photo interval flag to control frequency of photos and log output for the camera manager.