@@ -39,17 +39,17 @@ export const FIELD_TYPE = 'TYPE';
3939
4040// key is a regex pattern that matches a function argument name, value is type of mrc_port block to use.
4141// TODO: Improve these regex pattern.
42- // TODO: Should the types here match the PortType values in external_samples/component.py?
42+ // The types here match the PortType values in external_samples/component.py.
4343const RECOGNIZED_PORT_ARG_NAME_PATTERNS : { [ key : string ] : string } = {
44- 'can_port' : 'SmartCan ' ,
45- 'i2c_port ' : 'SmartIO ' ,
46- 'io_port ' : 'SmartIO ' ,
47- 'smartIO_port ' : 'SmartIO ' ,
48- 'smart_io_port ' : 'SmartIO ' ,
49- 'motor_port ' : 'SmartMotor ' ,
50- 'servo_port' : 'SmartIO ' ,
51- 'smart_motor_port ' : 'SmartMotor ' ,
52- 'usb_port' : 'USBPort ' ,
44+ 'can_port' : 'CAN_PORT ' ,
45+ 'io_port ' : 'SMART_IO_PORT ' ,
46+ 'smartIO_port ' : 'SMART_IO_PORT ' ,
47+ 'smart_io_port ' : 'SMART_IO_PORT ' ,
48+ 'motor_port ' : 'SMART_MOTOR_PORT ' ,
49+ 'smart_motor_port ' : 'SMART_MOTOR_PORT ' ,
50+ 'servo_port' : 'SERVO_PORT ' ,
51+ 'i2c_port ' : 'I2C_PORT ' ,
52+ 'usb_port' : 'USB_PORT ' ,
5353} ;
5454
5555
0 commit comments