mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 08:15:22 +03:00
support for mag_declination and UI polish
This commit is contained in:
parent
8c98bff682
commit
edbf03aa3f
4 changed files with 70 additions and 25 deletions
|
@ -17,6 +17,8 @@ function tab_initialize_initial_setup() {
|
|||
$('input[name="failsafe_throttle"]').val(MISC.failsafe_throttle);
|
||||
$('input[name="mincommand"]').val(MISC.mincommand);
|
||||
|
||||
$('input[name="mag_declination"]').val(MISC.mag_declination);
|
||||
|
||||
// Fill in the accel trimms from CONFIG object
|
||||
$('input[name="pitch"]').val(CONFIG.accelerometerTrims[0]);
|
||||
$('input[name="roll"]').val(CONFIG.accelerometerTrims[1]);
|
||||
|
@ -147,6 +149,8 @@ function tab_initialize_initial_setup() {
|
|||
MISC.failsafe_throttle = parseInt($('input[name="failsafe_throttle"]').val());
|
||||
MISC.mincommand = parseInt($('input[name="mincommand"]').val());
|
||||
|
||||
MISC.mag_declination = parseInt($('input[name="mag_declination"]').val());
|
||||
|
||||
// we also have to fill the unsupported bytes
|
||||
var buffer_out = new Array();
|
||||
buffer_out[0] = 0; // powerfailmeter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue