From 19ea16784ca88952b9110410444077c061dd5ca0 Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 16 Dec 2017 11:02:16 -0500 Subject: [PATCH] GOPRO: Add photo logging output for Solex GCS app The Solex GCS app has a photo logging function for missions and geo tagging. This sends the applicable data from the Solo to the app. --- shotmanager/GoProManager.py | 33 +++++++++++++++++++++++++++++++++ shotmanager/app_packet.py | 1 + 2 files changed, 34 insertions(+) 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("