diff --git a/python_tools/json_util.py b/python_tools/json_util.py index bd9abed8..5bd6dd93 100644 --- a/python_tools/json_util.py +++ b/python_tools/json_util.py @@ -60,8 +60,7 @@ _KEY_ALIASES = 'aliases' _KEY_SUBCLASSES = 'subclasses' _KEY_IS_COMPONENT = 'isComponent' -_KEY_COMPONENT_PORT_NAME = 'componentPortName' -_KEY_COMPONENT_PORT_TYPE = 'componentPortType' +_KEY_COMPONENT_ARGS = 'componentArgs' def ignoreModule(module_name: str) -> bool: @@ -120,6 +119,8 @@ def _getClassName(self, o, containing_class_name: str = None) -> str: o = o.replace(exported_full_class_name + ']', exported_class_name + ']') if o.find(exported_full_class_name + ',') != -1: o = o.replace(exported_full_class_name + ',', exported_class_name + ',') + o = o.replace('typing.SupportsInt', 'int') + o = o.replace('typing.SupportsFloat', 'float') return o raise Exception(f'Invalid argument {o}') @@ -136,6 +137,13 @@ def _createFunctionIsEnumValue( self, enum_cls: type) -> typing.Callable[[object], bool]: return lambda value: type(value) == enum_cls + def _createArgData(self, arg_name: str, arg_type: str, default_value: str = ''): + arg_data = {} + arg_data[_KEY_ARGUMENT_NAME] = arg_name + arg_data[_KEY_ARGUMENT_TYPE] = arg_type + arg_data[_KEY_ARGUMENT_DEFAULT_VALUE] = default_value if default_value else '' + return arg_data + def _processModule(self, module) -> dict: module_data = {} module_name = self._getModuleName(module) @@ -194,14 +202,10 @@ def _processModule(self, module) -> dict: continue args = [] for i in range(len(arg_names)): - arg_data = {} - arg_data[_KEY_ARGUMENT_NAME] = arg_names[i] - arg_data[_KEY_ARGUMENT_TYPE] = self._getClassName(arg_types[i]) - if arg_default_values[i] is not None: - arg_data[_KEY_ARGUMENT_DEFAULT_VALUE] = arg_default_values[i] - else: - arg_data[_KEY_ARGUMENT_DEFAULT_VALUE] = '' - args.append(arg_data) + args.append(self._createArgData( + arg_names[i], + self._getClassName(arg_types[i]), + arg_default_values[i] if arg_default_values[i] is not None else '')) function_data = {} function_data[_KEY_FUNCTION_NAME] = function_name function_data[_KEY_FUNCTION_RETURN_TYPE] = self._getClassName(return_type) @@ -352,22 +356,14 @@ def _processClass(self, cls): declaring_class_name = self._getClassName(arg_type, class_name) # Don't append the self argument to the args array. continue - arg_data = {} - arg_data[_KEY_ARGUMENT_NAME] = arg_name - arg_data[_KEY_ARGUMENT_TYPE] = self._getClassName(arg_type, class_name) - if arg_default_values[i] is not None: - arg_data[_KEY_ARGUMENT_DEFAULT_VALUE] = arg_default_values[i] - else: - arg_data[_KEY_ARGUMENT_DEFAULT_VALUE] = '' - args.append(arg_data) + args.append(self._createArgData( + arg_name, + self._getClassName(arg_type, class_name), + arg_default_values[i] if arg_default_values[i] is not None else '')) constructor_data[_KEY_FUNCTION_ARGS] = args constructor_data[_KEY_FUNCTION_DECLARING_CLASS_NAME] = declaring_class_name constructor_data[_KEY_FUNCTION_RETURN_TYPE] = declaring_class_name - componentPortTuple = python_util.getComponentPortNameAndType(declaring_class_name, value) - if componentPortTuple is not None: - constructor_data[_KEY_COMPONENT_PORT_NAME] = componentPortTuple[0] - constructor_data[_KEY_COMPONENT_PORT_TYPE] = componentPortTuple[1] - class_data[_KEY_IS_COMPONENT] = True + self._processComponent(class_data, constructor_data, declaring_class_name, arg_names, arg_types, arg_default_values) constructors.append(constructor_data) class_data[_KEY_CONSTRUCTORS] = constructors @@ -406,14 +402,10 @@ def _processClass(self, cls): found_self_arg = True if arg_type != full_class_name: declaring_class_name = self._getClassName(arg_type, class_name) - arg_data = {} - arg_data[_KEY_ARGUMENT_NAME] = arg_name - arg_data[_KEY_ARGUMENT_TYPE] = self._getClassName(arg_type, class_name) - if arg_default_values[i] is not None: - arg_data[_KEY_ARGUMENT_DEFAULT_VALUE] = arg_default_values[i] - else: - arg_data[_KEY_ARGUMENT_DEFAULT_VALUE] = '' - args.append(arg_data) + args.append(self._createArgData( + arg_name, + self._getClassName(arg_type, class_name), + arg_default_values[i] if arg_default_values[i] is not None else '')) function_data = {} function_data[_KEY_FUNCTION_NAME] = function_name function_data[_KEY_FUNCTION_RETURN_TYPE] = self._getClassName(return_type, class_name) @@ -456,6 +448,96 @@ def _processClass(self, cls): class_data[_KEY_ENUMS] = sorted(enums, key=lambda enum_data: enum_data[_KEY_ENUM_CLASS_NAME]) return class_data + + def _processComponent(self, class_data, constructor_data, declaring_class_name, arg_names, arg_types, arg_default_values): + """Determine whether this is a component and, if so, update the class_data and + constructor_data.""" + + # TODO(lizlooney): Replace the following temporary fake code with code that + # looks at doc string and/or parameter type aliases to tell whether this is + # a component and what the args are. + + if declaring_class_name == 'wpilib_placeholders.ExpansionHubMotor': + args = [] + args.append(self._createArgData('expansion_hub_motor', 'SYSTEMCORE_USB_PORT__EXPANSION_HUB_MOTOR_PORT')) + constructor_data[_KEY_COMPONENT_ARGS] = args + constructor_data[_KEY_IS_COMPONENT] = True + class_data[_KEY_IS_COMPONENT] = True + return + + if declaring_class_name == 'wpilib_placeholders.ExpansionHubServo': + args = [] + args.append(self._createArgData('expansion_hub_servo', 'SYSTEMCORE_USB_PORT__EXPANSION_HUB_SERVO_PORT')) + constructor_data[_KEY_COMPONENT_ARGS] = args + constructor_data[_KEY_IS_COMPONENT] = True + class_data[_KEY_IS_COMPONENT] = True + return + + if declaring_class_name == 'wpilib.AddressableLED': + args = [] + args.append(self._createArgData('smart_io_port', 'SYSTEMCORE_SMART_IO_PORT')) + constructor_data[_KEY_COMPONENT_ARGS] = args + constructor_data[_KEY_IS_COMPONENT] = True + class_data[_KEY_IS_COMPONENT] = True + return + + if declaring_class_name == 'wpilib.AnalogEncoder': + if (len(arg_names) == 4 and + arg_names[0] == 'self' and + arg_names[1] == 'channel' and + arg_names[2] == 'fullRange' and + arg_names[3] == 'expectedZero'): + args = [] + args.append(self._createArgData('smart_io_port', 'SYSTEMCORE_SMART_IO_PORT')) + args.append(self._createArgData('full_range', self._getClassName(arg_types[2]), '1.0')) + args.append(self._createArgData('expected_zero', self._getClassName(arg_types[3]), '0.0')) + constructor_data[_KEY_COMPONENT_ARGS] = args + constructor_data[_KEY_COMPONENT_ARGS] + constructor_data[_KEY_IS_COMPONENT] = True + class_data[_KEY_IS_COMPONENT] = True + return + + if declaring_class_name == 'wpilib.AnalogPotentiometer': + if (len(arg_names) == 4 and + arg_names[0] == 'self' and + arg_names[1] == 'channel' and + arg_names[2] == 'fullRange' and + arg_names[3] == 'offset'): + args = [] + args.append(self._createArgData('smart_io_port', 'SYSTEMCORE_SMART_IO_PORT')) + args.append(self._createArgData('full_range', self._getClassName(arg_types[2]), arg_default_values[2])) + args.append(self._createArgData('offset', self._getClassName(arg_types[3]), arg_default_values[3])) + constructor_data[_KEY_COMPONENT_ARGS] = args + constructor_data[_KEY_IS_COMPONENT] = True + class_data[_KEY_IS_COMPONENT] = True + return + + if declaring_class_name == 'wpilib.DigitalInput': + args = [] + args.append(self._createArgData('smart_io_port', 'SYSTEMCORE_SMART_IO_PORT')) + constructor_data[_KEY_COMPONENT_ARGS] = args + constructor_data[_KEY_IS_COMPONENT] = True + class_data[_KEY_IS_COMPONENT] = True + return + + if declaring_class_name == 'wpilib.OnboardIMU': + if (len(arg_names) == 2 and + arg_names[0] == 'self' and + arg_names[1] == 'mountOrientation'): + args = [] + args.append(self._createArgData('mount_orientation', self._getClassName(arg_types[1]), arg_default_values[1])) + constructor_data[_KEY_COMPONENT_ARGS] = args + constructor_data[_KEY_IS_COMPONENT] = True + class_data[_KEY_IS_COMPONENT] = True + return + + if declaring_class_name == 'wpilib.PWMSparkMax': + args = [] + args.append(self._createArgData('smart_io_port', 'SYSTEMCORE_SMART_IO_PORT')) + constructor_data[_KEY_COMPONENT_ARGS] = args + constructor_data[_KEY_IS_COMPONENT] = True + class_data[_KEY_IS_COMPONENT] = True + def _processClasses(self): class_data_list = [] for cls in self._getPublicClasses(): diff --git a/python_tools/python_util.py b/python_tools/python_util.py index ddef581d..b82c5b29 100644 --- a/python_tools/python_util.py +++ b/python_tools/python_util.py @@ -183,10 +183,16 @@ def isEnum(object): inspect.isroutine(object.__init__) and inspect.ismethoddescriptor(object.__init__) and hasattr(object.__init__, "__doc__") and - object.__init__.__doc__ == f"__init__(self: {getFullClassName(object)}, value: int) -> None\n" and + ( + object.__init__.__doc__ == f"__init__(self: {getFullClassName(object)}, value: int) -> None\n" or + object.__init__.__doc__ == f"__init__(self: {getFullClassName(object)}, value: typing.SupportsInt) -> None\n" + ) and hasattr(object, "name") and inspect.isdatadescriptor(object.name) and - object.name.__doc__ == 'name(self: object) -> str\n' and + ( + object.name.__doc__ == 'name(self: object) -> str\n' or + object.name.__doc__ == 'name(self: object, /) -> str\n' + ) and hasattr(object, "value") and inspect.isdatadescriptor(object.value)) @@ -579,25 +585,3 @@ def collectSubclasses(classes: list[type]) -> dict[str, list[str]]: if subclass_name not in subclass_names: subclass_names.append(subclass_name) return dict_class_name_to_subclass_names - - -def getComponentPortNameAndType(declaring_class_name, constructor) -> (str, str): - """Determine whether this is a component and, if so, get the port types that - correspond to the constructor parameters. The returned value is a single - string consisting of one or more port types. Multiple port types are - separated by __ (two underscores). Each port type matches one of the PortType - enum values in src/storage/module_content.ts.""" - - # TODO(lizlooney): Replace the following temporary fake code with code that - # looks at doc string and/or parameter type aliases to tell whether this is - # a component and what the port types are. - if declaring_class_name == "wpilib_placeholders.ExpansionHubMotor": - return ("expansion_hub_motor", "SYSTEMCORE_USB_PORT__EXPANSION_HUB_MOTOR_PORT") - if declaring_class_name == "wpilib_placeholders.ExpansionHubServo": - return ("expansion_hub_servo", "SYSTEMCORE_USB_PORT__EXPANSION_HUB_SERVO_PORT") - if declaring_class_name == "wpilib.PWMSparkMax": - return ("smart_io_port", "SYSTEMCORE_SMART_IO_PORT") - if declaring_class_name == "wpilib.AddressableLED": - return ("smart_io_port", "SYSTEMCORE_SMART_IO_PORT") - - return None diff --git a/src/blocks/mrc_class_method_def.ts b/src/blocks/mrc_class_method_def.ts index e34ab297..f4efb083 100644 --- a/src/blocks/mrc_class_method_def.ts +++ b/src/blocks/mrc_class_method_def.ts @@ -471,12 +471,12 @@ export const pythonFromBlock = function ( branch = generator.PASS; } - const params = block.mrcParameters; let paramString = 'self'; + if (generator.getModuleType() === storageModule.ModuleType.MECHANISM && block.mrcPythonMethodName === '__init__') { - const ports: string[] = generator.getComponentPortParameters(); - if (ports.length) { - paramString += ', ' + ports.join(', '); + const mechanismInitArgNames: string[] = generator.getMechanismInitArgNames(); + if (mechanismInitArgNames.length) { + paramString += ', ' + mechanismInitArgNames.join(', '); } } @@ -484,7 +484,7 @@ export const pythonFromBlock = function ( paramString += ', robot'; } - if (params.length != 0) { + if (block.mrcParameters.length != 0) { block.mrcParameters.forEach(param => { paramString += ', ' + param.name; }); diff --git a/src/blocks/mrc_component.ts b/src/blocks/mrc_component.ts index 8edffcb0..e4710f30 100644 --- a/src/blocks/mrc_component.ts +++ b/src/blocks/mrc_component.ts @@ -26,11 +26,12 @@ import { MRC_STYLE_COMPONENTS } from '../themes/styles' import { createFieldNonEditableText } from '../fields/FieldNonEditableText'; import { Editor } from '../editor/editor'; import { ExtendedPythonGenerator } from '../editor/extended_python_generator'; +import { valueForComponentArgInput } from './utils/value'; import { getModuleTypeForWorkspace } from './utils/workspaces'; import { componentClasses } from './utils/python'; import { makeLegalName } from './utils/validator'; import * as toolboxItems from '../toolbox/items'; -import { getClassData } from './utils/python'; +import { getAllowedTypesForSetCheck, getClassData } from './utils/python'; import * as storageModule from '../storage/module'; import * as storageModuleContent from '../storage/module_content'; import * as storageNames from '../storage/names'; @@ -39,8 +40,7 @@ import { BLOCK_NAME as MRC_MECHANISM_COMPONENT_HOLDER, MechanismComponentHolderBlock, mrcDescendantsMayHaveChanged } from './mrc_mechanism_component_holder'; -import { createPort } from './mrc_port'; -import { ClassData, FunctionData } from './utils/python_json_types'; +import { ClassData, FunctionData, isPortType, upgradePortTypeString } from './utils/python_json_types'; import { renameMethodCallers } from './mrc_call_python_function' @@ -50,12 +50,15 @@ export const OUTPUT_NAME = 'mrc_component'; export const FIELD_NAME = 'NAME'; export const FIELD_TYPE = 'TYPE'; +const INPUT_ARG_PREFIX = 'ARG'; + const WARNING_ID_NOT_IN_HOLDER = 'not in holder'; const WARNING_ID_COMPONENT_MISSING_COMPONENT_CLASS = 'missing component class'; type ConstructorArg = { name: string, type: string, + defaultValue: string, }; type ComponentExtraState = { @@ -122,6 +125,7 @@ const COMPONENT = { extraState.params!.push({ name: arg.name, type: arg.type, + defaultValue: arg.defaultValue, }); }); } @@ -144,10 +148,11 @@ const COMPONENT = { if (extraState.params) { extraState.params.forEach((arg) => { - const upgradedArgType = storageModuleContent.upgradePortTypeString(arg.type); + const upgradedArgType = upgradePortTypeString(arg.type); this.mrcArgs.push({ name: arg.name, type: upgradedArgType, + defaultValue: arg.defaultValue, }); }); } @@ -157,11 +162,11 @@ const COMPONENT = { if (moduleType === storageModule.ModuleType.ROBOT) { // Add input sockets for the arguments. for (let i = 0; i < this.mrcArgs.length; i++) { - const input = this.appendValueInput('ARG' + i) + const input = this.appendValueInput(INPUT_ARG_PREFIX + i) .setAlign(Blockly.inputs.Align.RIGHT) .appendField(this.mrcArgs[i].name); if (this.mrcArgs[i].type) { - input.setCheck(this.mrcArgs[i].type); + input.setCheck(getAllowedTypesForSetCheck(this.mrcArgs[i].type)); } } } @@ -194,23 +199,29 @@ const COMPONENT = { getComponent: function (this: ComponentBlock): storageModuleContent.Component | null { const componentName = this.getFieldValue(FIELD_NAME); const componentType = this.getFieldValue(FIELD_TYPE); - const ports: {[port: string]: string} = {}; - this.getComponentPorts(ports); + const args: storageModuleContent.MethodArg[] = []; + this.getComponentArgs(args); return { componentId: this.mrcComponentId, name: componentName, className: componentType, - ports: ports, + args: args, }; }, - getArgName: function (this: ComponentBlock, _: number): string { - return this.getFieldValue(FIELD_NAME) + '__' + 'port'; + getMechanismInitArgName: function (this: ComponentBlock): string { + // Return the name of the arg used to represent this component's arguments in a mechanism's + // constructor or a mechanism's define_hardware method. + return getMechanismInitArgName(this.getFieldValue(FIELD_NAME)); }, - getComponentPorts: function (this: ComponentBlock, ports: {[argName: string]: string}): void { - // Collect the ports for this component block. + getComponentArgs: function (this: ComponentBlock, args: storageModuleContent.MethodArg[]): void { + // Collect the args for this component block. for (let i = 0; i < this.mrcArgs.length; i++) { - const argName = this.getArgName(i); - ports[argName] = this.mrcArgs[i].type; + const arg: storageModuleContent.MethodArg = { + name: this.mrcArgs[i].name, + type: this.mrcArgs[i].type, + defaultValue: this.mrcArgs[i].defaultValue, + } + args.push(arg); } }, /** @@ -322,19 +333,24 @@ export const pythonFromBlock = function ( const componentType = block.getFieldValue(FIELD_TYPE); let code = 'self.' + componentName + ' = ' + componentType + '(\n'; - for (let i = 0; i < block.mrcArgs.length; i++) { - if (generator.getModuleType() === storageModule.ModuleType.ROBOT) { - // In a robot, a component block has an input socket with a mrc_port block - // plugged into it. - code += generator.prefixLines(generator.valueToCode(block, 'ARG' + i, Order.NONE), generator.INDENT); - } else { - // In a mechanism, a component block does not have input sockets. - // Each argument of the mechanism constructor is a tuple containing the - // constructor parameters of a component. - // Use the * operator to unpack the elements of the tuple and pass each - // element as a separate positional argument to the component constructor. - code += generator.INDENT + '*' + block.getArgName(i) + ',\n'; + if (generator.getModuleType() === storageModule.ModuleType.ROBOT) { + // In a robot, a componet block has input sockets. + for (let i = 0; i < block.mrcArgs.length; i++) { + let argCode = generator.valueToCode(block, INPUT_ARG_PREFIX + i, Order.NONE); + // mrc_port blocks generate python code where each port parameter is followed by a comma, a + // comment, and a newline. But other blocks don't do that. + if (!isPortType(block.mrcArgs[i].type)) { + argCode += ', # ' + block.mrcArgs[i].name + '\n'; + } + code += generator.prefixLines(argCode, generator.INDENT); } + } else { + // In a mechanism, a component block does not have input sockets. + // Each argument of the mechanism's constructor (and the mechanism's define_hardware method) is + // a tuple containing the constructor parameters of a component. + // Use the * operator to unpack the elements of the tuple and pass each + // element as a separate positional argument to the component constructor. + code += generator.INDENT + '*' + block.getMechanismInitArgName() + ',\n'; } code += ')\n'; @@ -348,14 +364,20 @@ export function getAllPossibleComponents( componentClasses.forEach(classData => { const simpleClassName = classData.className.substring(classData.className.lastIndexOf('.') + 1); const componentName = 'my_' + storageNames.pascalCaseToSnakeCase(simpleClassName); - classData.constructors.forEach(constructor => { - contents.push(createComponentBlock(componentName, classData, constructor, moduleType)); + classData.constructors.forEach(constructorData => { + if (constructorData.isComponent) { + contents.push(createComponentBlock(componentName, classData, constructorData, moduleType)); + } }); }); return contents; } +export function getMechanismInitArgName(componentName: string): string { + return componentName + '__args'; +} + function createComponentBlock( componentName: string, classData: ClassData, @@ -367,20 +389,29 @@ function createComponentBlock( params: [], moduleType: moduleType, }; + if (!constructorData.componentArgs) { + throw new Error('ConstructorData does not have componentArgs.'); + } const fields: {[key: string]: any} = {}; fields[FIELD_NAME] = componentName; fields[FIELD_TYPE] = classData.className; const inputs: {[key: string]: any} = {}; - if (constructorData.componentPortName && constructorData.componentPortType) { + let i = 0; + constructorData.componentArgs.forEach((argData) => { extraState.params!.push({ - name: constructorData.componentPortName, - type: constructorData.componentPortType, + name: argData.name, + type: argData.type, + defaultValue: argData.defaultValue, }); if (moduleType == storageModule.ModuleType.ROBOT) { - inputs['ARG0'] = createPort(constructorData.componentPortType); + const input = valueForComponentArgInput(argData.type, argData.defaultValue); + if (input) { + inputs[INPUT_ARG_PREFIX + i] = input; + } } - } + i++; + }); return new toolboxItems.Block(BLOCK_NAME, extraState, fields, Object.keys(inputs).length ? inputs : null); } diff --git a/src/blocks/mrc_get_python_enum_value.ts b/src/blocks/mrc_get_python_enum_value.ts index 1fd2c775..e7f79791 100644 --- a/src/blocks/mrc_get_python_enum_value.ts +++ b/src/blocks/mrc_get_python_enum_value.ts @@ -167,7 +167,7 @@ export function addEnumBlocks(enums: EnumData[], contents: toolboxItems.Contents } } -function createEnumBlock(enumValue: string, enumData: EnumData): toolboxItems.Block { +export function createEnumBlock(enumValue: string, enumData: EnumData): toolboxItems.Block { const extraState: GetPythonEnumValueExtraState = { enumType: enumData.enumClassName, importModule: enumData.moduleName, diff --git a/src/blocks/mrc_mechanism.ts b/src/blocks/mrc_mechanism.ts index 7b211f14..d7a2eecc 100644 --- a/src/blocks/mrc_mechanism.ts +++ b/src/blocks/mrc_mechanism.ts @@ -27,6 +27,7 @@ import { createFieldNonEditableText } from '../fields/FieldNonEditableText'; import { Editor } from '../editor/editor'; import { ExtendedPythonGenerator } from '../editor/extended_python_generator'; import { makeLegalName } from './utils/validator'; +import { valueForComponentArgInput } from './utils/value'; import * as toolboxItems from '../toolbox/items'; import * as storageModule from '../storage/module'; import * as storageModuleContent from '../storage/module_content'; @@ -37,20 +38,27 @@ import { MechanismComponentHolderBlock, mrcDescendantsMayHaveChanged } from './mrc_mechanism_component_holder'; import { renameMethodCallers } from './mrc_call_python_function' +import { getMechanismInitArgName } from './mrc_component' import { renameMechanismName as renameMechanismNameInEventHandlers } from './mrc_event_handler' -import { createPort } from './mrc_port'; +import { getAllowedTypesForSetCheck } from './utils/python'; +import { isPortType, upgradePortTypeString } from './utils/python_json_types'; export const BLOCK_NAME = 'mrc_mechanism'; export const OUTPUT_NAME = 'mrc_mechansim'; export const FIELD_NAME = 'NAME'; export const FIELD_TYPE = 'TYPE'; +const INPUT_ARG_PREFIX = 'ARG'; +const FIELD_COMPONENT_NAME_PREFIX = 'COMPONENT' +const FIELD_ARG_NAME_PREFIX = 'ARGNAME'; type Parameter = { name: string, type: string, + defaultValue?: string, componentId?: string, - componentPortsIndex?: number, // The zero-based number when iterating through component.ports. + componentName?: string, + componentArgsIndex?: number, // The zero-based number when iterating through component.args. }; type MechanismExtraState = { @@ -126,7 +134,12 @@ const MECHANISM = { this.mrcParameters = []; if (extraState.parameters) { extraState.parameters.forEach((arg) => { - const upgradedArgType = storageModuleContent.upgradePortTypeString(arg.type); + // Prior to version 0.0.10, Parameter had a field named componentPortsIndex instead of componentArgsIndex. + if ('componentPortsIndex' in arg && arg['componentPortsIndex'] != undefined) { + arg.componentArgsIndex = arg['componentPortsIndex'] as number; + delete arg.componentPortsIndex; + } + const upgradedArgType = upgradePortTypeString(arg.type); if (upgradedArgType !== arg.type) { const upgradedArg = {...arg}; upgradedArg.type = upgradedArgType; @@ -136,38 +149,12 @@ const MECHANISM = { } }); } - this.updateBlock_(); - }, - /** - * Update the block to reflect the newly loaded extra state. - */ - updateBlock_: function (this: MechanismBlock): void { - // Update input sockets for the arguments. + // Create input sockets for the arguments. for (let i = 0; i < this.mrcParameters.length; i++) { - const argName = this.mrcParameters[i].name; - let argInput = this.getInput('ARG' + i); - const argField = this.getField('ARGNAME' + i); - if (argInput && argField) { - // Ensure argument name is up to date. No need to fire a change event. - Blockly.Events.disable(); - try { - argField.setValue(argName); - } finally { - Blockly.Events.enable(); - } - } else { - // Add new input. - argInput = this.appendValueInput('ARG' + i) - .setAlign(Blockly.inputs.Align.RIGHT) - .appendField(argName, 'ARGNAME' + i); - } - if (this.mrcParameters[i].type) { - argInput.setCheck(this.mrcParameters[i].type); - } - } - // Remove deleted inputs. - for (let i = this.mrcParameters.length; this.getInput('ARG' + i); i++) { - this.removeInput('ARG' + i); + this.appendValueInput(INPUT_ARG_PREFIX + i) + .setAlign(Blockly.inputs.Align.RIGHT) + .appendField('', FIELD_COMPONENT_NAME_PREFIX + i) + .appendField('', FIELD_ARG_NAME_PREFIX + i); } }, mrcNameFieldValidator(this: MechanismBlock, nameField: Blockly.FieldTextInput, name: string): string { @@ -293,7 +280,7 @@ const MECHANISM = { if (foundMechanism) { // Here we need all the components (regular and private) from the mechanism because we need - // to create port parameters for all the components. + // to create parameters for all the components. const components = editor.getAllComponentsFromMechanism(foundMechanism); // If the mechanism class name has changed, update this blcok. @@ -310,46 +297,56 @@ const MECHANISM = { const oldConnectedBlocks: (Blockly.Block | null)[] = []; for (let i = 0; i < this.mrcParameters.length; i++) { oldParameters[i] = this.mrcParameters[i]; - const argInput = this.getInput('ARG' + i); - if (argInput && argInput.connection && argInput.connection.targetBlock()) { - oldConnectedBlocks[i] = argInput.connection.targetBlock(); - } else { - oldConnectedBlocks[i] = null; + oldConnectedBlocks[i] = null; + const argInput = this.getInput(INPUT_ARG_PREFIX + i); + if (argInput) { + argInput.setCheck(null); + if (argInput.connection && argInput.connection.targetBlock()) { + oldConnectedBlocks[i] = argInput.connection.targetBlock(); + } } } // Regenerate mrc_parameters and create new inputs if necessary. + const foundOldParameter: boolean[] = []; this.mrcParameters = []; let parametersIndex = 0; components.forEach(component => { - let componentPortsIndex = 0; - for (const port in component.ports) { + let componentArgsIndex = 0; + component.args.forEach((componentArg) => { + const argName = componentArg.name; this.mrcParameters.push({ - name: port, - type: component.ports[port], + name: argName, + type: componentArg.type, + defaultValue: componentArg.defaultValue, componentId: component.componentId, - componentPortsIndex, + componentName: component.name, + componentArgsIndex, }); - let argInput = this.getInput('ARG' + parametersIndex); - const argField = this.getField('ARGNAME' + parametersIndex); - if (argInput && argField) { - argField.setValue(port); + let argInput = this.getInput(INPUT_ARG_PREFIX + parametersIndex); + if (argInput) { + // Update field values for component name and parameter name + this.setFieldValue(component.name, FIELD_COMPONENT_NAME_PREFIX + parametersIndex); + this.setFieldValue(argName, FIELD_ARG_NAME_PREFIX + parametersIndex); } else { // Add new input. - argInput = this.appendValueInput('ARG' + parametersIndex) + argInput = this.appendValueInput(INPUT_ARG_PREFIX + parametersIndex) .setAlign(Blockly.inputs.Align.RIGHT) - .appendField(port, 'ARGNAME' + parametersIndex); + .appendField(component.name, FIELD_COMPONENT_NAME_PREFIX + parametersIndex) + .appendField(argName, FIELD_ARG_NAME_PREFIX + parametersIndex); } // Look in oldParameters to find the matching parameter. let foundOldParameterIndex = -1; for (let j = 0; j < oldParameters.length; j++) { if (oldParameters[j].componentId === this.mrcParameters[parametersIndex].componentId && - oldParameters[j].componentPortsIndex === this.mrcParameters[parametersIndex].componentPortsIndex) { + oldParameters[j].componentArgsIndex === this.mrcParameters[parametersIndex].componentArgsIndex) { foundOldParameterIndex = j; break; } } + foundOldParameter.push((foundOldParameterIndex !== -1)); if (foundOldParameterIndex !== -1) { + foundOldParameter[parametersIndex] = true; if (foundOldParameterIndex === parametersIndex) { // The old connected block is already connected to this input. oldConnectedBlocks[foundOldParameterIndex] = null; @@ -361,17 +358,22 @@ const MECHANISM = { oldConnectedBlocks[foundOldParameterIndex] = null; } } + } else { + // Disconnect the old connected block. + if (argInput.connection && argInput.connection.targetBlock()) { + argInput.connection.disconnect(); + } } - argInput.setCheck(this.mrcParameters[parametersIndex].type); + argInput.setCheck(getAllowedTypesForSetCheck(this.mrcParameters[parametersIndex].type)); - componentPortsIndex++; + componentArgsIndex++; parametersIndex++; - } + }); }); - // Remove deleted inputs. - for (let i = this.mrcParameters.length; this.getInput('ARG' + i); i++) { - this.removeInput('ARG' + i); + // Remove extra inputs. + for (let i = this.mrcParameters.length; this.getInput(INPUT_ARG_PREFIX + i); i++) { + this.removeInput(INPUT_ARG_PREFIX + i); } // Remove old blocks that are no longer connected to input sockets. @@ -384,28 +386,40 @@ const MECHANISM = { } } - // Add port blocks to any empty inputs. + // Add blocks to inputs for new parameters. for (let i = 0; i < this.mrcParameters.length; i++) { - let argInput = this.getInput('ARG' + i); - if (argInput && argInput.connection && !argInput.connection.targetBlock()) { - // The input is empty. Create a port block and connect it to the input. - const portBlockState = createPort(this.mrcParameters[i].type).block; - const portBlock = this.workspace.newBlock(portBlockState.type) as Blockly.BlockSvg; - if (portBlockState.extraState && portBlock.loadExtraState) { - portBlock.loadExtraState(portBlockState.extraState); + if (foundOldParameter[i]) { + continue; + } + let defaultValue: string; + if (this.mrcParameters[i].defaultValue) { + defaultValue = this.mrcParameters[i].defaultValue as string; + } else { + defaultValue = ''; + } + const value = valueForComponentArgInput(this.mrcParameters[i].type, defaultValue); + if (value) { + // Connect the new block to the input. + const newBlockState = value.block; + const newBlock = this.workspace.newBlock(newBlockState.type) as Blockly.BlockSvg; + if (newBlockState.extraState && newBlock.loadExtraState) { + newBlock.loadExtraState(newBlockState.extraState); } - if (portBlockState.fields) { - const keys = Object.keys(portBlockState.fields); + if (newBlockState.fields) { + const keys = Object.keys(newBlockState.fields); for (let i = 0; i < keys.length; i++) { const fieldName = keys[i]; - const field = portBlock.getField(fieldName); + const field = newBlock.getField(fieldName); if (field) { - field.loadState(portBlockState.fields[fieldName]); + field.loadState(newBlockState.fields[fieldName]); } } } - portBlock.initSvg(); - argInput.connection.connect(portBlock.outputConnection); + newBlock.initSvg(); + const argInput = this.getInput(INPUT_ARG_PREFIX + i); + if (argInput && argInput.connection) { + argInput.connection.connect(newBlock.outputConnection); + } } } } else { @@ -455,11 +469,32 @@ export const pythonFromBlock = function ( const mechanismType = block.mrcImportModule + '.' + block.getFieldValue(FIELD_TYPE); let code = 'self.' + mechanismName + ' = ' + mechanismType + '(\n'; + let previousComponentId: string | undefined = undefined; for (let i = 0; i < block.mrcParameters.length; i++) { - // Each parameter is a tuple. - code += generator.INDENT + block.mrcParameters[i].name + ' = (\n'; - code += generator.prefixLines(generator.valueToCode(block, 'ARG' + i, Order.NONE), generator.INDENT.repeat(2)); - code += generator.INDENT + '),\n'; + // We pass a tuple of parameters for each component in the mechanism. + if (block.mrcParameters[i].componentId !== previousComponentId) { + const componentName = block.mrcParameters[i].componentName; + if (componentName) { + const argName = getMechanismInitArgName(componentName); + code += generator.INDENT + argName + ' = (\n'; + } + } + + let argCode = generator.valueToCode(block, INPUT_ARG_PREFIX + i, Order.NONE); + // mrc_port blocks generate python code where each port parameter is followed by a comma, a + // comment, and a newline. But other blocks don't do that. + if (!isPortType(block.mrcParameters[i].type)) { + argCode += ', # ' + block.mrcParameters[i].name + '\n'; + } + code += generator.prefixLines(argCode, generator.INDENT.repeat(2)); + + const nextComponentId = (i + 1 < block.mrcParameters.length) + ? block.mrcParameters[i + 1].componentId + : ''; + if (block.mrcParameters[i].componentId !== nextComponentId) { + code += generator.INDENT + '),\n'; + } + previousComponentId = block.mrcParameters[i].componentId; } code += ')\n'; code += 'self.mechanisms.append(self.' + mechanismName + ')\n'; @@ -476,25 +511,37 @@ export function createMechanismBlock( importModule: snakeCaseName, parameters: [], }; + const fields: {[key: string]: any} = {}; + fields[FIELD_NAME] = mechanismName; + fields[FIELD_TYPE] = mechanism.className; const inputs: {[key: string]: any} = {}; let i = 0; components.forEach(component => { - let componentPortsIndex = 0; - for (const port in component.ports) { - const parameterType = component.ports[port]; + let componentArgsIndex = 0; + component.args.forEach((componentArg) => { extraState.parameters?.push({ - name: port, - type: parameterType, + name: componentArg.name, + type: componentArg.type, + defaultValue: componentArg.defaultValue, componentId: component.componentId, - componentPortsIndex, + componentName: component.name, + componentArgsIndex, }); - inputs['ARG' + i] = createPort(parameterType); - componentPortsIndex++; + fields[FIELD_COMPONENT_NAME_PREFIX + i] = component.name; + fields[FIELD_ARG_NAME_PREFIX + i] = componentArg.name; + let defaultValue: string; + if (componentArg.defaultValue) { + defaultValue = componentArg.defaultValue as string; + } else { + defaultValue = ''; + } + const input = valueForComponentArgInput(componentArg.type, defaultValue); + if (input) { + inputs[INPUT_ARG_PREFIX + i] = input; + } + componentArgsIndex++; i++; - } + }); }); - const fields: {[key: string]: any} = {}; - fields[FIELD_NAME] = mechanismName; - fields[FIELD_TYPE] = mechanism.className; return new toolboxItems.Block(BLOCK_NAME, extraState, fields, inputs); } diff --git a/src/blocks/mrc_mechanism_component_holder.ts b/src/blocks/mrc_mechanism_component_holder.ts index f8fb6828..44bc8b85 100644 --- a/src/blocks/mrc_mechanism_component_holder.ts +++ b/src/blocks/mrc_mechanism_component_holder.ts @@ -350,9 +350,9 @@ function pythonFromBlockInRobot(block: MechanismComponentHolderBlock, generator: function pythonFromBlockInMechanism(block: MechanismComponentHolderBlock, generator: ExtendedPythonGenerator) { let code = 'def define_hardware(self'; - const ports: string[] = generator.getComponentPortParameters(); - if (ports.length) { - code += ', ' + ports.join(', '); + const mechanismInitArgNames: string[] = generator.getMechanismInitArgNames(); + if (mechanismInitArgNames.length) { + code += ', ' + mechanismInitArgNames.join(', '); } code += '):\n'; @@ -420,36 +420,31 @@ export function hasAnyComponents(workspace: Blockly.Workspace): boolean { } /** - * Collects the ports for components plugged into the mrc_mechanism_component_holder block. + * Collects the args for the mechanism's constructor and define_hardware method. */ -export function getComponentPorts(workspace: Blockly.Workspace, ports: {[key: string]: string}): void { +export function getMechanismInitArgNames(workspace: Blockly.Workspace, mechanismInitArgNames: string[]): void { workspace.getBlocksByType(BLOCK_NAME).forEach( block => { + const inputConnections: Blockly.Connection[] = []; const componentsInput = block.getInput(INPUT_COMPONENTS); if (componentsInput && componentsInput.connection) { - // Walk through all connected component blocks. - let componentBlock = componentsInput.connection.targetBlock(); - while (componentBlock) { - if (componentBlock.type === MRC_COMPONENT_NAME && componentBlock.isEnabled()) { - (componentBlock as ComponentBlock).getComponentPorts(ports); - } - // Move to the next block in the chain - componentBlock = componentBlock.getNextBlock(); - } + inputConnections.push(componentsInput.connection); } - - // Also include private components for port collection const privateComponentsInput = block.getInput(INPUT_PRIVATE_COMPONENTS); if (privateComponentsInput && privateComponentsInput.connection) { - // Walk through all connected private component blocks. - let componentBlock = privateComponentsInput.connection.targetBlock(); + inputConnections.push(privateComponentsInput.connection); + } + + // Walk through all connected component blocks. + inputConnections.forEach((inputConnection) => { + let componentBlock = inputConnection.targetBlock(); while (componentBlock) { if (componentBlock.type === MRC_COMPONENT_NAME && componentBlock.isEnabled()) { - (componentBlock as ComponentBlock).getComponentPorts(ports); + mechanismInitArgNames.push((componentBlock as ComponentBlock).getMechanismInitArgName()); } // Move to the next block in the chain componentBlock = componentBlock.getNextBlock(); } - } + }); }); } diff --git a/src/blocks/mrc_none.ts b/src/blocks/mrc_none.ts index 7ec05135..fc93744a 100644 --- a/src/blocks/mrc_none.ts +++ b/src/blocks/mrc_none.ts @@ -53,3 +53,11 @@ export function createNoneShadowValue(): any { }, } } + +export function createNoneBlock(): any { + return { + 'block': { + 'type': 'mrc_none', + }, + } +} diff --git a/src/blocks/mrc_port.ts b/src/blocks/mrc_port.ts index 84fb4243..bc9f7502 100644 --- a/src/blocks/mrc_port.ts +++ b/src/blocks/mrc_port.ts @@ -26,7 +26,13 @@ import { MRC_STYLE_PORTS } from '../themes/styles' import { createFieldNonEditableText } from '../fields/FieldNonEditableText'; import { ExtendedPythonGenerator } from '../editor/extended_python_generator'; import { createFieldNumberDropdown } from '../fields/field_number_dropdown'; -import * as storageModuleContent from '../storage/module_content'; +import { + PortType, + portTypeArrayToString, + portTypeToString, + stringToPortType, + stringToPortTypeArray, + upgradePortTypeString } from './utils/python_json_types'; export const BLOCK_NAME = 'mrc_port'; export const OUTPUT_NAME = 'mrc_port'; @@ -46,7 +52,7 @@ const VISIBLE_PORT_LABEL_SERVO = 'servo'; export type PortBlock = Blockly.Block & PortMixin; interface PortMixin extends PortMixinType { - mrcPortTypes: storageModuleContent.PortType[], + mrcPortTypes: PortType[], } type PortMixinType = typeof PORT; @@ -75,7 +81,7 @@ const PORT = { */ saveExtraState: function (this: PortBlock): PortExtraState { const state: PortExtraState = { - portTypes: this.mrcPortTypes.map((portType) => storageModuleContent.portTypeToString(portType)), + portTypes: this.mrcPortTypes.map((portType) => portTypeToString(portType)), }; return state; }, @@ -86,13 +92,14 @@ const PORT = { loadExtraState: function (this: PortBlock, state: PortExtraState): void { if (state.portTypes) { state.portTypes.forEach((s) => { - const portType = storageModuleContent.stringToPortType(s); + const portType = stringToPortType(s); if (portType) { this.mrcPortTypes.push(portType); } }); } else if (state.portType) { - this.mrcPortTypes.push(...storageModuleContent.stringToPortTypeArray(state.portType)); + const upgradedPortType = upgradePortTypeString(state.portType); + this.mrcPortTypes.push(...stringToPortTypeArray(upgradedPortType)); } // Now create one input for each element of this.mrcPortTypes. @@ -110,7 +117,7 @@ const PORT = { this.setOutput(true, this.makeOutputCheck()); }, makeOutputCheck(this: PortBlock): string { - return storageModuleContent.portTypeArrayToString(this.mrcPortTypes) + return portTypeArrayToString(this.mrcPortTypes) }, } @@ -130,25 +137,25 @@ export const pythonFromBlock = function ( return [code, Order.NONE]; } -function createFieldDropdownForPortNumber(portType: storageModuleContent.PortType): Blockly.Field { +function createFieldDropdownForPortNumber(portType: PortType): Blockly.Field { switch (portType) { - case storageModuleContent.PortType.SYSTEMCORE_CAN_PORT: + case PortType.SYSTEMCORE_CAN_PORT: return createFieldNumberDropdown(0, 4); - case storageModuleContent.PortType.SYSTEMCORE_SMART_IO_PORT: + case PortType.SYSTEMCORE_SMART_IO_PORT: return createFieldNumberDropdown(0, 5); - case storageModuleContent.PortType.SYSTEMCORE_I2C_PORT: + case PortType.SYSTEMCORE_I2C_PORT: return createFieldNumberDropdown(0, 1); - case storageModuleContent.PortType.SYSTEMCORE_USB_PORT: + case PortType.SYSTEMCORE_USB_PORT: return createFieldNumberDropdown(0, 3); - case storageModuleContent.PortType.EXPANSION_HUB_MOTOR_PORT: + case PortType.EXPANSION_HUB_MOTOR_PORT: return createFieldNumberDropdown(0, 3); - case storageModuleContent.PortType.EXPANSION_HUB_SERVO_PORT: + case PortType.EXPANSION_HUB_SERVO_PORT: return createFieldNumberDropdown(0, 5); - case storageModuleContent.PortType.MOTIONCORE_DEVICE_PORT: + case PortType.MOTIONCORE_DEVICE_PORT: return createFieldNumberDropdown(0, 19); - case storageModuleContent.PortType.MOTIONCORE_ENCODER_PORT: + case PortType.MOTIONCORE_ENCODER_PORT: return createFieldNumberDropdown(0, 3); - case storageModuleContent.PortType.USB_HUB_PORT: + case PortType.USB_HUB_PORT: // TODO: How many ports are on a USB hub? Some have 2, some have 4. Should they be numbered 0..N-1 or 1..N? return createFieldNumberDropdown(0, 3); default: @@ -164,7 +171,7 @@ function createFieldDropdownForPortNumber(portType: storageModuleContent.PortTyp * matches one of the PortType enum values. */ export function createPort(portTypeString: string): any { - const portTypes = storageModuleContent.stringToPortTypeArray(portTypeString); + const portTypes = stringToPortTypeArray(portTypeString); // Based on the port type, specify the appropriate fields. const fields: {[key: string]: any} = {}; @@ -178,7 +185,7 @@ export function createPort(portTypeString: string): any { } } const extraState: PortExtraState = { - portTypes: portTypes.map((portType) => storageModuleContent.portTypeToString(portType)), + portTypes: portTypes.map((portType) => portTypeToString(portType)), }; return { block: { @@ -189,25 +196,25 @@ export function createPort(portTypeString: string): any { }; } -function getLabelForPort(portType: storageModuleContent.PortType): string { +function getLabelForPort(portType: PortType): string { switch (portType) { - case storageModuleContent.PortType.SYSTEMCORE_CAN_PORT: + case PortType.SYSTEMCORE_CAN_PORT: return VISIBLE_PORT_LABEL_CAN; - case storageModuleContent.PortType.SYSTEMCORE_SMART_IO_PORT: + case PortType.SYSTEMCORE_SMART_IO_PORT: return VISIBLE_PORT_LABEL_SMART_IO; - case storageModuleContent.PortType.SYSTEMCORE_I2C_PORT: + case PortType.SYSTEMCORE_I2C_PORT: return VISIBLE_PORT_LABEL_I2C; - case storageModuleContent.PortType.SYSTEMCORE_USB_PORT: + case PortType.SYSTEMCORE_USB_PORT: return VISIBLE_PORT_LABEL_USB; - case storageModuleContent.PortType.EXPANSION_HUB_MOTOR_PORT: + case PortType.EXPANSION_HUB_MOTOR_PORT: return VISIBLE_PORT_LABEL_MOTOR; - case storageModuleContent.PortType.EXPANSION_HUB_SERVO_PORT: + case PortType.EXPANSION_HUB_SERVO_PORT: return VISIBLE_PORT_LABEL_SERVO; - case storageModuleContent.PortType.MOTIONCORE_DEVICE_PORT: + case PortType.MOTIONCORE_DEVICE_PORT: return VISIBLE_PORT_LABEL_MOTIONCORE; - case storageModuleContent.PortType.MOTIONCORE_ENCODER_PORT: + case PortType.MOTIONCORE_ENCODER_PORT: return VISIBLE_PORT_LABEL_ENCODER; - case storageModuleContent.PortType.USB_HUB_PORT: + case PortType.USB_HUB_PORT: return VISIBLE_PORT_LABEL_USB_HUB; } console.error('Unknown port type ' + portType); diff --git a/src/blocks/utils/generated/robotpy_data.json b/src/blocks/utils/generated/robotpy_data.json index 713639a8..31150e9d 100644 --- a/src/blocks/utils/generated/robotpy_data.json +++ b/src/blocks/utils/generated/robotpy_data.json @@ -329,7 +329,7 @@ { "defaultValue": "29", "name": "deviceAddress", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.ADXL345_I2C", @@ -338,7 +338,29 @@ "tooltip": "Constructs the ADXL345 Accelerometer over I2C.\n\n:param port: The I2C port the accelerometer is attached to\n:param range: The range (+ or -) that the accelerometer will measure\n:param deviceAddress: The I2C address of the accelerometer (0x1D or 0x53)" } ], - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.ADXL345_I2C.Axes", + "enumValues": [ + "kAxis_X", + "kAxis_Y", + "kAxis_Z" + ], + "moduleName": "wpilib", + "tooltip": "Accelerometer axes.\n\nMembers:\n\n kAxis_X : X axis.\n\n kAxis_Y : Y axis.\n\n kAxis_Z : Z axis." + }, + { + "enumClassName": "wpilib.ADXL345_I2C.Range", + "enumValues": [ + "kRange_16G", + "kRange_2G", + "kRange_4G", + "kRange_8G" + ], + "moduleName": "wpilib", + "tooltip": "Accelerometer range.\n\nMembers:\n\n kRange_2G : 2 Gs max.\n\n kRange_4G : 4 Gs max.\n\n kRange_8G : 8 Gs max.\n\n kRange_16G : 16 Gs max." + } + ], "instanceMethods": [ { "args": [ @@ -517,146 +539,46 @@ "staticMethods": [] }, { - "className": "wpilib.ADXL345_I2C.Axes", - "classVariables": [ - { - "name": "kAxis_X", - "tooltip": "", - "type": "wpilib.ADXL345_I2C.Axes", - "writable": false - }, - { - "name": "kAxis_Y", - "tooltip": "", - "type": "wpilib.ADXL345_I2C.Axes", - "writable": false - }, - { - "name": "kAxis_Z", - "tooltip": "", - "type": "wpilib.ADXL345_I2C.Axes", - "writable": false - } - ], + "className": "wpilib.AddressableLED", + "classVariables": [], "constructors": [ { "args": [ { "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" + "name": "channel", + "type": "int" } ], - "declaringClassName": "wpilib.ADXL345_I2C.Axes", - "functionName": "__init__", - "returnType": "wpilib.ADXL345_I2C.Axes", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, - { - "className": "wpilib.ADXL345_I2C.Range", - "classVariables": [ - { - "name": "kRange_16G", - "tooltip": "", - "type": "wpilib.ADXL345_I2C.Range", - "writable": false - }, - { - "name": "kRange_2G", - "tooltip": "", - "type": "wpilib.ADXL345_I2C.Range", - "writable": false - }, - { - "name": "kRange_4G", - "tooltip": "", - "type": "wpilib.ADXL345_I2C.Range", - "writable": false - }, - { - "name": "kRange_8G", - "tooltip": "", - "type": "wpilib.ADXL345_I2C.Range", - "writable": false - } - ], - "constructors": [ - { - "args": [ + "componentArgs": [ { "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" + "name": "smart_io_port", + "type": "SYSTEMCORE_SMART_IO_PORT" } ], - "declaringClassName": "wpilib.ADXL345_I2C.Range", + "declaringClassName": "wpilib.AddressableLED", "functionName": "__init__", - "returnType": "wpilib.ADXL345_I2C.Range", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false + "isComponent": true, + "returnType": "wpilib.AddressableLED", + "tooltip": "Constructs a new driver for a specific channel.\n\n:param channel: the output channel to use" } ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, - { - "className": "wpilib.AddressableLED", - "classVariables": [], - "constructors": [ + "enums": [ { - "args": [ - { - "defaultValue": "", - "name": "channel", - "type": "typing.SupportsInt" - } + "enumClassName": "wpilib.AddressableLED.ColorOrder", + "enumValues": [ + "kBGR", + "kBRG", + "kGBR", + "kGRB", + "kRBG", + "kRGB" ], - "componentPortName": "smart_io_port", - "componentPortType": "SYSTEMCORE_SMART_IO_PORT", - "declaringClassName": "wpilib.AddressableLED", - "functionName": "__init__", - "returnType": "wpilib.AddressableLED", - "tooltip": "Constructs a new driver for a specific channel.\n\n:param channel: the output channel to use" + "moduleName": "wpilib", + "tooltip": "Order that color data is sent over the wire.\n\nMembers:\n\n kRGB : ///< RGB order\n\n kRBG : ///< RBG order\n\n kBGR : ///< BGR order\n\n kBRG : ///< BRG order\n\n kGBR : ///< GBR order\n\n kGRB : ///< GRB order. This is the default order." } ], - "enums": [], "instanceMethods": [ { "args": [ @@ -730,7 +652,7 @@ { "defaultValue": "", "name": "length", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.AddressableLED", @@ -748,7 +670,7 @@ { "defaultValue": "", "name": "start", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.AddressableLED", @@ -766,7 +688,7 @@ { "defaultValue": "", "name": "start", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -786,81 +708,6 @@ } ] }, - { - "className": "wpilib.AddressableLED.ColorOrder", - "classVariables": [ - { - "name": "kBGR", - "tooltip": "", - "type": "wpilib.AddressableLED.ColorOrder", - "writable": false - }, - { - "name": "kBRG", - "tooltip": "", - "type": "wpilib.AddressableLED.ColorOrder", - "writable": false - }, - { - "name": "kGBR", - "tooltip": "", - "type": "wpilib.AddressableLED.ColorOrder", - "writable": false - }, - { - "name": "kGRB", - "tooltip": "", - "type": "wpilib.AddressableLED.ColorOrder", - "writable": false - }, - { - "name": "kRBG", - "tooltip": "", - "type": "wpilib.AddressableLED.ColorOrder", - "writable": false - }, - { - "name": "kRGB", - "tooltip": "", - "type": "wpilib.AddressableLED.ColorOrder", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.AddressableLED.ColorOrder", - "functionName": "__init__", - "returnType": "wpilib.AddressableLED.ColorOrder", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, { "className": "wpilib.AddressableLED.LEDData", "classVariables": [], @@ -877,17 +724,17 @@ { "defaultValue": "", "name": "r", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "g", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "b", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.AddressableLED.LEDData", @@ -908,17 +755,17 @@ { "defaultValue": "", "name": "h", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "s", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "v", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.AddressableLED.LEDData", @@ -972,17 +819,17 @@ { "defaultValue": "", "name": "r", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "g", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "b", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.AddressableLED.LEDData", @@ -1061,7 +908,18 @@ "tooltip": "Creates a new alert. If this is the first to be instantiated in its group,\nthe appropriate entries will be added to NetworkTables.\n\n:param group: Group identifier, used as the entry name in NetworkTables.\n:param text: Text to be displayed when the alert is active.\n:param type: Alert urgency level." } ], - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.Alert.AlertType", + "enumValues": [ + "kError", + "kInfo", + "kWarning" + ], + "moduleName": "wpilib", + "tooltip": "Represents an alert's level of urgency.\n\nMembers:\n\n kError : High priority alert - displayed first on the dashboard with a red \"X\"\nsymbol. Use this type for problems which will seriously affect the\nrobot's functionality and thus require immediate attention.\n\n kWarning : Medium priority alert - displayed second on the dashboard with a yellow\n\"!\" symbol. Use this type for problems which could affect the robot's\nfunctionality but do not necessarily require immediate attention.\n\n kInfo : Low priority alert - displayed last on the dashboard with a green \"i\"\nsymbol. Use this type for problems which are unlikely to affect the\nrobot's functionality, or any other alerts which do not fall under the\nother categories." + } + ], "instanceMethods": [ { "args": [ @@ -1157,63 +1015,6 @@ "moduleName": "wpilib", "staticMethods": [] }, - { - "className": "wpilib.Alert.AlertType", - "classVariables": [ - { - "name": "kError", - "tooltip": "", - "type": "wpilib.Alert.AlertType", - "writable": false - }, - { - "name": "kInfo", - "tooltip": "", - "type": "wpilib.Alert.AlertType", - "writable": false - }, - { - "name": "kWarning", - "tooltip": "", - "type": "wpilib.Alert.AlertType", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.Alert.AlertType", - "functionName": "__init__", - "returnType": "wpilib.Alert.AlertType", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, { "className": "wpilib.AnalogAccelerometer", "classVariables": [], @@ -1223,7 +1024,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.AnalogAccelerometer", @@ -1288,7 +1089,7 @@ { "defaultValue": "", "name": "sensitivity", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.AnalogAccelerometer", @@ -1306,7 +1107,7 @@ { "defaultValue": "", "name": "zero", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.AnalogAccelerometer", @@ -1329,7 +1130,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.AnalogEncoder", @@ -1355,21 +1156,39 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "fullRange", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "expectedZero", - "type": "typing.SupportsFloat" + "type": "float" + } + ], + "componentArgs": [ + { + "defaultValue": "", + "name": "smart_io_port", + "type": "SYSTEMCORE_SMART_IO_PORT" + }, + { + "defaultValue": "1.0", + "name": "full_range", + "type": "float" + }, + { + "defaultValue": "0.0", + "name": "expected_zero", + "type": "float" } ], "declaringClassName": "wpilib.AnalogEncoder", "functionName": "__init__", + "isComponent": true, "returnType": "wpilib.AnalogEncoder", "tooltip": "Construct a new AnalogEncoder attached to a specific AnalogIn channel.\n\n:param channel: the analog input channel to attach to\n:param fullRange: the value to report at maximum travel\n:param expectedZero: the reading where you would expect a 0 from get()" }, @@ -1383,12 +1202,12 @@ { "defaultValue": "", "name": "fullRange", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "expectedZero", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.AnalogEncoder", @@ -1471,12 +1290,12 @@ { "defaultValue": "", "name": "min", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "max", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.AnalogEncoder", @@ -1486,7 +1305,7 @@ } ], "instanceVariables": [], - "isComponent": false, + "isComponent": true, "moduleName": "wpilib", "staticMethods": [] }, @@ -1499,7 +1318,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.AnalogGyro", @@ -1525,17 +1344,17 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "center", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "offset", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.AnalogGyro", @@ -1553,12 +1372,12 @@ { "defaultValue": "", "name": "center", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "offset", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.AnalogGyro", @@ -1714,7 +1533,7 @@ { "defaultValue": "", "name": "volts", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.AnalogGyro", @@ -1732,7 +1551,7 @@ { "defaultValue": "", "name": "voltsPerDegreePerSecond", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.AnalogGyro", @@ -1755,7 +1574,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.AnalogInput", @@ -1911,7 +1730,7 @@ { "defaultValue": "", "name": "bits", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.AnalogInput", @@ -1929,7 +1748,7 @@ { "defaultValue": "", "name": "bits", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.AnalogInput", @@ -1947,7 +1766,7 @@ { "defaultValue": "", "name": "device", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.AnalogInput", @@ -1972,7 +1791,7 @@ { "defaultValue": "", "name": "samplesPerSecond", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.AnalogInput", @@ -1991,21 +1810,39 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "1.0", "name": "fullRange", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "0.0", "name": "offset", - "type": "typing.SupportsFloat" + "type": "float" + } + ], + "componentArgs": [ + { + "defaultValue": "", + "name": "smart_io_port", + "type": "SYSTEMCORE_SMART_IO_PORT" + }, + { + "defaultValue": "1.0", + "name": "full_range", + "type": "float" + }, + { + "defaultValue": "0.0", + "name": "offset", + "type": "float" } ], "declaringClassName": "wpilib.AnalogPotentiometer", "functionName": "__init__", + "isComponent": true, "returnType": "wpilib.AnalogPotentiometer", "tooltip": "Construct an Analog Potentiometer object from a channel number.\n\nUse the fullRange and offset values so that the output produces meaningful\nvalues. I.E: you have a 270 degree potentiometer and you want the output to\nbe degrees with the halfway point as 0 degrees. The fullRange value is\n270.0 degrees and the offset is -135.0 since the halfway point after\nscaling is 135 degrees.\n\nThis will calculate the result from the fullRange times the fraction of the\nsupply voltage, plus the offset.\n\n:param channel: The Analog Input channel number on the roboRIO the\n potentiometer is plugged into. 0-3 are on-board and 4-7\n are on the MXP port.\n:param fullRange: The value (in desired units) representing the full\n 0-3.3V range of the input.\n:param offset: The value (in desired units) representing the\n angular output at 0V." }, @@ -2019,12 +1856,12 @@ { "defaultValue": "1.0", "name": "fullRange", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "0.0", "name": "offset", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.AnalogPotentiometer", @@ -2068,7 +1905,7 @@ } ], "instanceVariables": [], - "isComponent": false, + "isComponent": true, "moduleName": "wpilib", "staticMethods": [] }, @@ -2094,12 +1931,12 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "deviceId", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.CAN", @@ -2112,22 +1949,22 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "deviceId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "deviceManufacturer", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "deviceType", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.CAN", @@ -2148,7 +1985,7 @@ { "defaultValue": "", "name": "apiId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -2171,7 +2008,7 @@ { "defaultValue": "", "name": "apiId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -2194,12 +2031,12 @@ { "defaultValue": "", "name": "apiId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "timeoutMs", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -2222,7 +2059,7 @@ { "defaultValue": "", "name": "apiId", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.CAN", @@ -2240,7 +2077,7 @@ { "defaultValue": "", "name": "apiId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -2263,7 +2100,7 @@ { "defaultValue": "", "name": "apiId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -2286,7 +2123,7 @@ { "defaultValue": "", "name": "apiId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -2296,7 +2133,7 @@ { "defaultValue": "", "name": "repeatMs", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.CAN", @@ -2314,7 +2151,7 @@ { "defaultValue": "", "name": "apiId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -2324,7 +2161,7 @@ { "defaultValue": "", "name": "repeatMs", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.CAN", @@ -2342,7 +2179,7 @@ { "defaultValue": "", "name": "apiId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -2365,7 +2202,7 @@ { "defaultValue": "", "name": "apiId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -3360,17 +3197,17 @@ { "defaultValue": "", "name": "red", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "green", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "blue", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.Color", @@ -3383,17 +3220,17 @@ { "defaultValue": "", "name": "r", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "g", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "b", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Color", @@ -3459,17 +3296,17 @@ { "defaultValue": "", "name": "h", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "s", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "v", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Color", @@ -3495,17 +3332,17 @@ { "defaultValue": "", "name": "red", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "green", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "blue", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Color8Bit", @@ -3616,12 +3453,12 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -3639,7 +3476,7 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -3829,69 +3666,6 @@ "moduleName": "wpilib", "staticMethods": [] }, - { - "className": "wpilib.CompressorConfigType", - "classVariables": [ - { - "name": "Analog", - "tooltip": "", - "type": "wpilib.CompressorConfigType", - "writable": true - }, - { - "name": "Digital", - "tooltip": "", - "type": "wpilib.CompressorConfigType", - "writable": true - }, - { - "name": "Disabled", - "tooltip": "", - "type": "wpilib.CompressorConfigType", - "writable": true - }, - { - "name": "Hybrid", - "tooltip": "", - "type": "wpilib.CompressorConfigType", - "writable": true - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.CompressorConfigType", - "functionName": "__init__", - "returnType": "wpilib.CompressorConfigType", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, { "className": "wpilib.DMC60", "classVariables": [], @@ -3901,7 +3675,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DMC60", @@ -4119,7 +3893,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -4473,7 +4247,7 @@ { "defaultValue": "0.25", "name": "period", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.DataLogManager", @@ -4499,11 +4273,19 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" + } + ], + "componentArgs": [ + { + "defaultValue": "", + "name": "smart_io_port", + "type": "SYSTEMCORE_SMART_IO_PORT" } ], "declaringClassName": "wpilib.DigitalInput", "functionName": "__init__", + "isComponent": true, "returnType": "wpilib.DigitalInput", "tooltip": "Create an instance of a Digital Input class.\n\nCreates a digital input given a channel.\n\n:param channel: The DIO channel 0-9 are on-board, 10-25 are on the MXP port" } @@ -4564,7 +4346,7 @@ { "defaultValue": "", "name": "device", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DigitalInput", @@ -4574,7 +4356,7 @@ } ], "instanceVariables": [], - "isComponent": false, + "isComponent": true, "moduleName": "wpilib", "staticMethods": [] }, @@ -4587,7 +4369,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DigitalOutput", @@ -4621,7 +4403,7 @@ { "defaultValue": "", "name": "dutyCycle", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.DigitalOutput", @@ -4639,7 +4421,7 @@ { "defaultValue": "", "name": "initialDutyCycle", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.DigitalOutput", @@ -4750,7 +4532,7 @@ { "defaultValue": "", "name": "rate", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.DigitalOutput", @@ -4768,7 +4550,7 @@ { "defaultValue": "", "name": "device", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DigitalOutput", @@ -4786,7 +4568,7 @@ { "defaultValue": "", "name": "dutyCycle", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.DigitalOutput", @@ -4809,12 +4591,12 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -4824,12 +4606,12 @@ { "defaultValue": "", "name": "forwardChannel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "reverseChannel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DoubleSolenoid", @@ -4842,7 +4624,7 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -4852,12 +4634,12 @@ { "defaultValue": "", "name": "forwardChannel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "reverseChannel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DoubleSolenoid", @@ -4866,7 +4648,18 @@ "tooltip": "Constructs a double solenoid for a default module of a specific module\ntype.\n\n:param busId: The bus ID.\n:param moduleType: The module type to use.\n:param forwardChannel: The forward channel on the module to control.\n:param reverseChannel: The reverse channel on the module to control." } ], - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.DoubleSolenoid.Value", + "enumValues": [ + "kForward", + "kOff", + "kReverse" + ], + "moduleName": "wpilib", + "tooltip": "Possible values for a DoubleSolenoid.\n\nMembers:\n\n kOff : Off position.\n\n kForward : Forward position.\n\n kReverse : Reverse position." + } + ], "instanceMethods": [ { "args": [ @@ -4988,63 +4781,6 @@ "moduleName": "wpilib", "staticMethods": [] }, - { - "className": "wpilib.DoubleSolenoid.Value", - "classVariables": [ - { - "name": "kForward", - "tooltip": "", - "type": "wpilib.DoubleSolenoid.Value", - "writable": false - }, - { - "name": "kOff", - "tooltip": "", - "type": "wpilib.DoubleSolenoid.Value", - "writable": false - }, - { - "name": "kReverse", - "tooltip": "", - "type": "wpilib.DoubleSolenoid.Value", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.DoubleSolenoid.Value", - "functionName": "__init__", - "returnType": "wpilib.DoubleSolenoid.Value", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, { "className": "wpilib.DriverStation", "classVariables": [ @@ -5075,7 +4811,44 @@ "tooltip": "Initialize self. See help(type(self)) for accurate signature." } ], - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.DriverStation.Alliance", + "enumValues": [ + "kBlue", + "kRed" + ], + "moduleName": "wpilib", + "tooltip": "The robot alliance that the robot is a part of.\n\nMembers:\n\n kRed : Red alliance.\n\n kBlue : Blue alliance." + }, + { + "enumClassName": "wpilib.DriverStation.MatchType", + "enumValues": [ + "kElimination", + "kNone", + "kPractice", + "kQualification" + ], + "moduleName": "wpilib", + "tooltip": "The type of robot match that the robot is part of.\n\nMembers:\n\n kNone : None.\n\n kPractice : Practice.\n\n kQualification : Qualification.\n\n kElimination : Elimination." + }, + { + "enumClassName": "wpilib.DriverStation.POVDirection", + "enumValues": [ + "kCenter", + "kDown", + "kDownLeft", + "kDownRight", + "kLeft", + "kRight", + "kUp", + "kUpLeft", + "kUpRight" + ], + "moduleName": "wpilib", + "tooltip": "A controller POV direction.\n\nMembers:\n\n kCenter : POV center.\n\n kUp : POV up.\n\n kUpRight : POV up right.\n\n kRight : POV right.\n\n kDownRight : POV down right.\n\n kDown : POV down.\n\n kDownLeft : POV down left.\n\n kLeft : POV left.\n\n kUpLeft : POV up left." + } + ], "instanceMethods": [ { "args": [ @@ -5141,12 +4914,12 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5159,7 +4932,7 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5172,7 +4945,7 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5185,7 +4958,7 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5233,12 +5006,12 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5251,7 +5024,7 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5264,12 +5037,12 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5282,7 +5055,7 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5295,12 +5068,12 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5313,12 +5086,12 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5331,7 +5104,7 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5344,12 +5117,12 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5362,7 +5135,7 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5424,7 +5197,7 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5472,7 +5245,7 @@ { "defaultValue": "", "name": "handle", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5492,7 +5265,7 @@ { "defaultValue": "", "name": "handle", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DriverStation", @@ -5546,213 +5319,6 @@ } ] }, - { - "className": "wpilib.DriverStation.Alliance", - "classVariables": [ - { - "name": "kBlue", - "tooltip": "", - "type": "wpilib.DriverStation.Alliance", - "writable": false - }, - { - "name": "kRed", - "tooltip": "", - "type": "wpilib.DriverStation.Alliance", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.DriverStation.Alliance", - "functionName": "__init__", - "returnType": "wpilib.DriverStation.Alliance", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, - { - "className": "wpilib.DriverStation.MatchType", - "classVariables": [ - { - "name": "kElimination", - "tooltip": "", - "type": "wpilib.DriverStation.MatchType", - "writable": false - }, - { - "name": "kNone", - "tooltip": "", - "type": "wpilib.DriverStation.MatchType", - "writable": false - }, - { - "name": "kPractice", - "tooltip": "", - "type": "wpilib.DriverStation.MatchType", - "writable": false - }, - { - "name": "kQualification", - "tooltip": "", - "type": "wpilib.DriverStation.MatchType", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.DriverStation.MatchType", - "functionName": "__init__", - "returnType": "wpilib.DriverStation.MatchType", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, - { - "className": "wpilib.DriverStation.POVDirection", - "classVariables": [ - { - "name": "kCenter", - "tooltip": "", - "type": "wpilib.DriverStation.POVDirection", - "writable": false - }, - { - "name": "kDown", - "tooltip": "", - "type": "wpilib.DriverStation.POVDirection", - "writable": false - }, - { - "name": "kDownLeft", - "tooltip": "", - "type": "wpilib.DriverStation.POVDirection", - "writable": false - }, - { - "name": "kDownRight", - "tooltip": "", - "type": "wpilib.DriverStation.POVDirection", - "writable": false - }, - { - "name": "kLeft", - "tooltip": "", - "type": "wpilib.DriverStation.POVDirection", - "writable": false - }, - { - "name": "kRight", - "tooltip": "", - "type": "wpilib.DriverStation.POVDirection", - "writable": false - }, - { - "name": "kUp", - "tooltip": "", - "type": "wpilib.DriverStation.POVDirection", - "writable": false - }, - { - "name": "kUpLeft", - "tooltip": "", - "type": "wpilib.DriverStation.POVDirection", - "writable": false - }, - { - "name": "kUpRight", - "tooltip": "", - "type": "wpilib.DriverStation.POVDirection", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.DriverStation.POVDirection", - "functionName": "__init__", - "returnType": "wpilib.DriverStation.POVDirection", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, { "className": "wpilib.DutyCycle", "classVariables": [], @@ -5762,7 +5328,7 @@ { "defaultValue": "", "name": "source", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DutyCycle", @@ -5858,7 +5424,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.DutyCycleEncoder", @@ -5884,17 +5450,17 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "fullRange", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "expectedZero", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.DutyCycleEncoder", @@ -5912,12 +5478,12 @@ { "defaultValue": "", "name": "fullRange", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "expectedZero", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.DutyCycleEncoder", @@ -6044,12 +5610,12 @@ { "defaultValue": "", "name": "min", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "max", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.DutyCycleEncoder", @@ -6090,12 +5656,12 @@ { "defaultValue": "", "name": "aChannel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "bChannel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "False", @@ -6300,7 +5866,7 @@ { "defaultValue": "", "name": "distancePerPulse", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.Encoder", @@ -6336,7 +5902,7 @@ { "defaultValue": "", "name": "minRate", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.Encoder", @@ -6372,7 +5938,7 @@ { "defaultValue": "", "name": "samplesToAverage", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Encoder", @@ -6390,7 +5956,7 @@ { "defaultValue": "", "name": "device", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Encoder", @@ -6685,7 +6251,7 @@ { "defaultValue": "", "name": "deviceAddress", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.I2C", @@ -6694,7 +6260,17 @@ "tooltip": "Constructor.\n\n:param port: The I2C port to which the device is connected.\n:param deviceAddress: The address of the device on the I2C bus." } ], - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.I2C.Port", + "enumValues": [ + "kPort0", + "kPort1" + ], + "moduleName": "wpilib", + "tooltip": "I2C connection ports.\n\nMembers:\n\n kPort0 : I2C Port 0.\n\n kPort1 : I2C Port 1." + } + ], "instanceMethods": [ { "args": [ @@ -6745,7 +6321,7 @@ { "defaultValue": "", "name": "registerAddress", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -6809,7 +6385,7 @@ { "defaultValue": "", "name": "registerAddress", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -6832,12 +6408,12 @@ { "defaultValue": "", "name": "registerAddress", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "data", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.I2C", @@ -6869,57 +6445,6 @@ "moduleName": "wpilib", "staticMethods": [] }, - { - "className": "wpilib.I2C.Port", - "classVariables": [ - { - "name": "kPort0", - "tooltip": "", - "type": "wpilib.I2C.Port", - "writable": false - }, - { - "name": "kPort1", - "tooltip": "", - "type": "wpilib.I2C.Port", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.I2C.Port", - "functionName": "__init__", - "returnType": "wpilib.I2C.Port", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, { "className": "wpilib.IterativeRobotBase", "classVariables": [], @@ -7372,7 +6897,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Jaguar", @@ -7590,7 +7115,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -7737,7 +7262,7 @@ { "defaultValue": "", "name": "port", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Joystick", @@ -7746,7 +7271,29 @@ "tooltip": "Construct an instance of a joystick.\n\nThe joystick index is the USB port on the Driver Station.\n\n:param port: The port on the Driver Station that the joystick is plugged\n into (0-5)." } ], - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.Joystick.AxisType", + "enumValues": [ + "kThrottleAxis", + "kTwistAxis", + "kXAxis", + "kYAxis", + "kZAxis" + ], + "moduleName": "wpilib", + "tooltip": "Represents an analog axis on a joystick.\n\nMembers:\n\n kXAxis : X axis.\n\n kYAxis : Y axis.\n\n kZAxis : Z axis.\n\n kTwistAxis : Twist axis.\n\n kThrottleAxis : Throttle axis." + }, + { + "enumClassName": "wpilib.Joystick.ButtonType", + "enumValues": [ + "kTopButton", + "kTriggerButton" + ], + "moduleName": "wpilib", + "tooltip": "Represents a digital button on a joystick.\n\nMembers:\n\n kTriggerButton : kTrigger.\n\n kTopButton : kTop." + } + ], "instanceMethods": [ { "args": [ @@ -7781,7 +7328,7 @@ { "defaultValue": "", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -7971,12 +7518,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "threshold", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -7999,12 +7546,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "threshold", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -8027,7 +7574,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -8063,7 +7610,7 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -8146,7 +7693,7 @@ { "defaultValue": "0", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -8190,7 +7737,7 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -8208,7 +7755,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -8226,7 +7773,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -8244,7 +7791,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -8496,7 +8043,7 @@ { "defaultValue": "", "name": "outputNumber", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -8519,7 +8066,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -8542,7 +8089,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -8560,7 +8107,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Joystick", @@ -8578,7 +8125,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Joystick", @@ -8596,7 +8143,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Joystick", @@ -8614,7 +8161,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Joystick", @@ -8632,7 +8179,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Joystick", @@ -8682,126 +8229,6 @@ "moduleName": "wpilib", "staticMethods": [] }, - { - "className": "wpilib.Joystick.AxisType", - "classVariables": [ - { - "name": "kThrottleAxis", - "tooltip": "", - "type": "wpilib.Joystick.AxisType", - "writable": false - }, - { - "name": "kTwistAxis", - "tooltip": "", - "type": "wpilib.Joystick.AxisType", - "writable": false - }, - { - "name": "kXAxis", - "tooltip": "", - "type": "wpilib.Joystick.AxisType", - "writable": false - }, - { - "name": "kYAxis", - "tooltip": "", - "type": "wpilib.Joystick.AxisType", - "writable": false - }, - { - "name": "kZAxis", - "tooltip": "", - "type": "wpilib.Joystick.AxisType", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.Joystick.AxisType", - "functionName": "__init__", - "returnType": "wpilib.Joystick.AxisType", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, - { - "className": "wpilib.Joystick.ButtonType", - "classVariables": [ - { - "name": "kTopButton", - "tooltip": "", - "type": "wpilib.Joystick.ButtonType", - "writable": false - }, - { - "name": "kTriggerButton", - "tooltip": "", - "type": "wpilib.Joystick.ButtonType", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.Joystick.ButtonType", - "functionName": "__init__", - "returnType": "wpilib.Joystick.ButtonType", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, { "className": "wpilib.Koors40", "classVariables": [], @@ -8811,7 +8238,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Koors40", @@ -9029,7 +8456,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -9145,7 +8572,7 @@ { "defaultValue": "", "name": "impl", - "type": "Callable[[wpilib.LEDPattern.LEDReader, Callable[[typing.SupportsInt, wpilib.Color], None]], None]" + "type": "Callable[[wpilib.LEDPattern.LEDReader, Callable[[int, wpilib.Color], None]], None]" } ], "declaringClassName": "wpilib.LEDPattern", @@ -9154,7 +8581,17 @@ "tooltip": "" } ], - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.LEDPattern.GradientType", + "enumValues": [ + "kContinuous", + "kDiscontinuous" + ], + "moduleName": "wpilib", + "tooltip": "Types of gradients.\n\nMembers:\n\n kContinuous : A continuous gradient, where the gradient wraps around to allow for\nseamless scrolling effects.\n\n kDiscontinuous : A discontinuous gradient, where the first pixel is set to the first color\nof the gradient and the final pixel is set to the last color of the\ngradient. There is no wrapping effect, so scrolling effects will display\nan obvious seam." + } + ], "instanceMethods": [ { "args": [ @@ -9171,7 +8608,7 @@ { "defaultValue": "", "name": "writer", - "type": "Callable[[typing.SupportsInt, wpilib.Color], None]" + "type": "Callable[[int, wpilib.Color], None]" } ], "declaringClassName": "wpilib.LEDPattern", @@ -9194,7 +8631,7 @@ { "defaultValue": "", "name": "writer", - "type": "Callable[[typing.SupportsInt, wpilib.Color], None]" + "type": "Callable[[int, wpilib.Color], None]" } ], "declaringClassName": "wpilib.LEDPattern", @@ -9230,7 +8667,7 @@ { "defaultValue": "", "name": "relativeBrightness", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.LEDPattern", @@ -9325,7 +8762,7 @@ { "defaultValue": "", "name": "indexMapper", - "type": "Callable[[typing.SupportsInt, typing.SupportsInt], int]" + "type": "Callable[[int, int], int]" } ], "declaringClassName": "wpilib.LEDPattern", @@ -9361,7 +8798,7 @@ { "defaultValue": "", "name": "offset", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.LEDPattern", @@ -9507,12 +8944,12 @@ { "defaultValue": "", "name": "saturation", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.LEDPattern", @@ -9538,7 +8975,7 @@ { "defaultValue": "", "name": "steps", - "type": "List[tuple[typing.SupportsFloat, wpilib.Color]]" + "type": "List[tuple[float, wpilib.Color]]" } ], "declaringClassName": "wpilib.LEDPattern", @@ -9548,57 +8985,6 @@ } ] }, - { - "className": "wpilib.LEDPattern.GradientType", - "classVariables": [ - { - "name": "kContinuous", - "tooltip": "", - "type": "wpilib.LEDPattern.GradientType", - "writable": false - }, - { - "name": "kDiscontinuous", - "tooltip": "", - "type": "wpilib.LEDPattern.GradientType", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.LEDPattern.GradientType", - "functionName": "__init__", - "returnType": "wpilib.LEDPattern.GradientType", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, { "className": "wpilib.LEDPattern.LEDReader", "classVariables": [], @@ -9608,12 +8994,12 @@ { "defaultValue": "", "name": "impl", - "type": "Callable[[typing.SupportsInt], wpilib.AddressableLED.LEDData]" + "type": "Callable[[int], wpilib.AddressableLED.LEDData]" }, { "defaultValue": "", "name": "size", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.LEDPattern.LEDReader", @@ -9652,12 +9038,12 @@ { "defaultValue": "", "name": "width", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "height", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "Color8Bit(red=0, green=0, blue=32)", @@ -9688,12 +9074,12 @@ { "defaultValue": "", "name": "x", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "y", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.Mechanism2d", @@ -9783,7 +9169,7 @@ { "defaultValue": "", "name": "length", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -9793,7 +9179,7 @@ { "defaultValue": "6", "name": "lineWidth", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "Color8Bit(red=235, green=137, blue=52)", @@ -9917,7 +9303,7 @@ { "defaultValue": "", "name": "length", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.MechanismLigament2d", @@ -9935,7 +9321,7 @@ { "defaultValue": "", "name": "lineWidth", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.MechanismLigament2d", @@ -9989,7 +9375,7 @@ { "defaultValue": "", "name": "length", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -9999,7 +9385,7 @@ { "defaultValue": "6", "name": "lineWidth", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "Color8Bit(red=235, green=137, blue=52)", @@ -10071,7 +9457,7 @@ { "defaultValue": "", "name": "length", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -10081,7 +9467,7 @@ { "defaultValue": "6", "name": "lineWidth", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "Color8Bit(red=235, green=137, blue=52)", @@ -10117,12 +9503,12 @@ { "defaultValue": "", "name": "x", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "y", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.MechanismRoot2d", @@ -10223,7 +9609,7 @@ { "defaultValue": "", "name": "speed", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.MotorControllerGroup", @@ -10561,7 +9947,7 @@ { "defaultValue": "", "name": "priority", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Notifier", @@ -10583,13 +9969,32 @@ "type": "wpilib.OnboardIMU.MountOrientation" } ], + "componentArgs": [ + { + "defaultValue": "", + "name": "mount_orientation", + "type": "wpilib.OnboardIMU.MountOrientation" + } + ], "declaringClassName": "wpilib.OnboardIMU", "functionName": "__init__", + "isComponent": true, "returnType": "wpilib.OnboardIMU", "tooltip": "Constructs a handle to the SystemCore onboard IMU.\n\n:param mountOrientation: the mount orientation of SystemCore to determine\n yaw." } ], - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.OnboardIMU.MountOrientation", + "enumValues": [ + "kFlat", + "kLandscape", + "kPortrait" + ], + "moduleName": "wpilib", + "tooltip": "A mount orientation of SystemCore\n\nMembers:\n\n kFlat : Flat (mounted parallel to the ground).\n\n kLandscape : Landscape (vertically mounted with long edge of SystemCore parallel to\nthe ground).\n\n kPortrait : Portrait (vertically mounted with the short edge of SystemCore parallel\nto the ground)." + } + ], "instanceMethods": [ { "args": [ @@ -10775,64 +10180,7 @@ } ], "instanceVariables": [], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, - { - "className": "wpilib.OnboardIMU.MountOrientation", - "classVariables": [ - { - "name": "kFlat", - "tooltip": "", - "type": "wpilib.OnboardIMU.MountOrientation", - "writable": false - }, - { - "name": "kLandscape", - "tooltip": "", - "type": "wpilib.OnboardIMU.MountOrientation", - "writable": false - }, - { - "name": "kPortrait", - "tooltip": "", - "type": "wpilib.OnboardIMU.MountOrientation", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.OnboardIMU.MountOrientation", - "functionName": "__init__", - "returnType": "wpilib.OnboardIMU.MountOrientation", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, + "isComponent": true, "moduleName": "wpilib", "staticMethods": [] }, @@ -10845,7 +10193,7 @@ { "defaultValue": "", "name": "port", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PS4Controller", @@ -10943,7 +10291,7 @@ { "defaultValue": "", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -11205,12 +10553,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "threshold", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -11233,12 +10581,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "threshold", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -11261,7 +10609,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -11333,7 +10681,7 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -11650,7 +10998,7 @@ { "defaultValue": "0", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -11863,7 +11211,7 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -11881,7 +11229,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -11899,7 +11247,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -11917,7 +11265,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -12218,7 +11566,7 @@ { "defaultValue": "", "name": "outputNumber", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -12241,7 +11589,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -12264,7 +11612,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -12519,7 +11867,7 @@ { "defaultValue": "", "name": "port", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PS5Controller", @@ -12617,7 +11965,7 @@ { "defaultValue": "", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -12879,12 +12227,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "threshold", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -12907,12 +12255,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "threshold", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -12935,7 +12283,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -13025,7 +12373,7 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -13381,7 +12729,7 @@ { "defaultValue": "0", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -13594,7 +12942,7 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -13612,7 +12960,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -13630,7 +12978,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -13648,7 +12996,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -13910,7 +13258,7 @@ { "defaultValue": "", "name": "outputNumber", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -13933,7 +13281,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -13956,7 +13304,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -14193,7 +13541,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "True", @@ -14207,7 +13555,18 @@ "tooltip": "Allocate a PWM given a channel number.\n\nChecks channel value range and allocates the appropriate channel.\nThe allocation is only done to help users ensure that they don't double\nassign channels.\n\n:param channel: The PWM channel number. 0-9 are on-board, 10-19 are on the\n MXP port\n:param registerSendable: If true, adds this instance to SendableRegistry" } ], - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.PWM.OutputPeriod", + "enumValues": [ + "kOutputPeriod_10Ms", + "kOutputPeriod_20Ms", + "kOutputPeriod_5Ms" + ], + "moduleName": "wpilib", + "tooltip": "Represents the output period in microseconds.\n\nMembers:\n\n kOutputPeriod_5Ms : PWM pulses occur every 5 ms\n\n kOutputPeriod_10Ms : PWM pulses occur every 10 ms\n\n kOutputPeriod_20Ms : PWM pulses occur every 20 ms" + } + ], "instanceMethods": [ { "args": [ @@ -14312,7 +13671,7 @@ { "defaultValue": "", "name": "device", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PWM", @@ -14326,63 +13685,6 @@ "moduleName": "wpilib", "staticMethods": [] }, - { - "className": "wpilib.PWM.OutputPeriod", - "classVariables": [ - { - "name": "kOutputPeriod_10Ms", - "tooltip": "", - "type": "wpilib.PWM.OutputPeriod", - "writable": false - }, - { - "name": "kOutputPeriod_20Ms", - "tooltip": "", - "type": "wpilib.PWM.OutputPeriod", - "writable": false - }, - { - "name": "kOutputPeriod_5Ms", - "tooltip": "", - "type": "wpilib.PWM.OutputPeriod", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.PWM.OutputPeriod", - "functionName": "__init__", - "returnType": "wpilib.PWM.OutputPeriod", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, { "className": "wpilib.PWMMotorController", "classVariables": [], @@ -14397,7 +13699,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -14615,7 +13917,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -14731,7 +14033,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PWMSparkFlex", @@ -14949,7 +14251,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -15065,13 +14367,19 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" + } + ], + "componentArgs": [ + { + "defaultValue": "", + "name": "smart_io_port", + "type": "SYSTEMCORE_SMART_IO_PORT" } ], - "componentPortName": "smart_io_port", - "componentPortType": "SYSTEMCORE_SMART_IO_PORT", "declaringClassName": "wpilib.PWMSparkMax", "functionName": "__init__", + "isComponent": true, "returnType": "wpilib.PWMSparkMax", "tooltip": "Constructor for a SPARK MAX connected via PWM.\n\n:param channel: The PWM channel that the SPARK MAX is attached to. 0-9 are\n on-board, 10-19 are on the MXP port" } @@ -15285,7 +14593,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -15401,7 +14709,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PWMTalonFX", @@ -15619,7 +14927,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -15735,7 +15043,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PWMTalonSRX", @@ -15953,7 +15261,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -16069,7 +15377,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PWMVenom", @@ -16287,7 +15595,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -16403,7 +15711,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PWMVictorSPX", @@ -16621,7 +15929,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -16737,7 +16045,7 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticHub", @@ -16750,12 +16058,12 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticHub", @@ -16776,7 +16084,7 @@ { "defaultValue": "", "name": "mask", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticHub", @@ -16794,7 +16102,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticHub", @@ -16897,7 +16205,7 @@ { "defaultValue": "", "name": "index", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticHub", @@ -16928,7 +16236,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticHub", @@ -17024,7 +16332,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticHub", @@ -17146,12 +16454,12 @@ { "defaultValue": "", "name": "forwardChannel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "reverseChannel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticHub", @@ -17169,7 +16477,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticHub", @@ -17223,7 +16531,7 @@ { "defaultValue": "", "name": "index", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -17246,12 +16554,12 @@ { "defaultValue": "", "name": "mask", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "values", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticHub", @@ -17282,7 +16590,7 @@ { "defaultValue": "", "name": "mask", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticHub", @@ -17313,12 +16621,12 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -17357,7 +16665,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticHub.Faults", @@ -17658,7 +16966,7 @@ { "defaultValue": "", "name": "mask", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsBase", @@ -17676,7 +16984,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsBase", @@ -17766,7 +17074,7 @@ { "defaultValue": "", "name": "index", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsBase", @@ -17784,7 +17092,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsBase", @@ -17854,7 +17162,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsBase", @@ -17924,12 +17232,12 @@ { "defaultValue": "", "name": "forwardChannel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "reverseChannel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsBase", @@ -17947,7 +17255,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsBase", @@ -18001,7 +17309,7 @@ { "defaultValue": "", "name": "index", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -18024,12 +17332,12 @@ { "defaultValue": "", "name": "mask", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "values", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsBase", @@ -18060,7 +17368,7 @@ { "defaultValue": "", "name": "mask", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsBase", @@ -18091,12 +17399,12 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -18120,7 +17428,7 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsControlModule", @@ -18133,12 +17441,12 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsControlModule", @@ -18159,7 +17467,7 @@ { "defaultValue": "", "name": "mask", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsControlModule", @@ -18177,7 +17485,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsControlModule", @@ -18280,7 +17588,7 @@ { "defaultValue": "", "name": "index", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsControlModule", @@ -18298,7 +17606,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsControlModule", @@ -18446,7 +17754,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsControlModule", @@ -18542,12 +17850,12 @@ { "defaultValue": "", "name": "forwardChannel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "reverseChannel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsControlModule", @@ -18565,7 +17873,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsControlModule", @@ -18619,7 +17927,7 @@ { "defaultValue": "", "name": "index", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -18642,12 +17950,12 @@ { "defaultValue": "", "name": "mask", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "values", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsControlModule", @@ -18678,7 +17986,7 @@ { "defaultValue": "", "name": "mask", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PneumaticsControlModule", @@ -18709,12 +18017,12 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -18729,57 +18037,6 @@ } ] }, - { - "className": "wpilib.PneumaticsModuleType", - "classVariables": [ - { - "name": "CTREPCM", - "tooltip": "", - "type": "wpilib.PneumaticsModuleType", - "writable": false - }, - { - "name": "REVPH", - "tooltip": "", - "type": "wpilib.PneumaticsModuleType", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.PneumaticsModuleType", - "functionName": "__init__", - "returnType": "wpilib.PneumaticsModuleType", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, { "className": "wpilib.PowerDistribution", "classVariables": [ @@ -18796,7 +18053,7 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PowerDistribution", @@ -18809,12 +18066,12 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -18828,7 +18085,17 @@ "tooltip": "Constructs a PowerDistribution object.\n\n:param busId: The bus ID.\n:param module: The CAN ID of the PDP/PDH\n:param moduleType: The type of module" } ], - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.PowerDistribution.ModuleType", + "enumValues": [ + "kCTRE", + "kRev" + ], + "moduleName": "wpilib", + "tooltip": "Power distribution module type.\n\nMembers:\n\n kCTRE : CTRE (Cross The Road Electronics) CTRE Power Distribution Panel (PDP).\n\n kRev : REV Power Distribution Hub (PDH)." + } + ], "instanceMethods": [ { "args": [ @@ -18866,7 +18133,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PowerDistribution", @@ -19109,7 +18376,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PowerDistribution.Faults", @@ -19286,57 +18553,6 @@ "moduleName": "wpilib", "staticMethods": [] }, - { - "className": "wpilib.PowerDistribution.ModuleType", - "classVariables": [ - { - "name": "kCTRE", - "tooltip": "", - "type": "wpilib.PowerDistribution.ModuleType", - "writable": false - }, - { - "name": "kRev", - "tooltip": "", - "type": "wpilib.PowerDistribution.ModuleType", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.PowerDistribution.ModuleType", - "functionName": "__init__", - "returnType": "wpilib.PowerDistribution.ModuleType", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, { "className": "wpilib.PowerDistribution.StickyFaults", "classVariables": [], @@ -19361,7 +18577,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.PowerDistribution.StickyFaults", @@ -19682,7 +18898,7 @@ { "defaultValue": "0.0", "name": "defaultValue", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.Preferences", @@ -19700,7 +18916,7 @@ { "defaultValue": "0.0", "name": "defaultValue", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.Preferences", @@ -19718,7 +18934,7 @@ { "defaultValue": "0", "name": "defaultValue", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Preferences", @@ -19743,7 +18959,7 @@ { "defaultValue": "0", "name": "defaultValue", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Preferences", @@ -19797,7 +19013,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.Preferences", @@ -19815,7 +19031,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.Preferences", @@ -19833,7 +19049,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Preferences", @@ -19851,7 +19067,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Preferences", @@ -19925,7 +19141,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.Preferences", @@ -19943,7 +19159,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.Preferences", @@ -19961,7 +19177,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Preferences", @@ -19979,7 +19195,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Preferences", @@ -20253,7 +19469,7 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.RobotController", @@ -20508,69 +19724,6 @@ } ] }, - { - "className": "wpilib.RuntimeType", - "classVariables": [ - { - "name": "kRoboRIO", - "tooltip": "", - "type": "wpilib.RuntimeType", - "writable": false - }, - { - "name": "kRoboRIO2", - "tooltip": "", - "type": "wpilib.RuntimeType", - "writable": false - }, - { - "name": "kSimulation", - "tooltip": "", - "type": "wpilib.RuntimeType", - "writable": false - }, - { - "name": "kSystemCore", - "tooltip": "", - "type": "wpilib.RuntimeType", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.RuntimeType", - "functionName": "__init__", - "returnType": "wpilib.RuntimeType", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, { "className": "wpilib.SD540", "classVariables": [], @@ -20580,7 +19733,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.SD540", @@ -20798,7 +19951,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -20939,7 +20092,7 @@ { "defaultValue": "", "name": "setter", - "type": "Callable[[List[typing.SupportsInt]], None]" + "type": "Callable[[List[int]], None]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -20995,7 +20148,7 @@ { "defaultValue": "", "name": "setter", - "type": "Callable[[List[typing.SupportsFloat]], None]" + "type": "Callable[[List[float]], None]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21023,7 +20176,7 @@ { "defaultValue": "", "name": "setter", - "type": "Callable[[typing.SupportsFloat], None]" + "type": "Callable[[float], None]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21051,7 +20204,7 @@ { "defaultValue": "", "name": "setter", - "type": "Callable[[List[typing.SupportsFloat]], None]" + "type": "Callable[[List[float]], None]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21079,7 +20232,7 @@ { "defaultValue": "", "name": "setter", - "type": "Callable[[typing.SupportsFloat], None]" + "type": "Callable[[float], None]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21107,7 +20260,7 @@ { "defaultValue": "", "name": "setter", - "type": "Callable[[List[typing.SupportsInt]], None]" + "type": "Callable[[List[int]], None]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21135,7 +20288,7 @@ { "defaultValue": "", "name": "setter", - "type": "Callable[[typing.SupportsInt], None]" + "type": "Callable[[int], None]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21191,12 +20344,12 @@ { "defaultValue": "", "name": "getter", - "type": "Callable[[List[typing.SupportsInt]], List[int]]" + "type": "Callable[[List[int]], List[int]]" }, { "defaultValue": "", "name": "setter", - "type": "Callable[[List[typing.SupportsInt]], None]" + "type": "Callable[[List[int]], None]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21219,12 +20372,12 @@ { "defaultValue": "", "name": "getter", - "type": "Callable[[List[typing.SupportsFloat]], List[float]]" + "type": "Callable[[List[float]], List[float]]" }, { "defaultValue": "", "name": "setter", - "type": "Callable[[List[typing.SupportsFloat]], None]" + "type": "Callable[[List[float]], None]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21247,12 +20400,12 @@ { "defaultValue": "", "name": "getter", - "type": "Callable[[List[typing.SupportsFloat]], List[float]]" + "type": "Callable[[List[float]], List[float]]" }, { "defaultValue": "", "name": "setter", - "type": "Callable[[List[typing.SupportsFloat]], None]" + "type": "Callable[[List[float]], None]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21275,12 +20428,12 @@ { "defaultValue": "", "name": "getter", - "type": "Callable[[List[typing.SupportsInt]], List[int]]" + "type": "Callable[[List[int]], List[int]]" }, { "defaultValue": "", "name": "setter", - "type": "Callable[[List[typing.SupportsInt]], None]" + "type": "Callable[[List[int]], None]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21308,7 +20461,7 @@ { "defaultValue": "", "name": "getter", - "type": "Callable[[List[typing.SupportsInt]], Buffer]" + "type": "Callable[[List[int]], Buffer]" }, { "defaultValue": "", @@ -21554,7 +20707,7 @@ { "defaultValue": "", "name": "value", - "type": "List[typing.SupportsInt]" + "type": "List[int]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21577,7 +20730,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21600,7 +20753,7 @@ { "defaultValue": "", "name": "value", - "type": "List[typing.SupportsFloat]" + "type": "List[float]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21623,7 +20776,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21646,7 +20799,7 @@ { "defaultValue": "", "name": "value", - "type": "List[typing.SupportsFloat]" + "type": "List[float]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21669,7 +20822,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -21692,7 +20845,7 @@ { "defaultValue": "", "name": "value", - "type": "List[typing.SupportsInt]" + "type": "List[int]" } ], "declaringClassName": "wpilib.SendableBuilderImpl", @@ -22089,7 +21242,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.SensorUtil", @@ -22102,7 +21255,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.SensorUtil", @@ -22115,7 +21268,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.SensorUtil", @@ -22169,7 +21322,7 @@ { "defaultValue": "", "name": "baudRate", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -22179,7 +21332,7 @@ { "defaultValue": "8", "name": "dataBits", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -22202,7 +21355,7 @@ { "defaultValue": "", "name": "baudRate", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -22217,7 +21370,7 @@ { "defaultValue": "8", "name": "dataBits", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -22236,7 +21389,62 @@ "tooltip": "Create an instance of a Serial Port class.\n\nPrefer to use the constructor that doesn't take a port name, but in some\ncases the automatic detection might not work correctly.\n\n:param baudRate: The baud rate to configure the serial port.\n:param port: The physical port to use\n:param portName: The direct port name to use\n:param dataBits: The number of data bits per transfer. Valid values are\n between 5 and 8 bits.\n:param parity: Select the type of parity checking to use.\n:param stopBits: The number of stop bits to use as defined by the enum\n StopBits." } ], - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.SerialPort.FlowControl", + "enumValues": [ + "kFlowControl_DtrDsr", + "kFlowControl_None", + "kFlowControl_RtsCts", + "kFlowControl_XonXoff" + ], + "moduleName": "wpilib", + "tooltip": "Represents what type of flow control to use for serial communication.\n\nMembers:\n\n kFlowControl_None : No flow control.\n\n kFlowControl_XonXoff : XON/XOFF flow control.\n\n kFlowControl_RtsCts : RTS/CTS flow control.\n\n kFlowControl_DtrDsr : DTS/DSR flow control." + }, + { + "enumClassName": "wpilib.SerialPort.Parity", + "enumValues": [ + "kParity_Even", + "kParity_Mark", + "kParity_None", + "kParity_Odd", + "kParity_Space" + ], + "moduleName": "wpilib", + "tooltip": "Represents the parity to use for serial communications.\n\nMembers:\n\n kParity_None : No parity.\n\n kParity_Odd : Odd parity.\n\n kParity_Even : Even parity.\n\n kParity_Mark : Parity bit always on.\n\n kParity_Space : Parity bit always off." + }, + { + "enumClassName": "wpilib.SerialPort.Port", + "enumValues": [ + "kMXP", + "kOnboard", + "kUSB", + "kUSB1", + "kUSB2" + ], + "moduleName": "wpilib", + "tooltip": "Serial port.\n\nMembers:\n\n kOnboard : Onboard serial port on the roboRIO.\n\n kMXP : MXP (roboRIO MXP) serial port.\n\n kUSB : USB serial port (same as kUSB1).\n\n kUSB1 : USB serial port 1.\n\n kUSB2 : USB serial port 2." + }, + { + "enumClassName": "wpilib.SerialPort.StopBits", + "enumValues": [ + "kStopBits_One", + "kStopBits_OnePointFive", + "kStopBits_Two" + ], + "moduleName": "wpilib", + "tooltip": "Represents the number of stop bits to use for Serial Communication.\n\nMembers:\n\n kStopBits_One : One stop bit.\n\n kStopBits_OnePointFive : One and a half stop bits.\n\n kStopBits_Two : Two stop bits." + }, + { + "enumClassName": "wpilib.SerialPort.WriteBufferMode", + "enumValues": [ + "kFlushOnAccess", + "kFlushWhenFull" + ], + "moduleName": "wpilib", + "tooltip": "Represents which type of buffer mode to use when writing to a serial port.\n\nMembers:\n\n kFlushOnAccess : Flush the buffer on each access.\n\n kFlushWhenFull : Flush the buffer when it is full." + } + ], "instanceMethods": [ { "args": [ @@ -22354,7 +21562,7 @@ { "defaultValue": "", "name": "size", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.SerialPort", @@ -22408,7 +21616,7 @@ { "defaultValue": "", "name": "size", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.SerialPort", @@ -22440,315 +21648,6 @@ "moduleName": "wpilib", "staticMethods": [] }, - { - "className": "wpilib.SerialPort.FlowControl", - "classVariables": [ - { - "name": "kFlowControl_DtrDsr", - "tooltip": "", - "type": "wpilib.SerialPort.FlowControl", - "writable": false - }, - { - "name": "kFlowControl_None", - "tooltip": "", - "type": "wpilib.SerialPort.FlowControl", - "writable": false - }, - { - "name": "kFlowControl_RtsCts", - "tooltip": "", - "type": "wpilib.SerialPort.FlowControl", - "writable": false - }, - { - "name": "kFlowControl_XonXoff", - "tooltip": "", - "type": "wpilib.SerialPort.FlowControl", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.SerialPort.FlowControl", - "functionName": "__init__", - "returnType": "wpilib.SerialPort.FlowControl", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, - { - "className": "wpilib.SerialPort.Parity", - "classVariables": [ - { - "name": "kParity_Even", - "tooltip": "", - "type": "wpilib.SerialPort.Parity", - "writable": false - }, - { - "name": "kParity_Mark", - "tooltip": "", - "type": "wpilib.SerialPort.Parity", - "writable": false - }, - { - "name": "kParity_None", - "tooltip": "", - "type": "wpilib.SerialPort.Parity", - "writable": false - }, - { - "name": "kParity_Odd", - "tooltip": "", - "type": "wpilib.SerialPort.Parity", - "writable": false - }, - { - "name": "kParity_Space", - "tooltip": "", - "type": "wpilib.SerialPort.Parity", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.SerialPort.Parity", - "functionName": "__init__", - "returnType": "wpilib.SerialPort.Parity", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, - { - "className": "wpilib.SerialPort.Port", - "classVariables": [ - { - "name": "kMXP", - "tooltip": "", - "type": "wpilib.SerialPort.Port", - "writable": false - }, - { - "name": "kOnboard", - "tooltip": "", - "type": "wpilib.SerialPort.Port", - "writable": false - }, - { - "name": "kUSB", - "tooltip": "", - "type": "wpilib.SerialPort.Port", - "writable": false - }, - { - "name": "kUSB1", - "tooltip": "", - "type": "wpilib.SerialPort.Port", - "writable": false - }, - { - "name": "kUSB2", - "tooltip": "", - "type": "wpilib.SerialPort.Port", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.SerialPort.Port", - "functionName": "__init__", - "returnType": "wpilib.SerialPort.Port", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, - { - "className": "wpilib.SerialPort.StopBits", - "classVariables": [ - { - "name": "kStopBits_One", - "tooltip": "", - "type": "wpilib.SerialPort.StopBits", - "writable": false - }, - { - "name": "kStopBits_OnePointFive", - "tooltip": "", - "type": "wpilib.SerialPort.StopBits", - "writable": false - }, - { - "name": "kStopBits_Two", - "tooltip": "", - "type": "wpilib.SerialPort.StopBits", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.SerialPort.StopBits", - "functionName": "__init__", - "returnType": "wpilib.SerialPort.StopBits", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, - { - "className": "wpilib.SerialPort.WriteBufferMode", - "classVariables": [ - { - "name": "kFlushOnAccess", - "tooltip": "", - "type": "wpilib.SerialPort.WriteBufferMode", - "writable": false - }, - { - "name": "kFlushWhenFull", - "tooltip": "", - "type": "wpilib.SerialPort.WriteBufferMode", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.SerialPort.WriteBufferMode", - "functionName": "__init__", - "returnType": "wpilib.SerialPort.WriteBufferMode", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib", - "staticMethods": [] - }, { "className": "wpilib.Servo", "classVariables": [], @@ -22758,7 +21657,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Servo", @@ -22836,7 +21735,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.Servo", @@ -22854,7 +21753,7 @@ { "defaultValue": "", "name": "angle", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.Servo", @@ -22877,17 +21776,17 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "a", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "b", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -22962,7 +21861,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.SharpIR", @@ -22975,7 +21874,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.SharpIR", @@ -22988,7 +21887,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.SharpIR", @@ -23001,7 +21900,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.SharpIR", @@ -23133,7 +22032,7 @@ { "defaultValue": "0", "name": "types", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.SmartDashboard", @@ -23305,7 +22204,7 @@ { "defaultValue": "", "name": "value", - "type": "List[typing.SupportsInt]" + "type": "List[int]" } ], "declaringClassName": "wpilib.SmartDashboard", @@ -23354,7 +22253,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.SmartDashboard", @@ -23372,7 +22271,7 @@ { "defaultValue": "", "name": "value", - "type": "List[typing.SupportsFloat]" + "type": "List[float]" } ], "declaringClassName": "wpilib.SmartDashboard", @@ -23480,7 +22379,7 @@ { "defaultValue": "", "name": "defaultValue", - "type": "List[typing.SupportsInt]" + "type": "List[int]" } ], "declaringClassName": "wpilib.SmartDashboard", @@ -23498,7 +22397,7 @@ { "defaultValue": "", "name": "defaultValue", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.SmartDashboard", @@ -23516,7 +22415,7 @@ { "defaultValue": "", "name": "defaultValue", - "type": "List[typing.SupportsFloat]" + "type": "List[float]" } ], "declaringClassName": "wpilib.SmartDashboard", @@ -23627,12 +22526,12 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -23642,7 +22541,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Solenoid", @@ -23655,7 +22554,7 @@ { "defaultValue": "", "name": "busId", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -23665,7 +22564,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Solenoid", @@ -23810,7 +22709,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Spark", @@ -24028,7 +22927,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -24144,7 +23043,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.SparkMini", @@ -24362,7 +23261,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -24478,7 +23377,7 @@ { "defaultValue": "", "name": "port", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.StadiaController", @@ -24558,7 +23457,7 @@ { "defaultValue": "", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -24784,12 +23683,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "threshold", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -24812,12 +23711,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "threshold", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -24840,7 +23739,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -24951,7 +23850,7 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -25372,7 +24271,7 @@ { "defaultValue": "0", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -25416,7 +24315,7 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -25434,7 +24333,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -25452,7 +24351,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -25470,7 +24369,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -25975,7 +24874,7 @@ { "defaultValue": "", "name": "outputNumber", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -25998,7 +24897,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -26021,7 +24920,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -26254,7 +25153,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Talon", @@ -26472,7 +25371,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -27844,7 +26743,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.Victor", @@ -28062,7 +26961,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -28178,7 +27077,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.VictorSP", @@ -28396,7 +27295,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.PWMMotorController", @@ -28688,7 +27587,7 @@ { "defaultValue": "", "name": "port", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.XboxController", @@ -28768,7 +27667,7 @@ { "defaultValue": "", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -28994,12 +27893,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "threshold", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -29022,12 +27921,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "threshold", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -29068,7 +27967,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -29143,7 +28042,7 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -29421,7 +28320,7 @@ { "defaultValue": "0", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -29465,7 +28364,7 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -29483,7 +28382,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -29501,7 +28400,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -29519,7 +28418,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -29890,7 +28789,7 @@ { "defaultValue": "", "name": "threshold", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -29967,7 +28866,7 @@ { "defaultValue": "", "name": "threshold", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -30008,7 +28907,7 @@ { "defaultValue": "", "name": "outputNumber", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -30031,7 +28930,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -30054,7 +28953,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -30222,57 +29121,6 @@ "moduleName": "wpilib", "staticMethods": [] }, - { - "className": "wpilib.counter.EdgeConfiguration", - "classVariables": [ - { - "name": "kFallingEdge", - "tooltip": "", - "type": "wpilib.counter.EdgeConfiguration", - "writable": false - }, - { - "name": "kRisingEdge", - "tooltip": "", - "type": "wpilib.counter.EdgeConfiguration", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.counter.EdgeConfiguration", - "functionName": "__init__", - "returnType": "wpilib.counter.EdgeConfiguration", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib.counter", - "staticMethods": [] - }, { "className": "wpilib.counter.Tachometer", "classVariables": [], @@ -30282,7 +29130,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -30422,7 +29270,7 @@ { "defaultValue": "", "name": "edges", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.counter.Tachometer", @@ -30463,7 +29311,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -30574,12 +29422,12 @@ { "defaultValue": "", "name": "leftMotor", - "type": "Callable[[typing.SupportsFloat], None]" + "type": "Callable[[float], None]" }, { "defaultValue": "", "name": "rightMotor", - "type": "Callable[[typing.SupportsFloat], None]" + "type": "Callable[[float], None]" } ], "declaringClassName": "wpilib.drive.DifferentialDrive", @@ -30600,12 +29448,12 @@ { "defaultValue": "", "name": "xSpeed", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "zRotation", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "True", @@ -30641,12 +29489,12 @@ { "defaultValue": "", "name": "xSpeed", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "zRotation", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -30765,7 +29613,7 @@ { "defaultValue": "", "name": "deadband", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.drive.RobotDriveBase", @@ -30801,7 +29649,7 @@ { "defaultValue": "", "name": "maxOutput", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.drive.RobotDriveBase", @@ -30850,12 +29698,12 @@ { "defaultValue": "", "name": "leftSpeed", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "rightSpeed", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "True", @@ -30878,12 +29726,12 @@ { "defaultValue": "", "name": "xSpeed", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "zRotation", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "True", @@ -30908,12 +29756,12 @@ { "defaultValue": "", "name": "xSpeed", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "zRotation", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -30931,12 +29779,12 @@ { "defaultValue": "", "name": "leftSpeed", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "rightSpeed", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "True", @@ -31020,22 +29868,22 @@ { "defaultValue": "", "name": "frontLeftMotor", - "type": "Callable[[typing.SupportsFloat], None]" + "type": "Callable[[float], None]" }, { "defaultValue": "", "name": "rearLeftMotor", - "type": "Callable[[typing.SupportsFloat], None]" + "type": "Callable[[float], None]" }, { "defaultValue": "", "name": "frontRightMotor", - "type": "Callable[[typing.SupportsFloat], None]" + "type": "Callable[[float], None]" }, { "defaultValue": "", "name": "rearRightMotor", - "type": "Callable[[typing.SupportsFloat], None]" + "type": "Callable[[float], None]" } ], "declaringClassName": "wpilib.drive.MecanumDrive", @@ -31069,17 +29917,17 @@ { "defaultValue": "", "name": "xSpeed", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "ySpeed", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "zRotation", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "Rotation2d(0.000000)", @@ -31102,7 +29950,7 @@ { "defaultValue": "", "name": "magnitude", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -31112,7 +29960,7 @@ { "defaultValue": "", "name": "zRotation", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.drive.MecanumDrive", @@ -31226,7 +30074,7 @@ { "defaultValue": "", "name": "deadband", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.drive.RobotDriveBase", @@ -31262,7 +30110,7 @@ { "defaultValue": "", "name": "maxOutput", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.drive.RobotDriveBase", @@ -31318,17 +30166,17 @@ { "defaultValue": "", "name": "xSpeed", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "ySpeed", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "zRotation", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "Rotation2d(0.000000)", @@ -31399,7 +30247,22 @@ "tooltip": "" } ], - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.drive.RobotDriveBase.MotorType", + "enumValues": [ + "kBack", + "kFrontLeft", + "kFrontRight", + "kLeft", + "kRearLeft", + "kRearRight", + "kRight" + ], + "moduleName": "wpilib.drive", + "tooltip": "The location of a motor on the robot for the purpose of driving.\n\nMembers:\n\n kFrontLeft : Front-left motor.\n\n kFrontRight : Front-right motor.\n\n kRearLeft : Rear-left motor.\n\n kRearRight : Rear-right motor.\n\n kLeft : Left motor.\n\n kRight : Right motor.\n\n kBack : Back motor." + } + ], "instanceMethods": [ { "args": [ @@ -31502,7 +30365,7 @@ { "defaultValue": "", "name": "deadband", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.drive.RobotDriveBase", @@ -31538,7 +30401,7 @@ { "defaultValue": "", "name": "maxOutput", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.drive.RobotDriveBase", @@ -31591,87 +30454,6 @@ } ] }, - { - "className": "wpilib.drive.RobotDriveBase.MotorType", - "classVariables": [ - { - "name": "kBack", - "tooltip": "", - "type": "wpilib.drive.RobotDriveBase.MotorType", - "writable": false - }, - { - "name": "kFrontLeft", - "tooltip": "", - "type": "wpilib.drive.RobotDriveBase.MotorType", - "writable": false - }, - { - "name": "kFrontRight", - "tooltip": "", - "type": "wpilib.drive.RobotDriveBase.MotorType", - "writable": false - }, - { - "name": "kLeft", - "tooltip": "", - "type": "wpilib.drive.RobotDriveBase.MotorType", - "writable": false - }, - { - "name": "kRearLeft", - "tooltip": "", - "type": "wpilib.drive.RobotDriveBase.MotorType", - "writable": false - }, - { - "name": "kRearRight", - "tooltip": "", - "type": "wpilib.drive.RobotDriveBase.MotorType", - "writable": false - }, - { - "name": "kRight", - "tooltip": "", - "type": "wpilib.drive.RobotDriveBase.MotorType", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.drive.RobotDriveBase.MotorType", - "functionName": "__init__", - "returnType": "wpilib.drive.RobotDriveBase.MotorType", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib.drive", - "staticMethods": [] - }, { "className": "wpilib.event.BooleanEvent", "classVariables": [], @@ -32098,7 +30880,18 @@ "tooltip": "" } ], - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.interfaces.CounterBase.EncodingType", + "enumValues": [ + "k1X", + "k2X", + "k4X" + ], + "moduleName": "wpilib.interfaces", + "tooltip": "Members:\n\n k1X\n\n k2X\n\n k4X" + } + ], "instanceMethods": [ { "args": [ @@ -32190,81 +30983,59 @@ "staticMethods": [] }, { - "className": "wpilib.interfaces.CounterBase.EncodingType", - "classVariables": [ - { - "name": "k1X", - "tooltip": "", - "type": "wpilib.interfaces.CounterBase.EncodingType", - "writable": true - }, - { - "name": "k2X", - "tooltip": "", - "type": "wpilib.interfaces.CounterBase.EncodingType", - "writable": true - }, - { - "name": "k4X", - "tooltip": "", - "type": "wpilib.interfaces.CounterBase.EncodingType", - "writable": true - } - ], + "className": "wpilib.interfaces.GenericHID", + "classVariables": [], "constructors": [ { "args": [ { "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" + "name": "port", + "type": "int" } ], - "declaringClassName": "wpilib.interfaces.CounterBase.EncodingType", + "declaringClassName": "wpilib.interfaces.GenericHID", "functionName": "__init__", - "returnType": "wpilib.interfaces.CounterBase.EncodingType", + "returnType": "wpilib.interfaces.GenericHID", "tooltip": "" } ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ + "enums": [ { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false + "enumClassName": "wpilib.interfaces.GenericHID.HIDType", + "enumValues": [ + "kHID1stPerson", + "kHIDDriving", + "kHIDFlight", + "kHIDGamepad", + "kHIDJoystick", + "kUnknown", + "kXInputArcadePad", + "kXInputArcadeStick", + "kXInputDancePad", + "kXInputDrumKit", + "kXInputFlightStick", + "kXInputGamepad", + "kXInputGuitar", + "kXInputGuitar2", + "kXInputGuitar3", + "kXInputUnknown", + "kXInputWheel" + ], + "moduleName": "wpilib.interfaces", + "tooltip": "USB HID interface type.\n\nMembers:\n\n kUnknown : Unknown.\n\n kXInputUnknown : XInputUnknown.\n\n kXInputGamepad : XInputGamepad.\n\n kXInputWheel : XInputWheel.\n\n kXInputArcadeStick : XInputArcadeStick.\n\n kXInputFlightStick : XInputFlightStick.\n\n kXInputDancePad : XInputDancePad.\n\n kXInputGuitar : XInputGuitar.\n\n kXInputGuitar2 : XInputGuitar2.\n\n kXInputDrumKit : XInputDrumKit.\n\n kXInputGuitar3 : XInputGuitar3.\n\n kXInputArcadePad : XInputArcadePad.\n\n kHIDJoystick : HIDJoystick.\n\n kHIDGamepad : HIDGamepad.\n\n kHIDDriving : HIDDriving.\n\n kHIDFlight : HIDFlight.\n\n kHID1stPerson : HID1stPerson." }, { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib.interfaces", - "staticMethods": [] - }, - { - "className": "wpilib.interfaces.GenericHID", - "classVariables": [], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "port", - "type": "typing.SupportsInt" - } + "enumClassName": "wpilib.interfaces.GenericHID.RumbleType", + "enumValues": [ + "kBothRumble", + "kLeftRumble", + "kRightRumble" ], - "declaringClassName": "wpilib.interfaces.GenericHID", - "functionName": "__init__", - "returnType": "wpilib.interfaces.GenericHID", - "tooltip": "" + "moduleName": "wpilib.interfaces", + "tooltip": "Represents a rumble output on the Joystick.\n\nMembers:\n\n kLeftRumble : Left rumble motor.\n\n kRightRumble : Right rumble motor.\n\n kBothRumble : Both left and right rumble motors." } ], - "enums": [], "instanceMethods": [ { "args": [ @@ -32299,7 +31070,7 @@ { "defaultValue": "", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -32489,12 +31260,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "threshold", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -32517,12 +31288,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "threshold", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -32545,7 +31316,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -32581,7 +31352,7 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -32625,7 +31396,7 @@ { "defaultValue": "0", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -32669,7 +31440,7 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -32687,7 +31458,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -32705,7 +31476,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -32723,7 +31494,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -32767,7 +31538,7 @@ { "defaultValue": "", "name": "outputNumber", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -32790,7 +31561,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -32813,7 +31584,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.interfaces.GenericHID", @@ -32827,204 +31598,6 @@ "moduleName": "wpilib.interfaces", "staticMethods": [] }, - { - "className": "wpilib.interfaces.GenericHID.HIDType", - "classVariables": [ - { - "name": "kHID1stPerson", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kHIDDriving", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kHIDFlight", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kHIDGamepad", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kHIDJoystick", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kUnknown", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kXInputArcadePad", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kXInputArcadeStick", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kXInputDancePad", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kXInputDrumKit", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kXInputFlightStick", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kXInputGamepad", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kXInputGuitar", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kXInputGuitar2", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kXInputGuitar3", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kXInputUnknown", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - }, - { - "name": "kXInputWheel", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.HIDType", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.interfaces.GenericHID.HIDType", - "functionName": "__init__", - "returnType": "wpilib.interfaces.GenericHID.HIDType", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib.interfaces", - "staticMethods": [] - }, - { - "className": "wpilib.interfaces.GenericHID.RumbleType", - "classVariables": [ - { - "name": "kBothRumble", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.RumbleType", - "writable": false - }, - { - "name": "kLeftRumble", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.RumbleType", - "writable": false - }, - { - "name": "kRightRumble", - "tooltip": "", - "type": "wpilib.interfaces.GenericHID.RumbleType", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.interfaces.GenericHID.RumbleType", - "functionName": "__init__", - "returnType": "wpilib.interfaces.GenericHID.RumbleType", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib.interfaces", - "staticMethods": [] - }, { "className": "wpilib.interfaces.MotorController", "classVariables": [], @@ -33088,7 +31661,7 @@ { "defaultValue": "", "name": "speed", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.interfaces.MotorController", @@ -33181,7 +31754,7 @@ { "defaultValue": "", "name": "accel", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.ADXL345Sim", @@ -33199,7 +31772,7 @@ { "defaultValue": "", "name": "accel", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.ADXL345Sim", @@ -33217,7 +31790,7 @@ { "defaultValue": "", "name": "accel", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.ADXL345Sim", @@ -33240,7 +31813,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.AddressableLEDSim", @@ -33436,7 +32009,7 @@ { "defaultValue": "", "name": "length", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.AddressableLEDSim", @@ -33454,7 +32027,7 @@ { "defaultValue": "", "name": "start", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.AddressableLEDSim", @@ -33472,12 +32045,12 @@ { "defaultValue": "", "name": "start", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "length", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -33495,7 +32068,7 @@ { "defaultValue": "", "name": "callback", - "type": "Callable[[str, typing.SupportsInt, typing.SupportsInt], None]" + "type": "Callable[[str, int, int], None]" }, { "defaultValue": "", @@ -33513,12 +32086,12 @@ { "defaultValue": "", "name": "start", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "length", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -33576,7 +32149,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.AnalogEncoderSim", @@ -33612,7 +32185,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.AnalogInputSim", @@ -33790,7 +32363,7 @@ { "defaultValue": "", "name": "averageBits", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.AnalogInputSim", @@ -33826,7 +32399,7 @@ { "defaultValue": "", "name": "oversampleBits", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.AnalogInputSim", @@ -33844,7 +32417,7 @@ { "defaultValue": "", "name": "voltage", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.AnalogInputSim", @@ -33930,7 +32503,7 @@ { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.CTREPCMSim", @@ -34042,7 +32615,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.CTREPCMSim", @@ -34175,7 +32748,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -34216,7 +32789,7 @@ { "defaultValue": "", "name": "outputs", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.CTREPCMSim", @@ -34252,7 +32825,7 @@ { "defaultValue": "", "name": "compressorCurrent", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.CTREPCMSim", @@ -34324,7 +32897,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -34347,7 +32920,7 @@ { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -34397,7 +32970,7 @@ { "defaultValue": "", "name": "uid", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.CallbackStore", @@ -34430,7 +33003,7 @@ { "defaultValue": "[0.0, 0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(2)]" + "type": "Annotated[list[float], FixedSize(2)]" } ], "declaringClassName": "wpilib.simulation.DCMotorSim", @@ -34568,7 +33141,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", @@ -34625,7 +33198,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", @@ -34710,12 +33283,12 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", @@ -34823,7 +33396,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DIOSim", @@ -35037,7 +33610,7 @@ { "defaultValue": "", "name": "filterIndex", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DIOSim", @@ -35091,7 +33664,7 @@ { "defaultValue": "", "name": "pulseLength", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.DIOSim", @@ -35147,7 +33720,7 @@ { "defaultValue": "", "name": "gearingRatio", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -35157,7 +33730,7 @@ { "defaultValue": "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(7)]" + "type": "Annotated[list[float], FixedSize(7)]" } ], "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", @@ -35175,7 +33748,7 @@ { "defaultValue": "", "name": "gearing", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -35200,7 +33773,7 @@ { "defaultValue": "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(7)]" + "type": "Annotated[list[float], FixedSize(7)]" } ], "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", @@ -35470,7 +34043,7 @@ { "defaultValue": "", "name": "newGearing", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", @@ -35570,7 +34143,7 @@ { "defaultValue": "", "name": "gearing", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -35580,7 +34153,7 @@ { "defaultValue": "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(7)]" + "type": "Annotated[list[float], FixedSize(7)]" } ], "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", @@ -35598,7 +34171,7 @@ { "defaultValue": "", "name": "gearing", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -35613,7 +34186,7 @@ { "defaultValue": "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(7)]" + "type": "Annotated[list[float], FixedSize(7)]" } ], "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", @@ -35992,7 +34565,7 @@ { "defaultValue": "", "name": "dutyCycle", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.DigitalPWMSim", @@ -36028,7 +34601,7 @@ { "defaultValue": "", "name": "pin", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DigitalPWMSim", @@ -36046,7 +34619,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DigitalPWMSim", @@ -36059,7 +34632,7 @@ { "defaultValue": "", "name": "index", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DigitalPWMSim", @@ -36083,12 +34656,12 @@ { "defaultValue": "", "name": "fwd", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "rev", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DoubleSolenoidSim", @@ -36101,7 +34674,7 @@ { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -36111,12 +34684,12 @@ { "defaultValue": "", "name": "fwd", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "rev", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DoubleSolenoidSim", @@ -36134,12 +34707,12 @@ { "defaultValue": "", "name": "fwd", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "rev", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DoubleSolenoidSim", @@ -36265,7 +34838,7 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DriverStationSim", @@ -36278,12 +34851,12 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "rumbleNum", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DriverStationSim", @@ -36572,17 +35145,17 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.DriverStationSim", @@ -36595,12 +35168,12 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DriverStationSim", @@ -36613,17 +35186,17 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "type", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DriverStationSim", @@ -36636,12 +35209,12 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -36659,12 +35232,12 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DriverStationSim", @@ -36677,12 +35250,12 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "buttons", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DriverStationSim", @@ -36695,7 +35268,7 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -36713,7 +35286,7 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -36731,12 +35304,12 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -36754,12 +35327,12 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DriverStationSim", @@ -36772,12 +35345,12 @@ { "defaultValue": "", "name": "stick", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "type", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DriverStationSim", @@ -36790,7 +35363,7 @@ { "defaultValue": "", "name": "matchNumber", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DriverStationSim", @@ -36803,7 +35376,7 @@ { "defaultValue": "", "name": "matchTime", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.DriverStationSim", @@ -36829,7 +35402,7 @@ { "defaultValue": "", "name": "replayNumber", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DriverStationSim", @@ -36900,7 +35473,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DutyCycleEncoderSim", @@ -36947,7 +35520,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.DutyCycleEncoderSim", @@ -37166,7 +35739,7 @@ { "defaultValue": "", "name": "output", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.DutyCycleSim", @@ -37184,7 +35757,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.DutyCycleSim", @@ -37233,7 +35806,7 @@ { "defaultValue": "[0.0, 0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(2)]" + "type": "Annotated[list[float], FixedSize(2)]" } ], "declaringClassName": "wpilib.simulation.ElevatorSim", @@ -37251,7 +35824,7 @@ { "defaultValue": "", "name": "gearing", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -37286,7 +35859,7 @@ { "defaultValue": "[0.0, 0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(2)]" + "type": "Annotated[list[float], FixedSize(2)]" } ], "declaringClassName": "wpilib.simulation.ElevatorSim", @@ -37333,7 +35906,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", @@ -37364,7 +35937,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", @@ -37491,12 +36064,12 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", @@ -37998,7 +36571,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.EncoderSim", @@ -38034,7 +36607,7 @@ { "defaultValue": "", "name": "distance", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.EncoderSim", @@ -38052,7 +36625,7 @@ { "defaultValue": "", "name": "distancePerPulse", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.EncoderSim", @@ -38088,7 +36661,7 @@ { "defaultValue": "", "name": "maxPeriod", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.EncoderSim", @@ -38106,7 +36679,7 @@ { "defaultValue": "", "name": "period", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.EncoderSim", @@ -38124,7 +36697,7 @@ { "defaultValue": "", "name": "rate", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.EncoderSim", @@ -38178,7 +36751,7 @@ { "defaultValue": "", "name": "samplesToAverage", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.EncoderSim", @@ -38196,7 +36769,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.EncoderSim", @@ -38209,7 +36782,7 @@ { "defaultValue": "", "name": "index", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.EncoderSim", @@ -38238,7 +36811,7 @@ { "defaultValue": "[0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(1)]" + "type": "Annotated[list[float], FixedSize(1)]" } ], "declaringClassName": "wpilib.simulation.FlywheelSim", @@ -38350,7 +36923,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", @@ -38394,7 +36967,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", @@ -38443,12 +37016,12 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", @@ -38556,7 +37129,7 @@ { "defaultValue": "", "name": "port", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -38577,7 +37150,7 @@ { "defaultValue": "", "name": "outputNumber", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -38639,7 +37212,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -38657,12 +37230,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "type", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -38680,7 +37253,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -38716,7 +37289,7 @@ { "defaultValue": "", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -38757,7 +37330,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -38775,12 +37348,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -38798,7 +37371,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -38857,7 +37430,7 @@ { "defaultValue": "", "name": "port", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.JoystickSim", @@ -38878,7 +37451,7 @@ { "defaultValue": "", "name": "outputNumber", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -38940,7 +37513,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -38958,12 +37531,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "type", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -38981,7 +37554,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -39017,7 +37590,7 @@ { "defaultValue": "", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -39058,7 +37631,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -39076,12 +37649,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -39099,7 +37672,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -39122,7 +37695,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.JoystickSim", @@ -39176,7 +37749,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.JoystickSim", @@ -39212,7 +37785,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.JoystickSim", @@ -39230,7 +37803,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.JoystickSim", @@ -39248,7 +37821,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.JoystickSim", @@ -39276,7 +37849,7 @@ { "defaultValue": "[0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(1)]" + "type": "Annotated[list[float], FixedSize(1)]" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", @@ -39310,7 +37883,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", @@ -39341,7 +37914,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", @@ -39377,12 +37950,12 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", @@ -39446,7 +38019,7 @@ { "defaultValue": "[0.0, 0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(2)]" + "type": "Annotated[list[float], FixedSize(2)]" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_2", @@ -39480,7 +38053,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_2", @@ -39511,7 +38084,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_2", @@ -39547,12 +38120,12 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_2", @@ -39616,7 +38189,7 @@ { "defaultValue": "[0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(1)]" + "type": "Annotated[list[float], FixedSize(1)]" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_1", @@ -39650,7 +38223,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_1", @@ -39681,7 +38254,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_1", @@ -39717,12 +38290,12 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_1", @@ -39786,7 +38359,7 @@ { "defaultValue": "[0.0, 0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(2)]" + "type": "Annotated[list[float], FixedSize(2)]" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", @@ -39820,7 +38393,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", @@ -39851,7 +38424,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", @@ -39887,12 +38460,12 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", @@ -39956,7 +38529,7 @@ { "defaultValue": "[0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(1)]" + "type": "Annotated[list[float], FixedSize(1)]" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_1", @@ -39990,7 +38563,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_1", @@ -40021,7 +38594,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_1", @@ -40057,12 +38630,12 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_1", @@ -40126,7 +38699,7 @@ { "defaultValue": "[0.0, 0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(2)]" + "type": "Annotated[list[float], FixedSize(2)]" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_2", @@ -40160,7 +38733,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_2", @@ -40191,7 +38764,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_2", @@ -40227,12 +38800,12 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_2", @@ -40304,7 +38877,7 @@ { "defaultValue": "", "name": "port", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.PS4ControllerSim", @@ -40325,7 +38898,7 @@ { "defaultValue": "", "name": "outputNumber", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -40387,7 +38960,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -40405,12 +38978,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "type", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -40428,7 +39001,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -40500,7 +39073,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PS4ControllerSim", @@ -40554,7 +39127,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PS4ControllerSim", @@ -40572,7 +39145,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PS4ControllerSim", @@ -40626,7 +39199,7 @@ { "defaultValue": "", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -40667,7 +39240,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -40721,7 +39294,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PS4ControllerSim", @@ -40775,12 +39348,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -40798,7 +39371,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -40821,7 +39394,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PS4ControllerSim", @@ -40839,7 +39412,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PS4ControllerSim", @@ -40965,7 +39538,7 @@ { "defaultValue": "", "name": "port", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.PS5ControllerSim", @@ -40986,7 +39559,7 @@ { "defaultValue": "", "name": "outputNumber", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -41048,7 +39621,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -41066,12 +39639,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "type", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -41089,7 +39662,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -41179,7 +39752,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PS5ControllerSim", @@ -41233,7 +39806,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PS5ControllerSim", @@ -41251,7 +39824,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PS5ControllerSim", @@ -41305,7 +39878,7 @@ { "defaultValue": "", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -41346,7 +39919,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -41400,7 +39973,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PS5ControllerSim", @@ -41454,12 +40027,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -41477,7 +40050,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -41500,7 +40073,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PS5ControllerSim", @@ -41518,7 +40091,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PS5ControllerSim", @@ -41626,7 +40199,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.PWMMotorControllerSim", @@ -41678,7 +40251,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.PWMSim", @@ -41838,7 +40411,7 @@ { "defaultValue": "", "name": "period", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.PWMSim", @@ -41856,7 +40429,7 @@ { "defaultValue": "", "name": "microsecondPulseTime", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.PWMSim", @@ -41879,7 +40452,7 @@ { "defaultValue": "", "name": "index", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", @@ -41978,7 +40551,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", @@ -42088,7 +40661,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -42129,7 +40702,7 @@ { "defaultValue": "", "name": "outputs", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", @@ -42147,7 +40720,7 @@ { "defaultValue": "", "name": "compressorCurrent", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", @@ -42219,7 +40792,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -42242,7 +40815,7 @@ { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -42266,7 +40839,7 @@ { "defaultValue": "0", "name": "module", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.PowerDistributionSim", @@ -42300,7 +40873,7 @@ { "defaultValue": "", "name": "length", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.PowerDistributionSim", @@ -42318,7 +40891,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.PowerDistributionSim", @@ -42375,7 +40948,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -42485,12 +41058,12 @@ { "defaultValue": "", "name": "currents", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "length", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.PowerDistributionSim", @@ -42508,12 +41081,12 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "current", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PowerDistributionSim", @@ -42549,7 +41122,7 @@ { "defaultValue": "", "name": "temperature", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PowerDistributionSim", @@ -42567,7 +41140,7 @@ { "defaultValue": "", "name": "voltage", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.PowerDistributionSim", @@ -42597,7 +41170,7 @@ { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.REVPHSim", @@ -42709,7 +41282,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.REVPHSim", @@ -42842,7 +41415,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -42883,7 +41456,7 @@ { "defaultValue": "", "name": "outputs", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.REVPHSim", @@ -42901,7 +41474,7 @@ { "defaultValue": "", "name": "compressorConfigType", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.REVPHSim", @@ -42919,7 +41492,7 @@ { "defaultValue": "", "name": "compressorCurrent", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.REVPHSim", @@ -42991,7 +41564,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -43014,7 +41587,7 @@ { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -43325,7 +41898,7 @@ { "defaultValue": "", "name": "teamNumber", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.RoboRioSim", @@ -43364,7 +41937,7 @@ { "defaultValue": "", "name": "userFaults3V3", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.RoboRioSim", @@ -43484,7 +42057,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.ServoSim", @@ -43549,7 +42122,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.SharpIRSim", @@ -43611,7 +42184,7 @@ { "defaultValue": "", "name": "index", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.SimDeviceSim", @@ -43629,12 +42202,12 @@ { "defaultValue": "", "name": "index", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.SimDeviceSim", @@ -43647,7 +42220,7 @@ { "defaultValue": "", "name": "handle", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.SimDeviceSim", @@ -43851,7 +42424,7 @@ { "defaultValue": "", "name": "gearing", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -43881,7 +42454,7 @@ { "defaultValue": "[0.0, 0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(2)]" + "type": "Annotated[list[float], FixedSize(2)]" } ], "declaringClassName": "wpilib.simulation.SingleJointedArmSim", @@ -43899,7 +42472,7 @@ { "defaultValue": "", "name": "gearing", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -43934,7 +42507,7 @@ { "defaultValue": "[0.0, 0.0]", "name": "measurementStdDevs", - "type": "Annotated[list[typing.SupportsFloat], FixedSize(2)]" + "type": "Annotated[list[float], FixedSize(2)]" } ], "declaringClassName": "wpilib.simulation.SingleJointedArmSim", @@ -44007,7 +42580,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", @@ -44038,7 +42611,7 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", @@ -44126,12 +42699,12 @@ { "defaultValue": "", "name": "row", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", @@ -44273,7 +42846,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.SolenoidSim", @@ -44286,7 +42859,7 @@ { "defaultValue": "", "name": "module", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -44296,7 +42869,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.SolenoidSim", @@ -44314,7 +42887,7 @@ { "defaultValue": "", "name": "channel", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.SolenoidSim", @@ -44420,7 +42993,7 @@ { "defaultValue": "", "name": "port", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.StadiaControllerSim", @@ -44441,7 +43014,7 @@ { "defaultValue": "", "name": "outputNumber", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -44521,7 +43094,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -44539,12 +43112,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "type", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -44580,7 +43153,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -44724,7 +43297,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.StadiaControllerSim", @@ -44742,7 +43315,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.StadiaControllerSim", @@ -44778,7 +43351,7 @@ { "defaultValue": "", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -44819,7 +43392,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -44837,12 +43410,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -44860,7 +43433,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -44937,7 +43510,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.StadiaControllerSim", @@ -44955,7 +43528,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.StadiaControllerSim", @@ -45063,7 +43636,7 @@ { "defaultValue": "", "name": "port", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.XboxControllerSim", @@ -45084,7 +43657,7 @@ { "defaultValue": "", "name": "outputNumber", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -45164,7 +43737,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -45182,12 +43755,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "type", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -45241,7 +43814,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -45295,7 +43868,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.XboxControllerSim", @@ -45313,7 +43886,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.XboxControllerSim", @@ -45331,7 +43904,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.XboxControllerSim", @@ -45367,7 +43940,7 @@ { "defaultValue": "", "name": "pov", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -45408,7 +43981,7 @@ { "defaultValue": "", "name": "count", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -45426,12 +43999,12 @@ { "defaultValue": "", "name": "axis", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.GenericHIDSim", @@ -45449,7 +44022,7 @@ { "defaultValue": "", "name": "button", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", @@ -45508,7 +44081,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.XboxControllerSim", @@ -45526,7 +44099,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.XboxControllerSim", @@ -45544,7 +44117,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpilib.simulation.XboxControllerSim", @@ -45630,75 +44203,6 @@ "moduleName": "wpilib.simulation", "staticMethods": [] }, - { - "className": "wpilib.sysid.State", - "classVariables": [ - { - "name": "kDynamicForward", - "tooltip": "", - "type": "wpilib.sysid.State", - "writable": false - }, - { - "name": "kDynamicReverse", - "tooltip": "", - "type": "wpilib.sysid.State", - "writable": false - }, - { - "name": "kNone", - "tooltip": "", - "type": "wpilib.sysid.State", - "writable": false - }, - { - "name": "kQuasistaticForward", - "tooltip": "", - "type": "wpilib.sysid.State", - "writable": false - }, - { - "name": "kQuasistaticReverse", - "tooltip": "", - "type": "wpilib.sysid.State", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpilib.sysid.State", - "functionName": "__init__", - "returnType": "wpilib.sysid.State", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpilib.sysid", - "staticMethods": [] - }, { "className": "wpilib.sysid.SysIdRoutineLog", "classVariables": [], @@ -45923,7 +44427,7 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -46083,10 +44587,16 @@ "type": "int" } ], - "componentPortName": "expansion_hub_motor", - "componentPortType": "SYSTEMCORE_USB_PORT__EXPANSION_HUB_MOTOR_PORT", + "componentArgs": [ + { + "defaultValue": "", + "name": "expansion_hub_motor", + "type": "SYSTEMCORE_USB_PORT__EXPANSION_HUB_MOTOR_PORT" + } + ], "declaringClassName": "wpilib_placeholders.ExpansionHubMotor", "functionName": "__init__", + "isComponent": true, "returnType": "wpilib_placeholders.ExpansionHubMotor", "tooltip": "" } @@ -46479,10 +44989,16 @@ "type": "int" } ], - "componentPortName": "expansion_hub_servo", - "componentPortType": "SYSTEMCORE_USB_PORT__EXPANSION_HUB_SERVO_PORT", + "componentArgs": [ + { + "defaultValue": "", + "name": "expansion_hub_servo", + "type": "SYSTEMCORE_USB_PORT__EXPANSION_HUB_SERVO_PORT" + } + ], "declaringClassName": "wpilib_placeholders.ExpansionHubServo", "functionName": "__init__", + "isComponent": true, "returnType": "wpilib_placeholders.ExpansionHubServo", "tooltip": "" } @@ -47208,7 +45724,7 @@ { "defaultValue": "inf", "name": "tolerance", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.BangBangController", @@ -47242,12 +45758,12 @@ { "defaultValue": "", "name": "measurement", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "setpoint", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.BangBangController", @@ -47265,7 +45781,7 @@ { "defaultValue": "", "name": "measurement", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.BangBangController", @@ -47353,7 +45869,7 @@ { "defaultValue": "", "name": "setpoint", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.BangBangController", @@ -47371,7 +45887,7 @@ { "defaultValue": "", "name": "tolerance", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.BangBangController", @@ -47456,7 +45972,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", @@ -47559,7 +46075,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", @@ -47644,7 +46160,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", @@ -47747,7 +46263,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", @@ -47832,7 +46348,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", @@ -47935,7 +46451,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", @@ -48699,7 +47215,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.ImplicitModelFollower_1_1", @@ -48861,7 +47377,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_1", @@ -49023,7 +47539,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_2", @@ -49092,12 +47608,12 @@ { "defaultValue": "", "name": "Qelems", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float, float]" }, { "defaultValue": "", "name": "Relems", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -49258,12 +47774,12 @@ { "defaultValue": "", "name": "Qelems", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "Relems", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -49443,7 +47959,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_1_1", @@ -49546,7 +48062,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_1_1", @@ -49613,7 +48129,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_1", @@ -49716,7 +48232,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_1", @@ -49783,7 +48299,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_2", @@ -49886,7 +48402,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_2", @@ -49953,7 +48469,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_3_2", @@ -50056,7 +48572,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_3_2", @@ -50089,12 +48605,12 @@ { "defaultValue": "", "name": "Qelems", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", "name": "Relems", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", @@ -50188,12 +48704,12 @@ { "defaultValue": "", "name": "arg1", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", "name": "arg2", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", @@ -50216,12 +48732,12 @@ { "defaultValue": "", "name": "arg1", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", "name": "arg2", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", @@ -50244,12 +48760,12 @@ { "defaultValue": "", "name": "arg1", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", "name": "arg2", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", @@ -50288,12 +48804,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", @@ -50324,7 +48840,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", @@ -50355,7 +48871,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", @@ -50498,12 +49014,12 @@ { "defaultValue": "", "name": "Qelems", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "Relems", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", @@ -50597,12 +49113,12 @@ { "defaultValue": "", "name": "arg1", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "arg2", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", @@ -50625,12 +49141,12 @@ { "defaultValue": "", "name": "arg1", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "arg2", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", @@ -50653,12 +49169,12 @@ { "defaultValue": "", "name": "arg1", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "arg2", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", @@ -50697,12 +49213,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", @@ -50733,7 +49249,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", @@ -50764,7 +49280,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", @@ -50907,12 +49423,12 @@ { "defaultValue": "", "name": "Qelems", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "Relems", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -51006,12 +49522,12 @@ { "defaultValue": "", "name": "arg1", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "arg2", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -51034,12 +49550,12 @@ { "defaultValue": "", "name": "arg1", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "arg2", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -51062,12 +49578,12 @@ { "defaultValue": "", "name": "arg1", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "arg2", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -51106,12 +49622,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", @@ -51142,7 +49658,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", @@ -51173,7 +49689,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", @@ -51316,12 +49832,12 @@ { "defaultValue": "", "name": "Qelems", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "Relems", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -51415,12 +49931,12 @@ { "defaultValue": "", "name": "arg1", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "arg2", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -51443,12 +49959,12 @@ { "defaultValue": "", "name": "arg1", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "arg2", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -51471,12 +49987,12 @@ { "defaultValue": "", "name": "arg1", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "arg2", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -51515,12 +50031,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", @@ -51551,7 +50067,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", @@ -51582,7 +50098,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", @@ -51715,17 +50231,17 @@ { "defaultValue": "", "name": "Kp", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "Ki", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "Kd", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "0.02", @@ -51764,7 +50280,7 @@ { "defaultValue": "", "name": "measurement", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.PIDController", @@ -51782,12 +50298,12 @@ { "defaultValue": "", "name": "measurement", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "setpoint", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.PIDController", @@ -51818,12 +50334,12 @@ { "defaultValue": "", "name": "minimumInput", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "maximumInput", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.PIDController", @@ -52080,7 +50596,7 @@ { "defaultValue": "", "name": "Kd", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.PIDController", @@ -52098,7 +50614,7 @@ { "defaultValue": "", "name": "Ki", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.PIDController", @@ -52116,7 +50632,7 @@ { "defaultValue": "", "name": "iZone", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.PIDController", @@ -52134,12 +50650,12 @@ { "defaultValue": "", "name": "minimumIntegral", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "maximumIntegral", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.PIDController", @@ -52157,7 +50673,7 @@ { "defaultValue": "", "name": "Kp", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.PIDController", @@ -52175,17 +50691,17 @@ { "defaultValue": "", "name": "Kp", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "Ki", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "Kd", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.PIDController", @@ -52203,7 +50719,7 @@ { "defaultValue": "", "name": "setpoint", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.PIDController", @@ -52221,12 +50737,12 @@ { "defaultValue": "", "name": "errorTolerance", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "inf", "name": "errorDerivativeTolerance", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.PIDController", @@ -52249,17 +50765,17 @@ { "defaultValue": "", "name": "Kp", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "Ki", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "Kd", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -52708,7 +51224,7 @@ { "defaultValue": "", "name": "Kd", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.ProfiledPIDController", @@ -52762,7 +51278,7 @@ { "defaultValue": "", "name": "Ki", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.ProfiledPIDController", @@ -52780,7 +51296,7 @@ { "defaultValue": "", "name": "iZone", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.ProfiledPIDController", @@ -52798,12 +51314,12 @@ { "defaultValue": "", "name": "minimumIntegral", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "maximumIntegral", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.ProfiledPIDController", @@ -52821,7 +51337,7 @@ { "defaultValue": "", "name": "Kp", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.ProfiledPIDController", @@ -52839,17 +51355,17 @@ { "defaultValue": "", "name": "Kp", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "Ki", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "Kd", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.ProfiledPIDController", @@ -52895,17 +51411,17 @@ { "defaultValue": "", "name": "Kp", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "Ki", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "Kd", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -53354,7 +51870,7 @@ { "defaultValue": "", "name": "Kd", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", @@ -53408,7 +51924,7 @@ { "defaultValue": "", "name": "Ki", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", @@ -53426,7 +51942,7 @@ { "defaultValue": "", "name": "iZone", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", @@ -53444,12 +51960,12 @@ { "defaultValue": "", "name": "minimumIntegral", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "maximumIntegral", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", @@ -53467,7 +51983,7 @@ { "defaultValue": "", "name": "Kp", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", @@ -53485,17 +52001,17 @@ { "defaultValue": "", "name": "Kp", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "Ki", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "Kd", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", @@ -54159,12 +52675,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator", @@ -54218,7 +52734,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", @@ -54354,7 +52870,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", @@ -54496,12 +53012,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3d", @@ -54555,7 +53071,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", @@ -54691,7 +53207,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", @@ -54785,12 +53301,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", @@ -54844,7 +53360,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", @@ -54975,7 +53491,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", @@ -55059,12 +53575,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", @@ -55118,7 +53634,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", @@ -55249,7 +53765,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", @@ -55333,12 +53849,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", "name": "measurementStdDevs", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", @@ -55366,12 +53882,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", "name": "measurementStdDevs", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", @@ -55420,12 +53936,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", @@ -55566,12 +54082,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", @@ -55602,7 +54118,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", @@ -55635,12 +54151,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "measurementStdDevs", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", @@ -55668,12 +54184,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "measurementStdDevs", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", @@ -55722,12 +54238,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", @@ -55868,12 +54384,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", @@ -55904,7 +54420,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", @@ -55937,12 +54453,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "measurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -55970,12 +54486,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "measurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -56024,12 +54540,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_2", @@ -56170,12 +54686,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_2", @@ -56206,7 +54722,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_2", @@ -56239,12 +54755,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "measurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -56272,12 +54788,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "measurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -56326,12 +54842,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", @@ -56472,12 +54988,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", @@ -56508,7 +55024,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", @@ -56536,12 +55052,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", "name": "measurementStdDevs", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", @@ -56580,12 +55096,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", @@ -56726,12 +55242,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", @@ -56762,7 +55278,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", @@ -56790,12 +55306,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "measurementStdDevs", - "type": "Tuple[typing.SupportsFloat]" + "type": "Tuple[float]" }, { "defaultValue": "", @@ -56834,12 +55350,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", @@ -56980,12 +55496,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", @@ -57016,7 +55532,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", @@ -57044,12 +55560,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "measurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -57088,12 +55604,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_2", @@ -57234,12 +55750,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_2", @@ -57270,7 +55786,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_2", @@ -57298,12 +55814,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "measurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", @@ -57342,12 +55858,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", @@ -57488,12 +56004,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", @@ -57524,7 +56040,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", @@ -57552,12 +56068,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "measurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", @@ -57596,12 +56112,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", @@ -57742,12 +56258,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", @@ -57778,7 +56294,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", @@ -57849,12 +56365,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator", @@ -57908,7 +56424,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", @@ -58039,7 +56555,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", @@ -58161,12 +56677,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3d", @@ -58220,7 +56736,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", @@ -58351,7 +56867,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", @@ -58435,12 +56951,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", @@ -58494,7 +57010,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", @@ -58625,7 +57141,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", @@ -58709,12 +57225,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", @@ -58768,7 +57284,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", @@ -58899,7 +57415,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", @@ -59021,12 +57537,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator", @@ -59080,7 +57596,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", @@ -59211,7 +57727,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", @@ -59333,12 +57849,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3d", @@ -59392,7 +57908,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", @@ -59523,7 +58039,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", @@ -59607,12 +58123,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", @@ -59666,7 +58182,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", @@ -59797,7 +58313,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", @@ -59881,12 +58397,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", @@ -59940,7 +58456,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", @@ -60071,7 +58587,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", @@ -60193,12 +58709,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator", @@ -60252,7 +58768,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", @@ -60383,7 +58899,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", @@ -60505,12 +59021,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3d", @@ -60564,7 +59080,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", @@ -60695,7 +59211,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", @@ -60779,12 +59295,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", @@ -60838,7 +59354,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", @@ -60969,7 +59485,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", @@ -61053,12 +59569,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", @@ -61112,7 +59628,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", @@ -61243,7 +59759,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", @@ -61365,12 +59881,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator", @@ -61424,7 +59940,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", @@ -61555,7 +60071,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", @@ -61677,12 +60193,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3d", @@ -61736,7 +60252,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", @@ -61867,7 +60383,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", @@ -61951,12 +60467,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", @@ -62010,7 +60526,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", @@ -62141,7 +60657,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", @@ -62225,12 +60741,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", @@ -62284,7 +60800,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", @@ -62415,7 +60931,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", @@ -62537,12 +61053,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator", @@ -62596,7 +61112,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", @@ -62727,7 +61243,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", @@ -62849,12 +61365,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3d", @@ -62908,7 +61424,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", @@ -63039,7 +61555,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", @@ -63123,12 +61639,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", @@ -63182,7 +61698,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", @@ -63313,7 +61829,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", @@ -63397,12 +61913,12 @@ { "defaultValue": "", "name": "stateStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", @@ -63456,7 +61972,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", @@ -63587,7 +62103,7 @@ { "defaultValue": "", "name": "visionMeasurementStdDevs", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", @@ -63675,7 +62191,18 @@ "tooltip": "Creates a new Debouncer.\n\n:param debounceTime: The number of seconds the value must change from\n baseline for the filtered value to change.\n:param type: Which type of state change the debouncing will be\n performed on." } ], - "enums": [], + "enums": [ + { + "enumClassName": "wpimath.filter.Debouncer.DebounceType", + "enumValues": [ + "kBoth", + "kFalling", + "kRising" + ], + "moduleName": "wpimath.filter", + "tooltip": "Type of debouncing to perform.\n\nMembers:\n\n kRising : Rising edge.\n\n kFalling : Falling edge.\n\n kBoth : Both rising and falling edges." + } + ], "instanceMethods": [ { "args": [ @@ -63763,63 +62290,6 @@ "moduleName": "wpimath.filter", "staticMethods": [] }, - { - "className": "wpimath.filter.Debouncer.DebounceType", - "classVariables": [ - { - "name": "kBoth", - "tooltip": "", - "type": "wpimath.filter.Debouncer.DebounceType", - "writable": false - }, - { - "name": "kFalling", - "tooltip": "", - "type": "wpimath.filter.Debouncer.DebounceType", - "writable": false - }, - { - "name": "kRising", - "tooltip": "", - "type": "wpimath.filter.Debouncer.DebounceType", - "writable": false - } - ], - "constructors": [ - { - "args": [ - { - "defaultValue": "", - "name": "value", - "type": "typing.SupportsInt" - } - ], - "declaringClassName": "wpimath.filter.Debouncer.DebounceType", - "functionName": "__init__", - "returnType": "wpimath.filter.Debouncer.DebounceType", - "tooltip": "" - } - ], - "enums": [], - "instanceMethods": [], - "instanceVariables": [ - { - "name": "name", - "tooltip": "name(self: object, /) -> str\n", - "type": "str", - "writable": false - }, - { - "name": "value", - "tooltip": "", - "type": "int", - "writable": false - } - ], - "isComponent": false, - "moduleName": "wpimath.filter", - "staticMethods": [] - }, { "className": "wpimath.filter.LinearFilter", "classVariables": [], @@ -63829,12 +62299,12 @@ { "defaultValue": "", "name": "ffGains", - "type": "List[typing.SupportsFloat]" + "type": "List[float]" }, { "defaultValue": "", "name": "fbGains", - "type": "List[typing.SupportsFloat]" + "type": "List[float]" } ], "declaringClassName": "wpimath.filter.LinearFilter", @@ -63855,7 +62325,7 @@ { "defaultValue": "", "name": "input", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.filter.LinearFilter", @@ -63899,12 +62369,12 @@ { "defaultValue": "", "name": "inputBuffer", - "type": "List[typing.SupportsFloat]" + "type": "List[float]" }, { "defaultValue": "", "name": "outputBuffer", - "type": "List[typing.SupportsFloat]" + "type": "List[float]" } ], "declaringClassName": "wpimath.filter.LinearFilter", @@ -63922,7 +62392,7 @@ { "defaultValue": "", "name": "timeConstant", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -63940,7 +62410,7 @@ { "defaultValue": "", "name": "taps", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.filter.LinearFilter", @@ -63953,7 +62423,7 @@ { "defaultValue": "", "name": "timeConstant", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -63977,7 +62447,7 @@ { "defaultValue": "", "name": "size", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.filter.MedianFilter", @@ -63998,7 +62468,7 @@ { "defaultValue": "", "name": "next", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.filter.MedianFilter", @@ -64145,17 +62615,17 @@ { "defaultValue": "", "name": "x", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "y", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "z", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.geometry.CoordinateAxis", @@ -64400,7 +62870,7 @@ { "defaultValue": "", "name": "radius", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.geometry.Ellipse2d", @@ -65374,22 +63844,22 @@ { "defaultValue": "", "name": "w", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "x", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "y", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "z", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.geometry.Quaternion", @@ -65594,7 +64064,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.geometry.Quaternion", @@ -65901,12 +64371,12 @@ { "defaultValue": "", "name": "x", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "y", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.geometry.Rotation2d", @@ -67776,7 +66246,7 @@ { "defaultValue": "", "name": "func", - "type": "Callable[[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat], float]" + "type": "Callable[[float, float, float], float]" } ], "declaringClassName": "wpimath.interpolation.TimeInterpolatableFloatBuffer", @@ -67815,7 +66285,7 @@ { "defaultValue": "", "name": "sample", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.interpolation.TimeInterpolatableFloatBuffer", @@ -67887,7 +66357,7 @@ { "defaultValue": "", "name": "func", - "type": "Callable[[wpimath.geometry.Pose2d, wpimath.geometry.Pose2d, typing.SupportsFloat], wpimath.geometry.Pose2d]" + "type": "Callable[[wpimath.geometry.Pose2d, wpimath.geometry.Pose2d, float], wpimath.geometry.Pose2d]" } ], "declaringClassName": "wpimath.interpolation.TimeInterpolatablePose2dBuffer", @@ -67998,7 +66468,7 @@ { "defaultValue": "", "name": "func", - "type": "Callable[[wpimath.geometry.Pose3d, wpimath.geometry.Pose3d, typing.SupportsFloat], wpimath.geometry.Pose3d]" + "type": "Callable[[wpimath.geometry.Pose3d, wpimath.geometry.Pose3d, float], wpimath.geometry.Pose3d]" } ], "declaringClassName": "wpimath.interpolation.TimeInterpolatablePose3dBuffer", @@ -68109,7 +66579,7 @@ { "defaultValue": "", "name": "func", - "type": "Callable[[wpimath.geometry.Rotation2d, wpimath.geometry.Rotation2d, typing.SupportsFloat], wpimath.geometry.Rotation2d]" + "type": "Callable[[wpimath.geometry.Rotation2d, wpimath.geometry.Rotation2d, float], wpimath.geometry.Rotation2d]" } ], "declaringClassName": "wpimath.interpolation.TimeInterpolatableRotation2dBuffer", @@ -68220,7 +66690,7 @@ { "defaultValue": "", "name": "func", - "type": "Callable[[wpimath.geometry.Rotation3d, wpimath.geometry.Rotation3d, typing.SupportsFloat], wpimath.geometry.Rotation3d]" + "type": "Callable[[wpimath.geometry.Rotation3d, wpimath.geometry.Rotation3d, float], wpimath.geometry.Rotation3d]" } ], "declaringClassName": "wpimath.interpolation.TimeInterpolatableRotation3dBuffer", @@ -68331,7 +66801,7 @@ { "defaultValue": "", "name": "func", - "type": "Callable[[wpimath.geometry.Translation2d, wpimath.geometry.Translation2d, typing.SupportsFloat], wpimath.geometry.Translation2d]" + "type": "Callable[[wpimath.geometry.Translation2d, wpimath.geometry.Translation2d, float], wpimath.geometry.Translation2d]" } ], "declaringClassName": "wpimath.interpolation.TimeInterpolatableTranslation2dBuffer", @@ -68442,7 +66912,7 @@ { "defaultValue": "", "name": "func", - "type": "Callable[[wpimath.geometry.Translation3d, wpimath.geometry.Translation3d, typing.SupportsFloat], wpimath.geometry.Translation3d]" + "type": "Callable[[wpimath.geometry.Translation3d, wpimath.geometry.Translation3d, float], wpimath.geometry.Translation3d]" } ], "declaringClassName": "wpimath.interpolation.TimeInterpolatableTranslation3dBuffer", @@ -68748,7 +67218,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.DifferentialDriveKinematics", @@ -68885,7 +67355,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.DifferentialDriveKinematicsBase", @@ -69315,7 +67785,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.DifferentialDriveWheelPositions", @@ -69542,7 +68012,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.MecanumDriveKinematics", @@ -69690,7 +68160,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.MecanumDriveKinematicsBase", @@ -70110,7 +68580,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.MecanumDriveWheelPositions", @@ -70344,7 +68814,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.SwerveDrive2Kinematics", @@ -70562,7 +69032,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.SwerveDrive2KinematicsBase", @@ -71016,7 +69486,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.SwerveDrive3Kinematics", @@ -71234,7 +69704,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.SwerveDrive3KinematicsBase", @@ -71693,7 +70163,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.SwerveDrive4Kinematics", @@ -71911,7 +70381,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.SwerveDrive4KinematicsBase", @@ -72380,7 +70850,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.SwerveDrive6Kinematics", @@ -72598,7 +71068,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.SwerveDrive6KinematicsBase", @@ -73029,7 +71499,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.kinematics.SwerveModulePosition", @@ -73157,7 +71627,7 @@ { "defaultValue": "", "name": "initialTemperature", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", @@ -73193,7 +71663,7 @@ { "defaultValue": "", "name": "iterations", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.optimization.SimulatedAnnealing", @@ -73249,7 +71719,7 @@ { "defaultValue": "", "name": "iterations", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.path.TravelingSalesman", @@ -73272,22 +71742,22 @@ { "defaultValue": "", "name": "xInitialControlVector", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "xFinalControlVector", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "yInitialControlVector", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "yFinalControlVector", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" } ], "declaringClassName": "wpimath.spline.CubicHermiteSpline", @@ -73347,7 +71817,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.spline.Spline3", @@ -73370,22 +71840,22 @@ { "defaultValue": "", "name": "xInitialControlVector", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "xFinalControlVector", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "yInitialControlVector", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "yFinalControlVector", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.spline.QuinticHermiteSpline", @@ -73445,7 +71915,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.spline.Spline5", @@ -73522,7 +71992,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.spline.Spline3", @@ -73545,12 +72015,12 @@ { "defaultValue": "", "name": "x", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" }, { "defaultValue": "", "name": "y", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float]" } ], "declaringClassName": "wpimath.spline.Spline3.ControlVector", @@ -73642,7 +72112,7 @@ { "defaultValue": "", "name": "t", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.spline.Spline5", @@ -73665,12 +72135,12 @@ { "defaultValue": "", "name": "x", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" }, { "defaultValue": "", "name": "y", - "type": "Tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]" + "type": "Tuple[float, float, float]" } ], "declaringClassName": "wpimath.spline.Spline5.ControlVector", @@ -73843,12 +72313,12 @@ { "defaultValue": "0.0", "name": "t0", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "1.0", "name": "t1", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.spline.SplineParameterizer", @@ -73866,12 +72336,12 @@ { "defaultValue": "0.0", "name": "t0", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "1.0", "name": "t1", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.spline.SplineParameterizer", @@ -74033,7 +72503,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_1_1_1", @@ -74113,7 +72583,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_1_1_1", @@ -74203,12 +72673,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_1_1_1", @@ -74239,7 +72709,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_1_1_1", @@ -74405,7 +72875,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_2_1_1", @@ -74485,7 +72955,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_2_1_1", @@ -74575,12 +73045,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_2_1_1", @@ -74611,7 +73081,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_2_1_1", @@ -74777,7 +73247,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_2_1_2", @@ -74857,7 +73327,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_2_1_2", @@ -74947,12 +73417,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_2_1_2", @@ -74983,7 +73453,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_2_1_2", @@ -75149,7 +73619,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_2_2_2", @@ -75229,7 +73699,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_2_2_2", @@ -75319,12 +73789,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_2_2_2", @@ -75355,7 +73825,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_2_2_2", @@ -75521,7 +73991,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_3_2_3", @@ -75601,7 +74071,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_3_2_3", @@ -75691,12 +74161,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_3_2_3", @@ -75727,7 +74197,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystemLoop_3_2_3", @@ -75799,12 +74269,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_1_1_1", @@ -75835,12 +74305,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_1_1_1", @@ -75871,12 +74341,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_1_1_1", @@ -75907,12 +74377,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_1_1_1", @@ -76035,12 +74505,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_1_1_2", @@ -76071,12 +74541,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_1_1_2", @@ -76107,12 +74577,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_1_1_2", @@ -76143,12 +74613,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_1_1_2", @@ -76271,12 +74741,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_1_1_3", @@ -76307,12 +74777,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_1_1_3", @@ -76343,12 +74813,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_1_1_3", @@ -76379,12 +74849,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_1_1_3", @@ -76507,12 +74977,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_1_1", @@ -76543,12 +75013,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_1_1", @@ -76579,12 +75049,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_1_1", @@ -76615,12 +75085,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_1_1", @@ -76743,12 +75213,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_1_2", @@ -76779,12 +75249,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_1_2", @@ -76815,12 +75285,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_1_2", @@ -76851,12 +75321,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_1_2", @@ -76979,12 +75449,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_1_3", @@ -77015,12 +75485,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_1_3", @@ -77051,12 +75521,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_1_3", @@ -77087,12 +75557,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_1_3", @@ -77215,12 +75685,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_2_1", @@ -77251,12 +75721,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_2_1", @@ -77287,12 +75757,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_2_1", @@ -77323,12 +75793,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_2_1", @@ -77451,12 +75921,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_2_2", @@ -77487,12 +75957,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_2_2", @@ -77523,12 +75993,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_2_2", @@ -77559,12 +76029,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_2_2", @@ -77687,12 +76157,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_2_3", @@ -77723,12 +76193,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_2_3", @@ -77759,12 +76229,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_2_3", @@ -77795,12 +76265,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_2_2_3", @@ -77923,12 +76393,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_3_2_1", @@ -77959,12 +76429,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_3_2_1", @@ -77995,12 +76465,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_3_2_1", @@ -78031,12 +76501,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_3_2_1", @@ -78159,12 +76629,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_3_2_2", @@ -78195,12 +76665,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_3_2_2", @@ -78231,12 +76701,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_3_2_2", @@ -78267,12 +76737,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_3_2_2", @@ -78395,12 +76865,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_3_2_3", @@ -78431,12 +76901,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_3_2_3", @@ -78467,12 +76937,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_3_2_3", @@ -78503,12 +76973,12 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "j", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.LinearSystem_3_2_3", @@ -78607,7 +77077,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78733,7 +77203,7 @@ { "defaultValue": "", "name": "gearboxReduction", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78800,7 +77270,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78813,7 +77283,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78826,7 +77296,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78839,7 +77309,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78852,7 +77322,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78865,7 +77335,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78878,7 +77348,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78891,7 +77361,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78904,7 +77374,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78917,7 +77387,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78930,7 +77400,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78943,7 +77413,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78956,7 +77426,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78969,7 +77439,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78982,7 +77452,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -78995,7 +77465,7 @@ { "defaultValue": "1", "name": "numMotors", - "type": "typing.SupportsInt" + "type": "int" } ], "declaringClassName": "wpimath.system.plant.DCMotor", @@ -79038,7 +77508,7 @@ { "defaultValue": "", "name": "gearing", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.system.plant.LinearSystemId", @@ -79112,7 +77582,7 @@ { "defaultValue": "", "name": "gearing", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.system.plant.LinearSystemId", @@ -79140,7 +77610,7 @@ { "defaultValue": "", "name": "gearing", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.system.plant.LinearSystemId", @@ -79163,7 +77633,7 @@ { "defaultValue": "", "name": "gearing", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.system.plant.LinearSystemId", @@ -79319,7 +77789,7 @@ { "defaultValue": "", "name": "gearing", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.system.plant.LinearSystemId", @@ -79837,7 +78307,7 @@ { "defaultValue": "", "name": "i", - "type": "typing.SupportsFloat" + "type": "float" } ], "declaringClassName": "wpimath.trajectory.Trajectory.State", @@ -82094,7 +80564,39 @@ ], "modules": [ { - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.CompressorConfigType", + "enumValues": [ + "Analog", + "Digital", + "Disabled", + "Hybrid" + ], + "moduleName": "wpilib", + "tooltip": "Compressor config type.\n\nMembers:\n\n Disabled : Disabled.\n\n Digital : Digital.\n\n Analog : Analog.\n\n Hybrid : Hybrid." + }, + { + "enumClassName": "wpilib.PneumaticsModuleType", + "enumValues": [ + "CTREPCM", + "REVPH" + ], + "moduleName": "wpilib", + "tooltip": "Pneumatics module type.\n\nMembers:\n\n CTREPCM : CTRE PCM.\n\n REVPH : REV PH." + }, + { + "enumClassName": "wpilib.RuntimeType", + "enumValues": [ + "kRoboRIO", + "kRoboRIO2", + "kSimulation", + "kSystemCore" + ], + "moduleName": "wpilib", + "tooltip": "Runtime type.\n\nMembers:\n\n kRoboRIO : roboRIO 1.0.\n\n kRoboRIO2 : roboRIO 2.0.\n\n kSimulation : Simulation runtime.\n\n kSystemCore" + } + ], "functions": [ { "args": [], @@ -82170,7 +80672,7 @@ { "defaultValue": "", "name": "priority", - "type": "typing.SupportsInt" + "type": "int" } ], "functionName": "setCurrentThreadPriority", @@ -82200,7 +80702,17 @@ "moduleVariables": [] }, { - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.counter.EdgeConfiguration", + "enumValues": [ + "kFallingEdge", + "kRisingEdge" + ], + "moduleName": "wpilib.counter", + "tooltip": "Edge configuration.\n\nMembers:\n\n kRisingEdge : Rising edge configuration.\n\n kFallingEdge : Falling edge configuration." + } + ], "functions": [], "moduleName": "wpilib.counter", "moduleVariables": [] @@ -82309,7 +80821,20 @@ "moduleVariables": [] }, { - "enums": [], + "enums": [ + { + "enumClassName": "wpilib.sysid.State", + "enumValues": [ + "kDynamicForward", + "kDynamicReverse", + "kNone", + "kQuasistaticForward", + "kQuasistaticReverse" + ], + "moduleName": "wpilib.sysid", + "tooltip": "Possible state of a SysId routine.\n\nMembers:\n\n kQuasistaticForward : Quasistatic forward test.\n\n kQuasistaticReverse : Quasistatic reverse test.\n\n kDynamicForward : Dynamic forward test.\n\n kDynamicReverse : Dynamic reverse test.\n\n kNone : No test." + } + ], "functions": [], "moduleName": "wpilib.sysid", "moduleVariables": [] @@ -82358,17 +80883,17 @@ { "defaultValue": "", "name": "value", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "deadband", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "1.0", "name": "maxMagnitude", - "type": "typing.SupportsFloat" + "type": "float" } ], "functionName": "applyDeadband", @@ -82380,12 +80905,12 @@ { "defaultValue": "", "name": "x", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "y", - "type": "typing.SupportsInt" + "type": "int" } ], "functionName": "floorDiv", @@ -82397,12 +80922,12 @@ { "defaultValue": "", "name": "x", - "type": "typing.SupportsInt" + "type": "int" }, { "defaultValue": "", "name": "y", - "type": "typing.SupportsInt" + "type": "int" } ], "functionName": "floorMod", @@ -82414,17 +80939,17 @@ { "defaultValue": "", "name": "input", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "minimumInput", - "type": "typing.SupportsFloat" + "type": "float" }, { "defaultValue": "", "name": "maximumInput", - "type": "typing.SupportsFloat" + "type": "float" } ], "functionName": "inputModulus", diff --git a/src/blocks/utils/python.ts b/src/blocks/utils/python.ts index e74222d3..13b765d9 100644 --- a/src/blocks/utils/python.ts +++ b/src/blocks/utils/python.ts @@ -19,7 +19,14 @@ * @author lizlooney@google.com (Liz Looney) */ -import { ClassData, PythonData, ModuleData, organizeVarDataByType, VariableGettersAndSetters } from './python_json_types'; +import { + ClassData, + EnumData, + isPortType, + ModuleData, + organizeVarDataByType, + PythonData, + VariableGettersAndSetters } from './python_json_types'; import generatedRobotPyData from './generated/robotpy_data.json'; import generatedServerPythonScripts from './generated/server_python_scripts.json'; @@ -183,6 +190,27 @@ export function getClassData(className: string): ClassData | null { return null; } +// Returns the EnumData for the given enum class name. +export function getEnumData(enumClassName: string): EnumData | null { + for (const pythonData of allPythonData) { + for (const moduleData of pythonData.modules) { + for (const enumData of moduleData.enums) { + if (enumData.enumClassName === enumClassName) { + return enumData; + } + } + } + for (const classData of pythonData.classes) { + for (const enumData of classData.enums) { + if (enumData.enumClassName === enumClassName) { + return enumData; + } + } + } + } + return null; +} + // Returns the ModuleData for the given module name. export function getModuleData(moduleName: string): ModuleData | null { for (const pythonData of allPythonData) { @@ -227,13 +255,17 @@ export function getSubclassNames(type: string): string[] { // This function is used by multiple blocks to set the check for an input socket. export function getAllowedTypesForSetCheck(type: string): string[] { // For the given python type, returns an array of compatible input types. - const allowedTypes: string[] = []; collectAllowedTypesForSetCheck(type, allowedTypes); return allowedTypes; } function collectAllowedTypesForSetCheck(type: string, allowedTypes: string[]) { + if (isPortType(type)) { + allowedTypes.push(type); + return; + } + // Built-in python types. const check = getCheckForBuiltInType(type); if (check) { diff --git a/src/blocks/utils/python_json_types.ts b/src/blocks/utils/python_json_types.ts index 7f0ecd9f..71fa1276 100644 --- a/src/blocks/utils/python_json_types.ts +++ b/src/blocks/utils/python_json_types.ts @@ -60,8 +60,8 @@ export class FunctionData { returnType: string = ''; args: ArgData[] = []; declaringClassName?: string = ''; - componentPortName?: string = ''; - componentPortType?: string = ''; + isComponent?: boolean = false; + componentArgs?: ArgData[] = []; } export class ArgData { @@ -73,7 +73,7 @@ export class ArgData { export class EnumData { enumClassName: string = ''; moduleName: string = ''; - enumValues: string[] = []; + enumValues: string[] = []; tooltip: string = ''; } @@ -134,3 +134,95 @@ export function findSuperFunctionData(functionData: FunctionData, superClassFunc } return null; } + +export enum PortType { + // Ports on the Systemcore. + SYSTEMCORE_CAN_PORT, + SYSTEMCORE_SMART_IO_PORT, + SYSTEMCORE_I2C_PORT, + SYSTEMCORE_USB_PORT, + // Ports on other devices that can be connected to the Systemcore. + EXPANSION_HUB_MOTOR_PORT, + EXPANSION_HUB_SERVO_PORT, + MOTIONCORE_DEVICE_PORT, + MOTIONCORE_ENCODER_PORT, + USB_HUB_PORT, +} + +const PORT_TYPE_DELIMITER = '__'; + +export function stringToPortType(s: string): PortType | null { + return Object.prototype.hasOwnProperty.call(PortType, s) + ? (PortType as any)[s] as PortType + : null; +} + +export function portTypeToString(portType: PortType): string { + return PortType[portType]; +} + +export function isPortType(str: string): boolean { + let hasAtLeastOnePortType = false; + for (const s of str.split(PORT_TYPE_DELIMITER)) { + if (stringToPortType(s)) { + hasAtLeastOnePortType = true; + } else { + return false; + } + } + return hasAtLeastOnePortType; +} + +/** + * Parses the given string into an array of PortType. + * + * @param str A single string consisting of one or more port types. + * Multiple port types are separated by __ (two underscores). Each port type + * matches one of the PortType enum values. + */ +export function stringToPortTypeArray(str: string): PortType[] { + const portTypeArray: PortType[] = []; + for (const s of str.split(PORT_TYPE_DELIMITER)) { + const portType = stringToPortType(s); + if (portType) { + portTypeArray.push(portType); + } + } + return portTypeArray; +} + +export function portTypeArrayToString(portTypeArray: PortType[]): string { + return portTypeArray + .map(portType => PortType[portType]) + .join(PORT_TYPE_DELIMITER); +} + +/** + * Upgrades the given port type string. + * + * @param str a port type string stored in version 0.0.8 and earlier. + * @returns A single string consisting of one or more port types. + * Multiple port types are separated by __ (two underscores). Each port type + * matches one of the PortType enum values. + */ +export function upgradePortTypeString(str: string): string { + switch (str) { + case 'CAN_PORT': + return portTypeArrayToString([PortType.SYSTEMCORE_CAN_PORT]); + case 'SMART_IO_PORT': + return portTypeArrayToString([PortType.SYSTEMCORE_SMART_IO_PORT]); + case 'I2C_PORT': + return portTypeArrayToString([PortType.SYSTEMCORE_I2C_PORT]); + case 'USB_PORT': + return portTypeArrayToString([PortType.SYSTEMCORE_USB_PORT]); + case 'USB_HUB': + return portTypeArrayToString([PortType.SYSTEMCORE_USB_PORT, PortType.USB_HUB_PORT]); + case 'EXPANSION_HUB_MOTOR': + return portTypeArrayToString([PortType.SYSTEMCORE_USB_PORT, PortType.EXPANSION_HUB_MOTOR_PORT]); + case 'EXPANSION_HUB_SERVO': + return portTypeArrayToString([PortType.SYSTEMCORE_USB_PORT, PortType.EXPANSION_HUB_SERVO_PORT]); + case 'SMART_MOTOR_PORT': + return portTypeArrayToString([PortType.SYSTEMCORE_USB_PORT, PortType.MOTIONCORE_DEVICE_PORT]); + } + return str; +} diff --git a/src/blocks/utils/value.ts b/src/blocks/utils/value.ts index f321d034..4551f705 100644 --- a/src/blocks/utils/value.ts +++ b/src/blocks/utils/value.ts @@ -19,9 +19,12 @@ * @author lizlooney@google.com (Liz Looney) */ -import { getAlias } from './python'; +import { getAlias, getEnumData } from './python'; +import { isPortType } from './python_json_types'; import * as variable from './variable'; -import { createNoneShadowValue } from '../mrc_none'; +import { createNoneBlock, createNoneShadowValue } from '../mrc_none'; +import { createEnumBlock } from '../mrc_get_python_enum_value'; +import { createPort } from '../mrc_port'; export function valueForFunctionArgInput(argType: string, argDefaultValue: string): any { @@ -51,7 +54,7 @@ export function valueForFunctionArgInput(argType: string, argDefaultValue: strin break; case 'str': if (argDefaultValue === 'None') { - return createNoneShadowValue() + return createNoneShadowValue(); } // If argDefaultValue is surrounded by single or double quotes, it's a literal string. if (argDefaultValue.startsWith("'") && argDefaultValue.endsWith("'") || @@ -72,6 +75,80 @@ export function valueForFunctionArgInput(argType: string, argDefaultValue: strin return null; } +export function valueForComponentArgInput(argType: string, argDefaultValue: string): any { + if (isPortType(argType)) { + return createPort(argType); + } + + const alias = getAlias(argType); + if (alias) { + argType = alias; + } + switch (argType) { + case 'int': + if (argDefaultValue) { + const intNum = parseInt(argDefaultValue, 10); + if (!isNaN(intNum) && intNum.toString() === argDefaultValue) { + return createNumberBlock(intNum); + } + } + return createNumberBlock(0); + case 'float': + if (argDefaultValue) { + const floatNum = Number(argDefaultValue); + if (!isNaN(floatNum)) { + return createNumberBlock(floatNum); + } + } + return createNumberBlock(0); + case 'str': + if (argDefaultValue === 'None') { + return createNoneBlock(); + } + // If argDefaultValue is surrounded by single or double quotes, it's a literal string. + if (argDefaultValue.startsWith("'") && argDefaultValue.endsWith("'") || + argDefaultValue.startsWith('"') && argDefaultValue.endsWith('"')) { + const textValue = argDefaultValue.substring(1, argDefaultValue.length-1); + return createTextBlock(textValue); + } + return createTextBlock(''); + case 'bool': + if (argDefaultValue === 'True') { + return createBooleanBlock(true); + } + return createBooleanBlock(false); + } + + const enumData = getEnumData(argType); + if (enumData && enumData.enumValues.length) { + let enumValue: string = enumData.enumValues[0]; + if (argDefaultValue) { + for (const v of enumData.enumValues) { + if (v === argDefaultValue) { + enumValue = argDefaultValue; + break; + } + } + } + return { + block: createEnumBlock(enumValue, enumData), + }; + } + + return null; +} + +export function createNumberBlock(numValue: number): any { + return { + 'block': { + 'type': 'math_number', + 'fields': { + 'NUM': numValue, + }, + }, + }; +} + export function createNumberShadowValue(numValue: number): any { return { 'shadow': { @@ -83,6 +160,17 @@ export function createNumberShadowValue(numValue: number): any { }; } +export function createTextBlock(textValue: string): any { + return { + 'block': { + 'type': 'text', + 'fields': { + 'TEXT': textValue, + }, + }, + }; +} + export function createTextShadowValue(textValue: string): any { return { 'shadow': { @@ -94,6 +182,17 @@ export function createTextShadowValue(textValue: string): any { }; } +export function createBooleanBlock(boolValue: boolean): any { + return { + 'block': { + 'type': 'logic_boolean', + 'fields': { + 'BOOL': (boolValue ? 'TRUE' : 'FALSE'), + }, + }, + } +} + export function createBooleanShadowValue(boolValue: boolean): any { return { 'shadow': { diff --git a/src/editor/extended_python_generator.ts b/src/editor/extended_python_generator.ts index 1b9a810a..e95ae2f9 100644 --- a/src/editor/extended_python_generator.ts +++ b/src/editor/extended_python_generator.ts @@ -93,7 +93,7 @@ export class ExtendedPythonGenerator extends PythonGenerator { // Fields related to generating the __init__ for a mechanism. private hasAnyComponents = false; - private componentPorts: {[key: string]: string} = Object.create(null); + private mechanismInitArgNames: string[] = []; // Has event handlers (ie, needs to call self.register_event_handlers in __init__) private hasAnyEventHandlers = false; @@ -145,7 +145,7 @@ export class ExtendedPythonGenerator extends PythonGenerator { case storageModule.ModuleType.MECHANISM: if (this.hasAnyComponents) { initStatements += this.INDENT + 'self.define_hardware(' + - this.getComponentPortParameters().join(', ') + ')\n'; + this.mechanismInitArgNames.join(', ') + ')\n'; } break; case storageModule.ModuleType.OPMODE: @@ -173,7 +173,7 @@ export class ExtendedPythonGenerator extends PythonGenerator { if (this.getModuleType() === storageModule.ModuleType.MECHANISM) { this.hasAnyComponents = mechanismContainerHolder.hasAnyComponents(workspace); - mechanismContainerHolder.getComponentPorts(workspace, this.componentPorts); + mechanismContainerHolder.getMechanismInitArgNames(workspace, this.mechanismInitArgNames); } this.hasAnyEventHandlers = eventHandler.getHasAnyEnabledEventHandlers(workspace); @@ -183,7 +183,7 @@ export class ExtendedPythonGenerator extends PythonGenerator { this.context.setModule(null); this.workspace = null; this.hasAnyComponents = false; - this.componentPorts = Object.create(null); + this.mechanismInitArgNames = []; this.hasAnyEventHandlers = false; this.classMethods = Object.create(null); this.registerEventHandlerStatements = []; @@ -275,12 +275,8 @@ export class ExtendedPythonGenerator extends PythonGenerator { this.registerEventHandlerStatements.push(registerEventHandlerStatement); } - getComponentPortParameters(): string[] { - const ports: string[] = [] - for (const port in this.componentPorts) { - ports.push(port); - } - return ports; + getMechanismInitArgNames(): string[] { + return this.mechanismInitArgNames; } finish(code: string): string { diff --git a/src/storage/module_content.ts b/src/storage/module_content.ts index 3e4b35c1..4b595507 100644 --- a/src/storage/module_content.ts +++ b/src/storage/module_content.ts @@ -26,10 +26,12 @@ import startingOpModeBlocks from '../modules/opmode_start.json'; import startingMechanismBlocks from '../modules/mechanism_start.json'; import startingRobotBlocks from '../modules/robot_start.json'; import * as workspaces from '../blocks/utils/workspaces'; +import { upgradePortTypeString } from '../blocks/utils/python_json_types'; export type MethodArg = { name: string, type: string, // '' for an untyped arg. + defaultValue?: string, // '' for no default value }; export type Method = { @@ -47,91 +49,11 @@ export type MechanismInRobot = { className: string, // Includes the module name, for example 'game_piece_shooter.GamePieceShooter'. } -export enum PortType { - // Ports on the Systemcore. - SYSTEMCORE_CAN_PORT, - SYSTEMCORE_SMART_IO_PORT, - SYSTEMCORE_I2C_PORT, - SYSTEMCORE_USB_PORT, - // Ports on other devices that can be connected to the Systemcore. - EXPANSION_HUB_MOTOR_PORT, - EXPANSION_HUB_SERVO_PORT, - MOTIONCORE_DEVICE_PORT, - MOTIONCORE_ENCODER_PORT, - USB_HUB_PORT, -} - -export const PORT_TYPE_DELIMITER = '__'; - -export function stringToPortType(s: string): PortType | null { - return Object.prototype.hasOwnProperty.call(PortType, s) - ? (PortType as any)[s] as PortType - : null; -} - -export function portTypeToString(portType: PortType): string { - return PortType[portType]; -} - -/** - * Upgrades the given port type string. - * - * @param str a port type string stored in version 0.0.8 and earlier. - * @returns A single string consisting of one or more port types. - * Multiple port types are separated by __ (two underscores). Each port type - * matches one of the PortType enum values. - */ -export function upgradePortTypeString(str: string): string { - switch (str) { - case 'CAN_PORT': - return portTypeArrayToString([PortType.SYSTEMCORE_CAN_PORT]); - case 'SMART_IO_PORT': - return portTypeArrayToString([PortType.SYSTEMCORE_SMART_IO_PORT]); - case 'I2C_PORT': - return portTypeArrayToString([PortType.SYSTEMCORE_I2C_PORT]); - case 'USB_PORT': - return portTypeArrayToString([PortType.SYSTEMCORE_USB_PORT]); - case 'USB_HUB': - return portTypeArrayToString([PortType.SYSTEMCORE_USB_PORT, PortType.USB_HUB_PORT]); - case 'EXPANSION_HUB_MOTOR': - return portTypeArrayToString([PortType.SYSTEMCORE_USB_PORT, PortType.EXPANSION_HUB_MOTOR_PORT]); - case 'EXPANSION_HUB_SERVO': - return portTypeArrayToString([PortType.SYSTEMCORE_USB_PORT, PortType.EXPANSION_HUB_SERVO_PORT]); - case 'SMART_MOTOR_PORT': - return portTypeArrayToString([PortType.SYSTEMCORE_USB_PORT, PortType.MOTIONCORE_DEVICE_PORT]); - } - return str; -} - -/** - * Parses the given string into an array of PortType. - * - * @param portTypeString A single string consisting of one or more port types. - * Multiple port types are separated by __ (two underscores). Each port type - * matches one of the PortType enum values. - */ -export function stringToPortTypeArray(str: string): PortType[] { - const portTypeArray: PortType[] = []; - for (const s of upgradePortTypeString(str).split(PORT_TYPE_DELIMITER)) { - const portType = stringToPortType(s); - if (portType) { - portTypeArray.push(portType); - } - } - return portTypeArray; -} - -export function portTypeArrayToString(portTypeArray: PortType[]): string { - return portTypeArray - .map(portType => PortType[portType]) - .join(PORT_TYPE_DELIMITER); -} - export type Component = { componentId: string, // The mrcComponentId of the mrc_component block that adds the component to the robot or to a mechanism. name: string, className: string, // Includes the module name, for example 'wpilib.ExpansionHubMotor'. - ports: {[portName: string]: string}, // The value is the port type. + args: MethodArg[], } export type Event = { @@ -368,7 +290,7 @@ export function preupgrade_001_to_002(moduleContentText: string): string { export function preupgrade_008_to_009(moduleContentText: string): string { const parsedContent = JSON.parse(moduleContentText); - const allComponents: Component[] = [ + const allComponents: any[] = [ ...parsedContent.components, ...parsedContent.privateComponents ]; @@ -385,3 +307,28 @@ export function preupgrade_008_to_009(moduleContentText: string): string { return JSON.stringify(parsedContent, null, 2); } + +/** + * Preupgrades the module content text by changing Component.ports to Component.args. + * This function should only be called when upgrading old projects. + */ +export function preupgrade_009_to_0010(moduleContentText: string): string { + const parsedContent = JSON.parse(moduleContentText); + + const allComponents: any[] = [ + ...parsedContent.components, + ...parsedContent.privateComponents + ]; + allComponents.forEach((component) => { + component.args = [] + for (const port in component.ports) { + component.args.push({ + name: port, + type: component.ports[port], + defaultValue: '', + }); + } + delete component.ports; + }); + return JSON.stringify(parsedContent, null, 2); +} diff --git a/src/storage/upgrade_project.ts b/src/storage/upgrade_project.ts index 46da2e6f..e99e724c 100644 --- a/src/storage/upgrade_project.ts +++ b/src/storage/upgrade_project.ts @@ -39,7 +39,7 @@ import { upgrade_008_to_009 as upgrade_call_python_function_008_to_009 } from '. import * as workspaces from '../blocks/utils/workspaces'; export const NO_VERSION = '0.0.0'; -export const CURRENT_VERSION = '0.0.9'; +export const CURRENT_VERSION = '0.0.10'; export async function upgradeProjectIfNecessary( storage: commonStorage.Storage, projectName: string): Promise { @@ -93,6 +93,11 @@ export async function upgradeProjectIfNecessary( // @ts-ignore case '0.0.8': await upgradeFrom_008_to_009(storage, projectName, projectInfo); + + // Intentional fallthrough after case '0.0.9' + // @ts-ignore + case '0.0.9': + await upgradeFrom_009_to_0010(storage, projectName, projectInfo); } await storageProject.saveProjectInfo(storage, projectName); } @@ -193,6 +198,12 @@ function noPreupgrade(moduleContentText: string): string { return moduleContentText; } +/** + * Upgrade function that makes no changes. + */ +function noUpgrade(_workspace: Blockly.Workspace) { +} + async function upgradeFrom_000_to_001( _storage: commonStorage.Storage, _projectName: string, @@ -298,3 +309,15 @@ async function upgradeFrom_008_to_009( anyModuleType, upgrade); projectInfo.version = '0.0.9'; } + +async function upgradeFrom_009_to_0010( + storage: commonStorage.Storage, + projectName: string, + projectInfo: storageProject.ProjectInfo): Promise { + // Starting in 0010, Components are saved with args instead of ports. + await upgradeBlocksFiles( + storage, projectName, + anyModuleType, storageModuleContent.preupgrade_009_to_0010, + noModuleTypes, noUpgrade); + projectInfo.version = '0.0.10'; +}