News for hackers. Stuff that matters.
Re:Google Nexus 4 Review by cryptoz on Tuesday November 13, 2012 @09:21AM (#4778080)
And it has a barometer!
Re:Google Nexus 4 Review by phreeza on Tuesday November 13, 2012 @10:03AM (#4778288)
Does anyone have an idea what the use of this might be? Altimeter? Weather forecasting?
Re:Google Nexus 4 Review by cryptoz on Tuesday November 13, 2012 @10:38AM (#4778504)
I collect the barometric readings with pressureNET. https://play.google.com/store/apps/details?id=ca.cumulonimbu...

We have about 11,000 total users (half are active) and are VERY excited that the Nexus 4 and 10 both have barometers. We're looking to improve short-term, local weather prediction asap. The project is open source at http://cumulonimbus.ca

Re:Google Nexus 4 Review by yock on Tuesday November 13, 2012 @11:08AM (#4778679)
Very appreciative of the tip here, it's installing now on my GNex.
Re:Google Nexus 4 Review by nl on Tuesday November 13, 2012 @10:12AM (#4778343)
Yes - all those things.

But the real reason it is there is that it speeds up getting an initial GPS fix. It provides a quick way to guess altitude, which lets it calculate where satellites should be better.

Re:Google Nexus 4 Review by mjs on Tuesday November 13, 2012 @10:46AM (#4778552)
How does knowing the altitude help figure out which satellite to look for? (Are GPS receivers "directional", anyway??) GPS satellites orbit at ~20,000km; for the initial acquisition I'm surprised that receivers would care if they're 0km or 1.5km from sea level.
Re:Google Nexus 4 Review by arjunnarayan on Tuesday November 13, 2012 @11:10AM (#4778691)
GPS positions you using very accurate clocks. GPS satellites are continuously broadcasting messages, where each message contains: 1) their position when the message was sent 2) the exact time when the message was sent.

With enough satellite signals (4, given that you're locating in 4 dimensions --- 3 spacial and 1 time. Note that if the GPS receiver had a very expensive clock you could locate with 3 satellites, or if you knew your exact altitude to a high level of precision as well, you can locate with just 2 satellite signals).

Now notice that if you're solving a 4 dimensional equation, you can't have two of the spatial coordinates have precisions of less than 10 meters while one of them is inaccurate to the kilometer!

In practice, if you have a "good enough" clock and a "good enough" barometer, you can hone into the approximate city, or 100 meter radius circle much faster --- after picking up just two GPS signals. And for a lot of apps, this lets them begin the initial computations quicker.

The one part I'm not sure about is whether the long time is computational, or in actually waiting until you find 4 or more signals. Maybe somebody with more experience with GPS can clarify?

Re:Google Nexus 4 Review by lukeschlather on Tuesday November 13, 2012 @11:28AM (#4778790)
The time is effectively the time to find 4 signals.

> 4, given that you're locating in 4 dimensions --- 3 spacial and 1 time.

I think your understanding is a little flawed. The time is necessary to determine the precise distance, since both you and the satellite are in motion. After the correction for that, the problem becomes locating a body in 3 dimensions based on its distance from N points. A single point gives you a sphere, and you may be located anywhere on that sphere. Two points gives you two spheres. You might be located anywhere at the intersection of those spheres (a circle.) Three points gives you three spheres. I haven't studied the geometry extensively, but Wikipedia says three spheres usually narrows it down to two points you might be at. Knowing your altitude allows you to rule out one of those two points.

https://en.wikipedia.org/wiki/GPS#Basic_concept_of_GPS

Re:Google Nexus 4 Review by lukeschlather on Tuesday November 13, 2012 @11:11AM (#4778692)
My understanding is that if you know your exact elevation you can determine position with only 3 satellite signals instead of 4.

https://en.wikipedia.org/wiki/GPS#Basic_concept_of_GPS

Re:Google Nexus 4 Review by antman on Tuesday November 13, 2012 @11:24AM (#4778769)
The GPS location is faster when you have a good initial guess. So in cold boots it should lock into position faster.
Re:Google Nexus 4 Review by genkaos on Tuesday November 13, 2012 @10:13AM (#4778349)
https://plus.google.com/112413860260589530492/posts/jVJhPyou...

"The primary purpose of the barometer is (at least, I've been told) to make GPS lockons faster. Locking on to a GPS involves numerically solving a 4-dimensional set of linear equations -- 3 dimensions in space, and time. ...

The barometer gives you a reasonable first-cut estimate for altitude."

Re:Google Nexus 4 Review by jedbrown on Tuesday November 13, 2012 @10:41AM (#4778525)
Locking on to a GPS involves numerically solving a 4-dimensional set of linear equations

Hah, hardly.

Re:Google Nexus 4 Review by untog on Tuesday November 13, 2012 @10:07AM (#4778305)
The last Nexus phone had the same- I remember someone on HN showing off a crowd-sourced weather app they'd made. Basically, everyone added their phone to a sensor array that picked up barometric changes across the city and worked out what that meant.

Sadly, I didn't have a Nexus so I couldn't try it, but the tech is fascinating.