aboutsummaryrefslogtreecommitdiffstats
path: root/gui/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'gui/run.py')
-rwxr-xr-xgui/run.py5
1 files changed, 5 insertions, 0 deletions
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',