mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
servos in tabs
This commit is contained in:
parent
b76ec2831b
commit
2d88d2d46d
2 changed files with 12 additions and 3 deletions
2
main.js
2
main.js
|
@ -86,7 +86,7 @@ $(document).ready(function() {
|
||||||
tabs.auxiliary_configuration.initialize();
|
tabs.auxiliary_configuration.initialize();
|
||||||
break;
|
break;
|
||||||
case 'tab_servos':
|
case 'tab_servos':
|
||||||
tab_initialize_servos();
|
tabs.servos.initialize();
|
||||||
break;
|
break;
|
||||||
case 'tab_gps':
|
case 'tab_gps':
|
||||||
tab_initialize_gps();
|
tab_initialize_gps();
|
||||||
|
|
|
@ -5,7 +5,10 @@
|
||||||
that there was just no other way around this then hardcoding/implementing each model separately.
|
that there was just no other way around this then hardcoding/implementing each model separately.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function tab_initialize_servos(callback) {
|
tabs.servos = function() {
|
||||||
|
};
|
||||||
|
|
||||||
|
tabs.servos.initialize = function(callback) {
|
||||||
ga_tracker.sendAppView('Servos');
|
ga_tracker.sendAppView('Servos');
|
||||||
GUI.active_tab = 'servos';
|
GUI.active_tab = 'servos';
|
||||||
|
|
||||||
|
@ -295,5 +298,11 @@ function tab_initialize_servos(callback) {
|
||||||
GUI.interval_add('status_pull', function() {
|
GUI.interval_add('status_pull', function() {
|
||||||
MSP.send_message(MSP_codes.MSP_STATUS);
|
MSP.send_message(MSP_codes.MSP_STATUS);
|
||||||
}, 250, true);
|
}, 250, true);
|
||||||
|
|
||||||
|
if (callback) callback();
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
|
tabs.servos.cleanup = function(callback) {
|
||||||
|
if (callback) callback();
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue