From 2c7137e7e64aba2bf22645e897892cfbd00930df Mon Sep 17 00:00:00 2001 From: RobboRob Date: Fri, 29 May 2020 22:25:24 +0200 Subject: [PATCH] Added support for auto white balance. --- capture_RPiHQ.cpp | 2 +- settings.json.repo_RPiHQ | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/capture_RPiHQ.cpp b/capture_RPiHQ.cpp index c01b5db89..9e32a2876 100644 --- a/capture_RPiHQ.cpp +++ b/capture_RPiHQ.cpp @@ -540,7 +540,7 @@ int main(int argc, char *argv[]) daytimeDelay = atoi(argv[i + 1]); i++; } - else if (strcmp(argv[i], "-autoawb") == 0) + else if (strcmp(argv[i], "-awb") == 0) { asiAutoAWB = atoi(argv[i + 1]); i++; diff --git a/settings.json.repo_RPiHQ b/settings.json.repo_RPiHQ index bfdddca72..19953d8c7 100644 --- a/settings.json.repo_RPiHQ +++ b/settings.json.repo_RPiHQ @@ -5,21 +5,18 @@ "exposure":"30000", "autogain":"0", "gain":"1", - "coolerEnabled":"0", - "targetTemp":"0", "gamma":"50", "brightness":"50", - "wbr":"0", - "wbb":"0", + "awb":"0", + "wbr":"2", + "wbb":"2", "bin":"1", "delay":"10", "daytimeDelay": "5000", - "type":"1", "quality":"95", "filename":"image.jpg", "flip":"0", "latitude":"60.7N", "longitude":"135.05W", - "angle":"-6", - "time":"1" -} + "angle":"-6" +} \ No newline at end of file