diff --git a/tabs/pid_tuning.css b/tabs/pid_tuning.css index d86598d063..7bb0394737 100644 --- a/tabs/pid_tuning.css +++ b/tabs/pid_tuning.css @@ -43,7 +43,8 @@ .tab-pid_tuning .rate-tpa input { width: 127px; } - .tab-pid_tuning .update { + .tab-pid_tuning .update, + .tab-pid_tuning .refresh { display: block; float: right; @@ -60,6 +61,10 @@ border: 1px solid silver; background-color: #ececec; } - .tab-pid_tuning .update:hover { + .tab-pid_tuning .refresh { + margin-right: 10px; + } + .tab-pid_tuning .update:hover, + .tab-pid_tuning .refresh:hover { background-color: #dedcdc; } \ No newline at end of file diff --git a/tabs/pid_tuning.html b/tabs/pid_tuning.html index 2bbcdae417..24d3ccb25d 100644 --- a/tabs/pid_tuning.html +++ b/tabs/pid_tuning.html @@ -71,4 +71,5 @@ Save + Refresh \ No newline at end of file diff --git a/tabs/pid_tuning.js b/tabs/pid_tuning.js index 3bbe247afb..fd78fe2a80 100644 --- a/tabs/pid_tuning.js +++ b/tabs/pid_tuning.js @@ -137,6 +137,9 @@ function tab_initialize_pid_tuning() { $('.rate-tpa input[name="tpa"]').val(RC_tuning.dynamic_THR_PID.toFixed(2)); // UI Hooks + $('a.refresh').click(function() { + tab_initialize_pid_tuning(); + }); $('a.update').click(function() { // Catch all the changes and stuff the inside PIDs array diff --git a/tabs/receiver.css b/tabs/receiver.css index 904016dd98..57abb4f4a0 100644 --- a/tabs/receiver.css +++ b/tabs/receiver.css @@ -81,7 +81,8 @@ border: 1px solid silver; } - .tab-receiver .update { + .tab-receiver .update, + .tab-receiver .refresh { display: block; float: right; @@ -98,6 +99,10 @@ border: 1px solid silver; background-color: #ececec; } - .tab-receiver .update:hover { + .tab-receiver .refresh { + margin-right: 10px; + } + .tab-receiver .update:hover, + .tab-receiver .refresh:hover { background-color: #dedcdc; } \ No newline at end of file diff --git a/tabs/receiver.html b/tabs/receiver.html index 875cbd46af..b97724a719 100644 --- a/tabs/receiver.html +++ b/tabs/receiver.html @@ -63,6 +63,7 @@ Save + Refresh