Skip to content

Commit

Permalink
little tweak for long-distance red
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpmayer committed Dec 20, 2011
1 parent b07a864 commit 96d00d0
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions prod/config.h
Expand Up @@ -2,18 +2,33 @@
#define PI 3.1415926
#define GET5(x) (x >> 11)// & ((1 << 5) - 1))
#define GET11(x) (x & ((1<<11)-1))

// Kinect View region constants
#define W 640
#define H 480
#define REGION_RES 40

// Is obstacle distance metric
#define D_THRESH 150

// for detecting non-obstacled red things
#define R_COUNT_THRESH 75
#define HSV_CNT_THRESH_CLOSE 150
#define HSV_CNT_THRESH_FAR 100
#define HSV_CNT_THRESH_CLOSE 300

// for detecting 'redness' of obstacle masks (failsafe)
#define RED_RATIO_THRESH .5
#define HSV_CNT_THRESH_FAR 100

// Modes of operation
#define MODE_SEEK 0
#define MODE_UTURN 1
#define MODE_RETURN 2
#define MODE_FINISH 3

// Angle precision
#define UTURN_THRESH 0.1

// Avoidance 'strafe' constants
#define Y_AVOID_S 200
#define Y_AVOID_L 400
#define RED_RATIO_THRESH .5

0 comments on commit 96d00d0

Please sign in to comment.