Changeset 504
- Timestamp:
- 05/27/09 00:30:40 (3 years ago)
- Location:
- trunk/software
- Files:
-
- 3 modified
-
rb/gui/speedgraph.py (modified) (2 diffs)
-
rb/transcript.py (modified) (2 diffs)
-
setup.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/software/rb/gui/speedgraph.py
r487 r504 30 30 self.drive = drive 31 31 self.colors = [ 32 ( 0 , .5, 0), # Left speeds32 ( 0.3, 0.3, 0.3), # Left speeds 33 33 ( 0, 1, 0), # Left targets 34 34 (.5, 0, 0), # Right speeds 35 35 ( 1, 0, 0), # Right targets 36 ( 0, 0, 0 ), # Left p37 ( 0, 0 , 0), # Left i38 ( 0, 0, 0 ), # Left d39 ( 0, 0, 0 ), # Right p40 ( 0, 0 , 0), # Right i41 ( 0, 0, 0 ), # Right d36 ( 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 42 42 ] 43 43 self.data = [[] for color in self.colors] … … 81 81 context.line_to(x, y) 82 82 context.set_source_rgb(*color) 83 context.set_line_width( 1.0)83 context.set_line_width(2.0) 84 84 context.stroke() 85 85 -
trunk/software/rb/transcript.py
r445 r504 55 55 'timestamp', 56 56 # Drive 57 'left_target', 'right_target', 57 58 'left_speed', 'right_speed', 58 59 # GPS … … 86 87 def get_drive_data(self): 87 88 if self.drive is None: 88 return ['' , '']89 return list(self.drive.get speed())89 return [''] * 4 90 return list(self.drive.gettarget()) + list(self.drive.getspeed()) 90 91 91 92 def get_gps_data(self): -
trunk/software/setup.py
r484 r504 41 41 version='0.1', 42 42 #py_modules=['rb'], 43 ext_modules=[example_module, laser_module , vision_module],43 ext_modules=[example_module, laser_module ], 44 44 )

