SensorManager, what is GRAVITY_EARTH?

I found these values ​​in the sources.

/** Standard gravity (g) on Earth. This value is equivalent to 1G */ public static final float STANDARD_GRAVITY = 9.80665f; /** Sun gravity in SI units (m/s^2) */ public static final float GRAVITY_SUN = 275.0f; /** Mercury gravity in SI units (m/s^2) */ public static final float GRAVITY_MERCURY = 3.70f; /** Venus' gravity in SI units (m/s^2) */ public static final float GRAVITY_VENUS = 8.87f; /** Earth gravity in SI units (m/s^2) */ public static final float GRAVITY_EARTH = 9.80665f; /** The Moon gravity in SI units (m/s^2) */ public static final float GRAVITY_MOON = 1.6f; /** Mars' gravity in SI units (m/s^2) */ public static final float GRAVITY_MARS = 3.71f; /** Jupiter gravity in SI units (m/s^2) */ public static final float GRAVITY_JUPITER = 23.12f; /** Saturn gravity in SI units (m/s^2) */ public static final float GRAVITY_SATURN = 8.96f; /** Uranus' gravity in SI units (m/s^2) */ public static final float GRAVITY_URANUS = 8.69f; /** Neptune gravity in SI units (m/s^2) */ public static final float GRAVITY_NEPTUNE = 11.0f; /** Pluto gravity in SI units (m/s^2) */ public static final float GRAVITY_PLUTO = 0.6f; /** Gravity (estimate) on the first Death Star in Empire units (m/s^2) */ public static final float GRAVITY_DEATH_STAR_I = 0.000000353036145f; /** Gravity on the island */ public static final float GRAVITY_THE_ISLAND = 4.815162342f; 

But I can not find any applications for this.
What is the purpose of using these values?

+5
source share
2 answers

I'm sure it means jokes. I think it's unlikely that you will find an Android device running on Death Star I , mainly because the spaceship was blown up at the Battle of Yavin :

Death star

The STANDARD_GRAVITY value is the amount of gravity that you find on Earth, which is a little more useful. All of them can be used with a gravity sensor ( Sensor.TYPE_GRAVITY ): your sensor should raise the gravity value in one direction near STANDARD_GRAVITY .

For more information about the gravity sensor, see the Android developer documentation . For more information on the Death Star, see Wikipedia , and for more information about this mysterious island, try Google .

+5
source

These are gravitational constants for different planets.

When objects fall out, they accelerate at a speed of 9.8 m / s ^ 2 on the ground (regardless of mass, in vacuum). This is basic physics.

For example, after two seconds, in the absence of air resistance, the object reaches a speed of 9.8 m / s ^ 2 * 2 s = 19.6 m / s.

0
source

All Articles