# Sensor Data

| 名前              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| CSnsData        | 単一のセンサーデータ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| CSnsDataAverage | 平均を計算するためのCSnsData派生型                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| CSnsHist        | <p>CSnsData を履歴保存するクラス。このクラスは CSnsData を履歴分格納するが、区間時間毎のデータを保持する目的で実装されています。</p><p></p><ol><li>.AddEntryTemporary() メソッドにて、センサーより得られた  CSnsData オブジェクトを投入する。</li><li>区間時間内は 1. を繰り返す。</li><li>区間時間の区切りに .FinalyzeEntry() メソッドを呼びする。本メソッドでは、区間内に得られたエントリすべての値を平均化し、履歴情報に格納する。</li></ol><p>この履歴情報は(バッファー数+1)分確保したリングバッファに格納されるが、取り出しは .GetEntry(idx as Integer) メソッドにより行う。</p><p>この時 idx がバッファー数(idx = .GetEntryMax()) の場合が最後に .FinalyzeEntry() を実行したときに作成された最新の履歴情報となる。idx=0が最も古い履歴情報となる。</p><p></p> |
| CSnsObjects     | CSnsHist をノード数分管理するためのクラス。                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://palviewer.twelite.info/1.2/source-code/sensor-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
