Subscribe to a callback for components being added

#1

Does anyone know whether its possible to subscribe to a callback for components being added?

I’m specifically interested to know when the camera is available.

I’m using the C++ sdk on iOS pointed at my Yuneec H520. Currently on startup the sdk sends the get camera info message too early (before the camera component is added) and the E90 profile is not loaded meaning getting / setting camera settings is not possible.

I know I should go read the code, but posting here in-case there is a quick answer :wink:

Dave

Tasmania, AU.

#2

Hi Dave,

So the usual (stupid) way is to “just wait 2 seconds”. At that point you should have received heartbeats (at 1Hz) from all components.

I agree that it might make sense to add a callback though, let me make an issue:

Julian

#3

Cheers Julian,

That was the conclusion I came to. I’ll put some effort into implementing callbacks.

1 Like