Skip to content

Commit

Permalink
Remove polling interval assignment (#213)
Browse files Browse the repository at this point in the history
remove polling interval
  • Loading branch information
pascalzauberzeug authored Oct 17, 2024
1 parent 1719aec commit dfd0c4b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions rosys/vision/mjpeg_camera/mjpeg_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ async def _handle_new_image_data(self, image: bytes) -> None:

async def _set_fps(self, fps: int) -> None:
assert self.device is not None

await self.device.set_fps(fps)
self.polling_interval = 1.0 / fps

async def _get_fps(self) -> int:
assert self.device is not None
Expand Down
1 change: 0 additions & 1 deletion rosys/vision/usb_camera/usb_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ def set_fps(self, fps: int) -> None:
assert self.device is not None
device = self.device
device.capture.set(cv2.CAP_PROP_FPS, fps)
self.polling_interval = 1.0 / fps

def get_fps(self) -> int:
assert self.device is not None
Expand Down

0 comments on commit dfd0c4b

Please sign in to comment.