mirs_esp_pio
読み取り中…
検索中…
一致する文字列を見つけられません
SensorPlugin.hpp
[詳解]
1#pragma once
2#include "SystemContext.hpp"
3
9public:
10 virtual ~ISensorPlugin() = default;
12 virtual const char *name() const = 0;
14 virtual bool begin() = 0;
18 virtual void update(SharedSensor &snapshot) = 0;
19};
制御・通信・センサのタスク間で、指令と計測値を排他制御して受け渡す。
sensor_task用プラグインIF。
virtual void update(SharedSensor &snapshot)=0
担当フィールドをsnapshotに書き込む。
virtual bool begin()=0
virtual const char * name() const =0
virtual ~ISensorPlugin()=default
センサ系テレメトリ。