1
0
Fork 0
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:
cTn 2014-01-15 12:34:23 +01:00
parent 8c98bff682
commit edbf03aa3f
4 changed files with 70 additions and 25 deletions

View file

@ -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