Project

General

Profile

Revision 399f7d1b

ID399f7d1bbc8102e5b1859f12ce0a1ec7daeb821d

Added by Thomas Mullins over 11 years ago

Changed sonar/bom timer to 64 prescalar

Also fixed bug in the bom's timer usage, where it depended on an integer
overflow that was no longer occuring due to the higher F_CPU.

View differences:

scout_avr/src/bom.h
5 5
#include <stdint.h>
6 6
}
7 7

  
8
//#include <bom/bom.h>
9

  
8 10
// constants for direction
9
#define BOM_FRONT 0
10
#define BOM_BACK  1
11
#define BOM_LEFT  2
12
#define BOM_RIGHT 3
11
#define BOM_FRONT 0 //(bom::bom::FRONT)
12
#define BOM_BACK  1 //(bom::bom::BACK)
13
#define BOM_LEFT  2 //(bom::bom::LEFT)
14
#define BOM_RIGHT 3 //(bom::bom::RIGHT)
13 15

  
14 16
// timing, in us, for read of valid bits
15 17
#define MIN_LOW_PW 600

Also available in: Unified diff