18,7 → 18,7 |
* http://shark.sssup.it |
*/ |
|
/* CVS : $Id: esplo.c,v 1.1 2002-10-01 10:25:00 pj Exp $ */ |
/* CVS : $Id: esplo.c,v 1.2 2002-11-11 08:15:13 pj Exp $ */ |
|
/* |
* Copyright (C) 2000 Fabio Calabrese <fabiocalabrese77@yahoo.it> |
64,7 → 64,11 |
int i; |
int index; |
WORD xx0, yy0, xx1, yy1; |
struct timespec delay; |
|
|
delay.tv_sec = (ESPLO_PERIOD-ESPLO_MET)/1000000; |
delay.tv_nsec = ((ESPLO_PERIOD-ESPLO_MET)%1000000)*1000; |
i=0; |
index = (int)argv; |
xx0 = aereo_table[index].x - ESPLO_LX/2; |
79,7 → 83,7 |
FAB_image_put_within(image_bca,X0,Y0,xx0,yy0,xx1,yy1); |
FAB_image_put_within(image_esplo[i],xx0,yy0,X0,Y0,X1,Y1); |
mutex_unlock(&grx_mutex); |
task_delay(ESPLO_PERIOD-ESPLO_MET); |
nanosleep(&delay, NULL); |
} |
|
mutex_lock(&grx_mutex); |