Révision 279
Ajouté par Enzo LACHEZE il y a environ 3 ans
branch/lacheze/sp4a12/main.c | ||
---|---|---|
position p1;
|
||
position p2;
|
||
|
||
typedef struct{
|
||
position rpos;
|
||
float vitmax;
|
||
}Zone ;
|
||
|
||
Zone zones[]={
|
||
{{44.7887762, -3.012}, 50},
|
||
{{44.7891220, -3.013}, 70},
|
||
};
|
||
int trame_cmp(char* trame, char* type)
|
||
{
|
||
int i ;
|
||
... | ... | |
vitesse=calcule_distance(p1,p2)*3600;
|
||
return vitesse;
|
||
}
|
||
|
||
int distance_a_la_proche_zone(position p, Zone r[], int nb_zones, float *d)
|
||
{
|
||
|
||
}
|
||
|
||
/*Fonction ? modifier !!!!!*/
|
||
void traitement(char * trame)
|
||
... | ... | |
exit(-1);
|
||
}*/
|
||
|
||
if((161,78-calcule_vitesse(p1,p2))>1)
|
||
if((161.78-calcule_vitesse(p1,p2))>1)
|
||
{
|
||
printf("Erreur test unitaire calcul distance\n");
|
||
exit(-1);
|
Formats disponibles : Unified diff
début écriture fonction distance a la plus proche