#include <p30f6014a.h>
#include <string.h>
#include "motor_led/e_epuck_ports.h"
#include "motor_led/e_init_port.h"
#include "uart/e_uart_char.h"
#include "motor_led/advance_one_timer/e_agenda.h"
#include "motor_led/advance_one_timer/e_motors.h"
#include "camera/fast_2_timer/e_po3030k.h"
#include "search_ball.h"
Functions | |
| void | select_cam_mode (int mode) |
| Set the mode of the camera. | |
| void | execute (unsigned char *buf_execute, Epuck *epuck) |
| Execute all the steps to follow the ball. | |
| void | follow_red (unsigned char *buf, int size) |
| The filter to follow the red ball. | |
| void | follow_green (unsigned char *buf, int size) |
| The filter to follow the green ball. | |
| void | run_follow_ball (void) |
| The "main" function to follow all the balls. | |
| void | run_follow_ball_green (void) |
| The "main" function to follow the green ball. | |
| void | run_follow_ball_red (void) |
| The "main" function to follow the red ball. | |
| void execute | ( | unsigned char * | buf_execute, | |
| Epuck * | epuck | |||
| ) |
Execute all the steps to follow the ball.
The steps are:
| buf_execute | the array containing the image | |
| epuck | The struct which contains the e-puck state |
| void follow_green | ( | unsigned char * | buf, | |
| int | size | |||
| ) |
The filter to follow the green ball.
| buf | The array containing the image | |
| size | The size of the array |
| void follow_red | ( | unsigned char * | buf, | |
| int | size | |||
| ) |
The filter to follow the red ball.
| buf | The array containing the image | |
| size | The size of the array |
| void select_cam_mode | ( | int | mode | ) |
Set the mode of the camera.
| mode | Put RGB_565_MODE or GREY_SCALE_MODE |
1.5.4