diff --git a/shotmanager/GoProManager.py b/shotmanager/GoProManager.py index ce8f473..0da2a5a 100644 --- a/shotmanager/GoProManager.py +++ b/shotmanager/GoProManager.py @@ -352,6 +352,11 @@ class GoProManager(): self.queueMsg(msg) + if self.captureMode == CAPTURE_MODE_PHOTO: + if command == mavutil.mavlink.GOPRO_COMMAND_SHUTTER: + if value[0] == 1: + self.sendPhotoEvent() + # Follow up with a get request if notification of change is required if command in REQUERY_COMMANDS: self.sendGoProRequest(command) @@ -472,6 +477,34 @@ class GoProManager(): (command, value1, value2, value3, value4, ) = struct.unpack("