Revision 572adceb
ID | 572adceb0cf28fd95b170901a03524c93d9a3580 |
Fixed the analog node.
Only a couple small changes were needed here. For the most part, good job Dev - looks like this is set up correctly for a skeleton. Changes were debugging only.
scout/analog/src/analog.h | ||
---|---|---|
38 | 38 |
#define _ANALOG_H_ |
39 | 39 |
|
40 | 40 |
#include "analog/query_analog.h" |
41 |
//#include "analog/set_motors.h" |
|
42 | 41 |
|
43 | 42 |
/** @brief Analog port 0 **/ |
44 | 43 |
#define AN0 0x00 |
... | ... | |
74 | 73 |
#define AN15 0x0F |
75 | 74 |
|
76 | 75 |
/** @brief Struct to hold the value of a particular analog port **/ |
77 |
typedef struct { |
|
76 |
typedef struct |
|
77 |
{ |
|
78 | 78 |
uint8_t adc8; |
79 | 79 |
uint16_t adc10; |
80 | 80 |
} adc_t; |
81 | 81 |
|
82 | 82 |
/* The number of messages in the queue. If messages arrive faster than they are |
83 | 83 |
* handled, old ones are thrown out */ |
84 |
#define QUEUE_SIZE 4
|
|
84 |
#define QUEUE_SIZE 10
|
|
85 | 85 |
|
86 | 86 |
/** @brief Initialize the analog module and driver. **/ |
87 | 87 |
int main(int argc, char **argv); |
Also available in: Unified diff