CF/BF - improve readability by reformating the structures.

10.3.x-maintenance
Hydra 2017-04-09 20:35:30 +01:00 committed by Michael Keller
parent 2618d6dafc
commit bf0fcb5643
1 changed files with 187 additions and 188 deletions

View File

@ -112,7 +112,7 @@ var FC = {
// roll, pitch, yaw, throttle, aux 1, ... aux n // roll, pitch, yaw, throttle, aux 1, ... aux n
RC = { RC = {
active_channels: 0, active_channels: 0,
channels: new Array(32) channels: new Array(32),
}; };
RC_tuning = { RC_tuning = {
@ -127,7 +127,7 @@ var FC = {
throttle_EXPO: 0, throttle_EXPO: 0,
dynamic_THR_breakpoint: 0, dynamic_THR_breakpoint: 0,
RC_YAW_EXPO: 0, RC_YAW_EXPO: 0,
rcYawRate: 0 rcYawRate: 0,
}; };
AUX_CONFIG = []; AUX_CONFIG = [];
@ -156,7 +156,7 @@ var FC = {
altitude: 0, altitude: 0,
sonar: 0, sonar: 0,
kinematics: [0.0, 0.0, 0.0], kinematics: [0.0, 0.0, 0.0],
debug: [0, 0, 0, 0] debug: [0, 0, 0, 0],
}; };
MOTOR_DATA = new Array(8); MOTOR_DATA = new Array(8);
@ -174,7 +174,6 @@ var FC = {
ditectionToHome: 0, ditectionToHome: 0,
update: 0, update: 0,
// baseflight specific gps stuff
chn: [], chn: [],
svid: [], svid: [],
quality: [], quality: [],
@ -201,12 +200,12 @@ var FC = {
vbatwarningcellvoltage: 0, vbatwarningcellvoltage: 0,
capacity: 0, capacity: 0,
voltageMeterSource: 0, voltageMeterSource: 0,
currentMeterSource: 0 currentMeterSource: 0,
}; };
ARMING_CONFIG = { ARMING_CONFIG = {
auto_disarm_delay: 0, auto_disarm_delay: 0,
disarm_kill_switch: 0 disarm_kill_switch: 0,
}; };
FC_CONFIG = { FC_CONFIG = {
@ -238,7 +237,7 @@ var FC = {
}; };
COMPASS_CONFIG = { COMPASS_CONFIG = {
mag_declination: 0, // not checked mag_declination: 0,
}; };
RSSI_CONFIG = { RSSI_CONFIG = {
@ -271,27 +270,27 @@ var FC = {
supported: false, supported: false,
blackboxDevice: 0, blackboxDevice: 0,
blackboxRateNum: 1, blackboxRateNum: 1,
blackboxRateDenom: 1 blackboxRateDenom: 1,
}; };
TRANSPONDER = { TRANSPONDER = {
supported: false, supported: false,
data: [], data: [],
provider: 0, provider: 0,
providers: [] providers: [],
}; };
RC_DEADBAND_CONFIG = { RC_DEADBAND_CONFIG = {
deadband: 0, deadband: 0,
yaw_deadband: 0, yaw_deadband: 0,
alt_hold_deadband: 0, alt_hold_deadband: 0,
deadband3d_throttle: 0 deadband3d_throttle: 0,
}; };
SENSOR_ALIGNMENT = { SENSOR_ALIGNMENT = {
align_gyro: 0, align_gyro: 0,
align_acc: 0, align_acc: 0,
align_mag: 0 align_mag: 0,
}; };
PID_ADVANCED_CONFIG = { PID_ADVANCED_CONFIG = {
@ -301,7 +300,7 @@ var FC = {
fast_pwm_protocol: 0, fast_pwm_protocol: 0,
motor_pwm_rate: 0, motor_pwm_rate: 0,
digitalIdlePercent: 0, digitalIdlePercent: 0,
gyroUse32kHz: 0 gyroUse32kHz: 0,
}; };
FILTER_CONFIG = { FILTER_CONFIG = {
@ -313,7 +312,7 @@ var FC = {
dterm_notch_hz: 0, dterm_notch_hz: 0,
dterm_notch_cutoff: 0, dterm_notch_cutoff: 0,
gyro_soft_notch_hz_2: 0, gyro_soft_notch_hz_2: 0,
gyro_soft_notch_cutoff_2: 0 gyro_soft_notch_cutoff_2: 0,
}; };
ADVANCED_TUNING = { ADVANCED_TUNING = {
@ -330,13 +329,13 @@ var FC = {
pidMaxVelocity: 0, pidMaxVelocity: 0,
pidMaxVelocityYaw: 0, pidMaxVelocityYaw: 0,
levelAngleLimit: 0, levelAngleLimit: 0,
levelSensitivity: 0 levelSensitivity: 0,
}; };
SENSOR_CONFIG = { SENSOR_CONFIG = {
acc_hardware: 0, acc_hardware: 0,
baro_hardware: 0, baro_hardware: 0,
mag_hardware: 0 mag_hardware: 0,
}; };
RX_CONFIG = { RX_CONFIG = {
@ -353,7 +352,7 @@ var FC = {
rxSpiProtocol: 0, rxSpiProtocol: 0,
rxSpiId: 0, rxSpiId: 0,
rxSpiRfChannelCount: 0, rxSpiRfChannelCount: 0,
fpvCamAngleDegrees: 0 fpvCamAngleDegrees: 0,
}; };
FAILSAFE_CONFIG = { FAILSAFE_CONFIG = {
@ -362,7 +361,7 @@ var FC = {
failsafe_throttle: 0, failsafe_throttle: 0,
failsafe_kill_switch: 0, failsafe_kill_switch: 0,
failsafe_throttle_low_delay: 0, failsafe_throttle_low_delay: 0,
failsafe_procedure: 0 failsafe_procedure: 0.
}; };
RXFAIL_CONFIG = []; RXFAIL_CONFIG = [];