1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 21:05:30 +03:00

bugfix for plot re-initialization

This commit is contained in:
cTn 2013-04-09 20:21:52 +02:00
parent 2f9db4fa4e
commit aa8eb5db02

View file

@ -1,3 +1,4 @@
var samples_i;
function tab_initialize_receiver() {
// fill in data from RC_tuning
$('.tunings .throttle input[name="mid"]').val(RC_tuning.throttle_MID.toFixed(2));
@ -7,6 +8,8 @@ function tab_initialize_receiver() {
$('.tunings .rate input[name="expo"]').val(RC_tuning.RC_EXPO.toFixed(2));
// Setup plot variables and plot it self
samples_i = 300;
RX_plot_data = new Array(8);
for (var i = 0; i < 8; i++) {
RX_plot_data[i] = new Array();
@ -79,7 +82,6 @@ function tab_initialize_receiver() {
});
}
var samples_i = 300;
function receiverPoll() {
send_message(MSP_codes.MSP_RC, MSP_codes.MSP_RC);