PI management from a neutral point

34 views
Skip to first unread message

Raul H

unread,
Jun 2, 2012, 5:57:26 PM6/2/12
to app...@googlegroups.com
Hi!

I was trying to manage a bit the points of interest, I remove almost all points, introducing just one, and allocating instead of the poi of Barcelona another from UK. But, if I do that, the compass is going crazy with AR mechanism (the one I want to change for my proposal in the AR engine of Appunta). Can I use the mobile device as the main point instead of Barcelona? of for the architecture of the engine isn´t possible?

Let´s see my changes:

points.add(new SimplePoint(1, LocationFactory.createLocation(52.072605,-0.627460,100), renderer, "Kings Norton Library"));
in PointsModel.java

and 

ar.setPoints(points);
ar.setPosition(LocationFactory.createLocation(52.075995,-0.623184,1));// BCN
ar.setOnPointPressedListener(this);
cv.setPoints(cpoints);
cv.setPosition(LocationFactory.createLocation(52.0759958,-0.623184,1));// BCN
cv.setRotableBackground(R.drawable.arrow);
in EyeViewActivity.java

the first point added is a library on the campus where I study. and the second is a relative point really close to the other.

but trying to remove the new setposition on ar it doesn´t work and makes an error.

Thanks for the support!


Bernat

unread,
Jun 2, 2012, 6:37:43 PM6/2/12
to app...@googlegroups.com
Hi Raul!

I implemented appunta some days ago, and I can move the center position to new campus Position.

In my appuntaFragment i have this:

ar = (EyeView) layout.findViewById(R.id.augmentedView1);
cv = (RadarView) layout.findViewById(R.id.radarView1);

ar.setMaxDistance(3);

ar.setPoints(points);
ar.setPosition(LocationFactory.createLocation(PointsDemo.LAT,
PointsDemo.LON, 0));// BCN

And i have other class with some vars, inside this, I have information about center Point that i want.

public static final Double LAT = 41.501965;
public static final Double LON = 2.104043;

Can you try adding: "ar.setMaxDistance(int);" ?

Bernat

unread,
Jun 2, 2012, 6:38:34 PM6/2/12
to app...@googlegroups.com
And sorry for my english, i know isn't good.

Raul H

unread,
Jun 2, 2012, 7:04:14 PM6/2/12
to app...@googlegroups.com
I guess a listener for a GPS is required, so I gonna try to make it. if any of you have a prototype of how to do it, it should be useful!

Bernat

unread,
Jun 2, 2012, 7:12:48 PM6/2/12
to app...@googlegroups.com

This is a little example to implements GPSListener!

Hope it's useful for you!

Raul H

unread,
Jun 2, 2012, 7:59:30 PM6/2/12
to app...@googlegroups.com
this code works pretty well with motion, thanks a lot! I have a new POI that is well performed

Sergi Martínez

unread,
Jun 4, 2012, 3:43:43 AM6/4/12
to app...@googlegroups.com
HI guys

In order to implement a listener, the library contains the class LocationReader that makes easier to work with GPS and network location providers.

regs

--
You received this message because you are subscribed to the Google Groups "Appunta" group.
To view this discussion on the web visit https://groups.google.com/d/msg/appunta/-/SRAMMwWvhdoJ.

To post to this group, send email to app...@googlegroups.com.
To unsubscribe from this group, send email to appunta+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/appunta?hl=en.



--

Sergi Martínez


sergi.m...@gmail.com

Raul H

unread,
Jun 4, 2012, 2:32:15 PM6/4/12
to app...@googlegroups.com
Thanks Sergi, we weren´t afraid that we could use it at the same way.
Reply all
Reply to author
Forward
0 new messages