From 7fde1fd56f9e49564d162562a2ecc040b9557f18 Mon Sep 17 00:00:00 2001 From: sfop Date: Fri, 27 May 2016 15:39:19 +0200 Subject: [PATCH] Script execution --- script/local.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/local.py b/script/local.py index f8a26f2..a5a600c 100755 --- a/script/local.py +++ b/script/local.py @@ -88,10 +88,11 @@ def get_plot_snapshots(title = None, file_type = "jpg", temp_path = controller.s class Sinusoid(ReadonlyRegisterBase): def doRead(self): - self.x = self.x + 1.0 if hasattr(self, 'x') else 0.0 + self.x = self.x + 5.0 if hasattr(self, 'x') else 0.0 return math.sin(self.x * math.pi / 180.0) -add_device(Sinusoid("sim"), True) +add_device(Sinusoid("phase"), True) +add_device(Sinusoid("bpm"), True) add_device(Sinusoid("center_x"), True) add_device(Sinusoid("center_y"), True)