gps in tabs

10.3.x-maintenance
cTn 2014-07-10 18:27:04 +02:00
parent 2d88d2d46d
commit 36c49dded7
2 changed files with 12 additions and 3 deletions

View File

@ -89,7 +89,7 @@ $(document).ready(function() {
tabs.servos.initialize();
break;
case 'tab_gps':
tab_initialize_gps();
tabs.gps.initialize();
break;
case 'tab_motor_outputs':
tab_initialize_motor_outputs();

View File

@ -1,4 +1,7 @@
function tab_initialize_gps (callback) {
tabs.gps = function() {
};
tabs.gps.initialize = function(callback) {
ga_tracker.sendAppView('GPS Page');
GUI.active_tab = 'gps';
@ -52,5 +55,11 @@ function tab_initialize_gps (callback) {
GUI.interval_add('status_pull', function() {
MSP.send_message(MSP_codes.MSP_STATUS);
}, 250, true);
if (callback) callback();
}
}
};
tabs.gps.cleanup = function(callback) {
if (callback) callback();
};