From a85b6114c109ddd66ee071dad43abc9ae5f32a16 Mon Sep 17 00:00:00 2001 From: Leonardo Sala Date: Fri, 21 Jul 2017 13:41:25 +0200 Subject: [PATCH] Startup --- devices/bm1trx.properties | 3 ++- devices/bm1try.properties | 3 ++- devices/bm2trx.properties | 3 ++- devices/bm2try.properties | 3 ++- devices/bm3trx.properties | 3 ++- devices/bm3try.properties | 3 ++- devices/dummy.properties | 3 ++- script/test1.py | 15 +++++++++++++++ 8 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 script/test1.py diff --git a/devices/bm1trx.properties b/devices/bm1trx.properties index 1bae728..85ff8be 100644 --- a/devices/bm1trx.properties +++ b/devices/bm1trx.properties @@ -1,4 +1,4 @@ -#Thu Nov 19 14:25:26 CET 2015 +#Fri Jul 21 13:41:15 CEST 2017 defaultSpeed=1.0 estbilizationDelay=0 hasEnable=false @@ -10,5 +10,6 @@ minValue=-5.80125 offset=0.0 precision=5 resolution=0.00125 +rotation=false scale=1.0 unit=mm diff --git a/devices/bm1try.properties b/devices/bm1try.properties index 9be6e44..a9124b0 100644 --- a/devices/bm1try.properties +++ b/devices/bm1try.properties @@ -1,4 +1,4 @@ -#Thu Nov 26 14:08:13 CET 2015 +#Fri Jul 21 13:41:15 CEST 2017 defaultSpeed=1.0 estbilizationDelay=0 hasEnable=false @@ -10,5 +10,6 @@ minValue=-7.0 offset=0.0 precision=5 resolution=0.00125 +rotation=false scale=1.0 unit=mm diff --git a/devices/bm2trx.properties b/devices/bm2trx.properties index 7a0e880..3ac8cc5 100644 --- a/devices/bm2trx.properties +++ b/devices/bm2trx.properties @@ -1,4 +1,4 @@ -#Thu Nov 26 14:08:13 CET 2015 +#Fri Jul 21 13:41:15 CEST 2017 defaultSpeed=1.0 estbilizationDelay=0 hasEnable=false @@ -10,5 +10,6 @@ minValue=-24.8825 offset=0.0 precision=5 resolution=0.0025 +rotation=false scale=1.0 unit=mm diff --git a/devices/bm2try.properties b/devices/bm2try.properties index f2477c9..0794676 100644 --- a/devices/bm2try.properties +++ b/devices/bm2try.properties @@ -1,4 +1,4 @@ -#Thu Nov 26 14:08:13 CET 2015 +#Fri Jul 21 13:41:15 CEST 2017 defaultSpeed=0.3 estbilizationDelay=0 hasEnable=false @@ -10,5 +10,6 @@ minValue=-10.995509179999999 offset=0.0 precision=5 resolution=1.8E-4 +rotation=false scale=1.0 unit=mm diff --git a/devices/bm3trx.properties b/devices/bm3trx.properties index b1868db..b3fb817 100644 --- a/devices/bm3trx.properties +++ b/devices/bm3trx.properties @@ -1,4 +1,4 @@ -#Thu Nov 19 14:50:56 CET 2015 +#Fri Jul 21 13:41:15 CEST 2017 defaultSpeed=1.0 estbilizationDelay=0 hasEnable=true @@ -10,5 +10,6 @@ minValue=-5.80125 offset=0.0 precision=5 resolution=0.00125 +rotation=false scale=1.0 unit=mm diff --git a/devices/bm3try.properties b/devices/bm3try.properties index 0f45b35..235466e 100644 --- a/devices/bm3try.properties +++ b/devices/bm3try.properties @@ -1,4 +1,4 @@ -#Thu Nov 26 14:08:14 CET 2015 +#Fri Jul 21 13:41:15 CEST 2017 defaultSpeed=1.0 estbilizationDelay=0 hasEnable=false @@ -10,5 +10,6 @@ minValue=-27.535 offset=0.0 precision=5 resolution=0.0025 +rotation=false scale=1.0 unit=mm diff --git a/devices/dummy.properties b/devices/dummy.properties index e158d8e..4f5aaa8 100644 --- a/devices/dummy.properties +++ b/devices/dummy.properties @@ -1,4 +1,4 @@ -#Thu Nov 19 14:25:26 CET 2015 +#Fri Jul 21 13:41:15 CEST 2017 defaultSpeed=1.0 estbilizationDelay=0 maxSpeed=10.0 @@ -8,5 +8,6 @@ minValue=-10.0 offset=0.0 precision=2 resolution=NaN +rotation=false scale=1.0 unit=mm diff --git a/script/test1.py b/script/test1.py new file mode 100644 index 0000000..0663325 --- /dev/null +++ b/script/test1.py @@ -0,0 +1,15 @@ +#rel_x = pico_bpm6_new_x.read() +rel_x = pico_bpm6_ts_x.read() + +class SensorXAxis(ReadableArray): + def __init__(self, sensor): + self.sensor = sensor + def read(self): + return [x + self.sensor.getTimestamp() for x in rel_x] + def getSize(self): + return len(rel_x) #only reads if cache is None + + +x_axis = SensorXAxis(pico_bpm6_ts_sumall) + +plot(x_axis.read()) \ No newline at end of file