hooking up all of the active_tab references

pull/3/head
cTn 10 years ago
parent 75e0accf75
commit 799fc76c8e

@ -3,8 +3,9 @@ tabs.auxiliary_configuration = function() {
};
tabs.auxiliary_configuration.initialize = function(callback) {
ga_tracker.sendAppView('Auxiliary Configuration');
GUI.active_tab_ref = this;
GUI.active_tab = 'auxiliary_configuration';
ga_tracker.sendAppView('Auxiliary Configuration');
MSP.send_message(MSP_codes.MSP_BOXNAMES, false, false, get_box_data);

@ -28,8 +28,9 @@ tabs.cli = function() {
};
tabs.cli.initialize = function(callback) {
ga_tracker.sendAppView('CLI Page');
GUI.active_tab_ref = this;
GUI.active_tab = 'cli';
ga_tracker.sendAppView('CLI Page');
// remove any active interval for delayed command
MSP.callbacks_cleanup();

@ -2,8 +2,9 @@ tabs.firmware_flasher = function() {
};
tabs.firmware_flasher.initialize = function(callback) {
ga_tracker.sendAppView('Firmware Flasher');
GUI.active_tab_ref = this;
GUI.active_tab = 'firmware_flasher';
ga_tracker.sendAppView('Firmware Flasher');
var intel_hex = false; // standard intel hex in string format
var parsed_hex = false; // parsed raw hex in array format

@ -2,8 +2,9 @@ tabs.gps = function() {
};
tabs.gps.initialize = function(callback) {
ga_tracker.sendAppView('GPS Page');
GUI.active_tab_ref = this;
GUI.active_tab = 'gps';
ga_tracker.sendAppView('GPS Page');
MSP.send_message(MSP_codes.MSP_RAW_GPS, false, false, load_html);

@ -2,8 +2,9 @@ tabs.initial_setup = function() {
};
tabs.initial_setup.initialize = function(callback) {
ga_tracker.sendAppView('Initial Setup');
GUI.active_tab_ref = this;
GUI.active_tab = 'initial_setup';
ga_tracker.sendAppView('Initial Setup');
MSP.send_message(MSP_codes.MSP_ACC_TRIM, false, false, load_ident);

@ -4,8 +4,9 @@ tabs.logging = function() {
};
tabs.logging.initialize = function(callback) {
ga_tracker.sendAppView('Logging');
GUI.active_tab_ref = this;
GUI.active_tab = 'logging';
ga_tracker.sendAppView('Logging');
var requested_properties = [];

@ -2,8 +2,9 @@ tabs.motor_outputs = function() {
};
tabs.motor_outputs.initialize = function(callback) {
ga_tracker.sendAppView('Motor Outputs Page');
GUI.active_tab_ref = this;
GUI.active_tab = 'motor_outputs';
ga_tracker.sendAppView('Motor Outputs Page');
function initSensorData() {
for (var i = 0; i < 3; i++) {

@ -2,8 +2,9 @@ tabs.pid_tuning = function() {
};
tabs.pid_tuning.initialize = function(callback) {
ga_tracker.sendAppView('PID Tuning');
GUI.active_tab_ref = this;
GUI.active_tab = 'pid_tuning';
ga_tracker.sendAppView('PID Tuning');
// requesting MSP_STATUS manually because it contains CONFIG.profile
MSP.send_message(MSP_codes.MSP_STATUS, false, false, get_pid_names);

@ -2,8 +2,9 @@ tabs.receiver = function() {
};
tabs.receiver.initialize = function(callback) {
ga_tracker.sendAppView('Receiver Page');
GUI.active_tab_ref = this;
GUI.active_tab = 'receiver';
ga_tracker.sendAppView('Receiver Page');
MSP.send_message(MSP_codes.MSP_RC_TUNING, false, false, get_rc_data);

@ -2,8 +2,9 @@ tabs.sensors = function() {
};
tabs.sensors.initialize = function(callback) {
ga_tracker.sendAppView('Sensor Page');
GUI.active_tab_ref = this;
GUI.active_tab = 'sensors';
ga_tracker.sendAppView('Sensor Page');
function initSensorData(){
for (var i = 0; i < 3; i++) {

@ -9,8 +9,9 @@ tabs.servos = function() {
};
tabs.servos.initialize = function(callback) {
ga_tracker.sendAppView('Servos');
GUI.active_tab_ref = this;
GUI.active_tab = 'servos';
ga_tracker.sendAppView('Servos');
MSP.send_message(MSP_codes.MSP_IDENT, false, false, get_servo_conf_data);

Loading…
Cancel
Save