Telescope Control Library
AbsEncoder.h
- Committer:
- caoyu@caoyuan9642-desktop.MIT.EDU
- Date:
- 2018-09-24
- Revision:
- 19:fd854309cb4c
- Parent:
- 0:6cb2eaf8b133
File content as of revision 19:fd854309cb4c:
/* * GenericAbsEncoder.h * * Interface for reading position from an absolute encoder * * Created on: 2018/2/7 * Author: caoyuan9642 */ #ifndef TELESCOPE_ABSENCODER_H_ #define TELESCOPE_ABSENCODER_H_ #include <stdint.h> /** * Interface of a generic Absolute Encoder */ template<uint32_t maxCount> class AbsEncoder { public: AbsEncoder(){ } virtual ~AbsEncoder(){ } virtual uint32_t readPos() = 0; virtual void zero() { } uint32_t getMaxCount() const { return maxCount; } }; #endif /* TELESCOPE_ABSENCODER_H_ */