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

polishing the last GPS commit

This commit is contained in:
cTn 2013-05-30 10:12:00 +02:00
parent 58d34ee9e5
commit 53638fd3f8
3 changed files with 7 additions and 7 deletions

View file

@ -724,7 +724,7 @@ a:hover {
display: block; display: block;
width: 155px; width: 170px;
border: 1px solid silver; border: 1px solid silver;
} }

View file

@ -3,7 +3,7 @@
<span class="head">GPS</span> <span class="head">GPS</span>
<table> <table>
<tr> <tr>
<td style="width: 100px;">Altitude:</td> <td style="width: 85px;">Altitude:</td>
<td class="alt">0</td> <td class="alt">0</td>
</tr> </tr>
<tr> <tr>

View file

@ -5,12 +5,12 @@ function tab_initialize_gps () {
function gps_pull() { function gps_pull() {
// Update GPS data // Update GPS data
$('.GPS_info td.alt').html(GPS_DATA.alt); $('.GPS_info td.alt').html(GPS_DATA.alt + ' m');
$('.GPS_info td.lat').html(GPS_DATA.lat / 10000000); $('.GPS_info td.lat').html((GPS_DATA.lat / 10000000).toFixed(4) + ' deg');
$('.GPS_info td.lon').html(GPS_DATA.lon / 10000000); $('.GPS_info td.lon').html((GPS_DATA.lon / 10000000).toFixed(4) + ' deg');
$('.GPS_info td.speed').html(GPS_DATA.speed); $('.GPS_info td.speed').html(GPS_DATA.speed + ' cm/s');
$('.GPS_info td.sats').html(GPS_DATA.numSat); $('.GPS_info td.sats').html(GPS_DATA.numSat);
$('.GPS_info td.distToHome').html(GPS_DATA.distanceToHome); $('.GPS_info td.distToHome').html(GPS_DATA.distanceToHome + ' m');
// Update GPS Signal Strengths // Update GPS Signal Strengths