Skip to content
Snippets Groups Projects
Commit 3c2dcbd4 authored by Amalio Coron's avatar Amalio Coron
Browse files

Semi implémentation de quelques fonctions

"""(il faut mettre en force encore)"""
parent 189a4789
No related branches found
No related tags found
No related merge requests found
......@@ -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(' ', '')))
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment