Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Martin Karlsson
turtlerob1
Commits
68c50286
Commit
68c50286
authored
Sep 24, 2015
by
Martin Karlsson
Browse files
Merge branch 'master' of gitlab.control.lth.se:letter2martin/turtlerob1
parents
ff7f28cd
47381bdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
state_machine.m
0 → 100644
View file @
68c50286
% 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment