NodeDef_sauv.h File Reference

#include <stdio.h>
#include <math.h>

Include dependency graph for NodeDef_sauv.h:

Go to the source code of this file.

Data Structures

struct  distances_capteur
struct  noeud
struct  t_node_info
struct  voisin
struct  voisin2

Defines

#define CEDER_PASSAGE   6
#define DECALAGE_MSG
#define DISTANCE(x, y)   (long)(((signed int)x - (signed int)Id_x)*((signed int)x - (signed int)Id_x) + ((signed int)y - (signed int)Id_y)*((signed int)y - (signed int)Id_y))
#define DISTANCE_MAX   100
#define DISTANCE_MAX2   100
#define DISTANCE_RADIO(x, y)   ((long)(((signed int)x - (signed int)Id_x)*((signed int)x - (signed int)Id_x) + ((signed int)y - (signed int)Id_y)*((signed int)y - (signed int)Id_y)) <= DISTANCE_MAX)
#define DPQ   32768
#define IT_IS_A_BASE   1
#define MAX_ENVOIS   3
#define NB_DISTANCES   8
#define NB_EMISSIONS   8
#define NB_NOEUDS   10
#define NB_VOISINS   8
#define STOP   5
#define TAB_BASE_PAS_PLEINE()   (Ptr_bases<Tab_bases+NB_BASES)
#define TAB_EMISSION_OVERFLOW()   ((Ptr_nb_emissions >Tab_emissions + NB_EMISSIONS)||(ptr_nb_emissions_cour>Tab_emissions + NB_EMISSIONS))
#define TAB_EMISSION_PAS_PLEINE()   (Ptr_nb_emissions <Tab_emissions + NB_EMISSIONS)
#define TAB_VOIS_PAS_PLEINE()   (Ptr_voisinage < Tab_voisinage + NB_VOISINS)
#define VITESSE_110   4
#define VITESSE_50   2
#define VITESSE_90   3

Functions

voisinRechercheMoinsBonVois (unsigned int mon_x, unsigned int mon_y)

Variables

unsigned int Id_x
unsigned int Id_y
unsigned int Nb_top
unsigned int NombreDePaquets
unsigned int Numero_ack
distances_capteurPtr_distances
voisin2Ptr_nb_emissions
t_node_infoPtr_noeuds
voisinPtr_voisinage
unsigned int signification
distances_capteur Tab_distances [NB_DISTANCES]
voisin2 Tab_emissions [NB_EMISSIONS]
t_node_info Tab_noeuds [NB_NOEUDS]
voisin Tab_voisinage [NB_VOISINS]


Define Documentation

#define CEDER_PASSAGE   6

Definition at line 30 of file NodeDef_sauv.h.

#define DECALAGE_MSG

Value:

{\
    h=h>>1;       \
    if(g&1) h+=DPQ;   \
    g=g>>1;       \
    if(f&1) g+=DPQ;   \
    f=f>>1;       \
    if(e&1) f+=DPQ;   \
    e=e>>1;       \
    if(d&1) e+=DPQ;   \
    d=d>>1;       \
    if(c&1) d+=DPQ;   \
    c=c>>1;       \
    if(b&1) c+=DPQ;   \
    b=b>>1;       \
    if(a&1) b+=DPQ;   \
    a=a>>1;       \
    }

Definition at line 51 of file NodeDef_sauv.h.

#define DISTANCE ( x,
 )     (long)(((signed int)x - (signed int)Id_x)*((signed int)x - (signed int)Id_x) + ((signed int)y - (signed int)Id_y)*((signed int)y - (signed int)Id_y))

Definition at line 45 of file NodeDef_sauv.h.

#define DISTANCE_MAX   100

Definition at line 38 of file NodeDef_sauv.h.

#define DISTANCE_MAX2   100

Definition at line 39 of file NodeDef_sauv.h.

#define DISTANCE_RADIO ( x,
 )     ((long)(((signed int)x - (signed int)Id_x)*((signed int)x - (signed int)Id_x) + ((signed int)y - (signed int)Id_y)*((signed int)y - (signed int)Id_y)) <= DISTANCE_MAX)

Definition at line 46 of file NodeDef_sauv.h.

#define DPQ   32768

Definition at line 42 of file NodeDef_sauv.h.

#define IT_IS_A_BASE   1

Definition at line 25 of file NodeDef_sauv.h.

#define MAX_ENVOIS   3

Definition at line 37 of file NodeDef_sauv.h.

#define NB_DISTANCES   8

Definition at line 159 of file NodeDef_sauv.h.

#define NB_EMISSIONS   8

Definition at line 34 of file NodeDef_sauv.h.

#define NB_NOEUDS   10

Definition at line 158 of file NodeDef_sauv.h.

#define NB_VOISINS   8

Definition at line 33 of file NodeDef_sauv.h.

#define STOP   5

Definition at line 29 of file NodeDef_sauv.h.

 
#define TAB_BASE_PAS_PLEINE (  )     (Ptr_bases<Tab_bases+NB_BASES)

Definition at line 50 of file NodeDef_sauv.h.

 
#define TAB_EMISSION_OVERFLOW (  )     ((Ptr_nb_emissions >Tab_emissions + NB_EMISSIONS)||(ptr_nb_emissions_cour>Tab_emissions + NB_EMISSIONS))

Definition at line 49 of file NodeDef_sauv.h.

 
#define TAB_EMISSION_PAS_PLEINE (  )     (Ptr_nb_emissions <Tab_emissions + NB_EMISSIONS)

Definition at line 48 of file NodeDef_sauv.h.

 
#define TAB_VOIS_PAS_PLEINE (  )     (Ptr_voisinage < Tab_voisinage + NB_VOISINS)

Definition at line 47 of file NodeDef_sauv.h.

#define VITESSE_110   4

Definition at line 28 of file NodeDef_sauv.h.

#define VITESSE_50   2

Definition at line 26 of file NodeDef_sauv.h.

#define VITESSE_90   3

Definition at line 27 of file NodeDef_sauv.h.


Function Documentation

voisin* RechercheMoinsBonVois ( unsigned int  mon_x,
unsigned int  mon_y 
)


Variable Documentation

unsigned int Id_x

Definition at line 29 of file Bootloader/CONFIG/VG.C.

Referenced by init(), init_table(), initWB(), main(), and PT_THREAD().

unsigned int Id_y

Definition at line 30 of file Bootloader/CONFIG/VG.C.

Referenced by init(), init_table(), initWB(), main(), and PT_THREAD().

unsigned int Nb_top

Definition at line 64 of file Bootloader/CONFIG/VG.C.

unsigned int NombreDePaquets

Definition at line 71 of file Bootloader/CONFIG/VG.C.

unsigned int Numero_ack

Definition at line 67 of file Bootloader/CONFIG/VG.C.

Referenced by PT_THREAD().

Definition at line 38 of file Bootloader/CONFIG/VG.C.

Referenced by PT_THREAD().

Definition at line 46 of file Bootloader/CONFIG/VG.C.

Referenced by init_table(), and PT_THREAD().

Definition at line 36 of file Bootloader/CONFIG/VG.C.

Referenced by init_table_voisinage(), PT_THREAD(), and RechercheMoinsBonVois().

unsigned int signification

voisin2 Tab_emissions[NB_EMISSIONS]

Definition at line 37 of file Bootloader/CONFIG/VG.C.

Referenced by PT_THREAD().

t_node_info Tab_noeuds[NB_NOEUDS]

voisin Tab_voisinage[NB_VOISINS]

Definition at line 35 of file Bootloader/CONFIG/VG.C.

Referenced by init_table_voisinage(), PT_THREAD(), and RechercheMoinsBonVois().


Generated on Wed Jun 3 12:05:56 2009 for PowWow v1.0 by  doxygen 1.5.6