Commit 68c50286 authored by Martin Karlsson's avatar Martin Karlsson
Browse files

Merge branch 'master' of gitlab.control.lth.se:letter2martin/turtlerob1

parents ff7f28cd 47381bdb
% States
while(true)
audio = get_audio();
az = get_azimuth();
set_ref_az(-az);
if ~abs(az) < th_az
continue
end
% The angle to the source is small enough, take a step forward
step_forward(distance);
if ~there()
continue
end
% We are there, analyze the source
source_label = analyze_source(audio);
display('Source label determined')
disp(source_label)
key = input('Press any key to continue, press c to exit: ','s');
if key == 'c'
break
end
end
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment