Rose-Hulman Robotics Team

Changeset 504

Show
Ignore:
Timestamp:
05/27/09 00:30:40 (3 years ago)
Author:
auchtemm
Message:

added logging of the target as well...

Location:
trunk/software
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/software/rb/gui/speedgraph.py

    r487 r504  
    3030                self.drive = drive 
    3131                self.colors = [ 
    32                         ( 0, .5,  0), # Left speeds 
     32                        ( 0.3, 0.3,  0.3), # Left speeds 
    3333                        ( 0,  1,  0), # Left targets 
    3434                        (.5,  0,  0), # Right speeds 
    3535                        ( 1,  0,  0), # Right targets 
    36                         ( 0,  0,  0), # Left p 
    37                         ( 0,  0,  0), # Left i 
    38                         ( 0,  0,  0), # Left d 
    39                         ( 0,  0,  0), # Right p 
    40                         ( 0,  0,  0), # Right i 
    41                         ( 0,  0,  0), # Right d 
     36                        ( 0,  0,  0.3), # Left p 
     37                        ( 0,  0.9,  0.6), # Left i 
     38                        ( 0,  0,  0.9), # Left d 
     39                        ( 0,  0,  0.3), # Right p 
     40                        ( 0,  0.9,  0.6), # Right i 
     41                        ( 0,  0,  0.9), # Right d 
    4242                ] 
    4343                self.data = [[] for color in self.colors] 
     
    8181                        context.line_to(x, y) 
    8282                context.set_source_rgb(*color) 
    83                 context.set_line_width(1.0) 
     83                context.set_line_width(2.0) 
    8484                context.stroke() 
    8585         
  • trunk/software/rb/transcript.py

    r445 r504  
    5555                                'timestamp', 
    5656                                # Drive 
     57                                'left_target', 'right_target', 
    5758                                'left_speed', 'right_speed', 
    5859                                # GPS 
     
    8687        def get_drive_data(self): 
    8788                if self.drive is None: 
    88                         return ['', ''] 
    89                 return list(self.drive.getspeed()) 
     89                        return [''] * 4 
     90                return list(self.drive.gettarget()) + list(self.drive.getspeed()) 
    9091         
    9192        def get_gps_data(self): 
  • trunk/software/setup.py

    r484 r504  
    4141        version='0.1', 
    4242        #py_modules=['rb'], 
    43         ext_modules=[example_module, laser_module, vision_module], 
     43        ext_modules=[example_module, laser_module ], 
    4444)