From b162de5b4d406f4a260eb8a142506dac53843e92 Mon Sep 17 00:00:00 2001 From: Eric Tsai Date: Wed, 14 Nov 2018 18:42:51 -0800 Subject: [PATCH] api v0.6.2 commit --- MetaWear-SDK-Cpp | 2 +- examples/multi_device.py | 8 +++++--- setup.py | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/MetaWear-SDK-Cpp b/MetaWear-SDK-Cpp index e32a00e..9837aa3 160000 --- a/MetaWear-SDK-Cpp +++ b/MetaWear-SDK-Cpp @@ -1 +1 @@ -Subproject commit e32a00e861ffc47db364bda9b0a7ab1c6f92b41a +Subproject commit 9837aa366a8bac4343250dc3d71133dd09950f88 diff --git a/examples/multi_device.py b/examples/multi_device.py index ce8d3d5..4f7d059 100644 --- a/examples/multi_device.py +++ b/examples/multi_device.py @@ -17,7 +17,7 @@ def __init__(self, device): self.callback = FnVoid_VoidP_DataP(self.data_handler) def data_handler(self, ctx, data): - print("%s -> %s" % (self.device.address, parse_value(data))) + #print("%s -> %s" % (self.device.address, parse_value(data))) self.samples+= 1 states = [] @@ -30,7 +30,9 @@ def data_handler(self, ctx, data): for s in states: print("configuring device") libmetawear.mbl_mw_settings_set_connection_parameters(s.device.board, 7.5, 7.5, 0, 6000) - libmetawear.mbl_mw_acc_set_odr(s.device.board, 25.0) + sleep(1.5) + + libmetawear.mbl_mw_acc_set_odr(s.device.board, 100.0) libmetawear.mbl_mw_acc_set_range(s.device.board, 16.0) libmetawear.mbl_mw_acc_write_acceleration_config(s.device.board) @@ -40,7 +42,7 @@ def data_handler(self, ctx, data): libmetawear.mbl_mw_acc_enable_acceleration_sampling(s.device.board) libmetawear.mbl_mw_acc_start(s.device.board) -sleep(30.0) +sleep(3.0) for s in states: libmetawear.mbl_mw_acc_stop(s.device.board) diff --git a/setup.py b/setup.py index 0526498..e9b8b0f 100644 --- a/setup.py +++ b/setup.py @@ -66,7 +66,7 @@ def run(self): setup( name='metawear', packages=['mbientlab', 'mbientlab.metawear'], - version='0.6.1', + version='0.6.2', description='Python bindings for the MetaWear C++ SDK by MbientLab', long_description=open(os.path.join(os.path.dirname(__file__), "README.rst")).read(), package_data={'mbientlab.metawear': so_pkg_data},