From cf975f966735437ac7547bfcaa9cff5280cea084 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Wed, 2 Nov 2016 15:56:19 -0700 Subject: [PATCH] Update step/smooth yaw action values to be hardcoded --- tutorial/tutorial.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/tutorial/tutorial.js b/tutorial/tutorial.js index 95a2fcd771..4de418eb19 100644 --- a/tutorial/tutorial.js +++ b/tutorial/tutorial.js @@ -753,19 +753,8 @@ stepTurnAround.prototype = { }.bind(this), 100); }, onAction: function(action, value) { - // NOTE(Huffman, 11/2/16): The checks below are for backward compatibility - // Old versions of High Fidelity returned invalid action ids from - // Controller.Actions.Yaw/StepYaw which were above 10000. If they are - // above 10000 then we can assume we are on an old version and hard-code - // the values. Eventually we should remove these checks. - var STEP_YAW_ACTION = Controller.Actions.StepYaw; - if (STEP_YAW_ACTION > 10000) { - STEP_YAW_ACTION = 6; - } - var SMOOTH_YAW_ACTION = Controller.Actions.Yaw; - if (SMOOTH_YAW_ACTION > 10000) { - SMOOTH_YAW_ACTION = 4; - } + var STEP_YAW_ACTION = 6; + var SMOOTH_YAW_ACTION = 4; if (action == STEP_YAW_ACTION && value != 0) { debug("TurnAround | Got step yaw action");