- Main Page
- Files

# C:/Users/Michael/Desktop/trunk/program/demo/runwallfollow.c File Reference

Follow a wall. More...

`#include "p30f6014A.h"`
`#include "stdio.h"`
`#include "stdlib.h"`
`#include "string.h"`
`#include "motor_led/e_epuck_ports.h"`
`#include "motor_led/e_init_port.h"`
`#include "motor_led/advance_one_timer/e_agenda.h"`
`#include "motor_led/advance_one_timer/e_led.h"`
`#include "motor_led/advance_one_timer/e_motors.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 "utility.h"`
`#include "runwallfollow.h"`

## Functions
int | followgetSelectorValue ()
| Looking at the selector value.
void | followGetSensorValues (int *sensorTable)
void | followsetSpeed (int LeftSpeed, int RightSpeed)
| Set robot speed.
void | run_wallfollow ()
| The "main" function of the program.

## Detailed Description

Follow a wall.

## Introduction

With this program, the e-puck will follow a wall.

## Playing the demo

First of all, move the selector to the position 2 and reset the e-puck.
The e-puck will now follow the first wall he finds. You can change the side on which the e-puck must follow the wall with the selector.

## Video of the demo

The video of this demo: http://www.youtube.com/watch?v=xaqpoQ_XGbU

Author:
  Code: Michael Bonani, Jonathan Besuchet
  Doc: Jonathan Besuchet

## Function Documentation

int followgetSelectorValue | ( |  | ) |

Looking at the selector value.

Callibrate the proxymity sensor

Returns:
  The selector value from 0 to 15

void followGetSensorValues | ( | int * | sensorTable | ) |

Read the sensors proxymities

Parameters:

  | sensorTable | Where the value must be stocked