Revision 1777
made human tagging easier and added joystick control code from colonet in a subdir of joystickPlayer
hunter_prey.c | ||
---|---|---|
2 | 2 |
#include <dragonfly_lib.h> |
3 | 3 |
|
4 | 4 |
#define TAG_TIME 3 |
5 |
#define TAG_RANGE 150
|
|
5 |
#define TAG_RANGE 250
|
|
6 | 6 |
|
7 | 7 |
/**** This file should not be edited! ****/ |
8 | 8 |
|
... | ... | |
24 | 24 |
return 0; |
25 | 25 |
} |
26 | 26 |
|
27 |
if(max_bom < 7 && max_bom > 1 && frontRange > 0 && frontRange < TAG_RANGE) {
|
|
27 |
if(max_bom <= 7 && max_bom >= 1 && frontRange > 0 && frontRange < TAG_RANGE) {
|
|
28 | 28 |
if(onTarget == 0) { |
29 | 29 |
onTarget = TAG_TIME; |
30 | 30 |
usb_puts("On target!\n"); |
Also available in: Unified diff