Error: SYSTEM_ERROR (Camera/StopShootPhoto:-7) when Stopping Interval Shooting
Description
I am encountering a SYSTEM_ERROR with error code Camera/StopShootPhoto:-7 while using the DJI SDK V5. This issue occurs under the following conditions:
I take off using the takeoff function in DJI SDK V5.
The drone takes off successfully after a restart.
I switch to virtual sticks mode and change the camera mode to capture JPEG photos at 3-second intervals.
The drone captures 10 photos successfully at the first waypoint.
Upon reaching the second waypoint, I attempt to stop interval shooting, but I receive the error:
ErrorImp(errorType='Core', errorCode='SYSTEM_ERROR', innerCode='Camera/StopShootPhoto:-7', description='null', hint='error code' = -7) Virtual sticks mode exits automatically after this error.
What I Have Tried
Restarting the drone allows it to take off successfully again. The firmware is up to date. The error consistently occurs when stopping interval shooting at the second waypoint.
Expected Behavior
The drone should stop interval shooting without errors, and virtual sticks mode should remain active. Additional Details
SDK Version: DJI SDK V5 Drone Model: [Mention your drone model] Firmware Version: Latest (Up to date) Mobile Device & OS: [Mention your device and OS] Any insights on resolving this issue would be greatly appreciated!
Agent comment from YIGUI LIU in Zendesk ticket #133250:
Dear Developer,
Waypoint missions cannot be used together with virtual joysticks.
Both the waypoint mission and the virtual joystick are functions for controlling the movement of the aircraft. The aircraft cannot receive multiple control commands at the same time. Therefore, the aircraft can only execute the waypoint mission or use the virtual joystick separately. Using them simultaneously may trigger unexpected bugs.
Best Regards,
DJI Innovations SDK Technical Support Team
°°°
I am not actually using the way point mission i have made own points in the code where i want the drone to start taking pictures and at the second point i want the drone to stop taking pictures. I am kind of simulating the way point mission by using the virtual sticks with camera mode.
Agent comment from YIGUI LIU in Zendesk ticket #133250:
Dear Developer,
Is the error of "StopShootPhoto -7" occurring occasionally or is it guaranteed to occur? Have you found any patterns regarding when it appears? After this error occurs, does the camera continue to take pictures?
°°°
i solved it by passing the number photos.
PhotoIntervalShootSettings().apply { setInterval(photoInterval) setCount(-1) }