Home > src > BN_pol_rec > Hsand > plotSensors.m

plotSensors

PURPOSE ^

-rj- 040529

SYNOPSIS ^

function [a] = plotSensors(xpos, ypos, id)

DESCRIPTION ^

 -rj- 040529

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 
0002 function [a] = plotSensors(xpos, ypos, id)
0003 % -rj- 040529
0004 
0005  a = 1;
0006 if strcmp(id, 'UAV')
0007     if (exist('uav_img') == 0)
0008       uav_img = imread('UAV_4_mini.tif');
0009       hndl = image(uav_img);
0010     end;
0011     set(hndl, 'XData', xpos);
0012     set(hndl, 'YData', ypos);
0013 end;
0014 
0015 if strcmp(id, 'Mar')
0016     if (exist('marc_img') == 0)
0017       marc_img = imread('markus_sharp.tif');
0018       hndl = image(marc_img);
0019     end;
0020     set(hndl, 'XData', [xpos xpos+5]);
0021     set(hndl, 'YData', [ypos ypos+15]);
0022 end;

Generated on Wed 16-Mar-2005 09:17:47 by m2html © 2003