pilot_drive.services.camera package

Submodules

pilot_drive.services.camera.camera module

Module that allows for utilization of PiCamera for backup camera functionality

class pilot_drive.services.camera.camera.Camera(master_event_queue: MasterEventQueue, service_type: EventType, logger: MasterLogger, btn_pin: int)

Bases: AbstractService

The camera class that manages the use of the PiCamera

main()

runs servce main loop and logic

refresh()

Add any stored events back to the event queue, as this will be called in a client refresh.

show_camera(channel)

A callback or add_event_detect, open/close the camera based on the newly detected state

Parameters:

channel – the channel the change was detected on

pilot_drive.services.camera.exceptions module

Exceptions of the Camera service

exception pilot_drive.services.camera.exceptions.FailedToInstatiateCamera

Bases: Exception

Raised when the camera service failed

Module contents

The module that manages the backup PiCamera