1
0
Fork 0
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:
Pawel Spychalski (DzikuVx) 2018-03-31 16:03:38 +02:00
parent a7b387a2dc
commit 14a74e76dc
2 changed files with 46 additions and 18 deletions

View file

@ -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()
)
);
}
}
}