blob: d95b717f2a4165c8004b1d302ee57a9d65244bee [file] [log] [blame]
#ifndef FRC971_WPILIB_HALL_EFFECT_H_
#define FRC971_WPILIB_HALL_EFFECT_H_
#include "DigitalInput.h"
#undef ERROR
namespace frc971 {
namespace wpilib {
// Inverts the output from a digital input.
class HallEffect : public DigitalInput {
public:
HallEffect(int index) : DigitalInput(index) {}
virtual bool Get() override { return !DigitalInput::Get(); }
};
} // namespace wpilib
} // namespace frc971
#endif // FRC971_WPILIB_HALL_EFFECT_H_