hardware.json: add wb gain settings

This commit is contained in:
Romain Bazile 2020-12-05 03:20:52 +01:00
parent 23c2c84deb
commit 6ce27f177d
2 changed files with 5 additions and 3 deletions

View file

@ -5,5 +5,7 @@
"pump_steps_per_ml": 507,
"focus_max_speed": 0.5,
"pump_max_speed": 30,
"stepper_type": "adafruit"
"stepper_type": "adafruit",
"wb_red_gain": 2,
"wb_blue_gain": 1.41
}

View file

@ -194,8 +194,8 @@ class ImagerProcess(multiprocessing.Process):
self.__exposure_mode = "fixedfps"
self.__white_balance = "off"
self.__white_balance_gain = (
200,
140,
configuration.get("wb_red_gain", 2.00) * 100,
configuration.get("wb_blue_gain", 1.40) * 100,
) # Those values were tested on a HQ camera to give a whitish background
self.__base_path = "/home/pi/data/img"