1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

gps in tabs

This commit is contained in:
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();
};