Revision 1371
Remove some unused code in encoders
Also update binary and docs
encoders.h | ||
---|---|---|
20 | 20 |
|
21 | 21 |
|
22 | 22 |
#ifndef LEFT |
23 |
/** @brief Left wheel **/ |
|
23 | 24 |
#define LEFT 0 |
24 | 25 |
#endif |
25 | 26 |
#ifndef RIGHT |
27 |
/** @brief Right wheel **/ |
|
26 | 28 |
#define RIGHT 1 |
27 | 29 |
#endif |
28 | 30 |
|
... | ... | |
33 | 35 |
/** @brief Not enough time has passed - encoders not initialized in hardware. **/ |
34 | 36 |
#define ENCODER_DATA_NOT_READY 1026 |
35 | 37 |
|
36 |
//delay_ms argument after a full read is complete
|
|
38 |
/** @brief delay_ms argument after a full read is complete **/
|
|
37 | 39 |
#define ENCODER_DELAY 20 |
38 | 40 |
|
39 |
#define MIN_V (-100) |
|
40 |
#define MAX_V 100 |
|
41 |
|
|
42 | 41 |
//Data invalid flags (hardware failure): |
43 | 42 |
#define OCF _BV(4) |
44 | 43 |
#define COF _BV(3) |
... | ... | |
49 | 48 |
#define MagINCn _BV(1) |
50 | 49 |
#define MagDECn _BV(0) |
51 | 50 |
|
51 |
/** @brief Buffer size **/ |
|
52 | 52 |
#define BUFFER_SIZE 23 |
53 | 53 |
|
54 | 54 |
/** @brief Initialize encoders. **/ |
Also available in: Unified diff