From e88082f879bffa0c23a6727ad27b8f8ebf9d7fcc Mon Sep 17 00:00:00 2001 From: Tim Camise Date: Mon, 1 Jul 2024 14:53:46 -0700 Subject: [PATCH] Add setting 125 (#560) --- .../sdk_wireless_camera_control/docs/changelog.rst | 5 +++++ .../open_gopro/api/ble_commands.py | 9 +++++++++ .../open_gopro/api/http_commands.py | 6 ++++++ .../sdk_wireless_camera_control/open_gopro/api/params.py | 7 +++++++ .../sdk_wireless_camera_control/open_gopro/constants.py | 2 +- 5 files changed, 28 insertions(+), 1 deletion(-) diff --git a/demos/python/sdk_wireless_camera_control/docs/changelog.rst b/demos/python/sdk_wireless_camera_control/docs/changelog.rst index 111caecf..5c33ddd5 100644 --- a/demos/python/sdk_wireless_camera_control/docs/changelog.rst +++ b/demos/python/sdk_wireless_camera_control/docs/changelog.rst @@ -9,6 +9,11 @@ All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog `_, and this project adheres to `Semantic Versioning `_. +Unreleased +---------- + +* Add Setting 125 + 0.16.1 (April-23-2024) ---------------------- diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/api/ble_commands.py b/demos/python/sdk_wireless_camera_control/open_gopro/api/ble_commands.py index 179d87c0..84dc1f09 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/api/ble_commands.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/api/ble_commands.py @@ -1073,6 +1073,15 @@ def __init__(self, communicator: GoProBle): super().__init__(communicator) + self.photo_output: BleSetting[Params.PhotoOutput] = BleSetting[Params.PhotoOutput]( + communicator, + SettingId.PHOTO_OUTPUT, + Params.PhotoOutput, + ) + """File type of photo output""" + + super().__init__(communicator) + class BleAsyncResponses: """These are responses whose ID's are not associated with any messages""" diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/api/http_commands.py b/demos/python/sdk_wireless_camera_control/open_gopro/api/http_commands.py index 7b53b3c6..28fa2ec2 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/api/http_commands.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/api/http_commands.py @@ -727,4 +727,10 @@ def __init__(self, communicator: GoProHttp): ) """Interval between photo captures""" + self.photo_output: HttpSetting[Params.PhotoOutput] = HttpSetting[Params.PhotoOutput]( + communicator, + SettingId.PHOTO_OUTPUT, + ) + """File type of photo output""" + super().__init__(communicator) diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/api/params.py b/demos/python/sdk_wireless_camera_control/open_gopro/api/params.py index 1926b5cb..e2715b6f 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/api/params.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/api/params.py @@ -423,6 +423,13 @@ class PhotoDuration(GoProIntEnum): HOUR_3 = 9 +class PhotoOutput(GoProIntEnum): + STANDARD = 0 + RAW = 1 + HDR = 2 + SUPERPHOTO = 3 + + class PresetGroup(GoProIntEnum): VIDEO = 1000 PHOTO = 1001 diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/constants.py b/demos/python/sdk_wireless_camera_control/open_gopro/constants.py index 159b6136..46b0f811 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/constants.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/constants.py @@ -202,7 +202,7 @@ class SettingId(GoProIntEnum): PHOTO_FOV = 122 MULTI_SHOT_FOV = 123 INTERNAL_124 = 124 - INTERNAL_125 = 125 + PHOTO_OUTPUT = 125 INTERNAL_126 = 126 MEDIA_FORMAT = 128 INTERNAL_129 = 129