Skip to content

Commit

Permalink
add more debugging and raised adjust cycle to 10 to improve stability.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgineer85 committed Oct 27, 2024
1 parent 64cf1b2 commit ec627a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion node/services/backends/cameras/picamera2.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
logger = logging.getLogger(__name__)


ADJUST_EVERY_X_CYCLE = 8
ADJUST_EVERY_X_CYCLE = 10


class Picamera2Backend(AbstractCameraBackend):
Expand Down
2 changes: 2 additions & 0 deletions node/services/backends/io/gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ def set_trigger_out(self, on: bool):

if on:
self._trigger_out.on()
logger.debug("set trigger_out ON")
else:
self._trigger_out.off()
logger.debug("set trigger_out OFF")

def _set_hardware_clock(self, enable: bool = True):
"""
Expand Down
1 change: 1 addition & 0 deletions node/services/backends/io/virtualio.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def set_trigger_out(self, on: bool):
# trigger out is forwarded in virtual mode directly to trigger in again
if on:
self._on_trigger_in()
logger.debug("forwarded trigger_out to trigger_in")

def _gpio_fun(self):
logger.debug("starting _gpio_fun simulating clock")
Expand Down

0 comments on commit ec627a0

Please sign in to comment.