Project

General

Profile

Revision 1047

Draws polygons in the environment.

View differences:

libsim.c
13 13

  
14 14
void *tick(int sig)
15 15
{
16
  printf("robot paused. suspending\n"); 
17

  
18 16
  if(raise(SIGTSTP)<0)
19 17
    printf("could not kill self!\n");
20 18

  
21
  printf("robot resumed\n");
22

  
23 19
  return NULL;
24 20
}
25 21

  
......
33 29

  
34 30
  if(shared_state < 0)
35 31
  {
36
    printf("unable to get shared memory region\n");
37
    return 1;
32
    fprintf(stderr, "unable to get shared memory region\n");
33
    return;
38 34
  }
39 35

  
40 36
                                             
......
50 46

  
51 47
  ret = setitimer(ITIMER_VIRTUAL, &iv, NULL);
52 48

  
53
  printf("setitimer returned %d.\n waiting...\n", ret);
49
  //printf("setitimer returned %d.\n waiting...\n", ret);
54 50
  fflush(stdout);
55 51

  
56 52
  //TODO: clean up code??

Also available in: Unified diff