@ -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';
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 = 'cli';
// 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 = '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 = 'gps';
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 = '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 = '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 = 'motor_outputs';
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 = '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 = 'receiver';
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 = 'sensors';
function initSensorData(){
@ -9,8 +9,9 @@ tabs.servos = function() {
tabs.servos.initialize = function(callback) {
ga_tracker.sendAppView('Servos');
GUI.active_tab = 'servos';
MSP.send_message(MSP_codes.MSP_IDENT, false, false, get_servo_conf_data);