Project

General

Profile

Revision fd73d758

IDfd73d7589ef076f3d6b164031d18f5827a18a8d4

Added by Thomas Mullins almost 4 years ago

Changed range sensor to read on-demand

View differences:

scout_avr/src/range.h
10 10
#define PORT_SONAR_TX PORTG
11 11
#define P_SONAR_TX PG1
12 12

  
13
// initializes timer 5, also used by bom
13 14
void range_init();
14
unsigned int range_get(int which);
15

  
16
// blocks during measurement (up to 37.5ms for each)
17
// writes values into array of 2 unsigned ints
18
void range_measure(unsigned int *values);
15 19

  
16 20
#endif

Also available in: Unified diff