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);
|
SENSOR_DATA.kinematicsZ = view.getInt16(4, 1);
|
||||||
break;
|
break;
|
||||||
case MSP_codes.MSP_ALTITUDE:
|
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;
|
break;
|
||||||
case MSP_codes.MSP_BAT:
|
case MSP_codes.MSP_BAT:
|
||||||
BATTERY.voltage = view.getUint8(0) / 10.0;
|
BATTERY.voltage = view.getUint8(0) / 10.0;
|
||||||
|
|
|
@ -24,5 +24,5 @@
|
||||||
<th>HIGH</th>
|
<th>HIGH</th>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<a class="update" href="#" title="">Update</a>
|
<a class="update" href="#" title="">Save</a>
|
||||||
</div>
|
</div>
|
|
@ -77,7 +77,7 @@
|
||||||
<dt>Pitch:</dt><dd><input type="number" name="pitch" value="0" /></dd>
|
<dt>Pitch:</dt><dd><input type="number" name="pitch" value="0" /></dd>
|
||||||
<dt>Roll:</dt><dd><input type="number" name="roll" value="0" /></dd>
|
<dt>Roll:</dt><dd><input type="number" name="roll" value="0" /></dd>
|
||||||
</dl>
|
</dl>
|
||||||
<a class="update" href="#">Update</a>
|
<a class="update" href="#">Save</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="compass-wrapper">
|
<div class="compass-wrapper">
|
||||||
|
|
|
@ -70,5 +70,5 @@
|
||||||
<td><input type="text" name="tpa" value="" /></td>
|
<td><input type="text" name="tpa" value="" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<a class="update" href="#">Update</a>
|
<a class="update" href="#">Save</a>
|
||||||
</div>
|
</div>
|
|
@ -62,7 +62,7 @@
|
||||||
<td><input type="text" name="expo" value="" /></td>
|
<td><input type="text" name="expo" value="" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<a class="update" href="#">Update</a>
|
<a class="update" href="#">Save</a>
|
||||||
</div>
|
</div>
|
||||||
<p class="info">
|
<p class="info">
|
||||||
some info text goes here
|
some info text goes here
|
||||||
|
|
|
@ -104,7 +104,7 @@ function tab_initialize_sensors() {
|
||||||
}
|
}
|
||||||
|
|
||||||
baro_options = {
|
baro_options = {
|
||||||
title: "Barometer (meters above sea level)",
|
title: "Barometer (meters)",
|
||||||
shadowSize: 0,
|
shadowSize: 0,
|
||||||
yaxis : {
|
yaxis : {
|
||||||
tickDecimals: 1,
|
tickDecimals: 1,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue