Wikipedia
Ecompass
An eCompass is a tilt compensated electronic compass utilizing an accelerometer and a magnetometer. A number of manufacturers, including Motorola, make ecompasses.