Requirements for acting on Camera

Hello all,

I am working on a feature in my app where the drone takes a GPS lapse, but also allows the user to take additional photos with the shutter button. By default, hitting the shutter button in the middle of a GPS lapse stops it, so I have grabbed the controller’s shutter button and added an event listener that will switch the camera’s photo mode from GPS_LAPSE to SINGLE, take a photo, then switch it back and restart the GPS lapse. I’ve implemented a queue of commands to send to the camera with the idea that each time the ref updates, there is a chance for the next command to execute and the command will cause the ref to update again. However, the checks I’ve added don’t seem to be accurately telling me if the camera is ready for the next step.

I would like to know what I need to check to ensure that I can:

  1. Switch the camera’s photo mode (I thought it would just be making sure it’s nto currently updating in the Camera’s config)
  2. Start or stop capture (I’m not sure about this one. I checked if the PhotoCapture component exists and it’s not updating the config)

Thanks!