|
|
@ -137,13 +137,8 @@ function tab_initialize_pid_tuning() {
|
|
|
|
$('.rate-tpa input[name="tpa"]').val(RC_tuning.dynamic_THR_PID.toFixed(2));
|
|
|
|
$('.rate-tpa input[name="tpa"]').val(RC_tuning.dynamic_THR_PID.toFixed(2));
|
|
|
|
|
|
|
|
|
|
|
|
// UI Hooks
|
|
|
|
// UI Hooks
|
|
|
|
$('.pid_tuning input, .rate-tpa input').change(function() {
|
|
|
|
|
|
|
|
// if any of the fields changed, unlock update button
|
|
|
|
|
|
|
|
$('a.update').addClass('active');
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('a.update').click(function() {
|
|
|
|
$('a.update').click(function() {
|
|
|
|
if ($(this).hasClass('active')) {
|
|
|
|
|
|
|
|
// Catch all the changes and stuff the inside PIDs array
|
|
|
|
// Catch all the changes and stuff the inside PIDs array
|
|
|
|
var needle_main = 0;
|
|
|
|
var needle_main = 0;
|
|
|
|
var needle_secondary = 0;
|
|
|
|
var needle_secondary = 0;
|
|
|
@ -223,10 +218,6 @@ function tab_initialize_pid_tuning() {
|
|
|
|
|
|
|
|
|
|
|
|
// Save changes to EEPROM
|
|
|
|
// Save changes to EEPROM
|
|
|
|
send_message(MSP_codes.MSP_EEPROM_WRITE, MSP_codes.MSP_EEPROM_WRITE);
|
|
|
|
send_message(MSP_codes.MSP_EEPROM_WRITE, MSP_codes.MSP_EEPROM_WRITE);
|
|
|
|
|
|
|
|
|
|
|
|
// remove the active status
|
|
|
|
|
|
|
|
$(this).removeClass('active');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// enable data pulling
|
|
|
|
// enable data pulling
|
|
|
|