From cfa9461f269e616d6d54658d583b37d215f35a7b Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 28 Nov 2018 11:11:22 +0100 Subject: GUI: Add part of calibration routine --- gui/run.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gui/run.py') diff --git a/gui/run.py b/gui/run.py index b4af742..dea3222 100755 --- a/gui/run.py +++ b/gui/run.py @@ -82,13 +82,18 @@ class DPDPlugin(plugins.SimplePlugin): def start(self): self.bus.subscribe("dpd-capture", self.trigger_capture) + self.bus.subscribe("dpd-calibrate", self.trigger_calibrate) def stop(self): self.bus.unsubscribe("dpd-capture", self.trigger_capture) + self.bus.unsubscribe("dpd-calibrate", self.trigger_calibrate) def trigger_capture(self, param): print("trigger_capture({})".format(param)) + def trigger_calibrate(self, param): + cherrypy.engine.publish('dpd-calibration-result', self.dpd.capture_calibration()) + if __name__ == '__main__': parser = argparse.ArgumentParser(description='ODR-DabMod Web GUI') parser.add_argument('-c', '--config', -- cgit v1.2.3