Revision 1c3c96ce
ID | 1c3c96ce8316e2bdeeb5aabaf8be4d184121a91e |
Added and tested range sensor to scout_avr
Max output should be 37500 (max observed value actually ~38600), and it
may be scaled down later. Also, the second sonar will need to be added
later... forgot about that...
Also, added an option to avrdude in the Makefile which makes it upload
amazingly faster :D
scout_avr/src/Atmega128rfa1.h | ||
---|---|---|
3 | 3 |
|
4 | 4 |
#include "ros/node_handle.h" |
5 | 5 |
|
6 |
#define BAUD_RATE 38400 |
|
7 |
|
|
8 |
#define RX_BUFFER_SIZE 256 |
|
9 |
|
|
6 | 10 |
#define MAX_SUBSCRIBERS 2 |
7 | 11 |
#define MAX_PUBLISHERS 2 |
8 | 12 |
#define INPUT_SIZE 128 |
9 | 13 |
#define OUTPUT_SIZE 128 |
10 | 14 |
|
11 |
#define RX_BUFFER_SIZE 256 |
|
12 |
|
|
13 | 15 |
class Atmega128rfa1 |
14 | 16 |
{ |
15 | 17 |
public: |
Also available in: Unified diff