Начиная с 27 марта 2025 г. мы рекомендуем использовать android-latest-release
вместо aosp-main
для создания и участия в AOSP. Дополнительные сведения см. в разделе Изменения в AOSP .
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Sensor_vec_t Справочник по структуре
#include < sensors.h >
данные о событиях датчика
Определение в строке 894 файла Sensors.h .
uint8_t зарезервировано[3] |
Документация для этой структуры была создана из следующего файла:
- Аппаратное обеспечение/libhardware/include/hardware/ sensor.h
Контент и образцы кода на этой странице предоставлены по лицензиям. Java и OpenJDK – это зарегистрированные товарные знаки корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-29 UTC.
[[["Прост для понимания","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-29 UTC."],[],[],null,["# Android Hardware Abstraction Layer: sensors_vec_t Struct Reference\n\nsensors_vec_t Struct Reference\n==============================\n\n[Data Fields](#pub-attribs) \nsensors_vec_t Struct Reference \n\n`\n#include \u003c\n`[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)`\n\u003e\n`\n\n|-----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| union { |\n| float [v](/reference/hal/structsensors__vec__t#a9a1a1a00f1e45435cc3001b553000a21) \\[3\\] |\n| ||\n| struct { |\n| float [x](/reference/hal/structsensors__vec__t#ad0da36b2558901e21e7a30f6c227a45e) |\n| ||\n| float [y](/reference/hal/structsensors__vec__t#aa4f0d3eebc3c443f9be81bf48561a217) |\n| ||\n| float [z](/reference/hal/structsensors__vec__t#af73583b1e980b0aa03f9884812e9fd4d) |\n| ||\n| } | |\n| ||\n| struct { |\n| float [azimuth](/reference/hal/structsensors__vec__t#a01b03ebfa7d0a95760e743f611fecbc5) |\n| ||\n| float [pitch](/reference/hal/structsensors__vec__t#a282e7d4378d4a18a805b8980295ac86c) |\n| ||\n| float [roll](/reference/hal/structsensors__vec__t#a26fd84d522945b6038221d9e38c7cc39) |\n| ||\n| } | |\n| ||\n| }; | |\n| ||\n| int8_t | [status](/reference/hal/structsensors__vec__t#a555c2084e8436de01dc76a23590e8824) |\n| ||\n| uint8_t | [reserved](/reference/hal/structsensors__vec__t#a72aca6ea6d8153b28ea8f139b932ec3e) \\[3\\] |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nsensor event data\n\n\nDefinition at line\n[894](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\nField Documentation\n-------------------\n\n\n|---------------|\n| union { ... } |\n\n\n|---------------|\n| float azimuth |\n\n\nDefinition at line\n[903](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|-------------|\n| float pitch |\n\n\nDefinition at line\n[904](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|-----------------------|\n| uint8_t reserved\\[3\\] |\n\n\nDefinition at line\n[909](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|------------|\n| float roll |\n\n\nDefinition at line\n[905](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|---------------|\n| int8_t status |\n\n\nDefinition at line\n[908](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|--------------|\n| float v\\[3\\] |\n\n\nDefinition at line\n[896](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|---------|\n| float x |\n\n\nDefinition at line\n[898](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|---------|\n| float y |\n\n\nDefinition at line\n[899](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|---------|\n| float z |\n\n\nDefinition at line\n[900](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)"]]