Commits

iorodeo  committed 5795cb4

Added flag to enable/disable wing stroke amplitude PWM outputs.

  • Participants
  • Parent commits 753a9db

Comments (0)

Files changed (2)

File strokelitude/strokelitude/strokelitude.py

 D2R = np.pi/180.0
 R2D = 180.0/np.pi
 AOUT_MAX_VALUE = 500
+ENABLE_PWM_OUT = True 
 
 def load_plugins():
     # modified from motmot.fview.plugin_manager
         
         # WBD - Set analog values based on wing angles
         # ---------------------------------------------------------------------
-        #self.set_aout_values(left_angle_degrees,right_angle_degrees)
+        if ENABLE_PWM_OUT: 
+            self.set_aout_values(left_angle_degrees,right_angle_degrees)
         # ---------------------------------------------------------------------
 
         # draw lines

File strokelitude/strokelitude/strokelitude.py~

 D2R = np.pi/180.0
 R2D = 180.0/np.pi
 AOUT_MAX_VALUE = 500
+ENABLE_PWM_OUT = True 
 
 def load_plugins():
     # modified from motmot.fview.plugin_manager
                                Item('maskdata',show_label=False),
 
                                Item(name='save_to_disk'),
-                               Item('write_data_to_a_text_file'),
+                               #Item('write_data_to_a_text_file'),
                                Item(name='streaming_filename',
                                     style='readonly'),
                                Item(name='last_filename',
         
         # WBD - Set analog values based on wing angles
         # ---------------------------------------------------------------------
-        #self.set_aout_values(left_angle_degrees,right_angle_degrees)
+        if ENABLE_PWM_OUT: 
+            self.set_aout_values(left_angle_degrees,right_angle_degrees)
         # ---------------------------------------------------------------------
 
         # draw lines