From 3c2dcbd4ac06263cdf8beba92538437ee5956b4b Mon Sep 17 00:00:00 2001 From: amalcor <amalio.coron@student-cs.Fr> Date: Fri, 30 Nov 2018 13:58:28 +0100 Subject: [PATCH] =?UTF-8?q?Semi=20impl=C3=A9mentation=20de=20quelques=20fo?= =?UTF-8?q?nctions=20"""(il=20faut=20mettre=20en=20force=20encore)"""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- viscaoveriplib/camera.py | 4 +-- viscaoveriplib/commands_library.py | 50 +++++++++++++++++++++++++++++- 2 files changed, 51 insertions(+), 3 deletions(-) diff --git a/viscaoveriplib/camera.py b/viscaoveriplib/camera.py index 194a476..f21257d 100644 --- a/viscaoveriplib/camera.py +++ b/viscaoveriplib/camera.py @@ -42,9 +42,9 @@ class Camera: def payload2header(self, payload): """ - take the payload, calculate the payload lenght and add the sequence number + take the payload, calculate the payload length and add the sequence number :param payload: - :return: header = payloadlenght + seq_num + :return: header without prefix = payloadlength + seq_num """ lenght = hex(len(payload.replace(' ', ''))) diff --git a/viscaoveriplib/commands_library.py b/viscaoveriplib/commands_library.py index 88d3e9b..ef45ced 100644 --- a/viscaoveriplib/commands_library.py +++ b/viscaoveriplib/commands_library.py @@ -62,7 +62,55 @@ class Camera: #TODO - #PAS FINI A PARTIR D'ICI : + + #CAM_WB : White Balance + def wb_auto(self): #Normal Auto + 8x 01 04 35 00 FF + + def wb_indoor(self): #Indoor Mode + 8x 01 04 35 01 FF + + def wb_outdoor(self): #Outdoor Mode + 8x 01 04 35 02 FF + + def wb_one_push(self): #One push white balance + 8x 01 04 35 03 FF + + def wb_auto_tracing(self): #Auto tracing white balance + 8x 01 04 35 04 FF + + def wb_manual(self): #Manual Control + 8x 01 04 35 05 FF + + def wb_one_push_trigger(self): #One Push WB trigger + 8x 01 04 10 05 FF + + #TOTERMINER + + #CAM_RGain and BGain + + #TODO + + #CAM_AE : Exposure settings + + def ae_full_auto(self): #Automatic Exposure mode + 8x 01 04 39 00 FF + + def ae_manual(self): #Manual Control mode + 8x 01 04 39 03 FF + + def ae_shutter_priority(self): #Shutter priority exposure mode + 8x 01 04 39 0A FF + + def ae_iris_priority(self): #Iris priority exposure mode + 8x 01 04 39 0B FF + + def ae_bright(self): # Bright mode (manual control) + 8x 01 04 39 0D FF + + #CAM_Slowshutter : + + #PAS RELU A PARTIR D'ICI : def move_to_absolute_position(self, YCoordinates, ZCoordinates, VV=None, WW=None): """ command of absolute position mouvement -- GitLab