diff --git a/viscaoveriplib/camera.py b/viscaoveriplib/camera.py index 194a476e094d60807a1f8a5197dcc47f59f7bc0c..f21257df4c3dea976923983c69fb704246b3e667 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 88d3e9b61133c36b1995c7b875532a2d2c30b073..ef45ced57a816e9c32f311fb5c5c4924b57690d8 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