Android Chinese API (132) -- GpsSatellite

Source: Internet
Author: User

 

Preface

This chapter is about android. location. gpsSatellite, for GPS related chapter, version for Android 3.2 r1, translated from "pandatv 82", welcome to visit his blog: "http://wisekingokok.cnblogs.com", thanks again "pandatv 82 "! Welcome to join in Android Chinese translation, contact me over140@gmail.com.

 

Statement

You are welcome to repost, but please keep the original source of the article :)

Blog Garden: http://www.cnblogs.com/

Android Chinese translation group: http://goo.gl/6vJQl

 

 

GpsSatellite

Translator's signature: pandatv 82

Link: http://wisekingokok.cnblogs.com

Version: Android 3.2 r1

 

Structure

Inheritance relationship

Public final class GpsSatellite extends Object

Java. lang. Object

Android. location. GpsSatellite

 

Class Overview

This class is used to describe the current GPS satellite status. And GpsStatus.

 

Common Methods

Public floatGetAzimuth()

Returns the azimuth angle of the satellite. The azimuth angle ranges from 0 to 360 degrees.

Return Value

Azimuth Angle of a satellite

 

Public floatGetElevation()

Returns the height angle of a satellite. The height angle ranges from 0 to 90 degrees.

Return Value

Satellite height Angle

 

Public intGetPrn()

Returns a pseudo-random noise code,

(Note: A pseudo-Noise code, not a satellite number, is a discrete sign string with values 0 and 1 for a certain period. It has a self-correlation function similar to white noise)

Return Value

Pseudo-Random Noise Code

 

Public floatGetSnr()

Returns the signal-to-noise ratio of a satellite.

(Note: the ratio of the output signal voltage of the amplifier to the noise voltage of the simultaneous output is often expressed in decibels. The higher the signal-to-noise ratio of a device, the less noise it generates. Generally, the higher the signal-to-noise ratio, the smaller the noise in the mixed signal, the higher the sound quality of the sound playback; otherwise, the opposite is true)

Return Value

Satellite signal-to-noise ratio

 

Public booleanHasAlmanac()

Returns true if the GPS engine has an approximate track information.

Return Value

Returns true if the GPS engine has an approximate track information.

 

Public booleanHasEphemeris()

Returns true if the GPS engine has a satellite calendar.

(Translator's note: The expression used by satellite calendars to describe the location and speed of a space flight)

Return Value

Returns true if the GPS engine has a satellite calendar.

 

Public booleanUseInfix()

Returns true if the satellite is used by the GPS engine to calculate the nearest position.

Return Value

Returns true if the satellite is used by the GPS engine to calculate the nearest position.

 

Supplement

Article Selection

[Baidu encyclopedia] GPS

[Baidu encyclopedia] GPS Positioning Technology

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.