From f32fbc6bcd25829053c7296f0ed29bdd5de4b835 Mon Sep 17 00:00:00 2001
From: amalcor <amalio.coron@student-cs.Fr>
Date: Fri, 30 Nov 2018 17:16:50 +0100
Subject: [PATCH] More and more not really working code

---
 .idea/inspectionProfiles/Project_Default.xml | 19 ++++++
 .idea/misc.xml                               |  4 ++
 .idea/modules.xml                            |  8 +++
 .idea/vcs.xml                                |  6 ++
 .idea/viscaoverip.iml                        | 11 ++++
 viscaoveriplib/commands_library.py           | 65 +++++++++++++++++++-
 6 files changed, 112 insertions(+), 1 deletion(-)
 create mode 100644 .idea/inspectionProfiles/Project_Default.xml
 create mode 100644 .idea/misc.xml
 create mode 100644 .idea/modules.xml
 create mode 100644 .idea/vcs.xml
 create mode 100644 .idea/viscaoverip.iml

diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..7518cc8
--- /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 0000000..65531ca
--- /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 0000000..94742cf
--- /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 0000000..94a25f7
--- /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 0000000..c8efcbb
--- /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 ef45ced..28bf3b6 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):
-- 
GitLab