RoboidControl
Loading...
Searching...
No Matches
d:/PlatformIO/RoboidControl/Switch.h
Go to the documentation of this file.
1#pragma once
2
3#include "Sensor.h"
4
5namespace Passer {
6namespace RoboidControl {
7
9class Switch : public Sensor {
10public:
12 Switch();
13
16 virtual bool IsOn();
17
18 virtual bool IsOff();
19};
20
21} // namespace RoboidControl
22} // namespace Passer
A sensor is a thing which can perform measurements in the environment.
Definition Sensor.h:9
A digital switch input.
Definition Switch.h:9
virtual bool IsOn()
Test of the switch is on.
Definition Switch.cpp:5
Switch()
Default constructor.
Definition Switch.cpp:3
virtual bool IsOff()
Definition Switch.cpp:7
Definition AbsoluteEncoder.h:5