Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tham chiếu cấu trúc GnssSvInfo
#include <
gps.h
>
Định nghĩa tại dòng
575
của tệp
gps.h
.
Độ góc phương vị của vệ tinh tính bằng độ.
Định nghĩa tại dòng
613
của tệp
gps.h
.
Mật độ tín hiệu mang trên tạp âm tính bằng dB-Hz, thường nằm trong khoảng [0, 63]. Tệp này chứa giá trị C/N0 được đo lường cho tín hiệu tại cổng ăng-ten.
Đây là giá trị bắt buộc.
Định nghĩa tại dòng
607
của tệp
gps.h
.
Xác định chòm sao của SV đã cho. Giá trị phải là một trong các hằng số GNSS_CONSTELLATION_* đó
Định nghĩa tại dòng
599
của tệp
gps.h
.
Độ cao của vệ tinh truyền hình trực tiếp tính bằng độ.
Định nghĩa tại dòng
610
của tệp
gps.h
.
Chứa dữ liệu bổ sung về SV nhất định. Giá trị phải là một trong các hằng số GNSS_SV_FLAGS_* đó
Định nghĩa tại dòng
619
của tệp
gps.h
.
đặt thành sizeof(GnssSvInfo)
Định nghĩa tại dòng
577
của tệp
gps.h
.
Số giả ngẫu nhiên cho SV hoặc số FCN/OSN cho Glonass. Bạn có thể phân biệt bằng cách xem trường chòm sao. Giá trị phải nằm trong phạm vi:
-
GPS: 1-32
-
SBAS: 120-151, 183-192
-
GLONASS: 1-24, số vị trí quỹ đạo (OSN), nếu có. Hoặc nếu không: 93-106, số kênh tần số (FCN) (-7 đến +6) được bù trừ bằng + 100, tức là báo cáo FCN là -7 là 93, FCN là 0 là 100 và FCN là +6 là 106.
-
QZSS: 193-200
-
Galileo: 1-36
-
Beidou: 1-37
Định nghĩa tại dòng
593
của tệp
gps.h
.
Tài liệu cho cấu trúc này được tạo từ tệp sau:
-
hardware/libhardware/include/hardware/
gps.h
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],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)"]]