iorodeo avatar iorodeo committed 2815afe

Temporarily changed pulse channel to channel C. Note, need to make this easier
to change from a configuration file.

Comments (0)

Files changed (3)

lia_avi_writer/nodes/lia_avi_writer.py

         self.filename = os.path.join(os.environ['HOME'],'default.avi')
 
         # Current pulse parameters 
-        self.pulse_channel = 'a'
+        #self.pulse_channel = 'a'
+        self.pulse_channel = 'c' # Should probalby move this to a configuration file
         self.pulse_controller = None
         self.timing_fid = None
 

lia_web_interface/src/lia_web_interface/config.py

             'type'      : 'number',
             },
         {
-            'name'      : 'Pulse Current (Ch A)',
+            'name'      : 'Pulse Current (Ch C)',
             'tag'       : 'pulse_current',
             'value'     : 100,
             'units'     : 'mA',

lia_web_interface/src/lia_web_interface/web_interface.py

     """
     rospy.wait_for_service('set_current')
     set_curr_proxy = rospy.ServiceProxy('set_current', SetCurrentCmd) 
-    response =set_curr_proxy(config.ir_light_channel,'on', value)
+    if value != 0:
+        response = set_curr_proxy(config.ir_light_channel,'on', value)
+    else:
+        response = set_curr_proxy(config.ir_light_channel,'off', value)
+
     db_tools.set_int(db,'ir_light_value', value)
     
 # -----------------------------------------------------------------------------
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.