Project

General

Profile

Revision 749

added another function pointer to encoders which gets called after all bytes are recv'd.
working on a behavior to drive in a straight line, but encoders are giving invalid on robot 5

View differences:

encoders.h
1
#ifndef __ENCODERS_H__
2
#define __ENCODERS_H__
3

  
4

  
1 5
#define RIGHT 1
2 6
#ifndef LEFT
3 7
	#define LEFT 0
......
20 24

  
21 25
#define BUFFER_SIZE 23
22 26

  
23
void encoder_init(void);
27
void encoders_init(void);
24 28
int encoder_read(char encoder);
25 29
char encoder_direction(char encoder);
26 30

  
27 31
int encoder_get_dx(char encoder);
28 32
void encoder_rst_dx(char encoder);
29 33
int encoder_get_tc(void);
30
void encoder_rst_tc(void);
34
void encoder_rst_tc(void);
35

  
36
#endif

Also available in: Unified diff