Tobis Programm forked to not destroy your golden files

Dependencies:   mbed

Fork of Robocode by PES 2 - Gruppe 1

source/Mapping.cpp

Committer:
cittecla
Date:
2017-04-04
Revision:
38:3526c36e4c73
Parent:
34:40d8d29b44b8
Child:
39:92723f7ea54f

File content as of revision 38:3526c36e4c73:

/**
 * Mapping function library
 * Handels Mapping of the arena and LEGO-stones
**/

#include "Mapping.h"


void mapping()
{
    //pseudo code
   // check_sensor(left);
   //check_sensor(right);
    return 0;
}



/*
void chack_sensor(sensor)
{
    get_distance();
    if(sensor < 80cm || sensor > 10cm) {
        calculate_position(sensor, distance);
        check_map(position.this, obstacle);
        if(map.no-entry){
            check_if_obstacle(distance);
            update_map();
        }
    }
}

void get_distance(sensor)
{
    sensor.value;
    return value;
}

void calcualte_position(sensor, distance)
{
    do math;
    return position;
}

void check_if_obstacle(distance)
{
    move_scanner();
    distance2 = get_distance(sensor);
    reset_scanner();
    if(distance -5cm < distance2 && distance +5cm > distance2) {
        return 1;
    } else {
        return 0;
    }
}*/