1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00

stuff rcData to array (allocating up to 32 chan)

This commit is contained in:
cTn 2014-05-15 13:12:13 +02:00
parent 4fc1d3ef53
commit 5f07390d45
5 changed files with 28 additions and 64 deletions

View file

@ -21,15 +21,11 @@ for (var i = 0; i < 10; i++) {
PIDs[i] = new Array(3);
}
// defaults
// roll, pitch, yaw, throttle, aux 1, ... aux n
var RC = {
roll: 0,
pitch: 0,
yaw: 0,
throttle: 0,
AUX1: 0,
AUX2: 0,
AUX3: 0,
AUX4: 0
active_channels: 0,
channels: new Array(32)
};
var RC_tuning = {