Changeset 157


Ignore:
Timestamp:
08/10/10 07:54:48 (11 years ago)
Author:
sc
Message:

synapse/puzzlebox_synapse_configuration.py:

  • path adjustment to .ini file under Linux

synapse/setup.py:

  • puzzlebox_synapse.desktop added

synapse/MANIFEST.in

  • puzzlebox_synapse.desktop added

synapse/puzzlebox_synapse_interface.py

  • bug fixed when switching from MindSet? to Emulator

synapse/puzzlebox_synapse.desktop:

  • initial checkin
Location:
synapse
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • synapse/MANIFEST.in

    r154 r157  
    11include LICENSE.txt 
    22include puzzlebox_synapse_configuration.ini 
     3include puzzlebox_synapse.desktop 
    34include images/* 
  • synapse/puzzlebox_synapse_configuration.py

    r150 r157  
    99# For more information please refer to http://www.gnu.org/copyleft/gpl.html 
    1010# 
    11 # Last Update: 2010.08.05 
     11# Last Update: 2010.08.09 
    1212# 
    1313##################################################################### 
     
    2222 
    2323CONFIGURATION_FILE_PATH = 'puzzlebox_synapse_configuration.ini' 
     24 
     25if (sys.platform != 'win32'): 
     26        if not os.path.exists(CONFIGURATION_FILE_PATH): 
     27                CONFIGURATION_FILE_PATH = \ 
     28                        os.path.join('/etc/puzzlebox_synapse', CONFIGURATION_FILE_PATH) 
    2429 
    2530 
  • synapse/puzzlebox_synapse_interface.py

    r156 r157  
    233233                 
    234234                self.progressBarSignalContactQuality.setValue(0) 
     235                 
     236                self.maxEEGPower = THINKGEAR_EMULATION_MAX_EEG_POWER_VALUE 
     237                 
     238                # In case the user connects to a MindSet, then disconnects 
     239                # and re-connects to a MindSet Emulator, 
     240                # we need to reset the max power values 
     241                self.progressBarEEGDelta.setMaximum(THINKGEAR_EMULATION_MAX_EEG_POWER_VALUE) 
     242                self.progressBarEEGTheta.setMaximum(THINKGEAR_EMULATION_MAX_EEG_POWER_VALUE) 
     243                self.progressBarEEGLowAlpha.setMaximum(THINKGEAR_EMULATION_MAX_EEG_POWER_VALUE) 
     244                self.progressBarEEGHighAlpha.setMaximum(THINKGEAR_EMULATION_MAX_EEG_POWER_VALUE) 
     245                self.progressBarEEGLowBeta.setMaximum(THINKGEAR_EMULATION_MAX_EEG_POWER_VALUE) 
     246                self.progressBarEEGHighBeta.setMaximum(THINKGEAR_EMULATION_MAX_EEG_POWER_VALUE) 
     247                self.progressBarEEGLowGamma.setMaximum(THINKGEAR_EMULATION_MAX_EEG_POWER_VALUE) 
     248                self.progressBarEEGMidGamma.setMaximum(THINKGEAR_EMULATION_MAX_EEG_POWER_VALUE) 
    235249         
    236250         
     
    328342        def updateInterface(self): 
    329343                 
    330                 self.processPacketThinkGear(self.thinkGearConnectServer.protocol.data_packet) 
     344                if not self.thinkGearConnectServer.emulate_headset_data: 
     345                        self.processPacketThinkGear( \ 
     346                                self.thinkGearConnectServer.protocol.data_packet) 
    331347         
    332348         
  • synapse/setup.py

    r156 r157  
    4545                 "puzzlebox_synapse_server_thinkgear.py" 
    4646        ], 
    47         data_files=[("/etc/puzzlebox_synapse", ["puzzlebox_synapse_configuration.ini"]), 
     47        data_files=[("/etc/puzzlebox_synapse", \ 
     48                            ["puzzlebox_synapse_configuration.ini"]), 
    4849                    ("/usr/share/puzzlebox_synapse/images", \ 
    49                        ["images/puzzlebox.ico", \ 
    50                         "images/puzzlebox_logo.png"]), 
     50                            ["images/puzzlebox.ico", \ 
     51                             "images/puzzlebox_logo.png"]), 
     52                    ("/usr/share/applications", \ 
     53                            ["puzzlebox_synapse.desktop"]), 
    5154        ], 
    5255        windows=[ \ 
Note: See TracChangeset for help on using the changeset viewer.