20 lines
371 B
C++
20 lines
371 B
C++
#pragma once
|
|
|
|
#include "Sensor.h"
|
|
|
|
namespace Passer {
|
|
namespace RoboidControl {
|
|
|
|
/// @brief A digital switch input
|
|
class Switch : public Sensor {
|
|
public:
|
|
/// @brief Default constructor
|
|
Switch();
|
|
|
|
/// @brief Test of the switch is on
|
|
/// @return true when the switch returns a HIGH value
|
|
virtual bool IsOn();
|
|
};
|
|
|
|
} // namespace RoboidControl
|
|
} // namespace Passer
|