converting tab object initialization
parent
a8e19a6956
commit
e49f4ea5ff
|
@ -1,7 +1,5 @@
|
|||
// TODO: rework box_highlight & update_ui to accept flexible amount of aux channels
|
||||
tabs.auxiliary_configuration = function() {
|
||||
};
|
||||
|
||||
tabs.auxiliary_configuration = {};
|
||||
tabs.auxiliary_configuration.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
GUI.active_tab = 'auxiliary_configuration';
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
// requires major cleanup since we moved to the new tabs object
|
||||
var CLI_active = false;
|
||||
var CLI_valid = false;
|
||||
|
||||
tabs.cli = {};
|
||||
|
||||
tabs.cli.initialize = function(callback) {
|
||||
var self = this;
|
||||
GUI.active_tab_ref = this;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
tabs.default = function() {
|
||||
};
|
||||
|
||||
tabs.default = {};
|
||||
tabs.default.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
GUI.active_tab = 'default';
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
tabs.firmware_flasher = function() {
|
||||
};
|
||||
|
||||
tabs.firmware_flasher = {};
|
||||
tabs.firmware_flasher.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
GUI.active_tab = 'firmware_flasher';
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
tabs.gps = function() {
|
||||
};
|
||||
|
||||
tabs.gps = {};
|
||||
tabs.gps.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
GUI.active_tab = 'gps';
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
tabs.initial_setup = function() {
|
||||
};
|
||||
|
||||
tabs.initial_setup = {};
|
||||
tabs.initial_setup.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
GUI.active_tab = 'initial_setup';
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
var MSP_pass_through = false;
|
||||
|
||||
tabs.logging = function() {
|
||||
};
|
||||
|
||||
tabs.logging = {};
|
||||
tabs.logging.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
GUI.active_tab = 'logging';
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
tabs.motor_outputs = function() {
|
||||
};
|
||||
|
||||
tabs.motor_outputs = {};
|
||||
tabs.motor_outputs.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
GUI.active_tab = 'motor_outputs';
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
tabs.pid_tuning = function() {
|
||||
};
|
||||
|
||||
tabs.pid_tuning = {};
|
||||
tabs.pid_tuning.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
GUI.active_tab = 'pid_tuning';
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
tabs.receiver = function() {
|
||||
};
|
||||
|
||||
tabs.receiver = {};
|
||||
tabs.receiver.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
GUI.active_tab = 'receiver';
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
tabs.sensors = function() {
|
||||
};
|
||||
|
||||
tabs.sensors = {};
|
||||
tabs.sensors.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
GUI.active_tab = 'sensors';
|
||||
|
|
|
@ -5,9 +5,7 @@
|
|||
that there was just no other way around this then hardcoding/implementing each model separately.
|
||||
*/
|
||||
|
||||
tabs.servos = function() {
|
||||
};
|
||||
|
||||
tabs.servos = {};
|
||||
tabs.servos.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
GUI.active_tab = 'servos';
|
||||
|
|
Loading…
Reference in New Issue