mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-14 20:10:11 +03:00
Guarding existing variables which were introduced in 1.7.3, but never implemented in the configurator until now.
Note that these are for the moment just passive passengers -- there's no UI in the configurator to edit them yet.
This commit is contained in:
parent
dd18679c7a
commit
774d1c97e6
1 changed files with 11 additions and 9 deletions
|
@ -1208,15 +1208,17 @@ var mspHelper = (function (gui) {
|
|||
buffer.push(lowByte(FAILSAFE_CONFIG.failsafe_throttle_low_delay));
|
||||
buffer.push(highByte(FAILSAFE_CONFIG.failsafe_throttle_low_delay));
|
||||
buffer.push(FAILSAFE_CONFIG.failsafe_procedure);
|
||||
buffer.push(FAILSAFE_CONFIG.failsafe_recovery_delay);
|
||||
buffer.push(lowByte(FAILSAFE_CONFIG.failsafe_fw_roll_angle));
|
||||
buffer.push(highByte(FAILSAFE_CONFIG.failsafe_fw_roll_angle));
|
||||
buffer.push(lowByte(FAILSAFE_CONFIG.failsafe_fw_pitch_angle));
|
||||
buffer.push(highByte(FAILSAFE_CONFIG.failsafe_fw_pitch_angle));
|
||||
buffer.push(lowByte(FAILSAFE_CONFIG.failsafe_fw_yaw_rate));
|
||||
buffer.push(highByte(FAILSAFE_CONFIG.failsafe_fw_yaw_rate));
|
||||
buffer.push(lowByte(FAILSAFE_CONFIG.failsafe_stick_motion_threshold));
|
||||
buffer.push(highByte(FAILSAFE_CONFIG.failsafe_stick_motion_threshold));
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "1.7.3")) {
|
||||
buffer.push(FAILSAFE_CONFIG.failsafe_recovery_delay);
|
||||
buffer.push(lowByte(FAILSAFE_CONFIG.failsafe_fw_roll_angle));
|
||||
buffer.push(highByte(FAILSAFE_CONFIG.failsafe_fw_roll_angle));
|
||||
buffer.push(lowByte(FAILSAFE_CONFIG.failsafe_fw_pitch_angle));
|
||||
buffer.push(highByte(FAILSAFE_CONFIG.failsafe_fw_pitch_angle));
|
||||
buffer.push(lowByte(FAILSAFE_CONFIG.failsafe_fw_yaw_rate));
|
||||
buffer.push(highByte(FAILSAFE_CONFIG.failsafe_fw_yaw_rate));
|
||||
buffer.push(lowByte(FAILSAFE_CONFIG.failsafe_stick_motion_threshold));
|
||||
buffer.push(highByte(FAILSAFE_CONFIG.failsafe_stick_motion_threshold));
|
||||
}
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "1.7.4")) {
|
||||
buffer.push(lowByte(FAILSAFE_CONFIG.failsafe_min_distance));
|
||||
buffer.push(highByte(FAILSAFE_CONFIG.failsafe_min_distance));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue