Skip to content
This repository was archived by the owner on Mar 2, 2018. It is now read-only.

Commit 24dde1d

Browse files
committed
Merge pull request #24 from googlesamples/jacobi-release
Jacobi Release
2 parents a394cab + 42789d0 commit 24dde1d

19 files changed

Lines changed: 97 additions & 49 deletions

File tree

AreaLearningJava/.settings/org.eclipse.jdt.core.prefs

Lines changed: 0 additions & 4 deletions
This file was deleted.
30.9 KB
Binary file not shown.
-41.9 KB
Binary file not shown.

AreaLearningJava/src/com/projecttango/experiments/javaarealearning/AreaLearningActivity.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ protected void onCreate(Bundle savedInstanceState) {
173173
}
174174

175175
private void setTangoConfig() {
176+
mConfig = new TangoConfig();
176177
mConfig = mTango.getConfig(TangoConfig.CONFIG_TYPE_CURRENT);
177178
// Check if learning mode
178179
if (mIsLearningMode) {
@@ -270,6 +271,11 @@ public void onPoseAvailable(TangoPoseData pose) {
270271
mGLView.requestRender();
271272
}
272273
}
274+
275+
@Override
276+
public void onFrameAvailable(int cameraId) {
277+
// We are not using onFrameAvailable for this application.
278+
}
273279
});
274280
}
275281

@@ -323,7 +329,7 @@ public void onSetName(String name, String uuids) {
323329
/**
324330
* Updates the text view in UI screen with the Pose. Each pose is associated with Target and
325331
* Base Frame. We need to check for that pair ad update our views accordingly.
326-
*
332+
*
327333
* @param pose
328334
*/
329335
private void updateTextViewWith(final TangoPoseData pose) {
-104 KB
Binary file not shown.
30.9 KB
Binary file not shown.
-41.9 KB
Binary file not shown.

MotionTrackingJava/src/com/projecttango/experiments/javamotiontracking/MotionTrackingActivity.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ protected void onCreate(Bundle savedInstanceState) {
111111
// Instantiate the Tango service
112112
mTango = new Tango(this);
113113
// Create a new Tango Configuration and enable the MotionTrackingActivity API
114+
mConfig = new TangoConfig();
114115
mConfig = mTango.getConfig(TangoConfig.CONFIG_TYPE_CURRENT);
115116
mConfig.putBoolean(TangoConfig.KEY_BOOLEAN_MOTIONTRACKING, true);
116117

@@ -146,7 +147,7 @@ protected void onCreate(Bundle savedInstanceState) {
146147
private void setTangoListeners() {
147148
// Lock configuration and connect to Tango
148149
// Select coordinate frame pair
149-
final ArrayList<TangoCoordinateFramePair> framePairs =
150+
final ArrayList<TangoCoordinateFramePair> framePairs =
150151
new ArrayList<TangoCoordinateFramePair>();
151152
framePairs.add(new TangoCoordinateFramePair(
152153
TangoPoseData.COORDINATE_FRAME_START_OF_SERVICE,
@@ -221,6 +222,11 @@ public void run() {
221222
}
222223
});
223224
}
225+
226+
@Override
227+
public void onFrameAvailable(int cameraId) {
228+
// We are not using onFrameAvailable for this application
229+
}
224230
});
225231
}
226232

30.9 KB
Binary file not shown.
-41.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)