Ignore:
Timestamp:
07/07/10 16:20:24 (12 years ago)
Author:
sc
Message:

remote_control/puzzlebox_brainstorms_network_client_thinkgear.py:

  • adjustment to debug output for clarity

remote_control/puzzlebox_brainstorms_network_client.py:

  • warning output on timeout waiting for server connections
  • adjustment to debug output for clarity

remote_control/puzzlebox_brainstorms_remote_control.py:

  • adjustment to debug output for clarity

remote_control/puzzlebox_brainstorms_client_interface.py:

  • forward driving halted when disconnected from ThinkGear? server
  • keyboard shortcuts added to direction buttons
  • virtual button presses drawn when driving activated by direction
  • better handling of speed changes in updateSpeed
  • speed dropped to 100 if NXT power threshold exceeded

remote_control/puzzlebox_brainstorms_configuration.ini:

  • ThinkGear? Connect Server Emulator configuration added
  • default Relaxation speed boosts tweaked

remote_control/interface/qt4_form.py:

  • faulty keyboard shortcuts removed

remote_control/puzzlebox_brainstorms_configuration.py:

  • ThinkGear? Connect Server Emulator configuration
  • default Relaxation speed boosts tweaked

remote_control/puzzlebox_brainstorms_client_interface_network.py:

  • initial checkin

remote_control/puzzlebox_brainstorms_client_interface_local.py:

  • initial checking
  • not properly establishing client/server communications

remote_control/puzzlebox_brainstorms_network_server_thinkgear.py

  • adjustment to debug output for clarity
  • some configuration settings moved to configuration module

remote_control/puzzlebox_brainstorms_network_server.py:

  • adjustment to debug output for clarity
File:
1 edited

Legend:

Unmodified
Added
Removed
  • remote_control/puzzlebox_brainstorms_network_server_thinkgear.py

    r82 r87  
    99# For more information please refer to http://www.gnu.org/copyleft/gpl.html 
    1010# 
    11 # Last Update: 2010.07.01 
     11# Last Update: 2010.07.06 
    1212# 
    1313##################################################################### 
     
    4242MESSAGE_FREQUENCY_TIMER = 1 * 1000 # 1 Hz (1000 ms) 
    4343 
    44 ENABLE_SIMULATE_HEADSET_DATA = True 
    45  
    46 BLINK_FREQUENCY_TIMER = 6 # blink every 6 seconds 
    47                           # (6 seconds is listed by Wikipedia 
    48                           # as being the average number of times 
    49                           # an adult blinks in a laboratory setting) 
    50  
    51 DEFAULT_SAMPLE_WAVELENGTH = 30 # number of seconds from 0 to max to 0 for 
    52                                # any given detection value below 
     44ENABLE_SIMULATE_HEADSET_DATA = configuration.THINKGEAR_ENABLE_SIMULATE_HEADSET_DATA 
     45 
     46BLINK_FREQUENCY_TIMER = configuration.THINKGEAR_BLINK_FREQUENCY_TIMER 
     47 
     48DEFAULT_SAMPLE_WAVELENGTH = configuration.THINKGEAR_DEFAULT_SAMPLE_WAVELENGTH 
    5349 
    5450DEFAULT_AUTHORIZATION_MESSAGE = \ 
     
    158154                 
    159155                if self.DEBUG: 
    160                         print "----> [%s] Initializing server on %s:%i" % \ 
     156                        print "<---- [%s] Initializing server on %s:%i" % \ 
    161157                           (self.socket.name, self.server_interface, self.server_port) 
    162158                         
     
    188184                for connection in self.connections: 
    189185                         
    190                         #if self.DEBUG: 
    191                                 #print "Connection state:", 
    192                                 #print connection.state() 
    193                          
    194186                        if ((connection.state() != QtNetwork.QAbstractSocket.ConnectingState) and \ 
    195187                                 (connection.state() != QtNetwork.QAbstractSocket.ConnectedState)): 
     
    237229                                                 
    238230                                                if self.DEBUG: 
    239                                                         print "<-- [%s] Flash policy file requested" % self.socket.name 
     231                                                        print "--> [%s] Flash policy file requested" % self.socket.name 
    240232                                                 
    241233                                                data_to_process = packet.data() 
     
    245237                                                 
    246238                                                if self.DEBUG: 
    247                                                         print "<-- [ThinkGear Emulator] Partial data received (or error:", 
     239                                                        print "--> [ThinkGear Emulator] Partial data received (or error:", 
    248240                                                        print e 
    249241                                                        print ")." 
     
    256248                                         
    257249                                        if self.DEBUG: 
    258                                                 print "<-- [%s] Received:" % self.socket.name, 
     250                                                print "--> [%s] Received:" % self.socket.name, 
    259251                                                print data_to_process 
    260252                                 
Note: See TracChangeset for help on using the changeset viewer.