mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 04:45:18 +03:00
bugfixes & UI polish
This commit is contained in:
parent
05707da405
commit
b040b01be8
6 changed files with 6 additions and 6 deletions
|
@ -503,7 +503,7 @@ function process_message(code, data) {
|
|||
SENSOR_DATA.kinematicsZ = view.getInt16(4, 1);
|
||||
break;
|
||||
case MSP_codes.MSP_ALTITUDE:
|
||||
SENSOR_DATA.altitude = view.getUint32(0, 1) / 100.0; // correct scale factor
|
||||
SENSOR_DATA.altitude = parseFloat((view.getInt32(0, 1) / 100.0).toFixed(2)); // correct scale factor
|
||||
break;
|
||||
case MSP_codes.MSP_BAT:
|
||||
BATTERY.voltage = view.getUint8(0) / 10.0;
|
||||
|
|
|
@ -24,5 +24,5 @@
|
|||
<th>HIGH</th>
|
||||
</tr>
|
||||
</table>
|
||||
<a class="update" href="#" title="">Update</a>
|
||||
<a class="update" href="#" title="">Save</a>
|
||||
</div>
|
|
@ -77,7 +77,7 @@
|
|||
<dt>Pitch:</dt><dd><input type="number" name="pitch" value="0" /></dd>
|
||||
<dt>Roll:</dt><dd><input type="number" name="roll" value="0" /></dd>
|
||||
</dl>
|
||||
<a class="update" href="#">Update</a>
|
||||
<a class="update" href="#">Save</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="compass-wrapper">
|
||||
|
|
|
@ -70,5 +70,5 @@
|
|||
<td><input type="text" name="tpa" value="" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<a class="update" href="#">Update</a>
|
||||
<a class="update" href="#">Save</a>
|
||||
</div>
|
|
@ -62,7 +62,7 @@
|
|||
<td><input type="text" name="expo" value="" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<a class="update" href="#">Update</a>
|
||||
<a class="update" href="#">Save</a>
|
||||
</div>
|
||||
<p class="info">
|
||||
some info text goes here
|
||||
|
|
|
@ -104,7 +104,7 @@ function tab_initialize_sensors() {
|
|||
}
|
||||
|
||||
baro_options = {
|
||||
title: "Barometer (meters above sea level)",
|
||||
title: "Barometer (meters)",
|
||||
shadowSize: 0,
|
||||
yaxis : {
|
||||
tickDecimals: 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue