mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-24 08:45:26 +03:00
possibility to delete mixer rules
This commit is contained in:
parent
a7b387a2dc
commit
14a74e76dc
2 changed files with 46 additions and 18 deletions
20
js/model.js
20
js/model.js
|
@ -555,7 +555,15 @@ helper.mixer = (function (mixerList) {
|
|||
|
||||
for (const i in mixer.servoMixer) {
|
||||
if (mixer.servoMixer.hasOwnProperty(i)) {
|
||||
SERVO_RULES.put(mixer.servoMixer[i]);
|
||||
const r = mixer.servoMixer[i];
|
||||
SERVO_RULES.put(
|
||||
new ServoMixRule(
|
||||
r.getTarget(),
|
||||
r.getInput(),
|
||||
r.getRate(),
|
||||
r.getSpeed()
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -565,7 +573,15 @@ helper.mixer = (function (mixerList) {
|
|||
|
||||
for (const i in mixer.motorMixer) {
|
||||
if (mixer.motorMixer.hasOwnProperty(i)) {
|
||||
MOTOR_RULES.put(mixer.motorMixer[i]);
|
||||
const r = mixer.motorMixer[i];
|
||||
MOTOR_RULES.put(
|
||||
new MotorMixRule(
|
||||
r.getThrottle(),
|
||||
r.getRoll(),
|
||||
r.getPitch(),
|
||||
r.getYaw()
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue