Ignore:
Timestamp:
06/14/12 12:39:17 (9 years ago)
Author:
sc
Message:
  • Update for configuration-based COMMAND_ACTIVATE definition
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Puzzlebox/Brainstorms/Helicopter_Control.py

    r326 r343  
    99# For more information please refer to http://www.gnu.org/copyleft/gpl.html 
    1010 
    11 __changelog__ = """ 
    12 Last Update: 2012.03.21 
     11__changelog__ = """2012.06.14 
    1312""" 
    1413 
     
    5352 
    5453DEFAULT_COMMAND = 'dump_packets' 
     54 
     55COMMAND_ACTIVATE = configuration.COMMAND_ACTIVATE 
    5556 
    5657SERIAL_DEVICE = '/dev/ttyUSB0' 
     
    296297                #self.sync_to_helicopter() 
    297298                 
    298                 self.protocol.command_packet = COMMAND_PACKET['fifty_percent_thrust'] 
    299                 #self.protocol.command_packet = COMMAND_PACKET['maximum_thrust'] 
     299                #self.protocol.command_packet = COMMAND_PACKET['fifty_percent_thrust'] 
     300                ##self.protocol.command_packet = COMMAND_PACKET['maximum_thrust'] 
     301                 
     302                self.protocol.command_packet = COMMAND_PACKET[COMMAND_ACTIVATE] 
    300303                 
    301304                if duration != None: 
Note: See TracChangeset for help on using the changeset viewer.