Ignore:
Timestamp:
02/02/10 05:47:21 (12 years ago)
Author:
sc
Message:

rc:

  • turn_left_in_reverse support added

server:

  • turn_left_in_reverse support added

configuration:

  • tweaked settings for vector arrows

images:

  • svg arrows scaled down to 254x242 for n900 display

client:

  • turn_left_in_reverse support added

client_interface:

  • turn_left_in_reverse support added
File:
1 edited

Legend:

Unmodified
Added
Removed
  • rc/puzzlebox_brainstorms_rc.py

    r14 r21  
    1111# For more information please refer to http://www.gnu.org/copyleft/gpl.html 
    1212# 
    13 # Last Update: 2010.01.28 
     13# Last Update: 2010.02.01 
    1414# 
    1515##################################################################### 
     
    188188        ################################################################## 
    189189         
    190         def turn_in_reverse(self, connection, power=80, duration=3): 
     190        def turn_left_in_reverse(self, connection, power=80, duration=3): 
     191                 
     192                "Turn the robot counter-clockwise while backing up at a" 
     193                " certain speed for a certain duration" 
     194                 
     195                left_power = -power 
     196                right_power = -(power/3) 
     197                 
     198                self.drive(connection, left_power, right_power, duration) 
     199         
     200         
     201        ################################################################## 
     202         
     203        def turn_right_in_reverse(self, connection, power=80, duration=3): 
    191204                 
    192205                "Turn the robot clockwise while backing up at a" 
     
    234247                 
    235248                # half turn in reverse 
    236                 self.turn_in_reverse(self.connection, power=100, duration=2) 
     249                self.turn_right_in_reverse(self.connection, power=100, duration=2) 
    237250                 
    238251                self.drive_forward(self.connection, power=80, duration=2) 
     
    270283                        self.turn_right(self.connection) 
    271284                 
    272                 elif (command == 'turn_in_reverse'): 
    273                         self.turn_in_reverse(self.connection) 
     285                elif (command == 'turn_left_in_reverse'): 
     286                        self.turn_left_in_reverse(self.connection) 
     287                 
     288                elif (command == 'turn_right_in_reverse'): 
     289                        self.turn_right_in_reverse(self.connection) 
    274290         
    275291         
Note: See TracChangeset for help on using the changeset viewer.