自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
GnssSvInfo 結構體參考資料
#include <
gps.h
>
載波雜訊密度 (以 dB-Hz 為單位),通常介於 [0, 63] 之間。其中包含天線埠信號的 C/N0 值。
這是必填值。
定義位於檔案
gps.h
的
607
行。
定義指定 SV 的星座。值應為 GNSS_CONSTELLATION_* 常數之一
定義位於檔案
gps.h
的
599
行。
包含指定衛星的其他資料。值應為 GNSS_SV_FLAGS_* 常數之一。
定義位於檔案
gps.h
的
619
行。
設為 sizeof(GnssSvInfo)
定義位於檔案
gps.h
的
577
行。
SV 的偽隨機數,或 Glonass 的 FCN/OSN 號碼。系統會根據星座欄位來區分兩者。值應在下列範圍內:
-
GPS:1-32
-
SBAS:120-151、183-192
-
GLONASS:1-24,軌道位置編號 (OSN) (如有)。或:93-106,頻率管道編號 (FCN) (-7 到 +6) 加上 +100,也就是將 -7 的 FCN 回報為 93、0 的 FCN 回報為 100,以及 +6 的 FCN 回報為 106。
-
QZSS:193 至 200
-
Galileo:1-36
-
北斗:1-37
定義位於檔案
gps.h
的
593
行。
這個結構體的說明文件是由下列檔案產生:
-
hardware/libhardware/include/hardware/
gps.h
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Android Hardware Abstraction Layer: GnssSvInfo Struct Reference\n\nGnssSvInfo Struct Reference\n===========================\n\n[Data Fields](#pub-attribs) \nGnssSvInfo Struct Reference \n\n`\n#include \u003c\n`[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)`\n\u003e\n`\n\n|-------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| size_t | [size](/reference/hal/struct_gnss_sv_info#a854352f53b148adc24983a58a1866d66) |\n| ||\n| int16_t | [svid](/reference/hal/struct_gnss_sv_info#a1f9f9bb3d6474ed021c65f57d5d6702b) |\n| ||\n| [GnssConstellationType](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) | [constellation](/reference/hal/struct_gnss_sv_info#a8484c45fd5f95799df85efef0d62b773) |\n| ||\n| float | [c_n0_dbhz](/reference/hal/struct_gnss_sv_info#ac948700fde8e354a89994a5133abed9a) |\n| ||\n| float | [elevation](/reference/hal/struct_gnss_sv_info#a1c921d7f2f6a29b15d709c49d2df1797) |\n| ||\n| float | [azimuth](/reference/hal/struct_gnss_sv_info#a01b03ebfa7d0a95760e743f611fecbc5) |\n| ||\n| [GnssSvFlags](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) | [flags](/reference/hal/struct_gnss_sv_info#afd2e459cce87ef8ceb841c395095f81b) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[575](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\nField Documentation\n-------------------\n\n\n|---------------|\n| float azimuth |\n\n\nAzimuth of SV in degrees.\n\n\nDefinition at line\n[613](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|-----------------|\n| float c_n0_dbhz |\n\n\nCarrier-to-noise density in dB-Hz, typically in the range \\[0, 63\\]. It contains the measured C/N0 value for the signal at the antenna port.\n\n\nThis is a mandatory value.\n\n\nDefinition at line\n[607](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|---------------------------------------------------------------------------------------------------------------------------------------|\n| [GnssConstellationType](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) constellation |\n\n\nDefines the constellation of the given SV. Value should be one of those GNSS_CONSTELLATION_\\* constants\n\n\nDefinition at line\n[599](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|-----------------|\n| float elevation |\n\n\nElevation of SV in degrees.\n\n\nDefinition at line\n[610](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|---------------------------------------------------------------------------------------------------------------------|\n| [GnssSvFlags](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) flags |\n\n\nContains additional data about the given SV. Value should be one of those GNSS_SV_FLAGS_\\* constants\n\n\nDefinition at line\n[619](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|-------------|\n| size_t size |\n\n\nset to sizeof(GnssSvInfo)\n\n\nDefinition at line\n[577](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|--------------|\n| int16_t svid |\n\n\nPseudo-random number for the SV, or FCN/OSN number for Glonass. The distinction is made by looking at constellation field. Values should be in the range of:\n\n- GPS: 1-32\n- SBAS: 120-151, 183-192\n- GLONASS: 1-24, the orbital slot number (OSN), if known. Or, if not: 93-106, the frequency channel number (FCN) (-7 to +6) offset by + 100 i.e. report an FCN of -7 as 93, FCN of 0 as 100, and FCN of +6 as 106.\n- QZSS: 193-200\n- Galileo: 1-36\n- Beidou: 1-37\n\n\nDefinition at line\n[593](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)"]]