From 3ef1258136d291ee84bb7467612d3b1da1bebb2b Mon Sep 17 00:00:00 2001 From: Christophe De Wagter Date: Wed, 16 Sep 2015 23:42:35 +0200 Subject: [PATCH] [imavmarker] Red cross --- .../modules/computer_vision/blob/imavmarker.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/sw/airborne/modules/computer_vision/blob/imavmarker.c b/sw/airborne/modules/computer_vision/blob/imavmarker.c index e5c66096305..39119793315 100644 --- a/sw/airborne/modules/computer_vision/blob/imavmarker.c +++ b/sw/airborne/modules/computer_vision/blob/imavmarker.c @@ -105,18 +105,23 @@ struct marker_deviation_t marker(struct image_t *input, uint8_t M) maxy = j; } - if (v > 0) { +// if (v > 0) { // Out(i, j) = 0xff; - } +// } } } // Display the marker location and center-lines. - for (y = 0; y < input->h; y++) { - Out(maxx, y) = 0xff; + int px = maxx & 0xFFFe; + int py = maxy & 0xFFFe; + + for (y = 0; y < input->h-1; y++) { + Out(px, y) = 65; + Out(px+1, y) = 255; } - for (x = 0; x < input->w; x++) { - Out(x, maxy) = 0xff; + for (x = 0; x < input->w-1; x+=2) { + Out(x, py) = 65; + Out(x+1, py) = 255; } marker_deviation.x = maxx;