|
|
@ -33,8 +33,8 @@ class TestCamerad: |
|
|
|
@with_processes(['camerad']) |
|
|
|
@with_processes(['camerad']) |
|
|
|
def test_camera_operation(self): |
|
|
|
def test_camera_operation(self): |
|
|
|
passed = 0 |
|
|
|
passed = 0 |
|
|
|
start = time.time() |
|
|
|
start = time.monotonic() |
|
|
|
while time.time() - start < TEST_TIME and passed < REPEAT: |
|
|
|
while time.monotonic() - start < TEST_TIME and passed < REPEAT: |
|
|
|
rpic, dpic = get_snapshots(frame="roadCameraState", front_frame="driverCameraState") |
|
|
|
rpic, dpic = get_snapshots(frame="roadCameraState", front_frame="driverCameraState") |
|
|
|
wpic, _ = get_snapshots(frame="wideRoadCameraState") |
|
|
|
wpic, _ = get_snapshots(frame="wideRoadCameraState") |
|
|
|
|
|
|
|
|
|
|
|