mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
request first set of samples then load GPS UI
This commit is contained in:
parent
ce351d7521
commit
31125f3f67
1 changed files with 27 additions and 26 deletions
|
@ -2,6 +2,7 @@ function tab_initialize_gps () {
|
|||
ga_tracker.sendAppView('GPS Page');
|
||||
GUI.active_tab = 'gps';
|
||||
|
||||
send_message(MSP_codes.MSP_RAW_GPS, MSP_codes.MSP_RAW_GPS, false, function() {
|
||||
$('#content').load("./tabs/gps.html", function() {
|
||||
// enable data pulling
|
||||
GUI.interval_add('gps_pull', function() {
|
||||
|
@ -14,7 +15,6 @@ function tab_initialize_gps () {
|
|||
$('.GPS_info td.distToHome').html(GPS_DATA.distanceToHome + ' m');
|
||||
|
||||
// Update GPS Signal Strengths
|
||||
|
||||
var e_ss_table = $('div.GPS_signal_strength table tr:not(.titles)');
|
||||
|
||||
for (var i = 0; i < GPS_DATA.chn.length; i++) {
|
||||
|
@ -30,4 +30,5 @@ function tab_initialize_gps () {
|
|||
send_message(MSP_codes.MSP_GPSSVINFO, MSP_codes.MSP_GPSSVINFO);
|
||||
}, 75, true);
|
||||
});
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue