qoutputrange Struct
qoutputrange クラスは、出力レンジの仕様を保持します。詳細...
ヘッダー | #include <qoutputrange> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
qmake: | QT += sensors |
パブリック変数
詳細説明
このクラスは単純な構造体として定義されています。
各出力範囲は、最小値と最大値、および精度値を指定します。精度値はセンサーの分解能を表します。センサが検出できる最小の変化であり、最小値と最大値と同じ単位で表されます。
センサーは多くの場合、レンジと精度をトレードオフにしなければなりません。どちらが重要かをユーザーが判断できるように、センサーは複数の出力レンジを提供することがあります。ある出力レンジは最小値と最大値が小さく、感度が高いかもしれません。別の出力レンジは、感度を下げ、最小値と最大値を高くすることができます。より高い感度はより小さな精度値で表されることに注意してください。
このトレードオフの例は、LIS302DL加速度センサを見ればわかります。LIS302DLでは、256個の値しか報告できません。これらの値は、-2G~+2G(精度値0.015G)または-8G~+8G(精度値0.06G)を表すようにスケーリングされます。
qoutputrangelist およびQSensor::outputRangesも参照のこと 。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.