Project

General

Profile

Statistics
| Revision:

root / branches / slam / code / projects / colonet / DataRequests / test / robot / robot_test.c @ 201

History | View | Annotate | Download (546 Bytes)

1
#include <dragonfly_lib.h>
2
#include <wireless.h>
3

    
4
void  handle_receive(char type, int source, unsigned char *packet, int length);
5

    
6
int main(void){
7
  PacketGroupHandler pgh;
8
  pgh.groupCode=12;
9
  pgh.timeout_handler=NULL;
10
  pgh.handle_response=NULL;
11
  pgh.handle_receive=handle_receive;
12
  pgh.unregister=NULL;
13

    
14
  wl_register_packet_group(&pgh);
15
  
16
  while(1){
17
    wl_do();
18
  }
19
  return -1;
20
}
21

    
22
void  handle_receive (char type, int source, unsigned char *packet, int length){
23
    wl_send_robot_to_robot_global_packet (12, 0, NULL, 0, source, 0); 
24
}