> For the complete documentation index, see [llms.txt](https://palviewer.twelite.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://palviewer.twelite.info/source-code/sensor-data.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
