File tree Expand file tree Collapse file tree 4 files changed +4
-7
lines changed
src/toolbox/hardware_components Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export function getDefinitionBlock(hideParams: boolean): ToolboxItems.ContentsTy
3333 type : 'mrc_component' ,
3434 fields : {
3535 NAME : 'my_color_range_sensor' ,
36- TYPE : 'ColorRangeSensor' ,
36+ TYPE : TYPE_NAME ,
3737 } ,
3838 extraState : {
3939 importModule : 'rev_color_range_sensor' ,
Original file line number Diff line number Diff line change 1919 * @fileoverview Servo hardware component definitions.
2020 * @author [email protected] (Alan Smith) 2121 */
22-
23- import * as Blockly from 'blockly/core' ;
24-
2522import * as ToolboxItems from '../items' ;
2623
2724export const TYPE_NAME = 'Servo' ;
@@ -35,7 +32,7 @@ export function getDefinitionBlock(hideParams: boolean): ToolboxItems.ContentsTy
3532 type : 'mrc_component' ,
3633 fields : {
3734 NAME : 'my_servo' ,
38- TYPE : 'RevServo' ,
35+ TYPE : TYPE_NAME ,
3936 } ,
4037 extraState : {
4138 importModule : 'rev_servo' ,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export function getDefinitionBlock(hideParams: boolean): ToolboxItems.ContentsTy
3333 type : 'mrc_component' ,
3434 fields : {
3535 NAME : 'my_motor' ,
36- TYPE : 'SmartMotor' ,
36+ TYPE : TYPE_NAME ,
3737 } ,
3838 extraState : {
3939 importModule : 'smart_motor' ,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export function getDefinitionBlock(hideParams: boolean): ToolboxItems.ContentsTy
3333 type : 'mrc_component' ,
3434 fields : {
3535 NAME : 'my_touch_sensor' ,
36- TYPE : 'RevTouchSensor' ,
36+ TYPE : TYPE_NAME ,
3737 } ,
3838 extraState : {
3939 importModule : 'rev_touch_sensor' ,
You can’t perform that action at this time.
0 commit comments