Skip to content
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

D435i Sync problem #1466

Closed
YangTiankai opened this issue Oct 26, 2020 · 5 comments
Closed

D435i Sync problem #1466

YangTiankai opened this issue Oct 26, 2020 · 5 comments
Labels

Comments

@YangTiankai
Copy link

Set the FPS to 30Hz, and set the param "Inter Cam Sync Mode" to 33 in realsense-viewer. The actual camera frame rate can't reach 30Hz

Set the FPS to 30Hz, and set the param "Inter Cam Sync Mode" to 32 in realsense-viewer. The actual camera frame rate is 29Hz. And the interval of two frame is 33.33ms, but one frame is missing every second.

The PPS signal is generated by DJI N3 filght control module.

I hope the pps signal can trigger a 30hz camera frame rate.
I want to know if this is caused by the actual frequency of the PPS signal being slightly higher than 1Hz.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Oct 26, 2020

Hi @YangTiankai By setting Inter Cam Sync Mode to 32 or 33, I believe that your frames are being affected by the External Synchronization (Genlock) function of the RealSense SDK.

https://dev.intelrealsense.com/docs/external-synchronization-of-intel-realsense-depth-cameras#section-5-programming-camera-sync

The primary purpose of Inter Cam Sync Mode is to synchronize frame timestamps with a trigger pulse (from a "master" camera or a signal generator), not set a fixed FPS speed. So if your goal is to force FPS to try to remain at 30 constantly instead of fluctuating then you likely do not need to use sync at all and the Inter Cam Sync Mode should be set to the default of '0' (no sync).

If you want to force FPS to remain at the value it was set at (e.g 30 FPS), you can do so with one of the following methods:

  1. Disabling auto-exposure and setting a manual exposure value that is within a certain range, or

  2. By having auto-exposure enabled and auto-exposure priority disabled. The auto-exposure priority control in the RealSense Viewer is located under the RGB controls in the Viewer's options side-panel.

Further details of these two methods for forcing a constant FPS are given in the link below.

IntelRealSense/librealsense#1957 (comment)

@YangTiankai
Copy link
Author

I see that
"This does mean that it is possible to approach the full frame rate, in this case 90fps, with a 1Hz trigger, by setting the native camera mode to 90 fps and setting the count to 89 while triggering at 1Hz, for example. "
in
https://dev.intelrealsense.com/docs/external-synchronization-of-intel-realsense-depth-cameras#section-5-programming-camera-sync

It seems that the third situation in the figure below cannot be achieved.

Thanks for your advice. I think I can set the FPS to 60 and the sync mode to 62, and get rid of the 29 frames to reach a 30FPS image stream

图片

@MartyG-RealSense
Copy link
Collaborator

Thnaks very much for the update. Please do post further comments if you still require assistance after your tests. Good luck!

@MartyG-RealSense
Copy link
Collaborator

Hi @YangTiankai Do you have an update that you can provide me with please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants