From 711a052f040bfcc5f7873ad61a3eb99b2f65493b Mon Sep 17 00:00:00 2001 From: cTn Date: Fri, 8 Nov 2013 10:35:06 +0100 Subject: [PATCH] adding servos tab --- js/main.js | 2 ++ main.html | 2 ++ tabs/servos.html | 3 +++ tabs/servos.js | 6 ++++++ 4 files changed, 13 insertions(+) create mode 100644 tabs/servos.html create mode 100644 tabs/servos.js diff --git a/js/main.js b/js/main.js index 2d73b8e3..6329dfa1 100644 --- a/js/main.js +++ b/js/main.js @@ -65,6 +65,8 @@ $(document).ready(function() { $('#content').load("./tabs/receiver.html", tab_initialize_receiver); } else if ($(this).parent().hasClass('tab_auxiliary_configuration')) { $('#content').load("./tabs/auxiliary_configuration.html", tab_initialize_auxiliary_configuration); + } else if ($(this).parent().hasClass('tab_servos')) { + $('#content').load("./tabs/servos.html", tab_initialize_servos); } else if ($(this).parent().hasClass('tab_gps')) { $('#content').load("./tabs/gps.html", tab_initialize_gps); } else if ($(this).parent().hasClass('tab_motor_outputs')) { diff --git a/main.html b/main.html index 940a8c23..831f7eaf 100644 --- a/main.html +++ b/main.html @@ -21,6 +21,7 @@ + @@ -89,6 +90,7 @@
  • PID Tuning
  • Receiver
  • Auxiliary Configuration
  • +
  • Servos
  • GPS
  • Motor/Servo Outputs
  • Raw Sensor Data
  • diff --git a/tabs/servos.html b/tabs/servos.html new file mode 100644 index 00000000..87a9f9df --- /dev/null +++ b/tabs/servos.html @@ -0,0 +1,3 @@ +
    + servos +
    \ No newline at end of file diff --git a/tabs/servos.js b/tabs/servos.js new file mode 100644 index 00000000..15ca4d38 --- /dev/null +++ b/tabs/servos.js @@ -0,0 +1,6 @@ +function tab_initialize_servos() { + ga_tracker.sendAppView('Servos'); + + // request current Servo Config + send_message(MSP_codes.MSP_SERVO_CONF, MSP_codes.MSP_SERVO_CONF); +} \ No newline at end of file