Brian Silverman | 3204dd8 | 2013-03-12 18:42:01 -0700 | [diff] [blame^] | 1 | #ifndef FRC971_INPUT_SENSOR_PACKER_H_ |
| 2 | #define FRC971_INPUT_SENSOR_PACKER_H_ |
| 3 | |
| 4 | #include "aos/common/mutex.h" |
| 5 | #include "aos/crio/shared_libs/interrupt_notifier.h" |
| 6 | #include "aos/common/sensors/sensor_packer.h" |
| 7 | #include "WPILib/Task.h" |
| 8 | #include "WPILib/Encoder.h" |
| 9 | #include "WPILib/DigitalInput.h" |
| 10 | #include "WPILib/Counter.h" |
| 11 | |
| 12 | #include "frc971/queues/sensor_values.h" |
| 13 | |
| 14 | namespace frc971 { |
| 15 | |
| 16 | class SensorPacker |
| 17 | : public ::aos::sensors::SensorPackerInterface<sensor_values> { |
| 18 | public: |
| 19 | SensorPacker(); |
| 20 | |
| 21 | virtual void PackInto(sensor_values *values); |
| 22 | |
| 23 | private: |
| 24 | Encoder lencoder; |
| 25 | Encoder rencoder; |
| 26 | }; |
| 27 | |
| 28 | } // namespace frc971 |
| 29 | |
| 30 | #endif // FRC971_INPUT_SENSOR_PACKER_H_ |