Beispiel #1
0
	def loadPreButtonClick(self, e):
		lst = ["Constant", "Ramp", "Sine"]
		dlg = wx.SingleChoiceDialog( self, "Pick a Preset", "Load Presets", lst)
	
		if (dlg.ShowModal() == wx.ID_OK):
			select = dlg.GetSelection()
			gh.gridPreset(self.inputGrid, select)
		dlg.Destroy()
Beispiel #2
0
    def loadPreButtonClick(self, e):
        lst = ["Constant", "Ramp", "Sine"]
        dlg = wx.SingleChoiceDialog(self, "Pick a Preset", "Load Presets", lst)

        if (dlg.ShowModal() == wx.ID_OK):
            select = dlg.GetSelection()
            gh.gridPreset(self.inputGrid, select)
        dlg.Destroy()
Beispiel #3
0
def setupFile(val):
    file = h.findFileName()
    h.setFileName(file)
    gh.setDataFileName(file)
Beispiel #4
0
	def plotLastButtonClick(self, evt):
		gh.plotGraph(self.figure)
		self.canvas.draw()
Beispiel #5
0
	def runComButtonClick(self, e):
		move = gh.setupMoveq(self.inputGrid)
		dispatcher.dispatch(Message('imu_samples', move))
		dispatcher.dispatch(Message('run_commands',[self.addr, move]))
Beispiel #6
0
def setupFile(val):
	file = h.findFileName()
	h.setFileName(file)
	gh.setDataFileName(file)
Beispiel #7
0
 def plotLastButtonClick(self, evt):
     gh.plotGraph(self.figure)
     self.canvas.draw()
Beispiel #8
0
 def runComButtonClick(self, e):
     move = gh.setupMoveq(self.inputGrid)
     dispatcher.dispatch(Message('imu_samples', move))
     dispatcher.dispatch(Message('run_commands', [self.addr, move]))