0001
0002 function [a] = plotSensors(xpos, ypos, id)
0003
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;