Revision dbbad8ed
Added a reset() function to EncodersControl. Untested.
scout/encoders/src/encoders.h | ||
---|---|---|
35 | 35 |
#ifndef _ENCODERS_H_ |
36 | 36 |
#define _ENCODERS_H_ |
37 | 37 |
|
38 |
#include <fstream> |
|
39 | 38 |
#include <messages/query_encoders.h> |
39 |
#include <messages/reset_encoders.h> |
|
40 | 40 |
|
41 | 41 |
class Encoder |
42 | 42 |
{ |
43 | 43 |
public: |
44 | 44 |
Encoder(int n); |
45 | 45 |
int get_ticks(); |
46 |
void reset(); |
|
46 | 47 |
private: |
47 | 48 |
char filename[60]; |
48 |
std::fstream fticks; /**< The file in sysfs containing tick count */ |
|
49 | 49 |
}; |
50 | 50 |
|
51 | 51 |
int main(int argc, char **argv); |
Also available in: Unified diff