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

How to send a forced photo command with python in O3D300? #11

Open
ghost opened this issue Jul 15, 2019 · 1 comment
Open

How to send a forced photo command with python in O3D300? #11

ghost opened this issue Jul 15, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 15, 2019

What instructions can be sent in python to force the camera to take an image, the current camera mode is the process, the camera model is O3D300, who knows the trouble to tell me, thank you!

@cfreundl
Copy link
Member

In order to trigger the camera in run mode (I hope this is what you mean), the trigger mode of the active application needs to be set to "Process Interface", i.e. the application parameter TriggerMode must be 2.

If you open a PCIC connection to the camera with

import o3d3xx
pcic = o3d3xx.PCICV3Client("192.168.0.69", 50010)

you can issue a trigger either asynchronously by

pcic.sendCommand("t")

or synchronously by

pcic.sendCommand("T?")

In the latter case sendCommand() returns the result of the trigger as defined in the application parameter PcicTcpResultSchema.

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

No branches or pull requests

1 participant