1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 08:15:22 +03:00

add RC_MAP, BF_CONFIG for storing new info that is now available, working channelLetter mapping, unfinished MISCv2

This commit is contained in:
cTn 2014-09-16 14:48:36 +02:00
parent 97d3a24787
commit 7e8b1781da
2 changed files with 45 additions and 0 deletions

View file

@ -23,12 +23,24 @@ var CONFIG = {
accelerometerTrims: [0, 0]
};
var BF_CONFIG = {
mixerConfiguration: 0,
features: 0,
serialrx_type: 0,
board_align_roll: 0,
board_align_pitch: 0,
board_align_yaw: 0
// TBD
};
var PID_names = [];
var PIDs = new Array(10);
for (var i = 0; i < 10; i++) {
PIDs[i] = new Array(3);
}
var RC_MAP = [];
// defaults
// roll, pitch, yaw, throttle, aux 1, ... aux n
var RC = {
@ -103,4 +115,22 @@ var MISC = {
vbatmincellvoltage: 0,
vbatmaxcellvoltage: 0,
empty: 0 // unknown
};
var MISCV2 = { // TODO temporary, will figure out a better solution in the future
midrc: 0,
minthrottle: 0,
maxthrottle: 0,
mincommand: 0,
failsafe_throttle: 0,
gps_type: 0,
gps_baudrate: 0,
gps_ubx_sbas: 0,
placeholder1: 0,
placeholder2: 0,
mag_declination: 0, // not checked
vbatscale: 0,
vbatmincellvoltage: 0,
vbatmaxcellvoltage: 0,
placeholder3: 0
};