root / branches / slam / code / projects / slam / computer / slam_analyzer.c @ 121
History | View | Annotate | Download (690 Bytes)
1 |
#include "slam_analyzer.h" |
---|---|
2 |
#include <stdio.h> |
3 |
#include <stdlib.h> |
4 |
|
5 |
void slam_analyze(RobotData* head){
|
6 |
printf("Analyzing..\n");
|
7 |
} |
8 |
|
9 |
void slam_print_data(RobotData* head){
|
10 |
if(head==NULL) printf("No data to display.\n"); |
11 |
RobotData* iter = head; |
12 |
BomNode* bomIter; |
13 |
char i;
|
14 |
while(iter!= NULL){ |
15 |
bomIter = iter->bom_head; |
16 |
printf("Robot %x:\n",iter->id);
|
17 |
for(i=0;i<5;i++) |
18 |
printf("\tSharp IR %i : %i\n\n",i,iter->IR[i]);
|
19 |
if(BomIter == NULL){ |
20 |
printf("No Bom Data to Display\n\n\n");
|
21 |
} |
22 |
else{
|
23 |
while(bomIter!=NULL){ |
24 |
printf("\tBom reading for robot %x : %i",BomIter->id, BomIter->value);
|
25 |
bomIter = bomIter->next; |
26 |
} |
27 |
} |
28 |
} |
29 |
} |