#include "motor_led/e_init_port.h"
#include "motor_led/advance_one_timer/e_motors.h"
#include "motor_led/advance_one_timer/e_led.h"
#include "motor_led/advance_one_timer/e_agenda.h"
#include "uart/e_uart_char.h"
#include "a_d/advance_ad_scan/e_ad_conv.h"
#include "a_d/advance_ad_scan/e_prox.h"
#include "./runbreitenberg_adv.h"
Functions | |
| void | shock_neuron (void) |
| Calcul the speed to set on each wheel for avoiding. | |
| int | lin_speed_calc (int distance, int gain) |
| Calcul the speed to set on each wheel for following. | |
| void | run_breitenberg_follower (void) |
| The "main" function of the follower demo. | |
| void | run_breitenberg_shocker (void) |
| The "main" function of the avoider demo. | |
These two programms work exactelly on the same way. First we do the acquisition of the proxymities sensor and then we do a level-headed sum of this acquisition. Finally we set the speed in concordance of the level-headed sum.
| int lin_speed_calc | ( | int | distance, | |
| int | gain | |||
| ) |
Calcul the speed to set on each wheel for following.
Here we do a level-headed sum to take advantage of each captor depending of there position. For exemple if the captor number 0 detect something, he has to set the left speed high and set the right speed low.
| void shock_neuron | ( | void | ) |
Calcul the speed to set on each wheel for avoiding.
Here we do a level-headed sum to take advantage of each captor depending of there position. For exemple if the captor number 0 detect something, he has to set the right speed high and set the left speed low.
1.5.4