Mark_L
About
- Username
- Mark_L
- Joined
- Visits
- 111
- Last Active
- Roles
- Member
Comments
-
oh, I know why, because I forget the AcceleLength=new arrayList; thanks, and now I am doing the last one which is multiple connection(connect two mtwear) how can I do it? I know there is an sample app, but which part I should focus on? thanks
-
Hi Eric, My app will be exited automatically. List AcceleLength; .addModuleCallback(new Accelerometer.Callbacks() { @Override public void receivedDataValue(short x, short y, short z) {AcceleLength.add(z);// add data} .addModuleCal…
-
Hi, is it possible to get the xyz acceleration with and without the gravity at the same time? thanks because when it is moving, it seem can't get the pitch angle.
-
Hi Eric, Can I get more detail, as I never learn about it and don't know where to start, is it called the arraylist or linkedlist? List listA = new ArrayList(); //like this? and how about this tutorial?: http://tutorials.jenkov.com/java-colle…
-
double accX[],accY[],accZ[]; int i=0; .addModuleCallback(new Accelerometer.Callbacks() { @Override public void receivedDataValue(short x, short y, short z) { do { accX[i] = x/1000.00; accY[i] = y/100…
-
Hi Eric, I have finished this part for notification. and now I have a question that : how can I store all the accelerometer value inside a variable array like acc[] using a while loop when it is working? so that I can use it in another place. …
-
Hi Eric, Thank you so much! and now I can get the notification when the state changed, after adding gpioCtrllr.readDigitalInput((byte) 1); gpioCtrllr.setDigitalInput((byte) 1, PullMode.NONE); so now I can get what I want to get, but can yo…
-
Ya, that is why, I never stop it when I disconnect, thank you so much.
-
Hi Eric, I understand it will notifies me by the pinChangeDetected, what you mean that is when the pin state be changed every time, it will execute what inside the public void pinChangeDetected(byte pin, byte state) { Log.i(…
-
and how the metawear notify me when the state changed? thanks Eric
-
or do you mean the metawear? I am not sure what API I am using, iscompile 'com.mbientlab:metawear:1.8.0' should I change it to 1.9.3
-
Ok, thanks Eric, so meaing I change the 10 to 0 if I want to monitor the pin 0 state. but the Document is '10', I just copy from there. thanks
-
Called KITKAT. API 19 4.4.
-
sometime nothing but sometime correct..!!
-
oh, never mind Eric, maybe the stopwatch tutorial of android can help me, thanks.
-
Hi Eric, @Override public void connected() { gpioCtrllr= ((GPIO) mwController.getModuleController(Module.GPIO)); gpioCtrllr.setPinChangeType((byte) 10, GPIO.ChangeType.ANY); gpioCtrllr.enablePinChangeNotification((byte) 0); accel…
-
Yup, for example, when 3:00 startTimer and after 30 seconds I stopTimer, the difference is 30s, and what i want to know is how to get this 30 seconds using metawear board. thanks Eric
-
Hi Laura, Thanks for your sharing link, it can help me!!, but before I using it, I need to filter the gravity effect, how can I remove it? is it use the RMS function? and how? thank you once again.
-
Thanks Eric, I can get the data and display it now. next what I need to do is when the GPIO pin read the the signal as high, the timer and accelerometer will be start until become low for stopping. and display the how long the time it use and acce…
-
Hi Eric, the full error message said Non-static method 'findViewById(int)' cannot be referenced from a static context.
-
Hi Eric, Can you access to the link? http://pastebin.com/NEaDbfz3 the is error is at line 187.
-
Hi Eric, thanks, you help me a lot, and I have posted my code here http://pastebin.com/NEaDbfz3 could you just give me some direction? next thing I need to do should calculating and display the result. but I don't know how to move on as it al…
-
Hi Eric: What your meaning is I can do my calculation after the Log.i("MainActivity", String.format(Locale.US, "(%.3f, %.3f, %.3f)", x / 1000.0, y / 1000.0, z / 1000.0)); //start my calculation here? …
-
OK, but is it possible to get the angle in another way? thanks Eric
-
and that is my whole code: https://www.facebook.com/sharer/sharer.php?u=https://www.facebook.com/permalink.php?story_fbid=102550746759794&id=100010146061920&display=popup&ref=plugin (Can be seen?) Thanks for your patience!
-
Sorry, may my questions are not so clear. what I am trying to say is public void receivedDataValue(short x, short y, short z) { Log.i("MainActivity", String.format(Locale.US, "(%.3f, %.3f, %.3f)", x / 1000.0, y…
-
Hi Eric Thank you so much! I have completed the code which is for board connecting so far, meaning I can access the board now, using your SOS trigger project as reference and now my facing problem is I can not display the data from acceleromet…
-
Hi Eric, Thank you for your reply. So now I need to finish the Bluetooth part(open scan and connectd) for my project. and what I have known so far just is 1. Layout is for user interface(so coding is for display or show to user) 2. java.MainAc…