Brian Silverman | da45b6c | 2014-12-28 11:36:50 -0800 | [diff] [blame] | 1 | #ifndef FRC971_WPILIB_HALL_EFFECT_H_ |
2 | #define FRC971_WPILIB_HALL_EFFECT_H_ | ||||
3 | |||||
4 | #include "DigitalInput.h" | ||||
5 | |||||
6 | namespace frc971 { | ||||
7 | namespace wpilib { | ||||
8 | |||||
9 | class HallEffect : public DigitalInput { | ||||
10 | public: | ||||
11 | HallEffect(int index) : DigitalInput(index) {} | ||||
12 | bool GetHall() { return !Get(); } | ||||
13 | }; | ||||
14 | |||||
15 | } // namespace wpilib | ||||
16 | } // namespace frc971 | ||||
17 | |||||
18 | #endif // FRC971_WPILIB_HALL_EFFECT_H_ |