diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000000000000000000000000000000000000..7518cc803b9a816a83e2eb86aec8d09c16b3c3d4 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,19 @@ +<component name="InspectionProjectProfileManager"> + <profile version="1.0"> + <option name="myName" value="Project Default" /> + <inspection_tool class="PyPep8Inspection" enabled="true" level="WEAK WARNING" enabled_by_default="true"> + <option name="ignoredErrors"> + <list> + <option value="W29" /> + <option value="E501" /> + <option value="W29" /> + <option value="E501" /> + <option value="W29" /> + <option value="E501" /> + <option value="W29" /> + <option value="E501" /> + </list> + </option> + </inspection_tool> + </profile> +</component> \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000000000000000000000000000000000000..65531ca992813bbfedbe43dfae5a5f4337168ed8 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6" project-jdk-type="Python SDK" /> +</project> \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000000000000000000000000000000000000..94742cfb284f68af3533321306ab1b9f88dde122 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectModuleManager"> + <modules> + <module fileurl="file://$PROJECT_DIR$/.idea/viscaoverip.iml" filepath="$PROJECT_DIR$/.idea/viscaoverip.iml" /> + </modules> + </component> +</project> \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000000000000000000000000000000000000..94a25f7f4cb416c083d265558da75d457237d671 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="$PROJECT_DIR$" vcs="Git" /> + </component> +</project> \ No newline at end of file diff --git a/.idea/viscaoverip.iml b/.idea/viscaoverip.iml new file mode 100644 index 0000000000000000000000000000000000000000..c8efcbb45e273465fff1280c9526af4d0f275163 --- /dev/null +++ b/.idea/viscaoverip.iml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module type="PYTHON_MODULE" version="4"> + <component name="NewModuleRootManager"> + <content url="file://$MODULE_DIR$" /> + <orderEntry type="jdk" jdkName="Python 3.6" jdkType="Python SDK" /> + <orderEntry type="sourceFolder" forTests="false" /> + </component> + <component name="TestRunnerService"> + <option name="PROJECT_TEST_RUNNER" value="Unittests" /> + </component> +</module> \ No newline at end of file diff --git a/viscaoveriplib/commands_library.py b/viscaoveriplib/commands_library.py index ef45ced57a816e9c32f311fb5c5c4924b57690d8..28bf3b60d5f0afae79c350ebd66b07cef227f182 100644 --- a/viscaoveriplib/commands_library.py +++ b/viscaoveriplib/commands_library.py @@ -108,7 +108,70 @@ class Camera: def ae_bright(self): # Bright mode (manual control) 8x 01 04 39 0D FF - #CAM_Slowshutter : + #CAM_Slowshutter : auto slow shutter ON/OFF + def slow_shutter_on(self): + 8x 01 04 5A 02 FF + + def slow_shutter_off(self): + 8x 01 04 5A 03 FF + + #CAM_shutter + + #TODO + + #CAM_Iris + + #TODO + + #CAM_GAIN + + #TODO + + #CAM_Bright + + #TODO + + #CAM_ExpComp + + #TODO + + #CAM_Backlight : Back Light Comp ON/OFF + def backlight_on(self): + 8x 01 04 33 02 FF + + def backlight_off(self): + 8x 01 04 33 03 FF + + #CAM_WD : Wide Dynamic Range Mode : + def wide_dynamic_off(self): + 8x 01 7E 04 00 00 FF + + def wide_dynamic_low(self): + 8x 01 7E 04 00 01 FF + + def wide_dynamic_mid(self): + 8x 01 7E 04 00 02 FF + + def wide_dynamic_high(self): + 8x 01 7E 04 00 03 FF + + #CAM_defog : defog mode : ça enlève le brouillard #WTF + def defog_on(self): + 8x 01 04 37 02 00 FF + def defog_off(self): + 8x 01 04 37 03 00 FF + + #CAM_Aperture + + #TODO + + #CAM_HR : High resolution mode + + #CAM_NR : Noise reduction + def noise_reduction_level(self,int): #entier entre 0= OFF et puis entre 1 et 5 + 8x 01 04 53 0p FF + + #PAS RELU A PARTIR D'ICI : def move_to_absolute_position(self, YCoordinates, ZCoordinates, VV=None, WW=None):