mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
CF/BF - improve readability by reformating the structures.
This commit is contained in:
parent
2618d6dafc
commit
bf0fcb5643
1 changed files with 187 additions and 188 deletions
35
js/fc.js
35
js/fc.js
|
@ -112,7 +112,7 @@ var FC = {
|
|||
// roll, pitch, yaw, throttle, aux 1, ... aux n
|
||||
RC = {
|
||||
active_channels: 0,
|
||||
channels: new Array(32)
|
||||
channels: new Array(32),
|
||||
};
|
||||
|
||||
RC_tuning = {
|
||||
|
@ -127,7 +127,7 @@ var FC = {
|
|||
throttle_EXPO: 0,
|
||||
dynamic_THR_breakpoint: 0,
|
||||
RC_YAW_EXPO: 0,
|
||||
rcYawRate: 0
|
||||
rcYawRate: 0,
|
||||
};
|
||||
|
||||
AUX_CONFIG = [];
|
||||
|
@ -156,7 +156,7 @@ var FC = {
|
|||
altitude: 0,
|
||||
sonar: 0,
|
||||
kinematics: [0.0, 0.0, 0.0],
|
||||
debug: [0, 0, 0, 0]
|
||||
debug: [0, 0, 0, 0],
|
||||
};
|
||||
|
||||
MOTOR_DATA = new Array(8);
|
||||
|
@ -174,7 +174,6 @@ var FC = {
|
|||
ditectionToHome: 0,
|
||||
update: 0,
|
||||
|
||||
// baseflight specific gps stuff
|
||||
chn: [],
|
||||
svid: [],
|
||||
quality: [],
|
||||
|
@ -201,12 +200,12 @@ var FC = {
|
|||
vbatwarningcellvoltage: 0,
|
||||
capacity: 0,
|
||||
voltageMeterSource: 0,
|
||||
currentMeterSource: 0
|
||||
currentMeterSource: 0,
|
||||
};
|
||||
|
||||
ARMING_CONFIG = {
|
||||
auto_disarm_delay: 0,
|
||||
disarm_kill_switch: 0
|
||||
disarm_kill_switch: 0,
|
||||
};
|
||||
|
||||
FC_CONFIG = {
|
||||
|
@ -238,7 +237,7 @@ var FC = {
|
|||
};
|
||||
|
||||
COMPASS_CONFIG = {
|
||||
mag_declination: 0, // not checked
|
||||
mag_declination: 0,
|
||||
};
|
||||
|
||||
RSSI_CONFIG = {
|
||||
|
@ -271,27 +270,27 @@ var FC = {
|
|||
supported: false,
|
||||
blackboxDevice: 0,
|
||||
blackboxRateNum: 1,
|
||||
blackboxRateDenom: 1
|
||||
blackboxRateDenom: 1,
|
||||
};
|
||||
|
||||
TRANSPONDER = {
|
||||
supported: false,
|
||||
data: [],
|
||||
provider: 0,
|
||||
providers: []
|
||||
providers: [],
|
||||
};
|
||||
|
||||
RC_DEADBAND_CONFIG = {
|
||||
deadband: 0,
|
||||
yaw_deadband: 0,
|
||||
alt_hold_deadband: 0,
|
||||
deadband3d_throttle: 0
|
||||
deadband3d_throttle: 0,
|
||||
};
|
||||
|
||||
SENSOR_ALIGNMENT = {
|
||||
align_gyro: 0,
|
||||
align_acc: 0,
|
||||
align_mag: 0
|
||||
align_mag: 0,
|
||||
};
|
||||
|
||||
PID_ADVANCED_CONFIG = {
|
||||
|
@ -301,7 +300,7 @@ var FC = {
|
|||
fast_pwm_protocol: 0,
|
||||
motor_pwm_rate: 0,
|
||||
digitalIdlePercent: 0,
|
||||
gyroUse32kHz: 0
|
||||
gyroUse32kHz: 0,
|
||||
};
|
||||
|
||||
FILTER_CONFIG = {
|
||||
|
@ -313,7 +312,7 @@ var FC = {
|
|||
dterm_notch_hz: 0,
|
||||
dterm_notch_cutoff: 0,
|
||||
gyro_soft_notch_hz_2: 0,
|
||||
gyro_soft_notch_cutoff_2: 0
|
||||
gyro_soft_notch_cutoff_2: 0,
|
||||
};
|
||||
|
||||
ADVANCED_TUNING = {
|
||||
|
@ -330,13 +329,13 @@ var FC = {
|
|||
pidMaxVelocity: 0,
|
||||
pidMaxVelocityYaw: 0,
|
||||
levelAngleLimit: 0,
|
||||
levelSensitivity: 0
|
||||
levelSensitivity: 0,
|
||||
};
|
||||
|
||||
SENSOR_CONFIG = {
|
||||
acc_hardware: 0,
|
||||
baro_hardware: 0,
|
||||
mag_hardware: 0
|
||||
mag_hardware: 0,
|
||||
};
|
||||
|
||||
RX_CONFIG = {
|
||||
|
@ -348,12 +347,12 @@ var FC = {
|
|||
rx_min_usec: 0,
|
||||
rx_max_usec: 0,
|
||||
rcInterpolation: 0,
|
||||
rcInterpolationInterval:0,
|
||||
rcInterpolationInterval: 0,
|
||||
airModeActivateThreshold: 0,
|
||||
rxSpiProtocol: 0,
|
||||
rxSpiId: 0,
|
||||
rxSpiRfChannelCount: 0,
|
||||
fpvCamAngleDegrees: 0
|
||||
fpvCamAngleDegrees: 0,
|
||||
};
|
||||
|
||||
FAILSAFE_CONFIG = {
|
||||
|
@ -362,7 +361,7 @@ var FC = {
|
|||
failsafe_throttle: 0,
|
||||
failsafe_kill_switch: 0,
|
||||
failsafe_throttle_low_delay: 0,
|
||||
failsafe_procedure: 0
|
||||
failsafe_procedure: 0.
|
||||
};
|
||||
|
||||
RXFAIL_CONFIG = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue