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