mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 04:45:18 +03:00
adding labels, adding 500 deg scale for gyro
This commit is contained in:
parent
8ba30a91d9
commit
10c8fc6bf3
2 changed files with 10 additions and 9 deletions
|
@ -7,11 +7,11 @@
|
||||||
update periods.<br />
|
update periods.<br />
|
||||||
</p>
|
</p>
|
||||||
<div class="checkboxes">
|
<div class="checkboxes">
|
||||||
Gyroscope <input type="checkbox" name="gyro_on" />
|
<label>Gyroscope <input type="checkbox" name="gyro_on" /></label>
|
||||||
Accelerometer <input type="checkbox" name="accel_on" />
|
<label>Accelerometer <input type="checkbox" name="accel_on" /></label>
|
||||||
Magnetometer <input type="checkbox" name="mag_on" />
|
<label>Magnetometer <input type="checkbox" name="mag_on" /></label>
|
||||||
Barometer <input type="checkbox" name="baro_on" />
|
<label>Barometer <input type="checkbox" name="baro_on" /></label>
|
||||||
Debug <input type="checkbox" name="debug_on" />
|
<label>Debug <input type="checkbox" name="debug_on" /></label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrapper gyro">
|
<div class="wrapper gyro">
|
||||||
|
@ -36,6 +36,7 @@
|
||||||
<dd class="scale">
|
<dd class="scale">
|
||||||
<select name="gyro_scale">
|
<select name="gyro_scale">
|
||||||
<option value="100">100</option>
|
<option value="100">100</option>
|
||||||
|
<option value="500">500</option>
|
||||||
<option value="1000">1000</option>
|
<option value="1000">1000</option>
|
||||||
<option value="2000" selected="selected">2000</option>
|
<option value="2000" selected="selected">2000</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
@ -157,7 +157,7 @@ function tab_initialize_sensors() {
|
||||||
$('#content').load("./tabs/sensors.html", function load_html() {
|
$('#content').load("./tabs/sensors.html", function load_html() {
|
||||||
$('.tab-sensors .info .checkboxes input').change(function() {
|
$('.tab-sensors .info .checkboxes input').change(function() {
|
||||||
var enable = $(this).prop('checked');
|
var enable = $(this).prop('checked');
|
||||||
var index = $(this).index();
|
var index = $(this).parent().index();
|
||||||
|
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -178,7 +178,7 @@ function tab_initialize_sensors() {
|
||||||
}
|
}
|
||||||
|
|
||||||
var checkboxes = [];
|
var checkboxes = [];
|
||||||
$('.tab-sensors .info input').each(function() {
|
$('.tab-sensors .info .checkboxes input').each(function() {
|
||||||
checkboxes.push($(this).prop('checked'));
|
checkboxes.push($(this).prop('checked'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ function tab_initialize_sensors() {
|
||||||
|
|
||||||
chrome.storage.local.get('graphs_enabled', function(result) {
|
chrome.storage.local.get('graphs_enabled', function(result) {
|
||||||
if (result.graphs_enabled) {
|
if (result.graphs_enabled) {
|
||||||
var checkboxes = $('.tab-sensors .info input');
|
var checkboxes = $('.tab-sensors .info .checkboxes input');
|
||||||
for (var i = 0; i < result.graphs_enabled.length; i++) {
|
for (var i = 0; i < result.graphs_enabled.length; i++) {
|
||||||
checkboxes.eq(i).prop('checked', result.graphs_enabled[i]).change();
|
checkboxes.eq(i).prop('checked', result.graphs_enabled[i]).change();
|
||||||
}
|
}
|
||||||
|
@ -302,7 +302,7 @@ function tab_initialize_sensors() {
|
||||||
|
|
||||||
// fetch currently enabled plots
|
// fetch currently enabled plots
|
||||||
var checkboxes = [];
|
var checkboxes = [];
|
||||||
$('.tab-sensors .info input').each(function() {
|
$('.tab-sensors .info .checkboxes input').each(function() {
|
||||||
checkboxes.push($(this).prop('checked'));
|
checkboxes.push($(this).prop('checked'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue