Eric
Do not send private messages with technical questions; they will be discarded. All technical questions must be posted publicly on the forum.
About
- Username
- Eric
- Joined
- Visits
- 9,275
- Last Active
- Roles
- Administrator
Comments
-
Use a boolean variable to toggle whether or not to skip the apply function. new Subscriber() { @Override public void apply(Data data, Object... env) { if (!skip) { // execute code here if skip == false …
-
Place some log calls in your code to see if you are adding a route multiple times and in the subscriber to see if it's being called multiple times. It appears that you are either setting up the accelerometer and gyro routes twice or the subscriber …
-
Use the Android SDK to customize the sensors however you want. The BMI160 accelerometer can sample data as low as 0.78125 Hz https://github.com/mbientlab/MetaWear-SDK-Android
-
See this post on the tutorials page. It was written a while ago but I believe everything is still good for iOS api v2.8.3.https://mbientlab.com/docs/apis/objective-c/persistent-events-and-filters/ Also see the Gotchas section for the MBLEvent …
-
The sample code in the linked documentation is how you set it up, you had started setting it up in your earlier post. Please post your code in its entirety because this sounds like you have not properly declared some variables or there is some synt…
-
Yes, async tasks need to be chained. Also, don't start the sensors until all routes have been setup.
-
Please print the contents of the managedArray variable. You have simply given me the addresses (or id?) assigned by the CLR for said variable.
-
Sensor odr is not the same as ble communication frequency. You can sample data at whatever frequency you want provided the actual frequency of communication over the ble link does not exceed 100Hz. Raw acc/gyro/mag data are only 6 bytes so you can…
-
That could work but that's simply a stab in the dark. I have no idea if it actually will work.
-
You need to chain async tasks https://github.com/BoltsFramework/Bolts-Android#chaining-tasks-together
-
The data processor editing goes in a reaction; it should mirror how the unit test I linked edits the passthrough limiter. * https://github.com/mbientlab/MetaWear-SDK-Android/blob/3.0.17/library/src/test/java/com/mbientlab/metawear/RouteCreator.jav…
-
Again, you cannot stream that much data through the btle connection. You are limited to a 100Hz transmission frequency which is completely used by 1 sensor fusion output in NDOF mode. When you increase the number of sensors you stream from, you mu…
-
Timeout exceptions most commonly occur when there are no more resources available to be allocated on the board. Make sure you release all resources by calling tearDown before you reschedule tasks / setup more routes. You can try the tearDown fu…
-
You need attach the "rss -> threshold" chain to the acceleration source as drawn out in my ASCII art; the threshold processor will edit the passthrough's state with a reaction. This setup is demonstrated in the unit test I linked in my previous …
-
There is only a limited amount of flash memory on the CPro boards. To record for longer periods of time, you can: * Reduce the logging frequency * Use a MetaMotion (R or C) board * Stream the data to your iOS device
-
See this thread http://community.mbientlab.com/discussion/comment/3914
-
Active means the controller object can still be used. It's only used with the remove method so you don't accidentally use an object corresponding to a removed timer. Teardown, in api v2, only works with timers it is aware of and is intended for c…
-
You're missing a commit function when configuring the step detector.
-
You'll have to debug to code to help me see what could be going on. Set a breakpoint in the initialize method's callback function and see what the status value is:https://github.com/mbientlab/MetaWear-UwpStarter/blob/master/CS Template/MetaWearBoar…
-
Seems like you have an unwanted negation operator when checking if the controller is active in the PressureModule class. if (_timerController != null && !_timerController.isActive()) { _timerController.start(); onStartReading(_se…
-
Can you post the code that you are currently using? Please include the setup, clearn up, and error handling code
-
Checkout this unit test using the passthrough limiter. It's in count mode but it demonstrates the idea of using the DataProcessor module to modify the passthrough state. https://github.com/mbientlab/MetaWear-SDK-Android/blob/v3/library/src/test/j…
-
You can serialize the object state with the API:https://mbientlab.com/androiddocs/3/advanced_features.html#serialization Automatic connect/reconnect needs to be implemented at the app level.
-
When you schedule a task, the AsyncOperation returns a Controller object which is used to control the timer. Save that controller object so you can restart the timer. https://mbientlab.com/androiddocs/2/timer.html#controller
-
RSS returns a scalar value so you can't map its output to an Acceleration type. You can check valid types using the types method. In this specific case, rss returns a float value.https://mbientlab.com/androiddocs/3/data_route.html#handling-data …
-
@lylesvendsenWhat are you trying to do that requires multiple PWM?
-
You can use the sensors to calculate relative change in location, for example, using the barometer to calculate altitude displacement, but there are no sensors that report absolute location (e.g. gps).
-
The tutorials / API help you access sensor data on your host device; what you do with the data afterwards is up to you. In your case, you need to determine what cloud service you want to use and use their APIs to push data to their cloud services. …
-
Setup a data route for the acceleration data producer, add a stream component, then retrieve the Acceleration object encapsulated by the data parameter. Again, see the example code in the Accelerometer section: https://mbientlab.com/androiddocs/…
-
* What platform are you developing on? * What type of board are you using?