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

Turning off/on the camera #142

Open
xiaoshan-lin opened this issue Feb 26, 2024 · 3 comments
Open

Turning off/on the camera #142

xiaoshan-lin opened this issue Feb 26, 2024 · 3 comments

Comments

@xiaoshan-lin
Copy link

xiaoshan-lin commented Feb 26, 2024

Hello,

We use the opencv-viewer.py to get the image from aideck. Wondering if there is any way we can send commands to the aideck to turn off and turn on the camera? Thanks in advance for your help and support.

@gemenerik
Copy link
Member

gemenerik commented Feb 27, 2024

Do you intend to send these commands from the pc?

In that case you can use the app channel to send data (in this case a camera command) to a Crazyflie app using a Crazyradio. For the communication from the app to the AI-deck check out the STM-GAP8 CPX communication example. Based on the incoming data you can use pi_camera_control on the GAP8 side to start/stop the camera.

@xiaoshan-lin
Copy link
Author

Yes, we want to send the commands from the PC. We found a Python example in examples/app_appchannel_test/ .

Is the appchannel supported in the cpp Crazyflie Class, or it is only available in Python cflib?

@knmcguire
Copy link
Member

Hi! The link that you shared is actually the c-based app implementation for onboard of the Crazyflie. The python class for the app channel is in the cflib here: https://github.com/bitcraze/crazyflie-lib-python/blob/master/cflib/crazyflie/appchannel.py

Just mind that if you have any questions about the ecosystem, it is best to start a discussion in https://discussions.bitcraze.io/, since that is the main place for support. We use issues to indicate pieces of 'work' and changes necessary to the firmware/software

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

3 participants