From 95ea3295fe1e97c609cdad0b3f3b0bce38f9d5c9 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlsson <fredrikb@nichols.control.lth.se> Date: Fri, 25 Sep 2015 09:41:55 +0200 Subject: [PATCH] Added a quick startup script --- startTwoEars.m | 2 ++ state_machine.m | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 startTwoEars.m diff --git a/startTwoEars.m b/startTwoEars.m new file mode 100644 index 0000000..5344bfd --- /dev/null +++ b/startTwoEars.m @@ -0,0 +1,2 @@ +run('~/TwoEars-1.0.1/startTwoEars.m') +run('~/TwoEars-1.0.1/AuditoryFrontEnd/startAuditoryFrontEnd.m') diff --git a/state_machine.m b/state_machine.m index 8cb88e8..6ce1eda 100644 --- a/state_machine.m +++ b/state_machine.m @@ -4,9 +4,9 @@ while(true) audio = get_audio(); - az = get_azimuth(); + az = get_azimuth(); % To source - set_ref_az(-az); + set_ref_az(-az); % Relative, otherwise get current az and calc rel. value if ~abs(az) < th_az continue -- GitLab