From 763ee4a612d7af604b221de0f481fa5ef5d65e2b Mon Sep 17 00:00:00 2001 From: mikeller Date: Tue, 15 Nov 2016 02:07:34 +1300 Subject: [PATCH] Updated the list of supported boards, added all new targets. --- js/boards.js | 234 +++++++++++++-------------------------------------- 1 file changed, 58 insertions(+), 176 deletions(-) diff --git a/js/boards.js b/js/boards.js index 572908ae..7b26bd08 100644 --- a/js/boards.js +++ b/js/boards.js @@ -5,191 +5,73 @@ // and then manually setting vcp to true for boards that use VCP var BOARD_DEFINITIONS = [ - { - name: "CC3D", - identifier: "CC3D", - vcp: true - }, { - name: "ChebuzzF3", - identifier: "CHF3", - vcp: false - }, { - name: "CJMCU", - identifier: "CJM1", - vcp: false - }, { - name: "EUSTM32F103RB", - identifier: "EUF1", - vcp: false - }, { - name: "Naze/Flip32+", - identifier: "AFNA", - vcp: false - }, { - name: "Olimexino", - identifier: "OLI1", - vcp: false - }, { - name: "Port103R", - identifier: "103R", - vcp: false - }, { - name: "Sparky", - identifier: "SPKY", - vcp: true - }, { - name: "STM32F3Discovery", - identifier: "SDF3", - vcp: true - }, { - name: "Colibri Race", - identifier: "CLBR", - vcp: true - }, { - name: "SP Racing F3", - identifier: "SRF3", - vcp: false - }, { - name: "SP Racing F3 Mini", - identifier: "SRFM", - vcp: true - }, { - name: "SP Racing F3 EVO", - identifier: "SPEV", - vcp: true - }, { - name: "Alienflight F3", - identifier: "AFF3", - vcp: true - }, { - name: "ImmersionRC Fusion F3", - identifier: "IFF3", - vcp: false - }, { - name: "MotoLab", - identifier: "MOTO", - vcp: true - }, { - name: "Lux Race", - identifier: "LUX", - vcp: true - }, { - name: "KISS FC", - identifier: "KISS", - vcp: true - }, { - name: "Singularity", - identifier: "SING", - vcp: true - }, { - name: "VRRACE", - identifier: "VRRA", - vcp: true - }, { - name: "Colibri", - identifier: "COLI", - vcp: true - }, { - name: "Sparky 2", - identifier: "SPK2", - vcp: true - }, { - name: "Air Hero F3", - identifier: "AIR3", - vcp: false - }, { - name: "AIORACERF3", - identifier: "ARF3", - vcp: true - }, { - name: "ALIENFLIGHTF4", - identifier: "AFF4", - vcp: true - }, { - name: "F4BY", - identifier: "F4BY", - vcp: true - }, { - name: "X_RACERSPI", - identifier: "XRC3", - vcp: false - }, { - name: "AIR32", - identifier: "AR32", - vcp: true - }, { - name: "FURYF3", - identifier: "FYF3", - vcp: true - }, { - name: "ALIENFLIGHTF1", - identifier: "AFF1", - vcp: false - }, { - name: "PIKOBLX", - identifier: "PIKO", - vcp: true - }, { - name: "OMNIBUSF4", - identifier: "OBF4", - vcp: true - }, { - name: "REVONANO", - identifier: "REVN", - vcp: true - }, { - name: "DOGE", - identifier: "DOGE", - vcp: true - }, { - name: "BLUEJAYF4", - identifier: "BJF4", - vcp: true - }, { - name: "SIRINFPV", - identifier: "SIRF", - vcp: false - }, { - name: "OMNIBUS", - identifier: "OMNI", - vcp: true - }, { - name: "FURYF4", - identifier: "FYF4", - vcp: true - }, { - name: "ZCOREF3", - identifier: "ZCF3", - vcp: false - }, { - name: "MICROSCISKY", - identifier: "MSKY", - vcp: false - }, { - name: "RMDO", - identifier: "RMDO", - vcp: false - }, { - name: "REVO", - identifier: "REVO", - vcp: true - } + {name: 'AIORACERF3', identifier: 'ARF3', vcp: true}, + {name: 'AIR32', identifier: 'AR32', vcp: true}, + {name: 'AIRHEROF3', identifier: 'AIR3', vcp: false}, + {name: 'ALIENFLIGHTF1', identifier: 'AFF1', vcp: false}, + {name: 'ALIENFLIGHTF3', identifier: 'AFF3', vcp: true}, + {name: 'ALIENFLIGHTF4', identifier: 'AFF4', vcp: true}, + {name: 'ANYFCF7', identifier: 'ANY7', vcp: true}, + {name: 'BETAFLIGHTF3', identifier: 'BFF3', vcp: true}, + {name: 'BLUEJAYF4', identifier: 'BJF4', vcp: true}, + {name: 'CC3D', identifier: 'CC3D', vcp: true}, + {name: 'CHEBUZZF3', identifier: 'CHF3', vcp: true}, + {name: 'CJMCU', identifier: 'CJM1', vcp: false}, + {name: 'COLIBRI', identifier: 'COLI', vcp: true}, + {name: 'COLIBRI_RACE', identifier: 'CLBR', vcp: true}, + {name: 'DOGE', identifier: 'DOGE', vcp: true}, + {name: 'F4BY', identifier: 'F4BY', vcp: true}, + {name: 'FURYF3', identifier: 'FYF3', vcp: true}, + {name: 'FURYF4', identifier: 'FYF4', vcp: true}, + {name: 'FURYF7', identifier: 'FYF7', vcp: true}, + {name: 'IMPULSERCF3', identifier: 'IMF3', vcp: true}, + {name: 'IRCFUSIONF3', identifier: 'IFF3', vcp: true}, + {name: 'ISHAPEDF3', identifier: 'ISF3', vcp: false}, + {name: 'KAKUTEF4', identifier: 'KTV1', vcp: true}, + {name: 'KISSFC', identifier: 'KISS', vcp: true}, + {name: 'LUXV2_RACE', identifier: 'LUXR', vcp: true}, + {name: 'LUX_RACE', identifier: 'LUX', vcp: true}, + {name: 'MICROSCISKY', identifier: 'MSKY', vcp: false}, + {name: 'MOTOLAB', identifier: 'MOTO', vcp: true}, + {name: 'MULTIFLITEPICO', identifier: 'MFPB', vcp: false}, + {name: 'AFROMINI', identifier: 'AFMN', vcp: false}, + {name: 'NAZE', identifier: 'AFNA', vcp: false}, + {name: 'BEEBRAIN', identifier: 'BEBR', vcp: false}, + {name: 'OMNIBUSF4', identifier: 'OBF4', vcp: true}, + {name: 'OMNIBUS', identifier: 'OMNI', vcp: true}, + {name: 'PIKOBLX', identifier: 'PIKO', vcp: true}, + {name: 'RACEBASE', identifier: 'RBFC', vcp: false}, + {name: 'RCEXPLORERF3', identifier: 'REF3', vcp: true}, + {name: 'AIRBOTF4', identifier: 'AIR4', vcp: true}, + {name: 'REVOLT', identifier: 'REVO', vcp: true}, + {name: 'REVO', identifier: 'RVLT', vcp: true}, + {name: 'REVONANO', identifier: 'REVN', vcp: true}, + {name: 'RMDO', identifier: 'RMDO', vcp: false}, + {name: 'SINGULARITY', identifier: 'SING', vcp: true}, + {name: 'SIRINFPV', identifier: 'SIRF', vcp: true}, + {name: 'SOULF4', identifier: 'SOUL', vcp: true}, + {name: 'SPARKY2', identifier: 'SPK2', vcp: true}, + {name: 'SPARKY', identifier: 'SPKY', vcp: true}, + {name: 'SPRACINGF3EVO', identifier: 'SPEV', vcp: true}, + {name: 'SPRACINGF3', identifier: 'SRF3', vcp: false}, + {name: 'SPRACINGF3MINI', identifier: 'SRFM', vcp: true}, + {name: 'STM32F3DISCOVERY', identifier: 'SDF3', vcp: true}, + {name: 'VRRACE', identifier: 'VRRA', vcp: true}, + {name: 'X_RACERSPI', identifier: 'XRC3', vcp: false}, + {name: 'YUPIF4', identifier: 'YPF4', vcp: true}, + {name: 'ZCOREF3', identifier: 'ZCF3', vcp: false} ]; var DEFAULT_BOARD_DEFINITION = { - name: "Unknown", - identifier: "????", - vcp: false + name: "Unknown", identifier: "????", vcp: false }; -var BOARD = { - -}; +var BOARD = {}; BOARD.find_board_definition = function (identifier) { for (var i = 0; i < BOARD_DEFINITIONS.length; i++) { var candidate = BOARD_DEFINITIONS[i]; - + if (candidate.identifier == identifier) { return candidate; }