From 6b3db9e8d53762b1508f404bc77514ce251c8e31 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Wed, 27 Jan 2021 04:40:58 +0100 Subject: [PATCH] Extend mixerList with motor and servo values --- src/js/model.js | 52 ++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/js/model.js b/src/js/model.js index 5bf12bb7..37095b3e 100644 --- a/src/js/model.js +++ b/src/js/model.js @@ -2,32 +2,32 @@ // generate mixer const mixerList = [ - {name: 'Tricopter', pos: 3, model: 'tricopter', image: 'tri'}, - {name: 'Quad +', pos: 2, model: 'quad_x', image: 'quad_p'}, - {name: 'Quad X', pos: 0, model: 'quad_x', image: 'quad_x'}, - {name: 'Bicopter', pos: 16, model: 'custom', image: 'bicopter'}, - {name: 'Gimbal', pos: 4, model: 'custom', image: 'custom'}, - {name: 'Y6', pos: 20, model: 'y6', image: 'y6'}, - {name: 'Hex +', pos: 5, model: 'hex_plus', image: 'hex_p'}, - {name: 'Flying Wing', pos: 10, model: 'custom', image: 'flying_wing'}, - {name: 'Y4', pos: 19, model: 'y4', image: 'y4'}, - {name: 'Hex X', pos: 6, model: 'hex_x', image: 'hex_x'}, - {name: 'Octo X8', pos: 21, model: 'custom', image: 'octo_x8'}, - {name: 'Octo Flat +', pos: 8, model: 'custom', image: 'octo_flat_p'}, - {name: 'Octo Flat X', pos: 9, model: 'custom', image: 'octo_flat_x'}, - {name: 'Airplane', pos: 11, model: 'custom', image: 'airplane'}, - {name: 'Heli 120', pos: 12, model: 'custom', image: 'custom'}, - {name: 'Heli 90', pos: 13, model: 'custom', image: 'custom'}, - {name: 'V-tail Quad', pos: 17, model: 'quad_vtail', image: 'vtail_quad'}, - {name: 'Hex H', pos: 7, model: 'custom', image: 'custom'}, - {name: 'PPM to SERVO', pos: 22, model: 'custom', image: 'custom'}, - {name: 'Dualcopter', pos: 15, model: 'custom', image: 'custom'}, - {name: 'Singlecopter', pos: 14, model: 'custom', image: 'custom'}, - {name: 'A-tail Quad', pos: 18, model: 'quad_atail', image: 'atail_quad'}, - {name: 'Custom', pos: 23, model: 'custom', image: 'custom'}, - {name: 'Custom Airplane', pos: 24, model: 'custom', image: 'custom'}, - {name: 'Custom Tricopter', pos: 25, model: 'custom', image: 'custom'}, - {name: 'Quad X 1234', pos: 1, model: 'quad_x', image: 'quad_x_1234'} + { name: 'Tricopter', pos: 3, model: 'tricopter', image: 'tri', motors: 3, servos: true }, + { name: 'Quad +', pos: 2, model: 'quad_x', image: 'quad_p', motors: 4, servos: false }, + { name: 'Quad X', pos: 0, model: 'quad_x', image: 'quad_x', motors: 4, servos: false }, + { name: 'Bicopter', pos: 16, model: 'custom', image: 'bicopter', motors: 2, servos: true }, + { name: 'Gimbal', pos: 4, model: 'custom', image: 'custom', motors: 0, servos: true }, + { name: 'Y6', pos: 20, model: 'y6', image: 'y6', motors: 6, servos: false }, + { name: 'Hex +', pos: 5, model: 'hex_plus', image: 'hex_p', motors: 6, servos: false }, + { name: 'Flying Wing', pos: 10, model: 'custom', image: 'flying_wing', motors: 1, servos: true }, + { name: 'Y4', pos: 19, model: 'y4', image: 'y4', motors: 4, servos: false }, + { name: 'Hex X', pos: 6, model: 'hex_x', image: 'hex_x', motors: 6, servos: false }, + { name: 'Octo X8', pos: 21, model: 'custom', image: 'octo_x8', motors: 8, servos: false }, + { name: 'Octo Flat +', pos: 8, model: 'custom', image: 'octo_flat_p', motors: 8, servos: false }, + { name: 'Octo Flat X', pos: 9, model: 'custom', image: 'octo_flat_x', motors: 8, servos: false }, + { name: 'Airplane', pos: 11, model: 'custom', image: 'airplane', motors: 1, servos: true }, + { name: 'Heli 120', pos: 12, model: 'custom', image: 'custom', motors: 1, servos: true }, + { name: 'Heli 90', pos: 13, model: 'custom', image: 'custom', motors: 0, servos: true }, + { name: 'V-tail Quad', pos: 17, model: 'quad_vtail', image: 'vtail_quad', motors: 4, servos: false }, + { name: 'Hex H', pos: 7, model: 'custom', image: 'custom', motors: 6, servos: false }, + { name: 'PPM to SERVO', pos: 22, model: 'custom', image: 'custom', motors: 0, servos: true }, + { name: 'Dualcopter', pos: 15, model: 'custom', image: 'custom', motors: 2, servos: true }, + { name: 'Singlecopter', pos: 14, model: 'custom', image: 'custom', motors: 1, servos: true }, + { name: 'A-tail Quad', pos: 18, model: 'quad_atail', image: 'atail_quad', motors: 4, servos: false }, + { name: 'Custom', pos: 23, model: 'custom', image: 'custom', motors: 0, servos: false }, + { name: 'Custom Airplane', pos: 24, model: 'custom', image: 'custom', motors: 2, servos: true }, + { name: 'Custom Tricopter', pos: 25, model: 'custom', image: 'custom', motors: 3, servos: true }, + { name: 'Quad X 1234', pos: 1, model: 'quad_x', image: 'quad_x_1234', motors: 4, servos: false }, ]; // 3D model