From 8c68f34b8109c853aa27abaf2b7b2c646bb5fc39 Mon Sep 17 00:00:00 2001 From: "Pawel Spychalski (DzikuVx)" Date: Thu, 26 Apr 2018 15:58:36 +0200 Subject: [PATCH] Airplane with differentual thrust mixer preset --- js/model.js | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/js/model.js b/js/model.js index 6a85b849..b9602d79 100644 --- a/js/model.js +++ b/js/model.js @@ -445,7 +445,29 @@ const mixerList = [ platform: PLATFORM_TRICOPTER, motorMixer: [], servoMixer: [] - } // 25 + }, // 25 + { + id: 26, + name: 'Airplane with differential thrust', + model: 'custom', + image: 'airplane', + hasCustomServoMixer: false, + enabled: true, + legacy: true, + platform: PLATFORM_AIRPLANE, + motorMixer: [ + new MotorMixRule(1.0, 0.0, 0.0, 0.3), + new MotorMixRule(1.0, 0.0, 0.0, -0.3) + ], + servoMixer: [ + new ServoMixRule(SERVO_FLAPPERON_1, INPUT_STABILIZED_ROLL, 100, 0), + new ServoMixRule(SERVO_FLAPPERON_2, INPUT_STABILIZED_ROLL, 100, 0), + new ServoMixRule(SERVO_FLAPPERON_1, INPUT_FEATURE_FLAPS, 100, 0), + new ServoMixRule(SERVO_FLAPPERON_2, INPUT_FEATURE_FLAPS, -100, 0), + new ServoMixRule(SERVO_RUDDER, INPUT_STABILIZED_YAW, 100, 0), + new ServoMixRule(SERVO_ELEVATOR, INPUT_STABILIZED_PITCH, 100, 0) + ] + } ]; const platformList = [