Sorry for the really general question, but I don't have a clue where to start. There's a component I want to develop for a WP7 application which is a an arrow that points in the direction (preferable X, Y, Z planes) of an address from where the user is currently located.
So for example, if you're lost in the woods and you have the address (long/latitude) of your house, it will always point you home.
Anyone know of any way to get started with this or samples or.....?
Thx in advance!
With the release of Mango you can now use the Compass class.
There is also the Raw Sensor Data Sample and How to: Get Data from the Compass Sensor for Windows Phone.
Unfortunately as of January 2011, Microsoft has not yet exposed the compass functionality with a public API. You'll have to wait till a later release for that.
If you are interested in the Latitude and Longitude, the GeoCoordinateWatcher is the place to start.
You can write so many miles East/West/North/South on the app page ( not worth much) if required.
You can even show a dynamic bing map with an indication of current location and destination using pins. But can't show the directions/orientation of the device w.r.t. actual direction.
You can get current GPS location and home GPS location. check the location service API http://msdn.microsoft.com/en-us/library/ff431803.aspx
Cant you use the GeoCoordinate.Course to get direction you are going?
Sebulba
Related
This is my first time getting into drones.
I am looking at DJI drones, currently as it seems most promising from a documentation and reviews point of view.
Basically, I would like to program a drone(s) to fly a certain pattern and take pictures when a certain criteria is met. For example, I would like the drone to take off and fly around a small park, stopping to take a picture of each tree it encounters, automatically (auto-piloted / driven by some "AI").
Now I glanced thru the DJI SDK documentation, and so far it SEEMS this is possible (via FlightControl class). But im not sure.
Question:
Can my requirements be met with current drone SDK technologies?
Yes, the correct SDK, 4.11.1 will do everything you mentioned. You will need to do some location calculations but that's about it.
The sample will almost do everything you want as-is, with minor changes.
With the DJI Mobile SDK you can use the Mission classes to automatically fly a given set of coordinates (waypoints) and do some actions once you arrive at a waypoint, e.g. take a picture.
However the SDK has limitations:
The SDK is unable to detects objects in the video stream. Therefore it is needed to use your own code to detect objects yourself.
The way the drone flies to the waypoint is quite limited, e.g. the drone will always face the camera in the direction of flight.
When using the DJI Mission classes, a change of the route during execution is only possible with the use of timeline Missions by adding timeline elements to the list.
As you already assumed in the comment: Yes, the Mobile SDK is more advanced than Windows SDK.
What are the best practices one needs to know when trying to get the most accurate location coordinates from a user.
How can I explicitly get location using the user's gps? How can I also ensure getting location using the network is accurate? I am asking because when I get location while I am home..by the time I get to the office, the location I get is still the same which isnt supposed to be so. Does it have to do with my listener?
Any help/code snippets will be appreciated.
Salam
Modern Android devices and all iOS devices don't use GPS as much as they use hybrid location. Hybrid location correlates all sensor information (including gps) to give a location as accurately and quickly as possible while reducing battery usage.
This is on by default in Codename One if you don't do anything like explicitly specifying that Google Play Services shouldn't be included or if you include google play services other than location (without including location via the build hint android.playService.location=true) this won't be used either. In those cases Android will fallback to use GPS which is slower.
You can read more about build hints here.
Notice that even then getting location takes time so make a request so you should use the getCurrentLocationSync() method or the location listener API to make sure you get a more accurate reading.
I'm trying to develop an application like Bump to receive data from another device by touching them together. I could not find any tutorial on Google about this. Can somebody help me make an idea about how this works? What programming language should I use, how can I do it by using Bluetooth or/and Wifi, etc? I only need some info. I don't know where to start. Thank you!
If you want to create something like bump for iPhone, you could code it in Objective-C or swift. (Based on preference) For android you would code it in Java. To make this bump you need to create a trigger that detects a shake gesture on the device to trigger additional code. The additional code will take the location and the time of both devices in the bump and save it into a database. You need to check the location and the timestamp and compare those values. If is the same location and at the same time you know those are the two devices in the bump. After you know the devices involved you can send whatever information between those devices. Hope this helped.
I am wanting to build a car dashboard equivalent in C# WPF and I have everything running well with dummy data. I can find very little information on streaming live data from a GPS. Does anyone have experience with something like this and can you point me in the right direction.
Cheers
Peter
Please follow these links to parse GPS data which you are getting from your GPS Device.
http://www.c-sharpcorner.com/uploadfile/jperson2000/writing-your-own-gps-applications-part-i/
http://www.c-sharpcorner.com/uploadfile/jperson2000/writing-your-own-gps-applications-part-ii/
I want to create wayfinder/pathfinder mobile application. it will route visitors in our buildings. we have 20 buildings and each at least have 4 floor.
We want to develop our own wayfinder ex:http://www.wayfinderkiosk.com/
It should use Lat/Long coordinates to locate the people. and help to find its route.
So where should i start. Does any one have any idea for that. and it is going to be mobile.
I can develop app/site based on these platforms ( Mobile Web/Iphone/Adroid /Symbian/Windows )
But i need a start point. and i need your help.
Thanks
You want to use lat/long inside of a building? Assuming these visitors are going to be using their own unmodified devices, you may have trouble with GPS. Unless you somehow get reliable GPS signal despite being under a four-story building, that's probably not going to work.
An RFID-tagged badge and sensors placed throughout the building seems more likely to work. Put a unique QR-code on each badge that directs the phone's browser to a tracking page for that specific badge.
edit: and now that I re-read your question and see that multiple buildings are involved, the GPS bit could certainly work for routing them from one building to another.