diff --git a/src/App.tsx b/src/App.tsx
index 124ca6f9..a484174b 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -44,7 +44,7 @@ import * as commonStorage from './storage/common_storage';
import * as clientSideStorage from './storage/client_side_storage';
import * as CustomBlocks from './blocks/setup_custom_blocks';
-import { initialize as initializeGeneratedBlocks } from './blocks/utils/generated/initialize';
+import { initialize as initializeRobotPyBlocks } from './blocks/utils/robotpy_initialize';
import * as ChangeFramework from './blocks/utils/change_framework'
import { mutatorOpenListener } from './blocks/mrc_class_method_def'
@@ -133,7 +133,7 @@ const App: React.FC = () => {
CustomBlocks.setup(forBlock);
Object.assign(pythonGenerator.forBlock, forBlock);
Object.assign(extendedPythonGenerator.forBlock, pythonGenerator.forBlock);
- initializeGeneratedBlocks();
+ initializeRobotPyBlocks();
};
const initializeShownPythonToolboxCategories = async () => {
diff --git a/src/blocks/generated/class_hal.AddressableLEDData.ts b/src/blocks/generated/class_hal.AddressableLEDData.ts
deleted file mode 100644
index a2cbbef9..00000000
--- a/src/blocks/generated/class_hal.AddressableLEDData.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.AddressableLEDData
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.AddressableLEDData", "int", ["b", "g", "r"], ["///< blue value", "///< green value", "///< red value"]);
- setPythonVariable.initializeInstanceVariableSetter("hal.AddressableLEDData", "int", ["b", "g", "r"], ["///< blue value", "///< green value", "///< red value"]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.AddressableLEDData", "varType": "int", "importModule": "", "selfLabel": "addressableLEDData", "selfType": "hal.AddressableLEDData"}, "fields": {"MODULE_OR_CLASS": "hal.AddressableLEDData", "VAR": "b"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDData"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.AddressableLEDData", "varType": "int", "importModule": "", "selfLabel": "addressableLEDData", "selfType": "hal.AddressableLEDData"}, "fields": {"MODULE_OR_CLASS": "hal.AddressableLEDData", "VAR": "b"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDData"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.AddressableLEDData", "varType": "int", "importModule": "", "selfLabel": "addressableLEDData", "selfType": "hal.AddressableLEDData"}, "fields": {"MODULE_OR_CLASS": "hal.AddressableLEDData", "VAR": "g"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDData"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.AddressableLEDData", "varType": "int", "importModule": "", "selfLabel": "addressableLEDData", "selfType": "hal.AddressableLEDData"}, "fields": {"MODULE_OR_CLASS": "hal.AddressableLEDData", "VAR": "g"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDData"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.AddressableLEDData", "varType": "int", "importModule": "", "selfLabel": "addressableLEDData", "selfType": "hal.AddressableLEDData"}, "fields": {"MODULE_OR_CLASS": "hal.AddressableLEDData", "VAR": "r"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDData"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.AddressableLEDData", "varType": "int", "importModule": "", "selfLabel": "addressableLEDData", "selfType": "hal.AddressableLEDData"}, "fields": {"MODULE_OR_CLASS": "hal.AddressableLEDData", "VAR": "r"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDData"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAddressableLEDData"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.AddressableLEDData", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.AddressableLEDData"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "AddressableLEDData",
- contents: contents,
- className: "hal.AddressableLEDData",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.CANStreamMessage.ts b/src/blocks/generated/class_hal.CANStreamMessage.ts
deleted file mode 100644
index 5aa7e7dc..00000000
--- a/src/blocks/generated/class_hal.CANStreamMessage.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.CANStreamMessage
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.CANStreamMessage", "memoryview", ["data"], ["The message data"]);
- getPythonVariable.initializeInstanceVariableGetter("hal.CANStreamMessage", "int", ["dataSize", "messageID", "timeStamp"], ["The size of the data received (0-8 bytes)", "The message ID", "The packet received timestamp (based off of CLOCK_MONOTONIC)"]);
- setPythonVariable.initializeInstanceVariableSetter("hal.CANStreamMessage", "int", ["dataSize", "messageID", "timeStamp"], ["The size of the data received (0-8 bytes)", "The message ID", "The packet received timestamp (based off of CLOCK_MONOTONIC)"]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 8 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.CANStreamMessage", "varType": "memoryview", "importModule": "", "selfLabel": "cANStreamMessage", "selfType": "hal.CANStreamMessage"}, "fields": {"MODULE_OR_CLASS": "hal.CANStreamMessage", "VAR": "data"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStreamMessage"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.CANStreamMessage", "varType": "int", "importModule": "", "selfLabel": "cANStreamMessage", "selfType": "hal.CANStreamMessage"}, "fields": {"MODULE_OR_CLASS": "hal.CANStreamMessage", "VAR": "dataSize"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStreamMessage"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.CANStreamMessage", "varType": "int", "importModule": "", "selfLabel": "cANStreamMessage", "selfType": "hal.CANStreamMessage"}, "fields": {"MODULE_OR_CLASS": "hal.CANStreamMessage", "VAR": "dataSize"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStreamMessage"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.CANStreamMessage", "varType": "int", "importModule": "", "selfLabel": "cANStreamMessage", "selfType": "hal.CANStreamMessage"}, "fields": {"MODULE_OR_CLASS": "hal.CANStreamMessage", "VAR": "messageID"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStreamMessage"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.CANStreamMessage", "varType": "int", "importModule": "", "selfLabel": "cANStreamMessage", "selfType": "hal.CANStreamMessage"}, "fields": {"MODULE_OR_CLASS": "hal.CANStreamMessage", "VAR": "messageID"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStreamMessage"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.CANStreamMessage", "varType": "int", "importModule": "", "selfLabel": "cANStreamMessage", "selfType": "hal.CANStreamMessage"}, "fields": {"MODULE_OR_CLASS": "hal.CANStreamMessage", "VAR": "timeStamp"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStreamMessage"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.CANStreamMessage", "varType": "int", "importModule": "", "selfLabel": "cANStreamMessage", "selfType": "hal.CANStreamMessage"}, "fields": {"MODULE_OR_CLASS": "hal.CANStreamMessage", "VAR": "timeStamp"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStreamMessage"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCANStreamMessage"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.CANStreamMessage", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.CANStreamMessage"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "CANStreamMessage",
- contents: contents,
- className: "hal.CANStreamMessage",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.ControlWord.ts b/src/blocks/generated/class_hal.ControlWord.ts
deleted file mode 100644
index 9b92d4a6..00000000
--- a/src/blocks/generated/class_hal.ControlWord.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.ControlWord
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.ControlWord", "int", ["autonomous", "control_reserved", "dsAttached", "eStop", "enabled", "fmsAttached", "test"], ["", "", "", "", "", "", ""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.ControlWord", "int", ["autonomous", "control_reserved", "dsAttached", "eStop", "enabled", "fmsAttached", "test"], ["", "", "", "", "", "", ""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 15 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.ControlWord", "varType": "int", "importModule": "", "selfLabel": "controlWord", "selfType": "hal.ControlWord"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord", "VAR": "autonomous"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlWord"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.ControlWord", "varType": "int", "importModule": "", "selfLabel": "controlWord", "selfType": "hal.ControlWord"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord", "VAR": "autonomous"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlWord"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.ControlWord", "varType": "int", "importModule": "", "selfLabel": "controlWord", "selfType": "hal.ControlWord"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord", "VAR": "control_reserved"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlWord"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.ControlWord", "varType": "int", "importModule": "", "selfLabel": "controlWord", "selfType": "hal.ControlWord"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord", "VAR": "control_reserved"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlWord"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.ControlWord", "varType": "int", "importModule": "", "selfLabel": "controlWord", "selfType": "hal.ControlWord"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord", "VAR": "dsAttached"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlWord"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.ControlWord", "varType": "int", "importModule": "", "selfLabel": "controlWord", "selfType": "hal.ControlWord"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord", "VAR": "dsAttached"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlWord"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.ControlWord", "varType": "int", "importModule": "", "selfLabel": "controlWord", "selfType": "hal.ControlWord"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord", "VAR": "eStop"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlWord"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.ControlWord", "varType": "int", "importModule": "", "selfLabel": "controlWord", "selfType": "hal.ControlWord"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord", "VAR": "eStop"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlWord"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.ControlWord", "varType": "int", "importModule": "", "selfLabel": "controlWord", "selfType": "hal.ControlWord"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord", "VAR": "enabled"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlWord"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.ControlWord", "varType": "int", "importModule": "", "selfLabel": "controlWord", "selfType": "hal.ControlWord"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord", "VAR": "enabled"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlWord"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.ControlWord", "varType": "int", "importModule": "", "selfLabel": "controlWord", "selfType": "hal.ControlWord"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord", "VAR": "fmsAttached"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlWord"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.ControlWord", "varType": "int", "importModule": "", "selfLabel": "controlWord", "selfType": "hal.ControlWord"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord", "VAR": "fmsAttached"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlWord"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.ControlWord", "varType": "int", "importModule": "", "selfLabel": "controlWord", "selfType": "hal.ControlWord"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord", "VAR": "test"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlWord"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.ControlWord", "varType": "int", "importModule": "", "selfLabel": "controlWord", "selfType": "hal.ControlWord"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord", "VAR": "test"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlWord"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myControlWord"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.ControlWord", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.ControlWord"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "ControlWord",
- contents: contents,
- className: "hal.ControlWord",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.JoystickAxes.ts b/src/blocks/generated/class_hal.JoystickAxes.ts
deleted file mode 100644
index 95a0b8bc..00000000
--- a/src/blocks/generated/class_hal.JoystickAxes.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.JoystickAxes
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.JoystickAxes", "memoryview", ["axes", "raw"], ["", ""]);
- getPythonVariable.initializeInstanceVariableGetter("hal.JoystickAxes", "int", ["count"], [""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.JoystickAxes", "int", ["count"], [""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 5 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickAxes", "varType": "memoryview", "importModule": "", "selfLabel": "joystickAxes", "selfType": "hal.JoystickAxes"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickAxes", "VAR": "axes"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickAxes"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickAxes", "varType": "memoryview", "importModule": "", "selfLabel": "joystickAxes", "selfType": "hal.JoystickAxes"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickAxes", "VAR": "raw"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickAxes"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickAxes", "varType": "int", "importModule": "", "selfLabel": "joystickAxes", "selfType": "hal.JoystickAxes"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickAxes", "VAR": "count"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickAxes"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickAxes", "varType": "int", "importModule": "", "selfLabel": "joystickAxes", "selfType": "hal.JoystickAxes"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickAxes", "VAR": "count"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickAxes"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myJoystickAxes"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.JoystickAxes", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickAxes"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "JoystickAxes",
- contents: contents,
- className: "hal.JoystickAxes",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.JoystickButtons.ts b/src/blocks/generated/class_hal.JoystickButtons.ts
deleted file mode 100644
index 3dbd4218..00000000
--- a/src/blocks/generated/class_hal.JoystickButtons.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.JoystickButtons
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.JoystickButtons", "int", ["buttons", "count"], ["", ""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.JoystickButtons", "int", ["buttons", "count"], ["", ""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 5 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickButtons", "varType": "int", "importModule": "", "selfLabel": "joystickButtons", "selfType": "hal.JoystickButtons"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickButtons", "VAR": "buttons"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickButtons"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickButtons", "varType": "int", "importModule": "", "selfLabel": "joystickButtons", "selfType": "hal.JoystickButtons"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickButtons", "VAR": "buttons"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickButtons"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickButtons", "varType": "int", "importModule": "", "selfLabel": "joystickButtons", "selfType": "hal.JoystickButtons"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickButtons", "VAR": "count"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickButtons"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickButtons", "varType": "int", "importModule": "", "selfLabel": "joystickButtons", "selfType": "hal.JoystickButtons"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickButtons", "VAR": "count"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickButtons"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myJoystickButtons"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.JoystickButtons", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickButtons"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "JoystickButtons",
- contents: contents,
- className: "hal.JoystickButtons",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.JoystickDescriptor.ts b/src/blocks/generated/class_hal.JoystickDescriptor.ts
deleted file mode 100644
index 14f9eb6e..00000000
--- a/src/blocks/generated/class_hal.JoystickDescriptor.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.JoystickDescriptor
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.JoystickDescriptor", "int", ["axisCount", "buttonCount", "isXbox", "povCount", "type"], ["", "", "", "", ""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.JoystickDescriptor", "int", ["axisCount", "buttonCount", "isXbox", "povCount", "type"], ["", "", "", "", ""]);
- getPythonVariable.initializeInstanceVariableGetter("hal.JoystickDescriptor", "memoryview", ["axisTypes", "name"], ["", ""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 13 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickDescriptor", "varType": "int", "importModule": "", "selfLabel": "joystickDescriptor", "selfType": "hal.JoystickDescriptor"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickDescriptor", "VAR": "axisCount"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickDescriptor"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickDescriptor", "varType": "int", "importModule": "", "selfLabel": "joystickDescriptor", "selfType": "hal.JoystickDescriptor"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickDescriptor", "VAR": "axisCount"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickDescriptor"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickDescriptor", "varType": "int", "importModule": "", "selfLabel": "joystickDescriptor", "selfType": "hal.JoystickDescriptor"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickDescriptor", "VAR": "buttonCount"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickDescriptor"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickDescriptor", "varType": "int", "importModule": "", "selfLabel": "joystickDescriptor", "selfType": "hal.JoystickDescriptor"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickDescriptor", "VAR": "buttonCount"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickDescriptor"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickDescriptor", "varType": "int", "importModule": "", "selfLabel": "joystickDescriptor", "selfType": "hal.JoystickDescriptor"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickDescriptor", "VAR": "isXbox"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickDescriptor"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickDescriptor", "varType": "int", "importModule": "", "selfLabel": "joystickDescriptor", "selfType": "hal.JoystickDescriptor"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickDescriptor", "VAR": "isXbox"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickDescriptor"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickDescriptor", "varType": "int", "importModule": "", "selfLabel": "joystickDescriptor", "selfType": "hal.JoystickDescriptor"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickDescriptor", "VAR": "povCount"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickDescriptor"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickDescriptor", "varType": "int", "importModule": "", "selfLabel": "joystickDescriptor", "selfType": "hal.JoystickDescriptor"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickDescriptor", "VAR": "povCount"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickDescriptor"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickDescriptor", "varType": "int", "importModule": "", "selfLabel": "joystickDescriptor", "selfType": "hal.JoystickDescriptor"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickDescriptor", "VAR": "type"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickDescriptor"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickDescriptor", "varType": "int", "importModule": "", "selfLabel": "joystickDescriptor", "selfType": "hal.JoystickDescriptor"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickDescriptor", "VAR": "type"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickDescriptor"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickDescriptor", "varType": "memoryview", "importModule": "", "selfLabel": "joystickDescriptor", "selfType": "hal.JoystickDescriptor"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickDescriptor", "VAR": "axisTypes"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickDescriptor"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickDescriptor", "varType": "memoryview", "importModule": "", "selfLabel": "joystickDescriptor", "selfType": "hal.JoystickDescriptor"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickDescriptor", "VAR": "name"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickDescriptor"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myJoystickDescriptor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.JoystickDescriptor", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickDescriptor"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "JoystickDescriptor",
- contents: contents,
- className: "hal.JoystickDescriptor",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.JoystickPOVs.ts b/src/blocks/generated/class_hal.JoystickPOVs.ts
deleted file mode 100644
index 91ee7cbf..00000000
--- a/src/blocks/generated/class_hal.JoystickPOVs.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.JoystickPOVs
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.JoystickPOVs", "int", ["count"], [""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.JoystickPOVs", "int", ["count"], [""]);
- getPythonVariable.initializeInstanceVariableGetter("hal.JoystickPOVs", "memoryview", ["povs"], [""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 4 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickPOVs", "varType": "int", "importModule": "", "selfLabel": "joystickPOVs", "selfType": "hal.JoystickPOVs"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickPOVs", "VAR": "count"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickPOVs"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickPOVs", "varType": "int", "importModule": "", "selfLabel": "joystickPOVs", "selfType": "hal.JoystickPOVs"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickPOVs", "VAR": "count"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickPOVs"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.JoystickPOVs", "varType": "memoryview", "importModule": "", "selfLabel": "joystickPOVs", "selfType": "hal.JoystickPOVs"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickPOVs", "VAR": "povs"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickPOVs"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myJoystickPOVs"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.JoystickPOVs", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.JoystickPOVs"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "JoystickPOVs",
- contents: contents,
- className: "hal.JoystickPOVs",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.MatchInfo.ts b/src/blocks/generated/class_hal.MatchInfo.ts
deleted file mode 100644
index 3bf1b9d6..00000000
--- a/src/blocks/generated/class_hal.MatchInfo.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.MatchInfo
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.MatchInfo", "memoryview", ["eventName", "gameSpecificMessage"], ["", ""]);
- getPythonVariable.initializeInstanceVariableGetter("hal.MatchInfo", "int", ["gameSpecificMessageSize", "matchNumber", "replayNumber"], ["", "", ""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.MatchInfo", "int", ["gameSpecificMessageSize", "matchNumber", "replayNumber"], ["", "", ""]);
- getPythonVariable.initializeInstanceVariableGetter("hal.MatchInfo", "hal._wpiHal.MatchType", ["matchType"], [""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.MatchInfo", "hal._wpiHal.MatchType", ["matchType"], [""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 11 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.MatchInfo", "varType": "memoryview", "importModule": "", "selfLabel": "matchInfo", "selfType": "hal.MatchInfo"}, "fields": {"MODULE_OR_CLASS": "hal.MatchInfo", "VAR": "eventName"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMatchInfo"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.MatchInfo", "varType": "memoryview", "importModule": "", "selfLabel": "matchInfo", "selfType": "hal.MatchInfo"}, "fields": {"MODULE_OR_CLASS": "hal.MatchInfo", "VAR": "gameSpecificMessage"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMatchInfo"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.MatchInfo", "varType": "int", "importModule": "", "selfLabel": "matchInfo", "selfType": "hal.MatchInfo"}, "fields": {"MODULE_OR_CLASS": "hal.MatchInfo", "VAR": "gameSpecificMessageSize"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMatchInfo"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.MatchInfo", "varType": "int", "importModule": "", "selfLabel": "matchInfo", "selfType": "hal.MatchInfo"}, "fields": {"MODULE_OR_CLASS": "hal.MatchInfo", "VAR": "gameSpecificMessageSize"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMatchInfo"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.MatchInfo", "varType": "int", "importModule": "", "selfLabel": "matchInfo", "selfType": "hal.MatchInfo"}, "fields": {"MODULE_OR_CLASS": "hal.MatchInfo", "VAR": "matchNumber"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMatchInfo"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.MatchInfo", "varType": "int", "importModule": "", "selfLabel": "matchInfo", "selfType": "hal.MatchInfo"}, "fields": {"MODULE_OR_CLASS": "hal.MatchInfo", "VAR": "matchNumber"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMatchInfo"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.MatchInfo", "varType": "int", "importModule": "", "selfLabel": "matchInfo", "selfType": "hal.MatchInfo"}, "fields": {"MODULE_OR_CLASS": "hal.MatchInfo", "VAR": "replayNumber"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMatchInfo"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.MatchInfo", "varType": "int", "importModule": "", "selfLabel": "matchInfo", "selfType": "hal.MatchInfo"}, "fields": {"MODULE_OR_CLASS": "hal.MatchInfo", "VAR": "replayNumber"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMatchInfo"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.MatchInfo", "varType": "hal._wpiHal.MatchType", "importModule": "", "selfLabel": "matchInfo", "selfType": "hal.MatchInfo"}, "fields": {"MODULE_OR_CLASS": "hal.MatchInfo", "VAR": "matchType"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMatchInfo"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.MatchInfo", "varType": "hal._wpiHal.MatchType", "importModule": "", "selfLabel": "matchInfo", "selfType": "hal.MatchInfo"}, "fields": {"MODULE_OR_CLASS": "hal.MatchInfo", "VAR": "matchType"}, "inputs": {"VALUE": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMatchType"}}}}, "SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMatchInfo"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMatchInfo"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.MatchInfo", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.MatchInfo"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "MatchInfo",
- contents: contents,
- className: "hal.MatchInfo",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.PowerDistributionFaults.ts b/src/blocks/generated/class_hal.PowerDistributionFaults.ts
deleted file mode 100644
index b6c178a0..00000000
--- a/src/blocks/generated/class_hal.PowerDistributionFaults.ts
+++ /dev/null
@@ -1,85 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.PowerDistributionFaults
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.PowerDistributionFaults", "int", ["brownout", "canWarning", "channel0BreakerFault", "channel10BreakerFault", "channel11BreakerFault", "channel12BreakerFault", "channel13BreakerFault", "channel14BreakerFault", "channel15BreakerFault", "channel16BreakerFault", "channel17BreakerFault", "channel18BreakerFault", "channel19BreakerFault", "channel1BreakerFault", "channel20BreakerFault", "channel21BreakerFault", "channel22BreakerFault", "channel23BreakerFault", "channel2BreakerFault", "channel3BreakerFault", "channel4BreakerFault", "channel5BreakerFault", "channel6BreakerFault", "channel7BreakerFault", "channel8BreakerFault", "channel9BreakerFault", "hardwareFault"], ["The input voltage is below the minimum voltage.", "A warning was raised by the device's CAN controller.", "Breaker fault on channel 0.", "Breaker fault on channel 10.", "Breaker fault on channel 12.", "Breaker fault on channel 13.", "Breaker fault on channel 14.", "Breaker fault on channel 15.", "Breaker fault on channel 16.", "Breaker fault on channel 17.", "Breaker fault on channel 18.", "Breaker fault on channel 19.", "Breaker fault on channel 20.", "Breaker fault on channel 1.", "Breaker fault on channel 21.", "Breaker fault on channel 22.", "Breaker fault on channel 23.", "Breaker fault on channel 24.", "Breaker fault on channel 2.", "Breaker fault on channel 3.", "Breaker fault on channel 4.", "Breaker fault on channel 5.", "Breaker fault on channel 6.", "Breaker fault on channel 7.", "Breaker fault on channel 8.", "Breaker fault on channel 9.", "The hardware on the device has malfunctioned."]);
- setPythonVariable.initializeInstanceVariableSetter("hal.PowerDistributionFaults", "int", ["brownout", "canWarning", "channel0BreakerFault", "channel10BreakerFault", "channel11BreakerFault", "channel12BreakerFault", "channel13BreakerFault", "channel14BreakerFault", "channel15BreakerFault", "channel16BreakerFault", "channel17BreakerFault", "channel18BreakerFault", "channel19BreakerFault", "channel1BreakerFault", "channel20BreakerFault", "channel21BreakerFault", "channel22BreakerFault", "channel23BreakerFault", "channel2BreakerFault", "channel3BreakerFault", "channel4BreakerFault", "channel5BreakerFault", "channel6BreakerFault", "channel7BreakerFault", "channel8BreakerFault", "channel9BreakerFault", "hardwareFault"], ["The input voltage is below the minimum voltage.", "A warning was raised by the device's CAN controller.", "Breaker fault on channel 0.", "Breaker fault on channel 10.", "Breaker fault on channel 12.", "Breaker fault on channel 13.", "Breaker fault on channel 14.", "Breaker fault on channel 15.", "Breaker fault on channel 16.", "Breaker fault on channel 17.", "Breaker fault on channel 18.", "Breaker fault on channel 19.", "Breaker fault on channel 20.", "Breaker fault on channel 1.", "Breaker fault on channel 21.", "Breaker fault on channel 22.", "Breaker fault on channel 23.", "Breaker fault on channel 24.", "Breaker fault on channel 2.", "Breaker fault on channel 3.", "Breaker fault on channel 4.", "Breaker fault on channel 5.", "Breaker fault on channel 6.", "Breaker fault on channel 7.", "Breaker fault on channel 8.", "Breaker fault on channel 9.", "The hardware on the device has malfunctioned."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 55 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "canWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "canWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel0BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel0BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel10BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel10BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel11BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel11BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel12BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel12BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel13BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel13BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel14BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel14BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel15BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel15BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel16BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel16BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel17BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel17BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel18BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel18BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel19BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel19BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel1BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel1BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel20BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel20BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel21BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel21BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel22BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel22BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel23BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel23BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel2BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel2BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel3BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel3BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel4BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel4BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel5BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel5BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel6BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel6BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel7BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel7BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel8BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel8BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel9BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "channel9BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "hardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionFaults", "selfType": "hal.PowerDistributionFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults", "VAR": "hardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPowerDistributionFaults"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.PowerDistributionFaults", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionFaults"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PowerDistributionFaults",
- contents: contents,
- className: "hal.PowerDistributionFaults",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.PowerDistributionStickyFaults.ts b/src/blocks/generated/class_hal.PowerDistributionStickyFaults.ts
deleted file mode 100644
index 86de4ad1..00000000
--- a/src/blocks/generated/class_hal.PowerDistributionStickyFaults.ts
+++ /dev/null
@@ -1,91 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.PowerDistributionStickyFaults
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.PowerDistributionStickyFaults", "int", ["brownout", "canBusOff", "canWarning", "channel0BreakerFault", "channel10BreakerFault", "channel11BreakerFault", "channel12BreakerFault", "channel13BreakerFault", "channel14BreakerFault", "channel15BreakerFault", "channel16BreakerFault", "channel17BreakerFault", "channel18BreakerFault", "channel19BreakerFault", "channel1BreakerFault", "channel20BreakerFault", "channel21BreakerFault", "channel22BreakerFault", "channel23BreakerFault", "channel2BreakerFault", "channel3BreakerFault", "channel4BreakerFault", "channel5BreakerFault", "channel6BreakerFault", "channel7BreakerFault", "channel8BreakerFault", "channel9BreakerFault", "firmwareFault", "hardwareFault", "hasReset"], ["The input voltage is below the minimum voltage.", "The device's CAN controller experienced a \"Bus Off\" event.", "A warning was raised by the device's CAN controller.", "Breaker fault on channel 0.", "Breaker fault on channel 10.", "Breaker fault on channel 12.", "Breaker fault on channel 13.", "Breaker fault on channel 14.", "Breaker fault on channel 15.", "Breaker fault on channel 16.", "Breaker fault on channel 17.", "Breaker fault on channel 18.", "Breaker fault on channel 19.", "Breaker fault on channel 20.", "Breaker fault on channel 1.", "Breaker fault on channel 21.", "Breaker fault on channel 22.", "Breaker fault on channel 23.", "Breaker fault on channel 24.", "Breaker fault on channel 2.", "Breaker fault on channel 3.", "Breaker fault on channel 4.", "Breaker fault on channel 5.", "Breaker fault on channel 6.", "Breaker fault on channel 7.", "Breaker fault on channel 8.", "Breaker fault on channel 9.", "The firmware on the device has malfunctioned.", "The hardware on the device has malfunctioned.", "The device has rebooted."]);
- setPythonVariable.initializeInstanceVariableSetter("hal.PowerDistributionStickyFaults", "int", ["brownout", "canBusOff", "canWarning", "channel0BreakerFault", "channel10BreakerFault", "channel11BreakerFault", "channel12BreakerFault", "channel13BreakerFault", "channel14BreakerFault", "channel15BreakerFault", "channel16BreakerFault", "channel17BreakerFault", "channel18BreakerFault", "channel19BreakerFault", "channel1BreakerFault", "channel20BreakerFault", "channel21BreakerFault", "channel22BreakerFault", "channel23BreakerFault", "channel2BreakerFault", "channel3BreakerFault", "channel4BreakerFault", "channel5BreakerFault", "channel6BreakerFault", "channel7BreakerFault", "channel8BreakerFault", "channel9BreakerFault", "firmwareFault", "hardwareFault", "hasReset"], ["The input voltage is below the minimum voltage.", "The device's CAN controller experienced a \"Bus Off\" event.", "A warning was raised by the device's CAN controller.", "Breaker fault on channel 0.", "Breaker fault on channel 10.", "Breaker fault on channel 12.", "Breaker fault on channel 13.", "Breaker fault on channel 14.", "Breaker fault on channel 15.", "Breaker fault on channel 16.", "Breaker fault on channel 17.", "Breaker fault on channel 18.", "Breaker fault on channel 19.", "Breaker fault on channel 20.", "Breaker fault on channel 1.", "Breaker fault on channel 21.", "Breaker fault on channel 22.", "Breaker fault on channel 23.", "Breaker fault on channel 24.", "Breaker fault on channel 2.", "Breaker fault on channel 3.", "Breaker fault on channel 4.", "Breaker fault on channel 5.", "Breaker fault on channel 6.", "Breaker fault on channel 7.", "Breaker fault on channel 8.", "Breaker fault on channel 9.", "The firmware on the device has malfunctioned.", "The hardware on the device has malfunctioned.", "The device has rebooted."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 61 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "canBusOff"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "canBusOff"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "canWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "canWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel0BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel0BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel10BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel10BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel11BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel11BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel12BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel12BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel13BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel13BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel14BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel14BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel15BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel15BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel16BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel16BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel17BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel17BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel18BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel18BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel19BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel19BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel1BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel1BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel20BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel20BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel21BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel21BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel22BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel22BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel23BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel23BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel2BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel2BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel3BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel3BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel4BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel4BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel5BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel5BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel6BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel6BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel7BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel7BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel8BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel8BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel9BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "channel9BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "firmwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "firmwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "hardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "hardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "hasReset"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionStickyFaults", "varType": "int", "importModule": "", "selfLabel": "powerDistributionStickyFaults", "selfType": "hal.PowerDistributionStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults", "VAR": "hasReset"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPowerDistributionStickyFaults"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.PowerDistributionStickyFaults", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionStickyFaults"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PowerDistributionStickyFaults",
- contents: contents,
- className: "hal.PowerDistributionStickyFaults",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.PowerDistributionVersion.ts b/src/blocks/generated/class_hal.PowerDistributionVersion.ts
deleted file mode 100644
index 4a912546..00000000
--- a/src/blocks/generated/class_hal.PowerDistributionVersion.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.PowerDistributionVersion
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.PowerDistributionVersion", "int", ["firmwareFix", "firmwareMajor", "firmwareMinor", "hardwareMajor", "hardwareMinor", "uniqueId"], ["Firmware fix version number.", "Firmware major version number.", "Firmware minor version number.", "Hardware major version number.", "Hardware minor version number.", "Unique ID."]);
- setPythonVariable.initializeInstanceVariableSetter("hal.PowerDistributionVersion", "int", ["firmwareFix", "firmwareMajor", "firmwareMinor", "hardwareMajor", "hardwareMinor", "uniqueId"], ["Firmware fix version number.", "Firmware major version number.", "Firmware minor version number.", "Hardware major version number.", "Hardware minor version number.", "Unique ID."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 13 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionVersion", "varType": "int", "importModule": "", "selfLabel": "powerDistributionVersion", "selfType": "hal.PowerDistributionVersion"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionVersion", "VAR": "firmwareFix"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionVersion", "varType": "int", "importModule": "", "selfLabel": "powerDistributionVersion", "selfType": "hal.PowerDistributionVersion"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionVersion", "VAR": "firmwareFix"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionVersion", "varType": "int", "importModule": "", "selfLabel": "powerDistributionVersion", "selfType": "hal.PowerDistributionVersion"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionVersion", "VAR": "firmwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionVersion", "varType": "int", "importModule": "", "selfLabel": "powerDistributionVersion", "selfType": "hal.PowerDistributionVersion"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionVersion", "VAR": "firmwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionVersion", "varType": "int", "importModule": "", "selfLabel": "powerDistributionVersion", "selfType": "hal.PowerDistributionVersion"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionVersion", "VAR": "firmwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionVersion", "varType": "int", "importModule": "", "selfLabel": "powerDistributionVersion", "selfType": "hal.PowerDistributionVersion"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionVersion", "VAR": "firmwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionVersion", "varType": "int", "importModule": "", "selfLabel": "powerDistributionVersion", "selfType": "hal.PowerDistributionVersion"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionVersion", "VAR": "hardwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionVersion", "varType": "int", "importModule": "", "selfLabel": "powerDistributionVersion", "selfType": "hal.PowerDistributionVersion"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionVersion", "VAR": "hardwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionVersion", "varType": "int", "importModule": "", "selfLabel": "powerDistributionVersion", "selfType": "hal.PowerDistributionVersion"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionVersion", "VAR": "hardwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionVersion", "varType": "int", "importModule": "", "selfLabel": "powerDistributionVersion", "selfType": "hal.PowerDistributionVersion"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionVersion", "VAR": "hardwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionVersion", "varType": "int", "importModule": "", "selfLabel": "powerDistributionVersion", "selfType": "hal.PowerDistributionVersion"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionVersion", "VAR": "uniqueId"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.PowerDistributionVersion", "varType": "int", "importModule": "", "selfLabel": "powerDistributionVersion", "selfType": "hal.PowerDistributionVersion"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionVersion", "VAR": "uniqueId"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionVersion"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPowerDistributionVersion"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.PowerDistributionVersion", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.PowerDistributionVersion"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PowerDistributionVersion",
- contents: contents,
- className: "hal.PowerDistributionVersion",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.REVPHCompressorConfig.ts b/src/blocks/generated/class_hal.REVPHCompressorConfig.ts
deleted file mode 100644
index 1d8f613d..00000000
--- a/src/blocks/generated/class_hal.REVPHCompressorConfig.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.REVPHCompressorConfig
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.REVPHCompressorConfig", "int", ["forceDisable", "useDigital"], ["", ""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.REVPHCompressorConfig", "int", ["forceDisable", "useDigital"], ["", ""]);
- getPythonVariable.initializeInstanceVariableGetter("hal.REVPHCompressorConfig", "float", ["maxAnalogVoltage", "minAnalogVoltage"], ["", ""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.REVPHCompressorConfig", "float", ["maxAnalogVoltage", "minAnalogVoltage"], ["", ""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 9 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHCompressorConfig", "varType": "int", "importModule": "", "selfLabel": "rEVPHCompressorConfig", "selfType": "hal.REVPHCompressorConfig"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHCompressorConfig", "VAR": "forceDisable"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHCompressorConfig"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHCompressorConfig", "varType": "int", "importModule": "", "selfLabel": "rEVPHCompressorConfig", "selfType": "hal.REVPHCompressorConfig"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHCompressorConfig", "VAR": "forceDisable"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHCompressorConfig"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHCompressorConfig", "varType": "int", "importModule": "", "selfLabel": "rEVPHCompressorConfig", "selfType": "hal.REVPHCompressorConfig"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHCompressorConfig", "VAR": "useDigital"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHCompressorConfig"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHCompressorConfig", "varType": "int", "importModule": "", "selfLabel": "rEVPHCompressorConfig", "selfType": "hal.REVPHCompressorConfig"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHCompressorConfig", "VAR": "useDigital"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHCompressorConfig"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHCompressorConfig", "varType": "float", "importModule": "", "selfLabel": "rEVPHCompressorConfig", "selfType": "hal.REVPHCompressorConfig"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHCompressorConfig", "VAR": "maxAnalogVoltage"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHCompressorConfig"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHCompressorConfig", "varType": "float", "importModule": "", "selfLabel": "rEVPHCompressorConfig", "selfType": "hal.REVPHCompressorConfig"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHCompressorConfig", "VAR": "maxAnalogVoltage"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHCompressorConfig"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHCompressorConfig", "varType": "float", "importModule": "", "selfLabel": "rEVPHCompressorConfig", "selfType": "hal.REVPHCompressorConfig"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHCompressorConfig", "VAR": "minAnalogVoltage"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHCompressorConfig"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHCompressorConfig", "varType": "float", "importModule": "", "selfLabel": "rEVPHCompressorConfig", "selfType": "hal.REVPHCompressorConfig"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHCompressorConfig", "VAR": "minAnalogVoltage"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHCompressorConfig"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myREVPHCompressorConfig"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.REVPHCompressorConfig", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHCompressorConfig"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "REVPHCompressorConfig",
- contents: contents,
- className: "hal.REVPHCompressorConfig",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.REVPHFaults.ts b/src/blocks/generated/class_hal.REVPHFaults.ts
deleted file mode 100644
index be0b79ef..00000000
--- a/src/blocks/generated/class_hal.REVPHFaults.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.REVPHFaults
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.REVPHFaults", "int", ["brownout", "canWarning", "channel0Fault", "channel10Fault", "channel11Fault", "channel12Fault", "channel13Fault", "channel14Fault", "channel15Fault", "channel1Fault", "channel2Fault", "channel3Fault", "channel4Fault", "channel5Fault", "channel6Fault", "channel7Fault", "channel8Fault", "channel9Fault", "compressorOpen", "compressorOverCurrent", "hardwareFault", "solenoidOverCurrent"], ["The input voltage is below the minimum voltage.", "A warning was raised by the device's CAN controller.", "Fault on channel 0.", "Fault on channel 10.", "Fault on channel 11.", "Fault on channel 12.", "Fault on channel 13.", "Fault on channel 14.", "Fault on channel 15.", "Fault on channel 1.", "Fault on channel 2.", "Fault on channel 3.", "Fault on channel 4.", "Fault on channel 5.", "Fault on channel 6.", "Fault on channel 7.", "Fault on channel 8.", "Fault on channel 9.", "The compressor output has an open circuit.", "An overcurrent event occurred on the compressor output.", "The hardware on the device has malfunctioned.", "An overcurrent event occurred on a solenoid output."]);
- setPythonVariable.initializeInstanceVariableSetter("hal.REVPHFaults", "int", ["brownout", "canWarning", "channel0Fault", "channel10Fault", "channel11Fault", "channel12Fault", "channel13Fault", "channel14Fault", "channel15Fault", "channel1Fault", "channel2Fault", "channel3Fault", "channel4Fault", "channel5Fault", "channel6Fault", "channel7Fault", "channel8Fault", "channel9Fault", "compressorOpen", "compressorOverCurrent", "hardwareFault", "solenoidOverCurrent"], ["The input voltage is below the minimum voltage.", "A warning was raised by the device's CAN controller.", "Fault on channel 0.", "Fault on channel 10.", "Fault on channel 11.", "Fault on channel 12.", "Fault on channel 13.", "Fault on channel 14.", "Fault on channel 15.", "Fault on channel 1.", "Fault on channel 2.", "Fault on channel 3.", "Fault on channel 4.", "Fault on channel 5.", "Fault on channel 6.", "Fault on channel 7.", "Fault on channel 8.", "Fault on channel 9.", "The compressor output has an open circuit.", "An overcurrent event occurred on the compressor output.", "The hardware on the device has malfunctioned.", "An overcurrent event occurred on a solenoid output."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 45 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "canWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "canWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel0Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel0Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel10Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel10Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel11Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel11Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel12Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel12Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel13Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel13Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel14Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel14Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel15Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel15Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel1Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel1Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel2Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel2Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel3Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel3Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel4Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel4Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel5Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel5Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel6Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel6Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel7Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel7Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel8Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel8Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel9Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "channel9Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "compressorOpen"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "compressorOpen"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "compressorOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "compressorOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "hardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "hardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "solenoidOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHFaults", "selfType": "hal.REVPHFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults", "VAR": "solenoidOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHFaults"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myREVPHFaults"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.REVPHFaults", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHFaults"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "REVPHFaults",
- contents: contents,
- className: "hal.REVPHFaults",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.REVPHStickyFaults.ts b/src/blocks/generated/class_hal.REVPHStickyFaults.ts
deleted file mode 100644
index b2014e9e..00000000
--- a/src/blocks/generated/class_hal.REVPHStickyFaults.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.REVPHStickyFaults
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.REVPHStickyFaults", "int", ["brownout", "canBusOff", "canWarning", "compressorOpen", "compressorOverCurrent", "firmwareFault", "hardwareFault", "hasReset", "solenoidOverCurrent"], ["The input voltage is below the minimum voltage.", "The device's CAN controller experienced a \"Bus Off\" event.", "A warning was raised by the device's CAN controller.", "The compressor output has an open circuit.", "An overcurrent event occurred on the compressor output.", "The firmware on the device has malfunctioned.", "The hardware on the device has malfunctioned.", "The device has rebooted.", "An overcurrent event occurred on a solenoid output."]);
- setPythonVariable.initializeInstanceVariableSetter("hal.REVPHStickyFaults", "int", ["brownout", "canBusOff", "canWarning", "compressorOpen", "compressorOverCurrent", "firmwareFault", "hardwareFault", "hasReset", "solenoidOverCurrent"], ["The input voltage is below the minimum voltage.", "The device's CAN controller experienced a \"Bus Off\" event.", "A warning was raised by the device's CAN controller.", "The compressor output has an open circuit.", "An overcurrent event occurred on the compressor output.", "The firmware on the device has malfunctioned.", "The hardware on the device has malfunctioned.", "The device has rebooted.", "An overcurrent event occurred on a solenoid output."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 19 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "canBusOff"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "canBusOff"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "canWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "canWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "compressorOpen"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "compressorOpen"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "compressorOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "compressorOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "firmwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "firmwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "hardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "hardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "hasReset"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "hasReset"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "solenoidOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHStickyFaults", "varType": "int", "importModule": "", "selfLabel": "rEVPHStickyFaults", "selfType": "hal.REVPHStickyFaults"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults", "VAR": "solenoidOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myREVPHStickyFaults"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.REVPHStickyFaults", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHStickyFaults"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "REVPHStickyFaults",
- contents: contents,
- className: "hal.REVPHStickyFaults",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.REVPHVersion.ts b/src/blocks/generated/class_hal.REVPHVersion.ts
deleted file mode 100644
index 70879f63..00000000
--- a/src/blocks/generated/class_hal.REVPHVersion.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.REVPHVersion
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.REVPHVersion", "int", ["firmwareFix", "firmwareMajor", "firmwareMinor", "hardwareMajor", "hardwareMinor", "uniqueId"], ["The firmware fix version.", "The firmware major version.", "The firmware minor version.", "The hardware major version.", "The hardware minor version.", "The device's unique ID."]);
- setPythonVariable.initializeInstanceVariableSetter("hal.REVPHVersion", "int", ["firmwareFix", "firmwareMajor", "firmwareMinor", "hardwareMajor", "hardwareMinor", "uniqueId"], ["The firmware fix version.", "The firmware major version.", "The firmware minor version.", "The hardware major version.", "The hardware minor version.", "The device's unique ID."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 13 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHVersion", "varType": "int", "importModule": "", "selfLabel": "rEVPHVersion", "selfType": "hal.REVPHVersion"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHVersion", "VAR": "firmwareFix"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHVersion", "varType": "int", "importModule": "", "selfLabel": "rEVPHVersion", "selfType": "hal.REVPHVersion"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHVersion", "VAR": "firmwareFix"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHVersion", "varType": "int", "importModule": "", "selfLabel": "rEVPHVersion", "selfType": "hal.REVPHVersion"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHVersion", "VAR": "firmwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHVersion", "varType": "int", "importModule": "", "selfLabel": "rEVPHVersion", "selfType": "hal.REVPHVersion"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHVersion", "VAR": "firmwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHVersion", "varType": "int", "importModule": "", "selfLabel": "rEVPHVersion", "selfType": "hal.REVPHVersion"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHVersion", "VAR": "firmwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHVersion", "varType": "int", "importModule": "", "selfLabel": "rEVPHVersion", "selfType": "hal.REVPHVersion"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHVersion", "VAR": "firmwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHVersion", "varType": "int", "importModule": "", "selfLabel": "rEVPHVersion", "selfType": "hal.REVPHVersion"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHVersion", "VAR": "hardwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHVersion", "varType": "int", "importModule": "", "selfLabel": "rEVPHVersion", "selfType": "hal.REVPHVersion"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHVersion", "VAR": "hardwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHVersion", "varType": "int", "importModule": "", "selfLabel": "rEVPHVersion", "selfType": "hal.REVPHVersion"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHVersion", "VAR": "hardwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHVersion", "varType": "int", "importModule": "", "selfLabel": "rEVPHVersion", "selfType": "hal.REVPHVersion"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHVersion", "VAR": "hardwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHVersion", "varType": "int", "importModule": "", "selfLabel": "rEVPHVersion", "selfType": "hal.REVPHVersion"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHVersion", "VAR": "uniqueId"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.REVPHVersion", "varType": "int", "importModule": "", "selfLabel": "rEVPHVersion", "selfType": "hal.REVPHVersion"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHVersion", "VAR": "uniqueId"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHVersion"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myREVPHVersion"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.REVPHVersion", "args": [], "tooltip": "", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.REVPHVersion"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "REVPHVersion",
- contents: contents,
- className: "hal.REVPHVersion",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.SimBoolean.ts b/src/blocks/generated/class_hal.SimBoolean.ts
deleted file mode 100644
index 893f49b4..00000000
--- a/src/blocks/generated/class_hal.SimBoolean.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.SimBoolean
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.SimBoolean", "hal._wpiHal.Type", ["type"], [""]);
- getPythonVariable.initializeInstanceVariableGetter("hal.SimBoolean", "bool", ["value"], [""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.SimBoolean", "bool", ["value"], [""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 6 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimBoolean", "varType": "hal._wpiHal.Type", "importModule": "", "selfLabel": "simBoolean", "selfType": "hal.SimBoolean"}, "fields": {"MODULE_OR_CLASS": "hal.SimBoolean", "VAR": "type"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimBoolean"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimBoolean", "varType": "bool", "importModule": "", "selfLabel": "simBoolean", "selfType": "hal.SimBoolean"}, "fields": {"MODULE_OR_CLASS": "hal.SimBoolean", "VAR": "value"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimBoolean"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimBoolean", "varType": "bool", "importModule": "", "selfLabel": "simBoolean", "selfType": "hal.SimBoolean"}, "fields": {"MODULE_OR_CLASS": "hal.SimBoolean", "VAR": "value"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimBoolean"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimBoolean"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.SimBoolean", "args": [{"name": "handle", "type": "int"}], "tooltip": "Wraps a simulated value handle as returned by HAL_CreateSimValueBoolean().\n\n:param handle: simulated value handle", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.SimBoolean"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "simBoolean", "type": "hal.SimBoolean"}], "tooltip": "Gets the simulated value.\n\n:returns: The current value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimBoolean", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimBoolean"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "simBoolean", "type": "hal.SimBoolean"}, {"name": "value", "type": "bool"}], "tooltip": "Sets the simulated value.\n\n:param value: the value to set", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimBoolean", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimBoolean"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SimBoolean",
- contents: contents,
- className: "hal.SimBoolean",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.SimDevice.ts b/src/blocks/generated/class_hal.SimDevice.ts
deleted file mode 100644
index d3eb1d3f..00000000
--- a/src/blocks/generated/class_hal.SimDevice.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.SimDevice
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.SimDevice", "str", ["name"], [""]);
- pythonEnum.initializeEnum("hal.SimDevice.Direction", ["kBidir", "kInput", "kOutput"], "Direction of a simulated value (from the perspective of user code).\n\nMembers:\n\n kInput\n\n kOutput\n\n kBidir");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 14 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimDevice", "varType": "str", "importModule": "", "selfLabel": "simDevice", "selfType": "hal.SimDevice"}, "fields": {"MODULE_OR_CLASS": "hal.SimDevice", "VAR": "name"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDevice"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimDevice"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.SimDevice", "args": [{"name": "name", "type": "str"}], "tooltip": "Creates a simulated device.\n\nThe device name must be unique. Returns null if the device name\nalready exists. If multiple instances of the same device are desired,\nrecommend appending the instance/unique identifier in brackets to the base\nname, e.g. \"device[1]\".\n\nUsing a device name of the form \"Type:Name\" will create a WebSockets node\nwith a type value of \"Type\" and a device value of \"Name\"\n\nIf not in simulation, results in an \"empty\" object that evaluates to false\nin a boolean context.\n\n:param name: device name", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.SimDevice"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimDevice"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.SimDevice", "args": [{"name": "name", "type": "str"}, {"name": "index", "type": "int"}], "tooltip": "Creates a simulated device.\n\nThe device name must be unique. Returns null if the device name\nalready exists. This is a convenience method that appends index in\nbrackets to the device name, e.g. passing index=1 results in \"device[1]\"\nfor the device name.\n\nUsing a device name of the form \"Type:Name\" will create a WebSockets node\nwith a type value of \"Type\" and a device value of \"Name\"\n\nIf not in simulation, results in an \"empty\" object that evaluates to false\nin a boolean context.\n\n:param name: device name\n:param index: device index number to append to name", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.SimDevice"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimDevice"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.SimDevice", "args": [{"name": "name", "type": "str"}, {"name": "index", "type": "int"}, {"name": "channel", "type": "int"}], "tooltip": "Creates a simulated device.\n\nThe device name must be unique. Returns null if the device name\nalready exists. This is a convenience method that appends index and\nchannel in brackets to the device name, e.g. passing index=1 and channel=2\nresults in \"device[1,2]\" for the device name.\n\nUsing a device name of the form \"Type:Name\" will create a WebSockets node\nwith a type value of \"Type\" and a device value of \"Name\"\n\nIf not in simulation, results in an \"empty\" object that evaluates to false\nin a boolean context.\n\n:param name: device name\n:param index: device index number to append to name\n:param channel: device channel number to append to name", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.SimDevice"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimBoolean"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "hal.SimBoolean", "args": [{"name": "simDevice", "type": "hal.SimDevice"}, {"name": "name", "type": "str"}, {"name": "direction", "type": "int"}, {"name": "initialValue", "type": "bool"}], "tooltip": "Creates a boolean value on the simulated device.\n\nIf not in simulation, results in an \"empty\" object that evaluates to false\nin a boolean context.\n\n:param name: value name\n:param direction: input/output/bidir (from perspective of user code)\n:param initialValue: initial value\n\n:returns: simulated boolean value object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimDevice", "FUNC": "createBoolean"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDevice"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimDouble"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "hal.SimDouble", "args": [{"name": "simDevice", "type": "hal.SimDevice"}, {"name": "name", "type": "str"}, {"name": "direction", "type": "int"}, {"name": "initialValue", "type": "float"}], "tooltip": "Creates a double value on the simulated device.\n\nIf not in simulation, results in an \"empty\" object that evaluates to false\nin a boolean context.\n\n:param name: value name\n:param direction: input/output/bidir (from perspective of user code)\n:param initialValue: initial value\n\n:returns: simulated double value object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimDevice", "FUNC": "createDouble"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDevice"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimEnum"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "hal.SimEnum", "args": [{"name": "simDevice", "type": "hal.SimDevice"}, {"name": "name", "type": "str"}, {"name": "direction", "type": "int"}, {"name": "options", "type": "list[str]"}, {"name": "initialValue", "type": "int"}], "tooltip": "Creates an enumerated value on the simulated device.\n\nEnumerated values are always in the range 0 to numOptions-1.\n\nIf not in simulation, results in an \"empty\" object that evaluates to false\nin a boolean context.\n\n:param name: value name\n:param direction: input/output/bidir (from perspective of user code)\n:param options: array of option descriptions\n:param initialValue: initial value (selection)\n\n:returns: simulated enum value object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimDevice", "FUNC": "createEnum"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDevice"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimEnum"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "hal.SimEnum", "args": [{"name": "simDevice", "type": "hal.SimDevice"}, {"name": "name", "type": "str"}, {"name": "direction", "type": "int"}, {"name": "options", "type": "list[str]"}, {"name": "optionValues", "type": "list[float]"}, {"name": "initialValue", "type": "int"}], "tooltip": "Creates an enumerated value on the simulated device with double values.\n\nEnumerated values are always in the range 0 to numOptions-1.\n\nIf not in simulation, results in an \"empty\" object that evaluates to false\nin a boolean context.\n\n:param name: value name\n:param direction: input/output/bidir (from perspective of user code)\n:param options: array of option descriptions\n:param optionValues: array of option values (must be the same size as\n options)\n:param initialValue: initial value (selection)\n\n:returns: simulated enum value object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimDevice", "FUNC": "createEnumDouble"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDevice"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimInt"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "hal.SimInt", "args": [{"name": "simDevice", "type": "hal.SimDevice"}, {"name": "name", "type": "str"}, {"name": "direction", "type": "int"}, {"name": "initialValue", "type": "int"}], "tooltip": "Creates an int value on the simulated device.\n\nIf not in simulation, results in an \"empty\" object that evaluates to false\nin a boolean context.\n\n:param name: value name\n:param direction: input/output/bidir (from perspective of user code)\n:param initialValue: initial value\n\n:returns: simulated double value object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimDevice", "FUNC": "createInt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDevice"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimLong"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "hal.SimLong", "args": [{"name": "simDevice", "type": "hal.SimDevice"}, {"name": "name", "type": "str"}, {"name": "direction", "type": "int"}, {"name": "initialValue", "type": "int"}], "tooltip": "Creates a long value on the simulated device.\n\nIf not in simulation, results in an \"empty\" object that evaluates to false\nin a boolean context.\n\n:param name: value name\n:param direction: input/output/bidir (from perspective of user code)\n:param initialValue: initial value\n\n:returns: simulated double value object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimDevice", "FUNC": "createLong"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDevice"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "simDevice", "type": "hal.SimDevice"}], "tooltip": "Get the name of the simulated device.\n\n:returns: name", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimDevice", "FUNC": "getName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDevice"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "hal.SimDevice.Direction", "importModule": "hal"}, "fields": {"ENUM_TYPE": "hal.SimDevice.Direction", "ENUM_VALUE": "kBidir"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "hal.SimDevice.Direction", "importModule": "hal"}, "fields": {"ENUM_TYPE": "hal.SimDevice.Direction", "ENUM_VALUE": "kInput"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "hal.SimDevice.Direction", "importModule": "hal"}, "fields": {"ENUM_TYPE": "hal.SimDevice.Direction", "ENUM_VALUE": "kOutput"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SimDevice",
- contents: contents,
- className: "hal.SimDevice",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.SimDouble.ts b/src/blocks/generated/class_hal.SimDouble.ts
deleted file mode 100644
index ff1ca829..00000000
--- a/src/blocks/generated/class_hal.SimDouble.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.SimDouble
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.SimDouble", "hal._wpiHal.Type", ["type"], [""]);
- getPythonVariable.initializeInstanceVariableGetter("hal.SimDouble", "float", ["value"], [""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.SimDouble", "float", ["value"], [""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimDouble", "varType": "hal._wpiHal.Type", "importModule": "", "selfLabel": "simDouble", "selfType": "hal.SimDouble"}, "fields": {"MODULE_OR_CLASS": "hal.SimDouble", "VAR": "type"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDouble"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimDouble", "varType": "float", "importModule": "", "selfLabel": "simDouble", "selfType": "hal.SimDouble"}, "fields": {"MODULE_OR_CLASS": "hal.SimDouble", "VAR": "value"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDouble"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimDouble", "varType": "float", "importModule": "", "selfLabel": "simDouble", "selfType": "hal.SimDouble"}, "fields": {"MODULE_OR_CLASS": "hal.SimDouble", "VAR": "value"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDouble"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimDouble"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.SimDouble", "args": [{"name": "handle", "type": "int"}], "tooltip": "Wraps a simulated value handle as returned by HAL_CreateSimValueDouble().\n\n:param handle: simulated value handle", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.SimDouble"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "simDouble", "type": "hal.SimDouble"}], "tooltip": "Gets the simulated value.\n\n:returns: The current value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimDouble", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDouble"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "simDouble", "type": "hal.SimDouble"}], "tooltip": "Resets the simulated value to 0. Use this instead of Set(0) for resetting\nincremental sensor values like encoder counts or gyro accumulated angle\nto ensure correct behavior in a distributed system (e.g. WebSockets).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimDouble", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDouble"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "simDouble", "type": "hal.SimDouble"}, {"name": "value", "type": "float"}], "tooltip": "Sets the simulated value.\n\n:param value: the value to set", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimDouble", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDouble"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SimDouble",
- contents: contents,
- className: "hal.SimDouble",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.SimEnum.ts b/src/blocks/generated/class_hal.SimEnum.ts
deleted file mode 100644
index 09e3f866..00000000
--- a/src/blocks/generated/class_hal.SimEnum.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.SimEnum
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.SimEnum", "hal._wpiHal.Type", ["type"], [""]);
- getPythonVariable.initializeInstanceVariableGetter("hal.SimEnum", "int", ["value"], [""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.SimEnum", "int", ["value"], [""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 6 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimEnum", "varType": "hal._wpiHal.Type", "importModule": "", "selfLabel": "simEnum", "selfType": "hal.SimEnum"}, "fields": {"MODULE_OR_CLASS": "hal.SimEnum", "VAR": "type"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimEnum"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimEnum", "varType": "int", "importModule": "", "selfLabel": "simEnum", "selfType": "hal.SimEnum"}, "fields": {"MODULE_OR_CLASS": "hal.SimEnum", "VAR": "value"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimEnum"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimEnum", "varType": "int", "importModule": "", "selfLabel": "simEnum", "selfType": "hal.SimEnum"}, "fields": {"MODULE_OR_CLASS": "hal.SimEnum", "VAR": "value"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimEnum"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimEnum"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.SimEnum", "args": [{"name": "handle", "type": "int"}], "tooltip": "Wraps a simulated value handle as returned by HAL_CreateSimValueEnum().\n\n:param handle: simulated value handle", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.SimEnum"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "simEnum", "type": "hal.SimEnum"}], "tooltip": "Gets the simulated value.\n\n:returns: The current value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimEnum", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimEnum"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "simEnum", "type": "hal.SimEnum"}, {"name": "value", "type": "int"}], "tooltip": "Sets the simulated value.\n\n:param value: the value to set", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimEnum", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimEnum"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SimEnum",
- contents: contents,
- className: "hal.SimEnum",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.SimInt.ts b/src/blocks/generated/class_hal.SimInt.ts
deleted file mode 100644
index fa3cc511..00000000
--- a/src/blocks/generated/class_hal.SimInt.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.SimInt
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.SimInt", "hal._wpiHal.Type", ["type"], [""]);
- getPythonVariable.initializeInstanceVariableGetter("hal.SimInt", "int", ["value"], [""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.SimInt", "int", ["value"], [""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimInt", "varType": "hal._wpiHal.Type", "importModule": "", "selfLabel": "simInt", "selfType": "hal.SimInt"}, "fields": {"MODULE_OR_CLASS": "hal.SimInt", "VAR": "type"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimInt"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimInt", "varType": "int", "importModule": "", "selfLabel": "simInt", "selfType": "hal.SimInt"}, "fields": {"MODULE_OR_CLASS": "hal.SimInt", "VAR": "value"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimInt"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimInt", "varType": "int", "importModule": "", "selfLabel": "simInt", "selfType": "hal.SimInt"}, "fields": {"MODULE_OR_CLASS": "hal.SimInt", "VAR": "value"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimInt"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimInt"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.SimInt", "args": [{"name": "handle", "type": "int"}], "tooltip": "Wraps a simulated value handle as returned by HAL_CreateSimValueInt().\n\n:param handle: simulated value handle", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.SimInt"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "simInt", "type": "hal.SimInt"}], "tooltip": "Gets the simulated value.\n\n:returns: The current value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimInt", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimInt"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "simInt", "type": "hal.SimInt"}], "tooltip": "Resets the simulated value to 0. Use this instead of Set(0) for resetting\nincremental sensor values like encoder counts or gyro accumulated angle\nto ensure correct behavior in a distributed system (e.g. WebSockets).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimInt", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimInt"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "simInt", "type": "hal.SimInt"}, {"name": "value", "type": "int"}], "tooltip": "Sets the simulated value.\n\n:param value: the value to set", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimInt", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimInt"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SimInt",
- contents: contents,
- className: "hal.SimInt",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.SimLong.ts b/src/blocks/generated/class_hal.SimLong.ts
deleted file mode 100644
index 4999f8fc..00000000
--- a/src/blocks/generated/class_hal.SimLong.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.SimLong
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.SimLong", "hal._wpiHal.Type", ["type"], [""]);
- getPythonVariable.initializeInstanceVariableGetter("hal.SimLong", "int", ["value"], [""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.SimLong", "int", ["value"], [""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimLong", "varType": "hal._wpiHal.Type", "importModule": "", "selfLabel": "simLong", "selfType": "hal.SimLong"}, "fields": {"MODULE_OR_CLASS": "hal.SimLong", "VAR": "type"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimLong"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimLong", "varType": "int", "importModule": "", "selfLabel": "simLong", "selfType": "hal.SimLong"}, "fields": {"MODULE_OR_CLASS": "hal.SimLong", "VAR": "value"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimLong"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimLong", "varType": "int", "importModule": "", "selfLabel": "simLong", "selfType": "hal.SimLong"}, "fields": {"MODULE_OR_CLASS": "hal.SimLong", "VAR": "value"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimLong"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimLong"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.SimLong", "args": [{"name": "handle", "type": "int"}], "tooltip": "Wraps a simulated value handle as returned by HAL_CreateSimValueLong().\n\n:param handle: simulated value handle", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.SimLong"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "simLong", "type": "hal.SimLong"}], "tooltip": "Gets the simulated value.\n\n:returns: The current value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimLong", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimLong"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "simLong", "type": "hal.SimLong"}], "tooltip": "Resets the simulated value to 0. Use this instead of Set(0) for resetting\nincremental sensor values like encoder counts or gyro accumulated angle\nto ensure correct behavior in a distributed system (e.g. WebSockets).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimLong", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimLong"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "simLong", "type": "hal.SimLong"}, {"name": "value", "type": "int"}], "tooltip": "Sets the simulated value.\n\n:param value: the value to set", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.SimLong", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimLong"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SimLong",
- contents: contents,
- className: "hal.SimLong",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.SimValue.ts b/src/blocks/generated/class_hal.SimValue.ts
deleted file mode 100644
index 7ed3b2e0..00000000
--- a/src/blocks/generated/class_hal.SimValue.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.SimValue
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.SimValue", "hal._wpiHal.Type", ["type"], [""]);
- getPythonVariable.initializeInstanceVariableGetter("hal.SimValue", "object", ["value"], [""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 3 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimValue", "varType": "hal._wpiHal.Type", "importModule": "", "selfLabel": "simValue", "selfType": "hal.SimValue"}, "fields": {"MODULE_OR_CLASS": "hal.SimValue", "VAR": "type"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimValue"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.SimValue", "varType": "object", "importModule": "", "selfLabel": "simValue", "selfType": "hal.SimValue"}, "fields": {"MODULE_OR_CLASS": "hal.SimValue", "VAR": "value"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimValue"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimValue"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.SimValue", "args": [{"name": "handle", "type": "int"}], "tooltip": "Wraps a simulated value handle as returned by HAL_CreateSimValue().\n\n:param handle: simulated value handle", "importModule": "hal"}, "fields": {"MODULE_OR_CLASS": "hal.SimValue"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SimValue",
- contents: contents,
- className: "hal.SimValue",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.Value.ts b/src/blocks/generated/class_hal.Value.ts
deleted file mode 100644
index da962509..00000000
--- a/src/blocks/generated/class_hal.Value.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.Value
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.Value", "hal._wpiHal.Type", ["type"], [""]);
- getPythonVariable.initializeInstanceVariableGetter("hal.Value", "object", ["value"], [""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 2 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.Value", "varType": "hal._wpiHal.Type", "importModule": "", "selfLabel": "value", "selfType": "hal.Value"}, "fields": {"MODULE_OR_CLASS": "hal.Value", "VAR": "type"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myValue"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.Value", "varType": "object", "importModule": "", "selfLabel": "value", "selfType": "hal.Value"}, "fields": {"MODULE_OR_CLASS": "hal.Value", "VAR": "value"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myValue"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Value",
- contents: contents,
- className: "hal.Value",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.exceptions.HALError.ts b/src/blocks/generated/class_hal.exceptions.HALError.ts
deleted file mode 100644
index 06d74f2f..00000000
--- a/src/blocks/generated/class_hal.exceptions.HALError.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.exceptions.HALError
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 0 blocks.
- const contents: toolboxItems.ContentsType[] = [
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "HALError",
- contents: contents,
- className: "hal.exceptions.HALError",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.simulation.NotifierInfo.ts b/src/blocks/generated/class_hal.simulation.NotifierInfo.ts
deleted file mode 100644
index b9e55472..00000000
--- a/src/blocks/generated/class_hal.simulation.NotifierInfo.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.simulation.NotifierInfo
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("hal.simulation.NotifierInfo", "int", ["handle", "timeout", "waitTimeValid"], ["", "", ""]);
- setPythonVariable.initializeInstanceVariableSetter("hal.simulation.NotifierInfo", "int", ["handle", "timeout", "waitTimeValid"], ["", "", ""]);
- getPythonVariable.initializeInstanceVariableGetter("hal.simulation.NotifierInfo", "memoryview", ["name"], [""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 8 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.simulation.NotifierInfo", "varType": "int", "importModule": "", "selfLabel": "notifierInfo", "selfType": "hal.simulation.NotifierInfo"}, "fields": {"MODULE_OR_CLASS": "hal.simulation.NotifierInfo", "VAR": "handle"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNotifierInfo"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.simulation.NotifierInfo", "varType": "int", "importModule": "", "selfLabel": "notifierInfo", "selfType": "hal.simulation.NotifierInfo"}, "fields": {"MODULE_OR_CLASS": "hal.simulation.NotifierInfo", "VAR": "handle"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNotifierInfo"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.simulation.NotifierInfo", "varType": "int", "importModule": "", "selfLabel": "notifierInfo", "selfType": "hal.simulation.NotifierInfo"}, "fields": {"MODULE_OR_CLASS": "hal.simulation.NotifierInfo", "VAR": "timeout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNotifierInfo"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.simulation.NotifierInfo", "varType": "int", "importModule": "", "selfLabel": "notifierInfo", "selfType": "hal.simulation.NotifierInfo"}, "fields": {"MODULE_OR_CLASS": "hal.simulation.NotifierInfo", "VAR": "timeout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNotifierInfo"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.simulation.NotifierInfo", "varType": "int", "importModule": "", "selfLabel": "notifierInfo", "selfType": "hal.simulation.NotifierInfo"}, "fields": {"MODULE_OR_CLASS": "hal.simulation.NotifierInfo", "VAR": "waitTimeValid"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNotifierInfo"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.simulation.NotifierInfo", "varType": "int", "importModule": "", "selfLabel": "notifierInfo", "selfType": "hal.simulation.NotifierInfo"}, "fields": {"MODULE_OR_CLASS": "hal.simulation.NotifierInfo", "VAR": "waitTimeValid"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNotifierInfo"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "hal.simulation.NotifierInfo", "varType": "memoryview", "importModule": "", "selfLabel": "notifierInfo", "selfType": "hal.simulation.NotifierInfo"}, "fields": {"MODULE_OR_CLASS": "hal.simulation.NotifierInfo", "VAR": "name"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNotifierInfo"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myNotifierInfo"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "hal.simulation.NotifierInfo", "args": [], "tooltip": "", "importModule": "hal.simulation"}, "fields": {"MODULE_OR_CLASS": "hal.simulation.NotifierInfo"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "NotifierInfo",
- contents: contents,
- className: "hal.simulation.NotifierInfo",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.simulation.SimCB.ts b/src/blocks/generated/class_hal.simulation.SimCB.ts
deleted file mode 100644
index 79c45164..00000000
--- a/src/blocks/generated/class_hal.simulation.SimCB.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.simulation.SimCB
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 1 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "simCB", "type": "hal.simulation.SimCB"}], "tooltip": "Cancel the callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.simulation.SimCB", "FUNC": "cancel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimCB"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SimCB",
- contents: contents,
- className: "hal.simulation.SimCB",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_hal.simulation.SimValueCB.ts b/src/blocks/generated/class_hal.simulation.SimValueCB.ts
deleted file mode 100644
index bf657368..00000000
--- a/src/blocks/generated/class_hal.simulation.SimValueCB.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class hal.simulation.SimValueCB
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 1 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "simValueCB", "type": "hal.simulation.SimValueCB"}], "tooltip": "Cancel the callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "hal.simulation.SimValueCB", "FUNC": "cancel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimValueCB"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SimValueCB",
- contents: contents,
- className: "hal.simulation.SimValueCB",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.ADIS16448_IMU.ts b/src/blocks/generated/class_wpilib.ADIS16448_IMU.ts
deleted file mode 100644
index 4f4a707d..00000000
--- a/src/blocks/generated/class_wpilib.ADIS16448_IMU.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.ADIS16448_IMU
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.ADIS16448_IMU.CalibrationTime", ["_128ms", "_16s", "_1s", "_256ms", "_2s", "_32ms", "_32s", "_4s", "_512ms", "_64ms", "_64s", "_8s"], "ADIS16448 calibration times.\n\nMembers:\n\n _32ms : 32 ms calibration time.\n\n _64ms : 64 ms calibration time.\n\n _128ms : 128 ms calibration time.\n\n _256ms : 256 ms calibration time.\n\n _512ms : 512 ms calibration time.\n\n _1s : 1 s calibration time.\n\n _2s : 2 s calibration time.\n\n _4s : 4 s calibration time.\n\n _8s : 8 s calibration time.\n\n _16s : 16 s calibration time.\n\n _32s : 32 s calibration time.\n\n _64s : 64 s calibration time.");
- pythonEnum.initializeEnum("wpilib.ADIS16448_IMU.IMUAxis", ["kX", "kY", "kZ"], "IMU axes.\n\nMembers:\n\n kX : The IMU's X axis.\n\n kY : The IMU's Y axis.\n\n kZ : The IMU's Z axis.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 46 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADIS16448_IMU"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.ADIS16448_IMU", "args": [], "tooltip": "IMU constructor on onboard MXP CS0, Z-up orientation, and complementary\nAHRS computation.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADIS16448_IMU"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.ADIS16448_IMU", "args": [{"name": "yaw_axis", "type": "wpilib.ADIS16448_IMU.IMUAxis"}, {"name": "port", "type": "wpilib.SPI.Port"}, {"name": "cal_time", "type": "wpilib.ADIS16448_IMU.CalibrationTime"}], "tooltip": "IMU constructor on the specified MXP port and orientation.\n\n:param yaw_axis: The axis where gravity is present. Valid options are kX,\n kY, and kZ\n:param port: The SPI port where the IMU is connected.\n:param cal_time: The calibration time that should be used on start-up.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIMUAxis"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPort"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCalibrationTime"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Initialize the IMU.\n\nPerform gyro offset calibration by collecting data for a number of seconds\nand computing the center value. The center value is subtracted from\nsubsequent measurements.\n\nIt's important to make sure that the robot is not moving while the\ncentering calculations are in progress, this is typically done when the\nrobot is first turned on while it's sitting at rest before the match\nstarts.\n\nThe calibration routine can be triggered by the user during runtime.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "calibrate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}, {"name": "new_cal_time", "type": "wpilib.ADIS16448_IMU.CalibrationTime"}], "tooltip": "Configures the calibration time used for the next calibrate.\n\n:param new_cal_time: The calibration time that should be used", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "configCalTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCalibrationTime"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}, {"name": "decimationRate", "type": "int"}], "tooltip": "Configures the decimation rate of the IMU.\n\n:param decimationRate: The new decimation value.\n\n:returns: 0 if success, 1 if no change, 2 if error.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "configDecRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second_squared", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the acceleration in the X axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getAccelX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second_squared", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the acceleration in the Y axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getAccelY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second_squared", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the acceleration in the Z axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getAccelZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the yaw axis angle in degrees (CCW positive).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.pounds_per_square_inch", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the barometric pressure.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getBarometricPressure"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the accumulated gyro angle in the X axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getGyroAngleX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the accumulated gyro angle in the Y axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getGyroAngleY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the accumulated gyro angle in the Z axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getGyroAngleZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees_per_second", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the angular rate in the X axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getGyroRateX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees_per_second", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the angular rate in the Y axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getGyroRateY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees_per_second", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the angular rate in the Z axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getGyroRateZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.teslas", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the magnetic field strength in the X axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getMagneticFieldX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.teslas", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the magnetic field strength in the Y axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getMagneticFieldY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.teslas", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the magnetic field strength in the Z axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getMagneticFieldZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Get the SPI port number.\n\n:returns: The SPI port number.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getPort"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees_per_second", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the yaw axis angular rate in degrees per second (CCW positive).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.celsius", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the temperature.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getTemperature"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the complementary angle around the X axis computed from\naccelerometer and gyro rate measurements.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getXComplementaryAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the X-axis filtered acceleration angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getXFilteredAccelAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the complementary angle around the Y axis computed from\naccelerometer and gyro rate measurements.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getYComplementaryAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Returns the Y-axis filtered acceleration angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getYFilteredAccelAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myIMUAxis"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.ADIS16448_IMU.IMUAxis", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "getYawAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Checks the connection status of the IMU.\n\n:returns: True if the IMU is connected, false otherwise.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "isConnected"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Reset the gyro.\n\nResets the gyro accumulations to a heading of zero. This can be used if\nthere is significant drift in the gyro and it needs to be recalibrated\nafter running.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "aDIS16448_IMU", "type": "wpilib.ADIS16448_IMU"}, {"name": "yaw_axis", "type": "wpilib.ADIS16448_IMU.IMUAxis"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16448_IMU", "FUNC": "setYawAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIMUAxis"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.CalibrationTime", "ENUM_VALUE": "_128ms"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.CalibrationTime", "ENUM_VALUE": "_16s"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.CalibrationTime", "ENUM_VALUE": "_1s"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.CalibrationTime", "ENUM_VALUE": "_256ms"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.CalibrationTime", "ENUM_VALUE": "_2s"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.CalibrationTime", "ENUM_VALUE": "_32ms"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.CalibrationTime", "ENUM_VALUE": "_32s"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.CalibrationTime", "ENUM_VALUE": "_4s"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.CalibrationTime", "ENUM_VALUE": "_512ms"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.CalibrationTime", "ENUM_VALUE": "_64ms"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.CalibrationTime", "ENUM_VALUE": "_64s"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.CalibrationTime", "ENUM_VALUE": "_8s"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.IMUAxis", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.IMUAxis", "ENUM_VALUE": "kX"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.IMUAxis", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.IMUAxis", "ENUM_VALUE": "kY"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16448_IMU.IMUAxis", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16448_IMU.IMUAxis", "ENUM_VALUE": "kZ"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "ADIS16448_IMU",
- contents: contents,
- className: "wpilib.ADIS16448_IMU",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.ADIS16470_IMU.ts b/src/blocks/generated/class_wpilib.ADIS16470_IMU.ts
deleted file mode 100644
index 5523fc34..00000000
--- a/src/blocks/generated/class_wpilib.ADIS16470_IMU.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.ADIS16470_IMU
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.ADIS16470_IMU.CalibrationTime", ["_128ms", "_16s", "_1s", "_256ms", "_2s", "_32ms", "_32s", "_4s", "_512ms", "_64ms", "_64s", "_8s"], "ADIS16470 calibration times.\n\nMembers:\n\n _32ms : 32 ms calibration time.\n\n _64ms : 64 ms calibration time.\n\n _128ms : 128 ms calibration time.\n\n _256ms : 256 ms calibration time.\n\n _512ms : 512 ms calibration time.\n\n _1s : 1 s calibration time.\n\n _2s : 2 s calibration time.\n\n _4s : 4 s calibration time.\n\n _8s : 8 s calibration time.\n\n _16s : 16 s calibration time.\n\n _32s : 32 s calibration time.\n\n _64s : 64 s calibration time.");
- pythonEnum.initializeEnum("wpilib.ADIS16470_IMU.IMUAxis", ["kPitch", "kRoll", "kX", "kY", "kYaw", "kZ"], "IMU axes.\n\nkX, kY, and kZ refer to the IMU's X, Y, and Z axes respectively. kYaw,\nkPitch, and kRoll are configured by the user to refer to an X, Y, or Z\naxis.\n\nMembers:\n\n kX : The IMU's X axis.\n\n kY : The IMU's Y axis.\n\n kZ : The IMU's Z axis.\n\n kYaw : The user-configured yaw axis.\n\n kPitch : The user-configured pitch axis.\n\n kRoll : The user-configured roll axis.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 44 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADIS16470_IMU"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.ADIS16470_IMU", "args": [], "tooltip": "Creates a new ADIS16740 IMU object.\n\nThe default setup is the onboard SPI port with a calibration time of 1\nsecond. Yaw, pitch, and roll are kZ, kX, and kY respectively.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADIS16470_IMU"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.ADIS16470_IMU", "args": [{"name": "yaw_axis", "type": "wpilib.ADIS16470_IMU.IMUAxis"}, {"name": "pitch_axis", "type": "wpilib.ADIS16470_IMU.IMUAxis"}, {"name": "roll_axis", "type": "wpilib.ADIS16470_IMU.IMUAxis"}], "tooltip": "Creates a new ADIS16740 IMU object.\n\nThe default setup is the onboard SPI port with a calibration time of 1\nsecond.\n\n:strong:`:emphasis:`Input axes limited to kX, kY and kZ. Specifying kYaw, kPitch,or kRoll\nwill result in an error.``\n\n:param yaw_axis: The axis that measures the yaw\n:param pitch_axis: The axis that measures the pitch\n:param roll_axis: The axis that measures the roll", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIMUAxis"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIMUAxis"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIMUAxis"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADIS16470_IMU"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.ADIS16470_IMU", "args": [{"name": "yaw_axis", "type": "wpilib.ADIS16470_IMU.IMUAxis"}, {"name": "pitch_axis", "type": "wpilib.ADIS16470_IMU.IMUAxis"}, {"name": "roll_axis", "type": "wpilib.ADIS16470_IMU.IMUAxis"}, {"name": "port", "type": "wpilib.SPI.Port"}, {"name": "cal_time", "type": "wpilib.ADIS16470_IMU.CalibrationTime"}], "tooltip": "Creates a new ADIS16740 IMU object.\n\n:strong:`:emphasis:`Input axes limited to kX, kY and kZ. Specifying kYaw, kPitch, or\nkRoll will result in an error.``\n\n:param yaw_axis: The axis that measures the yaw\n:param pitch_axis: The axis that measures the pitch\n:param roll_axis: The axis that measures the roll\n:param port: The SPI Port the gyro is plugged into\n:param cal_time: Calibration time", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIMUAxis"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIMUAxis"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIMUAxis"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPort"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCalibrationTime"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Switches the active SPI port to standard SPI mode, writes the\ncommand to activate the new null configuration, and re-enables auto SPI.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "calibrate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}, {"name": "new_cal_time", "type": "wpilib.ADIS16470_IMU.CalibrationTime"}], "tooltip": "Configures calibration time.\n\n:param new_cal_time: New calibration time\n\n:returns: 0 if success, 1 if no change, 2 if error.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "configCalTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCalibrationTime"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}, {"name": "decimationRate", "type": "int"}], "tooltip": "Configures the decimation rate of the IMU.\n\n:param decimationRate: The new decimation value.\n\n:returns: 0 if success, 1 if no change, 2 if error.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "configDecRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second_squared", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Returns the acceleration in the X axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "getAccelX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second_squared", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Returns the acceleration in the Y axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "getAccelY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second_squared", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Returns the acceleration in the Z axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "getAccelZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}, {"name": "axis", "type": "wpilib.ADIS16470_IMU.IMUAxis"}], "tooltip": "Returns the axis angle (CCW positive).\n\n:param axis: The IMUAxis whose angle to return. Defaults to user configured\n Yaw.\n\n:returns: The axis angle (CCW positive).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "getAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIMUAxis"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myIMUAxis"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.ADIS16470_IMU.IMUAxis", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Returns which axis, kX, kY, or kZ, is set to the pitch axis.\n\n:returns: IMUAxis Pitch Axis", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "getPitchAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Gets the SPI port number.\n\n:returns: The SPI port number.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "getPort"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees_per_second", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}, {"name": "axis", "type": "wpilib.ADIS16470_IMU.IMUAxis"}], "tooltip": "Returns the axis angular rate (CCW positive).\n\n:param axis: The IMUAxis whose rate to return. Defaults to user configured\n Yaw.\n\n:returns: Axis angular rate (CCW positive).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "getRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIMUAxis"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myIMUAxis"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.ADIS16470_IMU.IMUAxis", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Returns which axis, kX, kY, or kZ, is set to the roll axis.\n\n:returns: IMUAxis Roll Axis", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "getRollAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Returns the X-axis complementary angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "getXComplementaryAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Returns the X-axis filtered acceleration angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "getXFilteredAccelAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Returns the Y-axis complementary angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "getYComplementaryAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Returns the Y-axis filtered acceleration angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "getYFilteredAccelAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myIMUAxis"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.ADIS16470_IMU.IMUAxis", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Returns which axis, kX, kY, or kZ, is set to the yaw axis.\n\n:returns: IMUAxis Yaw Axis", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "getYawAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Checks the connection status of the IMU.\n\n:returns: True if the IMU is connected, false otherwise.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "isConnected"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Reset the gyro.\n\nResets the gyro accumulations to a heading of zero. This can be used if\nthere is significant drift in the gyro and it needs to be recalibrated\nafter running.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}, {"name": "axis", "type": "wpilib.ADIS16470_IMU.IMUAxis"}, {"name": "angle", "type": "wpimath.units.degrees"}], "tooltip": "Allow the designated gyro angle to be set to a given value. This may happen\nwith unread values in the buffer, it is suggested that the IMU is not\nmoving when this method is run.\n\n:param axis: IMUAxis that will be changed\n:param angle: The new angle (CCW positive)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "setGyroAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIMUAxis"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}, {"name": "angle", "type": "wpimath.units.degrees"}], "tooltip": "Allow the gyro angle X to be set to a given value. This may happen with\nunread values in the buffer, it is suggested that the IMU is not moving\nwhen this method is run.\n\n:param angle: The new angle (CCW positive)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "setGyroAngleX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}, {"name": "angle", "type": "wpimath.units.degrees"}], "tooltip": "Allow the gyro angle Y to be set to a given value. This may happen with\nunread values in the buffer, it is suggested that the IMU is not moving\nwhen this method is run.\n\n:param angle: The new angle (CCW positive)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "setGyroAngleY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMU", "type": "wpilib.ADIS16470_IMU"}, {"name": "angle", "type": "wpimath.units.degrees"}], "tooltip": "Allow the gyro angle Z to be set to a given value. This may happen with\nunread values in the buffer, it is suggested that the IMU is not moving\nwhen this method is run.\n\n:param angle: The new angle (CCW positive)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADIS16470_IMU", "FUNC": "setGyroAngleZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.CalibrationTime", "ENUM_VALUE": "_128ms"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.CalibrationTime", "ENUM_VALUE": "_16s"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.CalibrationTime", "ENUM_VALUE": "_1s"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.CalibrationTime", "ENUM_VALUE": "_256ms"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.CalibrationTime", "ENUM_VALUE": "_2s"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.CalibrationTime", "ENUM_VALUE": "_32ms"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.CalibrationTime", "ENUM_VALUE": "_32s"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.CalibrationTime", "ENUM_VALUE": "_4s"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.CalibrationTime", "ENUM_VALUE": "_512ms"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.CalibrationTime", "ENUM_VALUE": "_64ms"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.CalibrationTime", "ENUM_VALUE": "_64s"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.CalibrationTime", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.CalibrationTime", "ENUM_VALUE": "_8s"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.IMUAxis", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.IMUAxis", "ENUM_VALUE": "kPitch"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.IMUAxis", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.IMUAxis", "ENUM_VALUE": "kRoll"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.IMUAxis", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.IMUAxis", "ENUM_VALUE": "kX"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.IMUAxis", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.IMUAxis", "ENUM_VALUE": "kY"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.IMUAxis", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.IMUAxis", "ENUM_VALUE": "kYaw"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADIS16470_IMU.IMUAxis", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADIS16470_IMU.IMUAxis", "ENUM_VALUE": "kZ"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "ADIS16470_IMU",
- contents: contents,
- className: "wpilib.ADIS16470_IMU",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.ADXL345_I2C.AllAxes.ts b/src/blocks/generated/class_wpilib.ADXL345_I2C.AllAxes.ts
deleted file mode 100644
index 7c807af7..00000000
--- a/src/blocks/generated/class_wpilib.ADXL345_I2C.AllAxes.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.ADXL345_I2C.AllAxes
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("wpilib.ADXL345_I2C.AllAxes", "float", ["XAxis", "YAxis", "ZAxis"], ["Acceleration along the X axis in g-forces.", "Acceleration along the Y axis in g-forces.", "Acceleration along the Z axis in g-forces."]);
- setPythonVariable.initializeInstanceVariableSetter("wpilib.ADXL345_I2C.AllAxes", "float", ["XAxis", "YAxis", "ZAxis"], ["Acceleration along the X axis in g-forces.", "Acceleration along the Y axis in g-forces.", "Acceleration along the Z axis in g-forces."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL345_I2C.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL345_I2C.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C.AllAxes", "VAR": "XAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL345_I2C.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL345_I2C.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C.AllAxes", "VAR": "XAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL345_I2C.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL345_I2C.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C.AllAxes", "VAR": "YAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL345_I2C.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL345_I2C.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C.AllAxes", "VAR": "YAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL345_I2C.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL345_I2C.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C.AllAxes", "VAR": "ZAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL345_I2C.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL345_I2C.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C.AllAxes", "VAR": "ZAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAllAxes"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.ADXL345_I2C.AllAxes", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C.AllAxes"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "AllAxes",
- contents: contents,
- className: "wpilib.ADXL345_I2C.AllAxes",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.ADXL345_I2C.ts b/src/blocks/generated/class_wpilib.ADXL345_I2C.ts
deleted file mode 100644
index 936c2ddf..00000000
--- a/src/blocks/generated/class_wpilib.ADXL345_I2C.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.ADXL345_I2C
-
-export function initialize() {
- getPythonVariable.initializeClassVariableGetter("wpilib.ADXL345_I2C", "int", ["kAddress"], []);
- pythonEnum.initializeEnum("wpilib.ADXL345_I2C.Axes", ["kAxis_X", "kAxis_Y", "kAxis_Z"], "Accelerometer axes.\n\nMembers:\n\n kAxis_X : X axis.\n\n kAxis_Y : Y axis.\n\n kAxis_Z : Z axis.");
- pythonEnum.initializeEnum("wpilib.ADXL345_I2C.Range", ["kRange_16G", "kRange_2G", "kRange_4G", "kRange_8G"], "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.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 18 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.ADXL345_I2C", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C", "VAR": "kAddress"}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADXL345_I2C"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.ADXL345_I2C", "args": [{"name": "port", "type": "wpilib.I2C.Port"}, {"name": "range", "type": "wpilib.ADXL345_I2C.Range"}, {"name": "deviceAddress", "type": "int"}], "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)", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPort"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRange"}}}}, "ARG2": {"shadow": {"type": "math_number", "fields": {"NUM": 29.0}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "aDXL345_I2C", "type": "wpilib.ADXL345_I2C"}, {"name": "axis", "type": "wpilib.ADXL345_I2C.Axes"}], "tooltip": "Get the acceleration of one axis in Gs.\n\n:param axis: The axis to read from.\n\n:returns: Acceleration of the ADXL345 in Gs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C", "FUNC": "getAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_I2C"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAxes"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAllAxes"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.ADXL345_I2C.AllAxes", "args": [{"name": "aDXL345_I2C", "type": "wpilib.ADXL345_I2C"}], "tooltip": "Get the acceleration of all axes in Gs.\n\n:returns: An object containing the acceleration measured on each axis of the\n ADXL345 in Gs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C", "FUNC": "getAccelerations"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_I2C"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "aDXL345_I2C", "type": "wpilib.ADXL345_I2C"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C", "FUNC": "getI2CDeviceAddress"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_I2C"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPort"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.I2C.Port", "args": [{"name": "aDXL345_I2C", "type": "wpilib.ADXL345_I2C"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C", "FUNC": "getI2CPort"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_I2C"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "aDXL345_I2C", "type": "wpilib.ADXL345_I2C"}], "tooltip": "Returns the acceleration along the X axis in g-forces.\n\n:returns: The acceleration along the X axis in g-forces.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C", "FUNC": "getX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_I2C"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "aDXL345_I2C", "type": "wpilib.ADXL345_I2C"}], "tooltip": "Returns the acceleration along the Y axis in g-forces.\n\n:returns: The acceleration along the Y axis in g-forces.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C", "FUNC": "getY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_I2C"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "aDXL345_I2C", "type": "wpilib.ADXL345_I2C"}], "tooltip": "Returns the acceleration along the Z axis in g-forces.\n\n:returns: The acceleration along the Z axis in g-forces.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C", "FUNC": "getZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_I2C"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXL345_I2C", "type": "wpilib.ADXL345_I2C"}, {"name": "builder", "type": "ntcore.NTSendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_I2C"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNTSendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXL345_I2C", "type": "wpilib.ADXL345_I2C"}, {"name": "range", "type": "wpilib.ADXL345_I2C.Range"}], "tooltip": "Set the measuring range of the accelerometer.\n\n:param range: The maximum acceleration, positive or negative, that the\n accelerometer will measure.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_I2C", "FUNC": "setRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_I2C"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRange"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL345_I2C.Axes", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL345_I2C.Axes", "ENUM_VALUE": "kAxis_X"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL345_I2C.Axes", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL345_I2C.Axes", "ENUM_VALUE": "kAxis_Y"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL345_I2C.Axes", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL345_I2C.Axes", "ENUM_VALUE": "kAxis_Z"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL345_I2C.Range", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL345_I2C.Range", "ENUM_VALUE": "kRange_16G"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL345_I2C.Range", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL345_I2C.Range", "ENUM_VALUE": "kRange_2G"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL345_I2C.Range", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL345_I2C.Range", "ENUM_VALUE": "kRange_4G"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL345_I2C.Range", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL345_I2C.Range", "ENUM_VALUE": "kRange_8G"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "ADXL345_I2C",
- contents: contents,
- className: "wpilib.ADXL345_I2C",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.ADXL345_SPI.AllAxes.ts b/src/blocks/generated/class_wpilib.ADXL345_SPI.AllAxes.ts
deleted file mode 100644
index bf5542c2..00000000
--- a/src/blocks/generated/class_wpilib.ADXL345_SPI.AllAxes.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.ADXL345_SPI.AllAxes
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("wpilib.ADXL345_SPI.AllAxes", "float", ["XAxis", "YAxis", "ZAxis"], ["Acceleration along the X axis in g-forces.", "Acceleration along the Y axis in g-forces.", "Acceleration along the Z axis in g-forces."]);
- setPythonVariable.initializeInstanceVariableSetter("wpilib.ADXL345_SPI.AllAxes", "float", ["XAxis", "YAxis", "ZAxis"], ["Acceleration along the X axis in g-forces.", "Acceleration along the Y axis in g-forces.", "Acceleration along the Z axis in g-forces."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL345_SPI.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL345_SPI.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI.AllAxes", "VAR": "XAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL345_SPI.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL345_SPI.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI.AllAxes", "VAR": "XAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL345_SPI.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL345_SPI.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI.AllAxes", "VAR": "YAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL345_SPI.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL345_SPI.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI.AllAxes", "VAR": "YAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL345_SPI.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL345_SPI.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI.AllAxes", "VAR": "ZAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL345_SPI.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL345_SPI.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI.AllAxes", "VAR": "ZAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAllAxes"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.ADXL345_SPI.AllAxes", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI.AllAxes"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "AllAxes",
- contents: contents,
- className: "wpilib.ADXL345_SPI.AllAxes",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.ADXL345_SPI.ts b/src/blocks/generated/class_wpilib.ADXL345_SPI.ts
deleted file mode 100644
index eac32f76..00000000
--- a/src/blocks/generated/class_wpilib.ADXL345_SPI.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.ADXL345_SPI
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.ADXL345_SPI.Axes", ["kAxis_X", "kAxis_Y", "kAxis_Z"], "Accelerometer axes.\n\nMembers:\n\n kAxis_X : X axis.\n\n kAxis_Y : Y axis.\n\n kAxis_Z : Z axis.");
- pythonEnum.initializeEnum("wpilib.ADXL345_SPI.Range", ["kRange_16G", "kRange_2G", "kRange_4G", "kRange_8G"], "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.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 16 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADXL345_SPI"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.ADXL345_SPI", "args": [{"name": "port", "type": "wpilib.SPI.Port"}, {"name": "range", "type": "wpilib.ADXL345_SPI.Range"}], "tooltip": "Constructor.\n\n:param port: The SPI port the accelerometer is attached to\n:param range: The range (+ or -) that the accelerometer will measure", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPort"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRange"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "aDXL345_SPI", "type": "wpilib.ADXL345_SPI"}, {"name": "axis", "type": "wpilib.ADXL345_SPI.Axes"}], "tooltip": "Get the acceleration of one axis in Gs.\n\n:param axis: The axis to read from.\n\n:returns: Acceleration of the ADXL345 in Gs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI", "FUNC": "getAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_SPI"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAxes"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAllAxes"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.ADXL345_SPI.AllAxes", "args": [{"name": "aDXL345_SPI", "type": "wpilib.ADXL345_SPI"}], "tooltip": "Get the acceleration of all axes in Gs.\n\n:returns: An object containing the acceleration measured on each axis of the\n ADXL345 in Gs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI", "FUNC": "getAccelerations"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_SPI"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPort"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.SPI.Port", "args": [{"name": "aDXL345_SPI", "type": "wpilib.ADXL345_SPI"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI", "FUNC": "getSpiPort"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_SPI"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "aDXL345_SPI", "type": "wpilib.ADXL345_SPI"}], "tooltip": "Returns the acceleration along the X axis in g-forces.\n\n:returns: The acceleration along the X axis in g-forces.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI", "FUNC": "getX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_SPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "aDXL345_SPI", "type": "wpilib.ADXL345_SPI"}], "tooltip": "Returns the acceleration along the Y axis in g-forces.\n\n:returns: The acceleration along the Y axis in g-forces.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI", "FUNC": "getY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_SPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "aDXL345_SPI", "type": "wpilib.ADXL345_SPI"}], "tooltip": "Returns the acceleration along the Z axis in g-forces.\n\n:returns: The acceleration along the Z axis in g-forces.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI", "FUNC": "getZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_SPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXL345_SPI", "type": "wpilib.ADXL345_SPI"}, {"name": "builder", "type": "ntcore.NTSendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_SPI"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNTSendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXL345_SPI", "type": "wpilib.ADXL345_SPI"}, {"name": "range", "type": "wpilib.ADXL345_SPI.Range"}], "tooltip": "Set the measuring range of the accelerometer.\n\n:param range: The maximum acceleration, positive or negative, that the\n accelerometer will measure.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL345_SPI", "FUNC": "setRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_SPI"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRange"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL345_SPI.Axes", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL345_SPI.Axes", "ENUM_VALUE": "kAxis_X"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL345_SPI.Axes", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL345_SPI.Axes", "ENUM_VALUE": "kAxis_Y"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL345_SPI.Axes", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL345_SPI.Axes", "ENUM_VALUE": "kAxis_Z"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL345_SPI.Range", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL345_SPI.Range", "ENUM_VALUE": "kRange_16G"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL345_SPI.Range", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL345_SPI.Range", "ENUM_VALUE": "kRange_2G"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL345_SPI.Range", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL345_SPI.Range", "ENUM_VALUE": "kRange_4G"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL345_SPI.Range", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL345_SPI.Range", "ENUM_VALUE": "kRange_8G"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "ADXL345_SPI",
- contents: contents,
- className: "wpilib.ADXL345_SPI",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.ADXL362.AllAxes.ts b/src/blocks/generated/class_wpilib.ADXL362.AllAxes.ts
deleted file mode 100644
index c17b9d1d..00000000
--- a/src/blocks/generated/class_wpilib.ADXL362.AllAxes.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.ADXL362.AllAxes
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("wpilib.ADXL362.AllAxes", "float", ["XAxis", "YAxis", "ZAxis"], ["Acceleration along the X axis in g-forces.", "Acceleration along the Y axis in g-forces.", "Acceleration along the Z axis in g-forces."]);
- setPythonVariable.initializeInstanceVariableSetter("wpilib.ADXL362.AllAxes", "float", ["XAxis", "YAxis", "ZAxis"], ["Acceleration along the X axis in g-forces.", "Acceleration along the Y axis in g-forces.", "Acceleration along the Z axis in g-forces."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL362.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL362.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362.AllAxes", "VAR": "XAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL362.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL362.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362.AllAxes", "VAR": "XAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL362.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL362.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362.AllAxes", "VAR": "YAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL362.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL362.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362.AllAxes", "VAR": "YAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL362.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL362.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362.AllAxes", "VAR": "ZAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.ADXL362.AllAxes", "varType": "float", "importModule": "", "selfLabel": "allAxes", "selfType": "wpilib.ADXL362.AllAxes"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362.AllAxes", "VAR": "ZAxis"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllAxes"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAllAxes"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.ADXL362.AllAxes", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362.AllAxes"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "AllAxes",
- contents: contents,
- className: "wpilib.ADXL362.AllAxes",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.ADXL362.ts b/src/blocks/generated/class_wpilib.ADXL362.ts
deleted file mode 100644
index 8ec2e359..00000000
--- a/src/blocks/generated/class_wpilib.ADXL362.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.ADXL362
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.ADXL362.Axes", ["kAxis_X", "kAxis_Y", "kAxis_Z"], "Accelerometer axes.\n\nMembers:\n\n kAxis_X : X axis.\n\n kAxis_Y : Y axis.\n\n kAxis_Z : Z axis.");
- pythonEnum.initializeEnum("wpilib.ADXL362.Range", ["kRange_2G", "kRange_4G", "kRange_8G"], "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.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 16 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADXL362"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.ADXL362", "args": [{"name": "range", "type": "wpilib.ADXL362.Range"}], "tooltip": "Constructor. Uses the onboard CS1.\n\n:param range: The range (+ or -) that the accelerometer will measure.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRange"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADXL362"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.ADXL362", "args": [{"name": "port", "type": "wpilib.SPI.Port"}, {"name": "range", "type": "wpilib.ADXL362.Range"}], "tooltip": "Constructor.\n\n:param port: The SPI port the accelerometer is attached to\n:param range: The range (+ or -) that the accelerometer will measure.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPort"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRange"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "aDXL362", "type": "wpilib.ADXL362"}, {"name": "axis", "type": "wpilib.ADXL362.Axes"}], "tooltip": "Get the acceleration of one axis in Gs.\n\n:param axis: The axis to read from.\n\n:returns: Acceleration of the ADXL362 in Gs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362", "FUNC": "getAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL362"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAxes"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAllAxes"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.ADXL362.AllAxes", "args": [{"name": "aDXL362", "type": "wpilib.ADXL362"}], "tooltip": "Get the acceleration of all axes in Gs.\n\n:returns: An object containing the acceleration measured on each axis of the\n ADXL362 in Gs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362", "FUNC": "getAccelerations"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL362"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPort"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.SPI.Port", "args": [{"name": "aDXL362", "type": "wpilib.ADXL362"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362", "FUNC": "getSpiPort"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL362"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "aDXL362", "type": "wpilib.ADXL362"}], "tooltip": "Returns the acceleration along the X axis in g-forces.\n\n:returns: The acceleration along the X axis in g-forces.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362", "FUNC": "getX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL362"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "aDXL362", "type": "wpilib.ADXL362"}], "tooltip": "Returns the acceleration along the Y axis in g-forces.\n\n:returns: The acceleration along the Y axis in g-forces.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362", "FUNC": "getY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL362"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "aDXL362", "type": "wpilib.ADXL362"}], "tooltip": "Returns the acceleration along the Z axis in g-forces.\n\n:returns: The acceleration along the Z axis in g-forces.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362", "FUNC": "getZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL362"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXL362", "type": "wpilib.ADXL362"}, {"name": "builder", "type": "ntcore.NTSendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL362"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNTSendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXL362", "type": "wpilib.ADXL362"}, {"name": "range", "type": "wpilib.ADXL362.Range"}], "tooltip": "Set the measuring range of the accelerometer.\n\n:param range: The maximum acceleration, positive or negative, that the\n accelerometer will measure.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXL362", "FUNC": "setRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL362"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRange"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL362.Axes", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL362.Axes", "ENUM_VALUE": "kAxis_X"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL362.Axes", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL362.Axes", "ENUM_VALUE": "kAxis_Y"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL362.Axes", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL362.Axes", "ENUM_VALUE": "kAxis_Z"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL362.Range", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL362.Range", "ENUM_VALUE": "kRange_2G"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL362.Range", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL362.Range", "ENUM_VALUE": "kRange_4G"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.ADXL362.Range", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.ADXL362.Range", "ENUM_VALUE": "kRange_8G"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "ADXL362",
- contents: contents,
- className: "wpilib.ADXL362",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.ADXRS450_Gyro.ts b/src/blocks/generated/class_wpilib.ADXRS450_Gyro.ts
deleted file mode 100644
index 5666bdef..00000000
--- a/src/blocks/generated/class_wpilib.ADXRS450_Gyro.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.ADXRS450_Gyro
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 10 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADXRS450_Gyro"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.ADXRS450_Gyro", "args": [], "tooltip": "%Gyro constructor on onboard CS0.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXRS450_Gyro"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADXRS450_Gyro"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.ADXRS450_Gyro", "args": [{"name": "port", "type": "wpilib.SPI.Port"}], "tooltip": "%Gyro constructor on the specified SPI port.\n\n:param port: The SPI port the gyro is attached to.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXRS450_Gyro"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPort"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXRS450_Gyro", "type": "wpilib.ADXRS450_Gyro"}], "tooltip": "Calibrate the gyro by running for a number of samples and computing the\ncenter value. Then use the center value as the Accumulator center value for\nsubsequent measurements.\n\nIt's important to make sure that the robot is not moving while the\ncentering calculations are in progress, this is typically done when the\nrobot is first turned on while it's sitting at rest before the competition\nstarts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXRS450_Gyro", "FUNC": "calibrate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXRS450_Gyro"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "aDXRS450_Gyro", "type": "wpilib.ADXRS450_Gyro"}], "tooltip": "Return the actual angle in degrees that the robot is currently facing.\n\nThe angle is based on integration of the returned rate from the gyro.\nThe angle is continuous, that is it will continue from 360->361 degrees.\nThis allows algorithms that wouldn't want to see a discontinuity in the\ngyro output as it sweeps from 360 to 0 on the second time around.\n\n:returns: the current heading of the robot in degrees.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXRS450_Gyro", "FUNC": "getAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXRS450_Gyro"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "aDXRS450_Gyro", "type": "wpilib.ADXRS450_Gyro"}], "tooltip": "Get the SPI port number.\n\n:returns: The SPI port number.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXRS450_Gyro", "FUNC": "getPort"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXRS450_Gyro"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "aDXRS450_Gyro", "type": "wpilib.ADXRS450_Gyro"}], "tooltip": "Return the rate of rotation of the gyro\n\nThe rate is based on the most recent reading of the gyro.\n\n:returns: the current rate in degrees per second", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXRS450_Gyro", "FUNC": "getRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXRS450_Gyro"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myRotation2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Rotation2d", "args": [{"name": "aDXRS450_Gyro", "type": "wpilib.ADXRS450_Gyro"}], "tooltip": "Return the heading of the robot as a Rotation2d.\n\nThe angle is continuous, that is it will continue from 360 to 361 degrees.\nThis allows algorithms that wouldn't want to see a discontinuity in the\ngyro output as it sweeps past from 360 to 0 on the second time around.\n\nThe angle is expected to increase as the gyro turns counterclockwise when\nlooked at from the top. It needs to follow the NWU axis convention.\n\n:returns: the current heading of the robot as a Rotation2d. This heading is\n based on integration of the returned rate from the gyro.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXRS450_Gyro", "FUNC": "getRotation2d"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXRS450_Gyro"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXRS450_Gyro", "type": "wpilib.ADXRS450_Gyro"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXRS450_Gyro", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXRS450_Gyro"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "aDXRS450_Gyro", "type": "wpilib.ADXRS450_Gyro"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXRS450_Gyro", "FUNC": "isConnected"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXRS450_Gyro"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXRS450_Gyro", "type": "wpilib.ADXRS450_Gyro"}], "tooltip": "Reset the gyro.\n\nResets the gyro to a heading of zero. This can be used if there is\nsignificant drift in the gyro and it needs to be recalibrated after it has\nbeen running.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.ADXRS450_Gyro", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXRS450_Gyro"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "ADXRS450_Gyro",
- contents: contents,
- className: "wpilib.ADXRS450_Gyro",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.AddressableLED.LEDData.ts b/src/blocks/generated/class_wpilib.AddressableLED.LEDData.ts
deleted file mode 100644
index ee9593d0..00000000
--- a/src/blocks/generated/class_wpilib.AddressableLED.LEDData.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.AddressableLED.LEDData
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("wpilib.AddressableLED.LEDData", "int", ["b", "g", "r"], ["///< blue value", "///< green value", "///< red value"]);
- setPythonVariable.initializeInstanceVariableSetter("wpilib.AddressableLED.LEDData", "int", ["b", "g", "r"], ["///< blue value", "///< green value", "///< red value"]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 12 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.AddressableLED.LEDData", "varType": "int", "importModule": "", "selfLabel": "lEDData", "selfType": "wpilib.AddressableLED.LEDData"}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED.LEDData", "VAR": "b"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDData"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.AddressableLED.LEDData", "varType": "int", "importModule": "", "selfLabel": "lEDData", "selfType": "wpilib.AddressableLED.LEDData"}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED.LEDData", "VAR": "b"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDData"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.AddressableLED.LEDData", "varType": "int", "importModule": "", "selfLabel": "lEDData", "selfType": "wpilib.AddressableLED.LEDData"}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED.LEDData", "VAR": "g"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDData"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.AddressableLED.LEDData", "varType": "int", "importModule": "", "selfLabel": "lEDData", "selfType": "wpilib.AddressableLED.LEDData"}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED.LEDData", "VAR": "g"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDData"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.AddressableLED.LEDData", "varType": "int", "importModule": "", "selfLabel": "lEDData", "selfType": "wpilib.AddressableLED.LEDData"}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED.LEDData", "VAR": "r"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDData"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.AddressableLED.LEDData", "varType": "int", "importModule": "", "selfLabel": "lEDData", "selfType": "wpilib.AddressableLED.LEDData"}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED.LEDData", "VAR": "r"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDData"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDData"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AddressableLED.LEDData", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED.LEDData"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDData"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AddressableLED.LEDData", "args": [{"name": "r", "type": "int"}, {"name": "g", "type": "int"}, {"name": "b", "type": "int"}], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED.LEDData"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "lEDData", "type": "wpilib.AddressableLED.LEDData"}, {"name": "h", "type": "int"}, {"name": "s", "type": "int"}, {"name": "v", "type": "int"}], "tooltip": "A helper method to set all values of the LED.\n\n:param h: the h value [0-180]\n:param s: the s value [0-255]\n:param v: the v value [0-255]", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED.LEDData", "FUNC": "setHSV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDData"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "lEDData", "type": "wpilib.AddressableLED.LEDData"}, {"name": "color", "type": "wpilib.Color"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED.LEDData", "FUNC": "setLED"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDData"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "lEDData", "type": "wpilib.AddressableLED.LEDData"}, {"name": "color", "type": "wpilib.Color8Bit"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED.LEDData", "FUNC": "setLED"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDData"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor8Bit"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "lEDData", "type": "wpilib.AddressableLED.LEDData"}, {"name": "r", "type": "int"}, {"name": "g", "type": "int"}, {"name": "b", "type": "int"}], "tooltip": "A helper method to set all values of the LED.\n\n:param r: the r value [0-255]\n:param g: the g value [0-255]\n:param b: the b value [0-255]", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED.LEDData", "FUNC": "setRGB"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDData"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "LEDData",
- contents: contents,
- className: "wpilib.AddressableLED.LEDData",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.AddressableLED.ts b/src/blocks/generated/class_wpilib.AddressableLED.ts
deleted file mode 100644
index 81642756..00000000
--- a/src/blocks/generated/class_wpilib.AddressableLED.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.AddressableLED
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAddressableLED"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AddressableLED", "args": [{"name": "port", "type": "int"}], "tooltip": "Constructs a new driver for a specific port.\n\n:param port: the output port to use (Must be a PWM header)", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "addressableLED", "type": "wpilib.AddressableLED"}, {"name": "highTime0", "type": "wpimath.units.nanoseconds"}, {"name": "lowTime0", "type": "wpimath.units.nanoseconds"}, {"name": "highTime1", "type": "wpimath.units.nanoseconds"}, {"name": "lowTime1", "type": "wpimath.units.nanoseconds"}], "tooltip": "Sets the bit timing.\n\nBy default, the driver is set up to drive WS2812Bs, so nothing needs to\nbe set for those.\n\n:param highTime0: high time for 0 bit (default 400ns)\n:param lowTime0: low time for 0 bit (default 900ns)\n:param highTime1: high time for 1 bit (default 900ns)\n:param lowTime1: low time for 1 bit (default 600ns)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED", "FUNC": "setBitTiming"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLED"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "addressableLED", "type": "wpilib.AddressableLED"}, {"name": "ledData", "type": "List[wpilib._wpilib.AddressableLED.LEDData]"}], "tooltip": "Sets the led output data.\n\nIf the output is enabled, this will start writing the next data cycle.\nIt is safe to call, even while output is enabled.\n\n:param ledData: the buffer to write", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED", "FUNC": "setData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLED"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "addressableLED", "type": "wpilib.AddressableLED"}, {"name": "length", "type": "int"}], "tooltip": "Sets the length of the LED strip.\n\nCalling this is an expensive call, so its best to call it once, then\njust update data.\n\nThe max length is 5460 LEDs.\n\n:param length: the strip length", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED", "FUNC": "setLength"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLED"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "addressableLED", "type": "wpilib.AddressableLED"}, {"name": "syncTime", "type": "wpimath.units.microseconds"}], "tooltip": "Sets the sync time.\n\nThe sync time is the time to hold output so LEDs enable. Default set for\nWS2812B.\n\n:param syncTime: the sync time (default 280us)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED", "FUNC": "setSyncTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLED"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "addressableLED", "type": "wpilib.AddressableLED"}], "tooltip": "Starts the output.\n\nThe output writes continuously.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED", "FUNC": "start"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLED"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "addressableLED", "type": "wpilib.AddressableLED"}], "tooltip": "Stops the output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AddressableLED", "FUNC": "stop"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLED"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "AddressableLED",
- contents: contents,
- className: "wpilib.AddressableLED",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.Alert.ts b/src/blocks/generated/class_wpilib.Alert.ts
deleted file mode 100644
index 07c9fb00..00000000
--- a/src/blocks/generated/class_wpilib.Alert.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.Alert
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.Alert.AlertType", ["kError", "kInfo", "kWarning"], "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.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 10 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAlert"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Alert", "args": [{"name": "text", "type": "str"}, {"name": "type", "type": "wpilib.Alert.AlertType"}], "tooltip": "Creates a new alert in the default group - \"Alerts\". If this is the first\nto be instantiated, the appropriate entries will be added to NetworkTables.\n\n:param text: Text to be displayed when the alert is active.\n:param type: Alert urgency level.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Alert"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAlertType"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAlert"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Alert", "args": [{"name": "group", "type": "str"}, {"name": "text", "type": "str"}, {"name": "type", "type": "wpilib.Alert.AlertType"}], "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.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Alert"}, "inputs": {"ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAlertType"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "alert", "type": "wpilib.Alert"}], "tooltip": "Gets whether the alert is active.\n\n:returns: whether the alert is active.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Alert", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAlert"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "alert", "type": "wpilib.Alert"}], "tooltip": "Gets the current alert text.\n\n:returns: the current text.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Alert", "FUNC": "getText"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAlert"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAlertType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.Alert.AlertType", "args": [{"name": "alert", "type": "wpilib.Alert"}], "tooltip": "Get the type of this alert.\n\n:returns: the type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Alert", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAlert"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "alert", "type": "wpilib.Alert"}, {"name": "active", "type": "bool"}], "tooltip": "Sets whether the alert should currently be displayed. This method can be\nsafely called periodically.\n\n:param active: Whether to display the alert.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Alert", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAlert"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "alert", "type": "wpilib.Alert"}, {"name": "text", "type": "str"}], "tooltip": "Updates current alert text. Use this method to dynamically change the\ndisplayed alert, such as including more details about the detected problem.\n\n:param text: Text to be displayed when the alert is active.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Alert", "FUNC": "setText"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAlert"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Alert.AlertType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Alert.AlertType", "ENUM_VALUE": "kError"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Alert.AlertType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Alert.AlertType", "ENUM_VALUE": "kInfo"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Alert.AlertType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Alert.AlertType", "ENUM_VALUE": "kWarning"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Alert",
- contents: contents,
- className: "wpilib.Alert",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.AnalogAccelerometer.ts b/src/blocks/generated/class_wpilib.AnalogAccelerometer.ts
deleted file mode 100644
index 1fca047a..00000000
--- a/src/blocks/generated/class_wpilib.AnalogAccelerometer.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.AnalogAccelerometer
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 6 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogAccelerometer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogAccelerometer", "args": [{"name": "channel", "type": "int"}], "tooltip": "Create a new instance of an accelerometer.\n\nThe constructor allocates desired analog input.\n\n:param channel: The channel number for the analog input the accelerometer is\n connected to", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogAccelerometer"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogAccelerometer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogAccelerometer", "args": [{"name": "channel", "type": "wpilib.AnalogInput"}], "tooltip": "Create a new instance of Accelerometer from an existing AnalogInput.\n\nMake a new instance of accelerometer given an AnalogInput. This is\nparticularly useful if the port is going to be read as an analog channel as\nwell as through the Accelerometer class.\n\n:param channel: The existing AnalogInput object for the analog input the\n accelerometer is connected to", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogAccelerometer"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogAccelerometer", "type": "wpilib.AnalogAccelerometer"}], "tooltip": "Return the acceleration in Gs.\n\nThe acceleration is returned units of Gs.\n\n:returns: The current acceleration of the sensor in Gs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogAccelerometer", "FUNC": "getAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogAccelerometer"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogAccelerometer", "type": "wpilib.AnalogAccelerometer"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogAccelerometer", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogAccelerometer"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogAccelerometer", "type": "wpilib.AnalogAccelerometer"}, {"name": "sensitivity", "type": "float"}], "tooltip": "Set the accelerometer sensitivity.\n\nThis sets the sensitivity of the accelerometer used for calculating the\nacceleration. The sensitivity varies by accelerometer model. There are\nconstants defined for various models.\n\n:param sensitivity: The sensitivity of accelerometer in Volts per G.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogAccelerometer", "FUNC": "setSensitivity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogAccelerometer"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogAccelerometer", "type": "wpilib.AnalogAccelerometer"}, {"name": "zero", "type": "float"}], "tooltip": "Set the voltage that corresponds to 0 G.\n\nThe zero G voltage varies by accelerometer model. There are constants\ndefined for various models.\n\n:param zero: The zero G voltage.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogAccelerometer", "FUNC": "setZero"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogAccelerometer"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "AnalogAccelerometer",
- contents: contents,
- className: "wpilib.AnalogAccelerometer",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.AnalogEncoder.ts b/src/blocks/generated/class_wpilib.AnalogEncoder.ts
deleted file mode 100644
index eb55fd82..00000000
--- a/src/blocks/generated/class_wpilib.AnalogEncoder.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.AnalogEncoder
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 9 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogEncoder"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogEncoder", "args": [{"name": "channel", "type": "int"}], "tooltip": "Construct a new AnalogEncoder attached to a specific AnalogIn channel.\n\nThis has a fullRange of 1 and an expectedZero of 0.\n\n:param channel: the analog input channel to attach to", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogEncoder"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogEncoder"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogEncoder", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Construct a new AnalogEncoder attached to a specific AnalogInput.\n\nThis has a fullRange of 1 and an expectedZero of 0.\n\n:param analogInput: the analog input to attach to", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogEncoder"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogEncoder"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogEncoder", "args": [{"name": "channel", "type": "int"}, {"name": "fullRange", "type": "float"}, {"name": "expectedZero", "type": "float"}], "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()", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogEncoder"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogEncoder"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogEncoder", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}, {"name": "fullRange", "type": "float"}, {"name": "expectedZero", "type": "float"}], "tooltip": "Construct a new AnalogEncoder attached to a specific AnalogInput.\n\n:param analogInput: the analog input 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()", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogEncoder"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogEncoder", "type": "wpilib.AnalogEncoder"}], "tooltip": "Get the encoder value.\n\n:returns: the encoder value scaled by the full range input", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogEncoder", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogEncoder", "type": "wpilib.AnalogEncoder"}], "tooltip": "Get the channel number.\n\n:returns: The channel number.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogEncoder", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogEncoder", "type": "wpilib.AnalogEncoder"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogEncoder", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogEncoder"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogEncoder", "type": "wpilib.AnalogEncoder"}, {"name": "inverted", "type": "bool"}], "tooltip": "Set if this encoder is inverted.\n\n:param inverted: true to invert the encoder, false otherwise", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogEncoder", "FUNC": "setInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogEncoder", "type": "wpilib.AnalogEncoder"}, {"name": "min", "type": "float"}, {"name": "max", "type": "float"}], "tooltip": "Set the encoder voltage percentage range. Analog sensors are not always\nfully stable at the end of their travel ranges. Shrinking this range down\ncan help mitigate issues with that.\n\n:param min: minimum voltage percentage (0-1 range)\n:param max: maximum voltage percentage (0-1 range)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogEncoder", "FUNC": "setVoltagePercentageRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogEncoder"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "AnalogEncoder",
- contents: contents,
- className: "wpilib.AnalogEncoder",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.AnalogGyro.ts b/src/blocks/generated/class_wpilib.AnalogGyro.ts
deleted file mode 100644
index 970590b7..00000000
--- a/src/blocks/generated/class_wpilib.AnalogGyro.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.AnalogGyro
-
-export function initialize() {
- getPythonVariable.initializeClassVariableGetter("wpilib.AnalogGyro", "int", ["kAverageBits", "kOversampleBits"], []);
- getPythonVariable.initializeClassVariableGetter("wpilib.AnalogGyro", "float", ["kCalibrationSampleTime", "kDefaultVoltsPerDegreePerSecond", "kSamplesPerSecond"], []);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 21 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.AnalogGyro", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "VAR": "kAverageBits"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.AnalogGyro", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "VAR": "kOversampleBits"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.AnalogGyro", "varType": "float", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "VAR": "kCalibrationSampleTime"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.AnalogGyro", "varType": "float", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "VAR": "kDefaultVoltsPerDegreePerSecond"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.AnalogGyro", "varType": "float", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "VAR": "kSamplesPerSecond"}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogGyro"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogGyro", "args": [{"name": "channel", "type": "int"}], "tooltip": "%Gyro constructor using the Analog Input channel number.\n\n:param channel: The analog channel the gyro is connected to. Gyros can only\n be used on on-board Analog Inputs 0-1.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogGyro"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogGyro", "args": [{"name": "channel", "type": "wpilib.AnalogInput"}], "tooltip": "%Gyro constructor with a precreated AnalogInput object.\n\nUse this constructor when the analog channel needs to be shared.\nThis object will not clean up the AnalogInput object when using this\nconstructor.\n\n:param channel: A pointer to the AnalogInput object that the gyro is\n connected to.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogGyro"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogGyro", "args": [{"name": "channel", "type": "int"}, {"name": "center", "type": "int"}, {"name": "offset", "type": "float"}], "tooltip": "%Gyro constructor using the Analog Input channel number with parameters for\npresetting the center and offset values. Bypasses calibration.\n\n:param channel: The analog channel the gyro is connected to. Gyros can only\n be used on on-board Analog Inputs 0-1.\n:param center: Preset uncalibrated value to use as the accumulator center\n value.\n:param offset: Preset uncalibrated value to use as the gyro offset.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogGyro"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogGyro", "args": [{"name": "channel", "type": "wpilib.AnalogInput"}, {"name": "center", "type": "int"}, {"name": "offset", "type": "float"}], "tooltip": "%Gyro constructor with a precreated AnalogInput object and calibrated\nparameters.\n\nUse this constructor when the analog channel needs to be shared.\nThis object will not clean up the AnalogInput object when using this\nconstructor.\n\n:param channel: A pointer to the AnalogInput object that the gyro is\n connected to.\n:param center: Preset uncalibrated value to use as the accumulator center\n value.\n:param offset: Preset uncalibrated value to use as the gyro offset.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogGyro", "type": "wpilib.AnalogGyro"}], "tooltip": "Calibrate the gyro by running for a number of samples and computing the\ncenter value. Then use the center value as the Accumulator center value for\nsubsequent measurements.\n\nIt's important to make sure that the robot is not moving while the\ncentering calculations are in progress, this is typically done when the\nrobot is first turned on while it's sitting at rest before the competition\nstarts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "FUNC": "calibrate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyro"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogInput"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.AnalogInput", "args": [{"name": "analogGyro", "type": "wpilib.AnalogGyro"}], "tooltip": "Gets the analog input for the gyro.\n\n:returns: AnalogInput", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "FUNC": "getAnalogInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyro"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogGyro", "type": "wpilib.AnalogGyro"}], "tooltip": "Return the actual angle in degrees that the robot is currently facing.\n\nThe angle is based on the current accumulator value corrected by the\noversampling rate, the gyro type and the A/D calibration values. The angle\nis continuous, that is it will continue from 360->361 degrees. This allows\nalgorithms that wouldn't want to see a discontinuity in the gyro output as\nit sweeps from 360 to 0 on the second time around.\n\n:returns: The current heading of the robot in degrees. This heading is based\n on integration of the returned rate from the gyro.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "FUNC": "getAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyro"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogGyro", "type": "wpilib.AnalogGyro"}], "tooltip": "Return the gyro center value. If run after calibration,\nthe center value can be used as a preset later.\n\n:returns: the current center value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "FUNC": "getCenter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyro"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogGyro", "type": "wpilib.AnalogGyro"}], "tooltip": "Return the gyro offset value. If run after calibration,\nthe offset value can be used as a preset later.\n\n:returns: the current offset value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "FUNC": "getOffset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyro"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogGyro", "type": "wpilib.AnalogGyro"}], "tooltip": "Return the rate of rotation of the gyro\n\nThe rate is based on the most recent reading of the gyro analog value\n\n:returns: the current rate in degrees per second", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "FUNC": "getRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyro"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myRotation2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Rotation2d", "args": [{"name": "analogGyro", "type": "wpilib.AnalogGyro"}], "tooltip": "Return the heading of the robot as a Rotation2d.\n\nThe angle is continuous, that is it will continue from 360 to 361 degrees.\nThis allows algorithms that wouldn't want to see a discontinuity in the\ngyro output as it sweeps past from 360 to 0 on the second time around.\n\nThe angle is expected to increase as the gyro turns counterclockwise when\nlooked at from the top. It needs to follow the NWU axis convention.\n\n:returns: the current heading of the robot as a Rotation2d. This heading is\n based on integration of the returned rate from the gyro.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "FUNC": "getRotation2d"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyro"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogGyro", "type": "wpilib.AnalogGyro"}], "tooltip": "Initialize the gyro.\n\nCalibration is handled by Calibrate().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "FUNC": "initGyro"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyro"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogGyro", "type": "wpilib.AnalogGyro"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyro"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogGyro", "type": "wpilib.AnalogGyro"}], "tooltip": "Reset the gyro.\n\nResets the gyro to a heading of zero. This can be used if there is\nsignificant drift in the gyro and it needs to be recalibrated after it has\nbeen running.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyro"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogGyro", "type": "wpilib.AnalogGyro"}, {"name": "volts", "type": "float"}], "tooltip": "Set the size of the neutral zone.\n\nAny voltage from the gyro less than this amount from the center is\nconsidered stationary. Setting a deadband will decrease the amount of\ndrift when the gyro isn't rotating, but will make it less accurate.\n\n:param volts: The size of the deadband in volts", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "FUNC": "setDeadband"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyro"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogGyro", "type": "wpilib.AnalogGyro"}, {"name": "voltsPerDegreePerSecond", "type": "float"}], "tooltip": "Set the gyro sensitivity.\n\nThis takes the number of volts/degree/second sensitivity of the gyro and\nuses it in subsequent calculations to allow the code to work with multiple\ngyros. This value is typically found in the gyro datasheet.\n\n:param voltsPerDegreePerSecond: The sensitivity in Volts/degree/second", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogGyro", "FUNC": "setSensitivity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyro"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "AnalogGyro",
- contents: contents,
- className: "wpilib.AnalogGyro",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.AnalogInput.ts b/src/blocks/generated/class_wpilib.AnalogInput.ts
deleted file mode 100644
index d9254672..00000000
--- a/src/blocks/generated/class_wpilib.AnalogInput.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.AnalogInput
-
-export function initialize() {
- getPythonVariable.initializeClassVariableGetter("wpilib.AnalogInput", "int", ["kAccumulatorModuleNumber", "kAccumulatorNumChannels"], []);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 27 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.AnalogInput", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "VAR": "kAccumulatorModuleNumber"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.AnalogInput", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "VAR": "kAccumulatorNumChannels"}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogInput"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogInput", "args": [{"name": "channel", "type": "int"}], "tooltip": "Construct an analog input.\n\n:param channel: The channel number on the roboRIO to represent. 0-3 are\n on-board 4-7 are on the MXP port.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Read the number of accumulated values.\n\nRead the count of the accumulated values since the accumulator was last\nReset().\n\n:returns: The number of times samples from the channel were accumulated.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "getAccumulatorCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myTuple"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "tuple[int, int]", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Read the accumulated value and the number of accumulated values atomically.\n\nThis function reads the value and count from the FPGA atomically.\nThis can be used for averaging.\n\n:param value: Reference to the 64-bit accumulated output.\n:param count: Reference to the number of accumulation cycles.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "getAccumulatorOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Read the accumulated value.\n\nRead the value that has been accumulating.\nThe accumulator is attached after the oversample and average engine.\n\n:returns: The 64-bit value accumulated since the last Reset().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "getAccumulatorValue"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Get the number of averaging bits previously configured.\n\nThis gets the number of averaging bits from the FPGA. The actual number of\naveraged samples is 2^bits. The averaging is done automatically in the\nFPGA.\n\n:returns: Number of bits of averaging previously configured.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "getAverageBits"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Get a sample from the output of the oversample and average engine for this\nchannel.\n\nThe sample is 12-bit + the bits configured in SetOversampleBits().\nThe value configured in SetAverageBits() will cause this value to be\naveraged 2**bits number of samples.\n\nThis is not a sliding window. The sample will not change until\n2**(OversampleBits + AverageBits) samples have been acquired from the\nmodule on this channel.\n\nUse GetAverageVoltage() to get the analog value in calibrated units.\n\n:returns: A sample from the oversample and average engine for this channel.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "getAverageValue"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Get a scaled sample from the output of the oversample and average engine\nfor this channel.\n\nThe value is scaled to units of Volts using the calibrated scaling data\nfrom GetLSBWeight() and GetOffset().\n\nUsing oversampling will cause this value to be higher resolution, but it\nwill update more slowly.\n\nUsing averaging will cause this value to be more stable, but it will update\nmore slowly.\n\n:returns: A scaled sample from the output of the oversample and average\n engine for this channel.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "getAverageVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Get the channel number.\n\n:returns: The channel number.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Get the factory scaling least significant bit weight constant.\n\nVolts = ((LSB_Weight * 1e-9) * raw) - (Offset * 1e-9)\n\n:returns: Least significant bit weight.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "getLSBWeight"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Get the factory scaling offset constant.\n\nVolts = ((LSB_Weight * 1e-9) * raw) - (Offset * 1e-9)\n\n:returns: Offset constant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "getOffset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Get the number of oversample bits previously configured.\n\nThis gets the number of oversample bits from the FPGA. The actual number of\noversampled values is 2^bits. The oversampling is done automatically in the\nFPGA.\n\n:returns: Number of bits of oversampling previously configured.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "getOversampleBits"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "float", "args": [], "tooltip": "Get the current sample rate for all channels\n\n:returns: Sample rate.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "getSampleRate"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Get a sample straight from this channel.\n\nThe sample is a 12-bit value representing the 0V to 5V range of the A/D\nconverter in the module. The units are in A/D converter codes. Use\nGetVoltage() to get the analog value in calibrated units.\n\n:returns: A sample straight from this channel.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "getValue"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Get a scaled sample straight from this channel.\n\nThe value is scaled to units of Volts using the calibrated scaling data\nfrom GetLSBWeight() and GetOffset().\n\n:returns: A scaled sample straight from this channel.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Initialize the accumulator.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "initAccumulator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Is the channel attached to an accumulator.\n\n:returns: The analog input is attached to an accumulator.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "isAccumulatorChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Resets the accumulator to the initial value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "resetAccumulator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}, {"name": "center", "type": "int"}], "tooltip": "Set the center value of the accumulator.\n\nThe center value is subtracted from each A/D value before it is added to\nthe accumulator. This is used for the center value of devices like gyros\nand accelerometers to take the device offset into account when integrating.\n\nThis center value is based on the output of the oversampled and averaged\nsource from the accumulator channel. Because of this, any non-zero\noversample bits will affect the size of the value for this field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "setAccumulatorCenter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}, {"name": "deadband", "type": "int"}], "tooltip": "Set the accumulator's deadband.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "setAccumulatorDeadband"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}, {"name": "value", "type": "int"}], "tooltip": "Set an initial value for the accumulator.\n\nThis will be added to all values returned to the user.\n\n:param value: The value that the accumulator should start from when reset.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "setAccumulatorInitialValue"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}, {"name": "bits", "type": "int"}], "tooltip": "Set the number of averaging bits.\n\nThis sets the number of averaging bits. The actual number of averaged\nsamples is 2^bits.\n\nUse averaging to improve the stability of your measurement at the expense\nof sampling rate. The averaging is done automatically in the FPGA.\n\n:param bits: Number of bits of averaging.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "setAverageBits"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}, {"name": "bits", "type": "int"}], "tooltip": "Set the number of oversample bits.\n\nThis sets the number of oversample bits. The actual number of oversampled\nvalues is 2^bits. Use oversampling to improve the resolution of your\nmeasurements at the expense of sampling rate. The oversampling is done\nautomatically in the FPGA.\n\n:param bits: Number of bits of oversampling.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "setOversampleBits"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "samplesPerSecond", "type": "float"}], "tooltip": "Set the sample rate per channel for all analog channels.\n\nThe maximum rate is 500kS/s divided by the number of channels in use.\nThis is 62500 samples/s per channel.\n\n:param samplesPerSecond: The number of samples per second.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "setSampleRate"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}, {"name": "device", "type": "int"}], "tooltip": "Indicates this input is used by a simulated device.\n\n:param device: simulated device handle", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogInput", "FUNC": "setSimDevice"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "AnalogInput",
- contents: contents,
- className: "wpilib.AnalogInput",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.AnalogOutput.ts b/src/blocks/generated/class_wpilib.AnalogOutput.ts
deleted file mode 100644
index d8bad9a1..00000000
--- a/src/blocks/generated/class_wpilib.AnalogOutput.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.AnalogOutput
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 5 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogOutput"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogOutput", "args": [{"name": "channel", "type": "int"}], "tooltip": "Construct an analog output on the given channel.\n\nAll analog outputs are located on the MXP port.\n\n:param channel: The channel number on the roboRIO to represent.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogOutput"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogOutput", "type": "wpilib.AnalogOutput"}], "tooltip": "Get the channel of this AnalogOutput.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogOutput", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogOutput", "type": "wpilib.AnalogOutput"}], "tooltip": "Get the voltage of the analog output.\n\n:returns: The value in Volts, from 0.0 to +5.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogOutput", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogOutput", "type": "wpilib.AnalogOutput"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogOutput", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogOutput"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogOutput", "type": "wpilib.AnalogOutput"}, {"name": "voltage", "type": "float"}], "tooltip": "Set the value of the analog output.\n\n:param voltage: The output value in Volts, from 0.0 to +5.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogOutput", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogOutput"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "AnalogOutput",
- contents: contents,
- className: "wpilib.AnalogOutput",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.AnalogPotentiometer.ts b/src/blocks/generated/class_wpilib.AnalogPotentiometer.ts
deleted file mode 100644
index 57869b8c..00000000
--- a/src/blocks/generated/class_wpilib.AnalogPotentiometer.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.AnalogPotentiometer
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 4 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogPotentiometer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogPotentiometer", "args": [{"name": "channel", "type": "int"}, {"name": "fullRange", "type": "float"}, {"name": "offset", "type": "float"}], "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-5V range of the input.\n:param offset: The value (in desired units) representing the\n angular output at 0V.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogPotentiometer"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogPotentiometer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogPotentiometer", "args": [{"name": "input", "type": "wpilib.AnalogInput"}, {"name": "fullRange", "type": "float"}, {"name": "offset", "type": "float"}], "tooltip": "Construct an Analog Potentiometer object from an existing Analog Input\npointer.\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 input: The existing Analog Input pointer\n:param fullRange: The value (in desired units) representing the full\n 0-5V range of the input.\n:param offset: The value (in desired units) representing the\n angular output at 0V.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogPotentiometer"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogPotentiometer", "type": "wpilib.AnalogPotentiometer"}], "tooltip": "Get the current reading of the potentiometer.\n\n:returns: The current position of the potentiometer (in the units used for\n fullRange and offset).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogPotentiometer", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogPotentiometer"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogPotentiometer", "type": "wpilib.AnalogPotentiometer"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogPotentiometer", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogPotentiometer"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "AnalogPotentiometer",
- contents: contents,
- className: "wpilib.AnalogPotentiometer",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.AnalogTrigger.ts b/src/blocks/generated/class_wpilib.AnalogTrigger.ts
deleted file mode 100644
index 6444810c..00000000
--- a/src/blocks/generated/class_wpilib.AnalogTrigger.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.AnalogTrigger
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 13 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogTrigger"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogTrigger", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructor for an analog trigger given a channel number.\n\n:param channel: The channel number on the roboRIO to represent. 0-3 are\n on-board 4-7 are on the MXP port.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTrigger"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogTrigger"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogTrigger", "args": [{"name": "input", "type": "wpilib.AnalogInput"}], "tooltip": "Construct an analog trigger using an existing analog input.\n\nThis should be used in the case of sharing an analog channel between the\ntrigger and an analog input object.\n\n:param input: A shared_ptr to the existing AnalogInput object", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTrigger"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogTrigger"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogTrigger", "args": [{"name": "dutyCycle", "type": "wpilib.DutyCycle"}], "tooltip": "Construct an analog trigger using an existing duty cycle input.\n\n:param dutyCycle: A shared_ptr to the existing DutyCycle object", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTrigger"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycle"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogTriggerOutput"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.AnalogTriggerOutput", "args": [{"name": "analogTrigger", "type": "wpilib.AnalogTrigger"}, {"name": "type", "type": "wpilib.AnalogTriggerType"}], "tooltip": "Creates an AnalogTriggerOutput object.\n\n:param type: An enum of the type of output object to create.\n\n:returns: A pointer to a new AnalogTriggerOutput object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTrigger", "FUNC": "createOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerType"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "analogTrigger", "type": "wpilib.AnalogTrigger"}], "tooltip": "Return the InWindow output of the analog trigger.\n\nTrue if the analog input is between the upper and lower limits.\n\n:returns: True if the analog input is between the upper and lower limits.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTrigger", "FUNC": "getInWindow"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogTrigger", "type": "wpilib.AnalogTrigger"}], "tooltip": "Return the index of the analog trigger.\n\nThis is the FPGA index of this analog trigger instance.\n\n:returns: The index of the analog trigger.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTrigger", "FUNC": "getIndex"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "analogTrigger", "type": "wpilib.AnalogTrigger"}], "tooltip": "Return the TriggerState output of the analog trigger.\n\nTrue if above upper limit.\nFalse if below lower limit.\nIf in Hysteresis, maintain previous state.\n\n:returns: True if above upper limit. False if below lower limit. If in\n Hysteresis, maintain previous state.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTrigger", "FUNC": "getTriggerState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogTrigger", "type": "wpilib.AnalogTrigger"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTrigger", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogTrigger", "type": "wpilib.AnalogTrigger"}, {"name": "useAveragedValue", "type": "bool"}], "tooltip": "Configure the analog trigger to use the averaged vs. raw values.\n\nIf the value is true, then the averaged value is selected for the analog\ntrigger, otherwise the immediate value is used.\n\n:param useAveragedValue: If true, use the Averaged value, otherwise use the\n instantaneous reading", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTrigger", "FUNC": "setAveraged"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogTrigger", "type": "wpilib.AnalogTrigger"}, {"name": "useFilteredValue", "type": "bool"}], "tooltip": "Configure the analog trigger to use a filtered value.\n\nThe analog trigger will operate with a 3 point average rejection filter.\nThis is designed to help with 360 degree pot applications for the period\nwhere the pot crosses through zero.\n\n:param useFilteredValue: If true, use the 3 point rejection filter,\n otherwise use the unfiltered value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTrigger", "FUNC": "setFiltered"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogTrigger", "type": "wpilib.AnalogTrigger"}, {"name": "lower", "type": "float"}, {"name": "upper", "type": "float"}], "tooltip": "Set the upper and lower duty cycle limits of the analog trigger.\n\nThe limits are given as floating point values between 0 and 1.\n\n:param lower: The lower limit of the trigger in percentage.\n:param upper: The upper limit of the trigger in percentage.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTrigger", "FUNC": "setLimitsDutyCycle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogTrigger", "type": "wpilib.AnalogTrigger"}, {"name": "lower", "type": "int"}, {"name": "upper", "type": "int"}], "tooltip": "Set the upper and lower limits of the analog trigger.\n\nThe limits are given in ADC codes. If oversampling is used, the units must\nbe scaled appropriately.\n\n:param lower: The lower limit of the trigger in ADC codes (12-bit values).\n:param upper: The upper limit of the trigger in ADC codes (12-bit values).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTrigger", "FUNC": "setLimitsRaw"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogTrigger", "type": "wpilib.AnalogTrigger"}, {"name": "lower", "type": "float"}, {"name": "upper", "type": "float"}], "tooltip": "Set the upper and lower limits of the analog trigger.\n\nThe limits are given as floating point voltage values.\n\n:param lower: The lower limit of the trigger in Volts.\n:param upper: The upper limit of the trigger in Volts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTrigger", "FUNC": "setLimitsVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "AnalogTrigger",
- contents: contents,
- className: "wpilib.AnalogTrigger",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.AnalogTriggerOutput.ts b/src/blocks/generated/class_wpilib.AnalogTriggerOutput.ts
deleted file mode 100644
index 6398f99f..00000000
--- a/src/blocks/generated/class_wpilib.AnalogTriggerOutput.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.AnalogTriggerOutput
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogTriggerOutput"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.AnalogTriggerOutput", "args": [{"name": "trigger", "type": "wpilib.AnalogTrigger"}, {"name": "outputType", "type": "wpilib.AnalogTriggerType"}], "tooltip": "Create an object that represents one of the four outputs from an analog\ntrigger.\n\nBecause this class derives from DigitalSource, it can be passed into\nrouting functions for Counter, Encoder, etc.\n\n:param trigger: A pointer to the trigger for which this is an output.\n:param outputType: An enum that specifies the output on the trigger to\n represent.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTriggerOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerType"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "analogTriggerOutput", "type": "wpilib.AnalogTriggerOutput"}], "tooltip": "Get the state of the analog trigger output.\n\n:returns: The state of the analog trigger output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTriggerOutput", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerOutput"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogTriggerType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.AnalogTriggerType", "args": [{"name": "analogTriggerOutput", "type": "wpilib.AnalogTriggerOutput"}], "tooltip": ":returns: The type of analog trigger output to be used.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTriggerOutput", "FUNC": "getAnalogTriggerTypeForRouting"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerOutput"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogTriggerOutput", "type": "wpilib.AnalogTriggerOutput"}], "tooltip": ":returns: The channel of the source.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTriggerOutput", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogTriggerOutput", "type": "wpilib.AnalogTriggerOutput"}], "tooltip": ":returns: The HAL Handle to the specified source.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTriggerOutput", "FUNC": "getPortHandleForRouting"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogTriggerOutput", "type": "wpilib.AnalogTriggerOutput"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTriggerOutput", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerOutput"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "analogTriggerOutput", "type": "wpilib.AnalogTriggerOutput"}], "tooltip": "Is source an AnalogTrigger", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.AnalogTriggerOutput", "FUNC": "isAnalogTrigger"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerOutput"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "AnalogTriggerOutput",
- contents: contents,
- className: "wpilib.AnalogTriggerOutput",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.BuiltInAccelerometer.ts b/src/blocks/generated/class_wpilib.BuiltInAccelerometer.ts
deleted file mode 100644
index c573dd40..00000000
--- a/src/blocks/generated/class_wpilib.BuiltInAccelerometer.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.BuiltInAccelerometer
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.BuiltInAccelerometer.Range", ["kRange_2G", "kRange_4G", "kRange_8G"], "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.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 9 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBuiltInAccelerometer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.BuiltInAccelerometer", "args": [{"name": "range", "type": "wpilib.BuiltInAccelerometer.Range"}], "tooltip": "Constructor.\n\n:param range: The range the accelerometer will measure", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.BuiltInAccelerometer"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRange"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "builtInAccelerometer", "type": "wpilib.BuiltInAccelerometer"}], "tooltip": ":returns: The acceleration of the roboRIO along the X axis in g-forces", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.BuiltInAccelerometer", "FUNC": "getX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometer"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "builtInAccelerometer", "type": "wpilib.BuiltInAccelerometer"}], "tooltip": ":returns: The acceleration of the roboRIO along the Y axis in g-forces", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.BuiltInAccelerometer", "FUNC": "getY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometer"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "builtInAccelerometer", "type": "wpilib.BuiltInAccelerometer"}], "tooltip": ":returns: The acceleration of the roboRIO along the Z axis in g-forces", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.BuiltInAccelerometer", "FUNC": "getZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometer"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "builtInAccelerometer", "type": "wpilib.BuiltInAccelerometer"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.BuiltInAccelerometer", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometer"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "builtInAccelerometer", "type": "wpilib.BuiltInAccelerometer"}, {"name": "range", "type": "wpilib.BuiltInAccelerometer.Range"}], "tooltip": "Set the measuring range of the accelerometer.\n\n:param range: The maximum acceleration, positive or negative, that the\n accelerometer will measure.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.BuiltInAccelerometer", "FUNC": "setRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometer"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRange"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.BuiltInAccelerometer.Range", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.BuiltInAccelerometer.Range", "ENUM_VALUE": "kRange_2G"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.BuiltInAccelerometer.Range", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.BuiltInAccelerometer.Range", "ENUM_VALUE": "kRange_4G"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.BuiltInAccelerometer.Range", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.BuiltInAccelerometer.Range", "ENUM_VALUE": "kRange_8G"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "BuiltInAccelerometer",
- contents: contents,
- className: "wpilib.BuiltInAccelerometer",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.CAN.ts b/src/blocks/generated/class_wpilib.CAN.ts
deleted file mode 100644
index 307acacf..00000000
--- a/src/blocks/generated/class_wpilib.CAN.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.CAN
-
-export function initialize() {
- getPythonVariable.initializeClassVariableGetter("wpilib.CAN", "hal.CANDeviceType", ["kTeamDeviceType"], []);
- getPythonVariable.initializeClassVariableGetter("wpilib.CAN", "hal.CANManufacturer", ["kTeamManufacturer"], []);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 15 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.CAN", "varType": "hal.CANDeviceType", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN", "VAR": "kTeamDeviceType"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.CAN", "varType": "hal.CANManufacturer", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN", "VAR": "kTeamManufacturer"}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCAN"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.CAN", "args": [{"name": "deviceId", "type": "int"}], "tooltip": "Create a new CAN communication interface with the specific device ID.\nThis uses the team manufacturer and device types.\nThe device ID is 6 bits (0-63)\n\n:param deviceId: The device id", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCAN"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.CAN", "args": [{"name": "deviceId", "type": "int"}, {"name": "deviceManufacturer", "type": "int"}, {"name": "deviceType", "type": "int"}], "tooltip": "Create a new CAN communication interface with a specific device ID,\nmanufacturer and device type. The device ID is 6 bits, the\nmanufacturer is 8 bits, and the device type is 5 bits.\n\n:param deviceId: The device ID\n:param deviceManufacturer: The device manufacturer\n:param deviceType: The device type", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Reads the current value of the millisecond-resolution timer that CANData\ntimestamps are based on\n\n:returns: Current value of timer used as a base time for CANData timestamps\n in milliseconds", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN", "FUNC": "getTimestampBaseTime"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "cAN", "type": "wpilib.CAN"}, {"name": "apiId", "type": "int"}, {"name": "data", "type": "wpilib.CANData"}], "tooltip": "Read a CAN packet. The will continuously return the last packet received,\nwithout accounting for packet age.\n\n:param apiId: The API ID to read.\n:param data: Storage for the received data.\n\n:returns: True if the data is valid, otherwise false.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN", "FUNC": "readPacketLatest"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCAN"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANData"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "cAN", "type": "wpilib.CAN"}, {"name": "apiId", "type": "int"}, {"name": "data", "type": "wpilib.CANData"}], "tooltip": "Read a new CAN packet. This will only return properly once per packet\nreceived. Multiple calls without receiving another packet will return\nfalse.\n\n:param apiId: The API ID to read.\n:param data: Storage for the received data.\n\n:returns: True if the data is valid, otherwise false.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN", "FUNC": "readPacketNew"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCAN"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANData"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "cAN", "type": "wpilib.CAN"}, {"name": "apiId", "type": "int"}, {"name": "timeoutMs", "type": "int"}, {"name": "data", "type": "wpilib.CANData"}], "tooltip": "Read a CAN packet. The will return the last packet received until the\npacket is older then the requested timeout. Then it will return false.\n\n:param apiId: The API ID to read.\n:param timeoutMs: The timeout time for the packet\n:param data: Storage for the received data.\n\n:returns: True if the data is valid, otherwise false.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN", "FUNC": "readPacketTimeout"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCAN"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANData"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "cAN", "type": "wpilib.CAN"}, {"name": "apiId", "type": "int"}], "tooltip": "Stop a repeating packet with a specific ID. This ID is 10 bits.\n\n:param apiId: The API ID to stop repeating", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN", "FUNC": "stopPacketRepeating"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCAN"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "cAN", "type": "wpilib.CAN"}, {"name": "data", "type": "Buffer"}, {"name": "apiId", "type": "int"}], "tooltip": "Write a packet to the CAN device with a specific ID. This ID is 10 bits.\n\n:param data: The data to write (8 bytes max)\n:param length: The data length to write\n:param apiId: The API ID to write.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN", "FUNC": "writePacket"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCAN"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "cAN", "type": "wpilib.CAN"}, {"name": "data", "type": "Buffer"}, {"name": "apiId", "type": "int"}], "tooltip": "Write a packet to the CAN device with a specific ID. This ID is 10 bits.\n\n:param data: The data to write (8 bytes max)\n:param length: The data length to write\n:param apiId: The API ID to write.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN", "FUNC": "writePacketNoError"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCAN"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "cAN", "type": "wpilib.CAN"}, {"name": "data", "type": "Buffer"}, {"name": "apiId", "type": "int"}, {"name": "repeatMs", "type": "int"}], "tooltip": "Write a repeating packet to the CAN device with a specific ID. This ID is\n10 bits. The RoboRIO will automatically repeat the packet at the specified\ninterval\n\n:param data: The data to write (8 bytes max)\n:param length: The data length to write\n:param apiId: The API ID to write.\n:param repeatMs: The period to repeat the packet at.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN", "FUNC": "writePacketRepeating"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCAN"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "cAN", "type": "wpilib.CAN"}, {"name": "data", "type": "Buffer"}, {"name": "apiId", "type": "int"}, {"name": "repeatMs", "type": "int"}], "tooltip": "Write a repeating packet to the CAN device with a specific ID. This ID is\n10 bits. The RoboRIO will automatically repeat the packet at the specified\ninterval\n\n:param data: The data to write (8 bytes max)\n:param length: The data length to write\n:param apiId: The API ID to write.\n:param repeatMs: The period to repeat the packet at.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN", "FUNC": "writePacketRepeatingNoError"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCAN"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "cAN", "type": "wpilib.CAN"}, {"name": "length", "type": "int"}, {"name": "apiId", "type": "int"}], "tooltip": "Write an RTR frame to the CAN device with a specific ID. This ID is 10\nbits. The length by spec must match what is returned by the responding\ndevice\n\n:param length: The length to request (0 to 8)\n:param apiId: The API ID to write.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN", "FUNC": "writeRTRFrame"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCAN"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "cAN", "type": "wpilib.CAN"}, {"name": "length", "type": "int"}, {"name": "apiId", "type": "int"}], "tooltip": "Write an RTR frame to the CAN device with a specific ID. This ID is 10\nbits. The length by spec must match what is returned by the responding\ndevice\n\n:param length: The length to request (0 to 8)\n:param apiId: The API ID to write.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.CAN", "FUNC": "writeRTRFrameNoError"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCAN"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "CAN",
- contents: contents,
- className: "wpilib.CAN",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.CANData.ts b/src/blocks/generated/class_wpilib.CANData.ts
deleted file mode 100644
index 6fb424af..00000000
--- a/src/blocks/generated/class_wpilib.CANData.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.CANData
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("wpilib.CANData", "memoryview", ["data"], ["Contents of the CAN packet."]);
- getPythonVariable.initializeInstanceVariableGetter("wpilib.CANData", "int", ["length", "timestamp"], ["Length of packet in bytes.", "CAN frame timestamp in milliseconds."]);
- setPythonVariable.initializeInstanceVariableSetter("wpilib.CANData", "int", ["length", "timestamp"], ["Length of packet in bytes.", "CAN frame timestamp in milliseconds."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 6 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANData", "varType": "memoryview", "importModule": "", "selfLabel": "cANData", "selfType": "wpilib.CANData"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANData", "VAR": "data"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANData"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANData", "varType": "int", "importModule": "", "selfLabel": "cANData", "selfType": "wpilib.CANData"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANData", "VAR": "length"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANData"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANData", "varType": "int", "importModule": "", "selfLabel": "cANData", "selfType": "wpilib.CANData"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANData", "VAR": "length"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANData"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANData", "varType": "int", "importModule": "", "selfLabel": "cANData", "selfType": "wpilib.CANData"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANData", "VAR": "timestamp"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANData"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANData", "varType": "int", "importModule": "", "selfLabel": "cANData", "selfType": "wpilib.CANData"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANData", "VAR": "timestamp"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANData"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCANData"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.CANData", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANData"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "CANData",
- contents: contents,
- className: "wpilib.CANData",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.CANStatus.ts b/src/blocks/generated/class_wpilib.CANStatus.ts
deleted file mode 100644
index b0fcd0d8..00000000
--- a/src/blocks/generated/class_wpilib.CANStatus.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.CANStatus
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("wpilib.CANStatus", "int", ["busOffCount", "receiveErrorCount", "transmitErrorCount", "txFullCount"], ["", "", "", ""]);
- setPythonVariable.initializeInstanceVariableSetter("wpilib.CANStatus", "int", ["busOffCount", "receiveErrorCount", "transmitErrorCount", "txFullCount"], ["", "", "", ""]);
- getPythonVariable.initializeInstanceVariableGetter("wpilib.CANStatus", "float", ["percentBusUtilization"], [""]);
- setPythonVariable.initializeInstanceVariableSetter("wpilib.CANStatus", "float", ["percentBusUtilization"], [""]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 11 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANStatus", "varType": "int", "importModule": "", "selfLabel": "cANStatus", "selfType": "wpilib.CANStatus"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANStatus", "VAR": "busOffCount"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStatus"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANStatus", "varType": "int", "importModule": "", "selfLabel": "cANStatus", "selfType": "wpilib.CANStatus"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANStatus", "VAR": "busOffCount"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStatus"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANStatus", "varType": "int", "importModule": "", "selfLabel": "cANStatus", "selfType": "wpilib.CANStatus"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANStatus", "VAR": "receiveErrorCount"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStatus"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANStatus", "varType": "int", "importModule": "", "selfLabel": "cANStatus", "selfType": "wpilib.CANStatus"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANStatus", "VAR": "receiveErrorCount"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStatus"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANStatus", "varType": "int", "importModule": "", "selfLabel": "cANStatus", "selfType": "wpilib.CANStatus"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANStatus", "VAR": "transmitErrorCount"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStatus"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANStatus", "varType": "int", "importModule": "", "selfLabel": "cANStatus", "selfType": "wpilib.CANStatus"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANStatus", "VAR": "transmitErrorCount"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStatus"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANStatus", "varType": "int", "importModule": "", "selfLabel": "cANStatus", "selfType": "wpilib.CANStatus"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANStatus", "VAR": "txFullCount"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStatus"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANStatus", "varType": "int", "importModule": "", "selfLabel": "cANStatus", "selfType": "wpilib.CANStatus"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANStatus", "VAR": "txFullCount"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStatus"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANStatus", "varType": "float", "importModule": "", "selfLabel": "cANStatus", "selfType": "wpilib.CANStatus"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANStatus", "VAR": "percentBusUtilization"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStatus"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.CANStatus", "varType": "float", "importModule": "", "selfLabel": "cANStatus", "selfType": "wpilib.CANStatus"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANStatus", "VAR": "percentBusUtilization"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCANStatus"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCANStatus"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.CANStatus", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.CANStatus"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "CANStatus",
- contents: contents,
- className: "wpilib.CANStatus",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.Color.ts b/src/blocks/generated/class_wpilib.Color.ts
deleted file mode 100644
index cddf69bf..00000000
--- a/src/blocks/generated/class_wpilib.Color.ts
+++ /dev/null
@@ -1,181 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.Color
-
-export function initialize() {
- getPythonVariable.initializeClassVariableGetter("wpilib.Color", "wpilib.Color", ["kAliceBlue", "kAntiqueWhite", "kAqua", "kAquamarine", "kAzure", "kBeige", "kBisque", "kBlack", "kBlanchedAlmond", "kBlue", "kBlueViolet", "kBrown", "kBurlywood", "kCadetBlue", "kChartreuse", "kChocolate", "kCoral", "kCornflowerBlue", "kCornsilk", "kCrimson", "kCyan", "kDarkBlue", "kDarkCyan", "kDarkGoldenrod", "kDarkGray", "kDarkGreen", "kDarkKhaki", "kDarkMagenta", "kDarkOliveGreen", "kDarkOrange", "kDarkOrchid", "kDarkRed", "kDarkSalmon", "kDarkSeaGreen", "kDarkSlateBlue", "kDarkSlateGray", "kDarkTurquoise", "kDarkViolet", "kDeepPink", "kDeepSkyBlue", "kDenim", "kDimGray", "kDodgerBlue", "kFirebrick", "kFirstBlue", "kFirstRed", "kFloralWhite", "kForestGreen", "kFuchsia", "kGainsboro", "kGhostWhite", "kGold", "kGoldenrod", "kGray", "kGreen", "kGreenYellow", "kHoneydew", "kHotPink", "kIndianRed", "kIndigo", "kIvory", "kKhaki", "kLavender", "kLavenderBlush", "kLawnGreen", "kLemonChiffon", "kLightBlue", "kLightCoral", "kLightCyan", "kLightGoldenrodYellow", "kLightGray", "kLightGreen", "kLightPink", "kLightSalmon", "kLightSeaGreen", "kLightSkyBlue", "kLightSlateGray", "kLightSteelBlue", "kLightYellow", "kLime", "kLimeGreen", "kLinen", "kMagenta", "kMaroon", "kMediumAquamarine", "kMediumBlue", "kMediumOrchid", "kMediumPurple", "kMediumSeaGreen", "kMediumSlateBlue", "kMediumSpringGreen", "kMediumTurquoise", "kMediumVioletRed", "kMidnightBlue", "kMintcream", "kMistyRose", "kMoccasin", "kNavajoWhite", "kNavy", "kOldLace", "kOlive", "kOliveDrab", "kOrange", "kOrangeRed", "kOrchid", "kPaleGoldenrod", "kPaleGreen", "kPaleTurquoise", "kPaleVioletRed", "kPapayaWhip", "kPeachPuff", "kPeru", "kPink", "kPlum", "kPowderBlue", "kPurple", "kRed", "kRosyBrown", "kRoyalBlue", "kSaddleBrown", "kSalmon", "kSandyBrown", "kSeaGreen", "kSeashell", "kSienna", "kSilver", "kSkyBlue", "kSlateBlue", "kSlateGray", "kSnow", "kSpringGreen", "kSteelBlue", "kTan", "kTeal", "kThistle", "kTomato", "kTurquoise", "kViolet", "kWheat", "kWhite", "kWhiteSmoke", "kYellow", "kYellowGreen"], []);
- getPythonVariable.initializeInstanceVariableGetter("wpilib.Color", "float", ["blue", "green", "red"], ["Blue component (0-1).", "Green component (0-1).", "Red component (0-1)."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 152 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kAliceBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kAntiqueWhite"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kAqua"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kAquamarine"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kAzure"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kBeige"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kBisque"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kBlack"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kBlanchedAlmond"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kBlueViolet"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kBrown"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kBurlywood"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kCadetBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kChartreuse"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kChocolate"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kCoral"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kCornflowerBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kCornsilk"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kCrimson"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kCyan"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkCyan"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkGoldenrod"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkGray"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkKhaki"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkMagenta"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkOliveGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkOrange"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkOrchid"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkRed"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkSalmon"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkSeaGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkSlateBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkSlateGray"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkTurquoise"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDarkViolet"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDeepPink"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDeepSkyBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDenim"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDimGray"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kDodgerBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kFirebrick"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kFirstBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kFirstRed"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kFloralWhite"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kForestGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kFuchsia"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kGainsboro"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kGhostWhite"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kGold"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kGoldenrod"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kGray"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kGreenYellow"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kHoneydew"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kHotPink"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kIndianRed"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kIndigo"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kIvory"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kKhaki"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLavender"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLavenderBlush"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLawnGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLemonChiffon"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLightBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLightCoral"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLightCyan"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLightGoldenrodYellow"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLightGray"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLightGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLightPink"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLightSalmon"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLightSeaGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLightSkyBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLightSlateGray"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLightSteelBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLightYellow"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLime"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLimeGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kLinen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMagenta"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMaroon"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMediumAquamarine"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMediumBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMediumOrchid"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMediumPurple"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMediumSeaGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMediumSlateBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMediumSpringGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMediumTurquoise"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMediumVioletRed"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMidnightBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMintcream"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMistyRose"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kMoccasin"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kNavajoWhite"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kNavy"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kOldLace"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kOlive"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kOliveDrab"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kOrange"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kOrangeRed"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kOrchid"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kPaleGoldenrod"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kPaleGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kPaleTurquoise"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kPaleVioletRed"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kPapayaWhip"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kPeachPuff"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kPeru"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kPink"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kPlum"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kPowderBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kPurple"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kRed"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kRosyBrown"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kRoyalBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kSaddleBrown"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kSalmon"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kSandyBrown"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kSeaGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kSeashell"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kSienna"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kSilver"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kSkyBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kSlateBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kSlateGray"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kSnow"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kSpringGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kSteelBlue"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kTan"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kTeal"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kThistle"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kTomato"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kTurquoise"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kViolet"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kWheat"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kWhite"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kWhiteSmoke"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kYellow"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Color", "varType": "wpilib.Color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "kYellowGreen"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.Color", "varType": "float", "importModule": "", "selfLabel": "color", "selfType": "wpilib.Color"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "blue"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.Color", "varType": "float", "importModule": "", "selfLabel": "color", "selfType": "wpilib.Color"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "green"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.Color", "varType": "float", "importModule": "", "selfLabel": "color", "selfType": "wpilib.Color"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "VAR": "red"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myColor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Color", "args": [], "tooltip": "Constructs a default color (black).", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myColor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Color", "args": [{"name": "red", "type": "float"}, {"name": "green", "type": "float"}, {"name": "blue", "type": "float"}], "tooltip": "Constructs a Color from doubles (0-1).\n\n:param red: Red value (0-1)\n:param green: Green value (0-1)\n:param blue: Blue value (0-1)", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myColor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Color", "args": [{"name": "r", "type": "int"}, {"name": "g", "type": "int"}, {"name": "b", "type": "int"}], "tooltip": "Constructs a Color from ints (0-255).\n\n:param r: Red value (0-255)\n:param g: Green value (0-255)\n:param b: Blue value (0-255)", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myColor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Color", "args": [{"name": "hexString", "type": "str"}], "tooltip": "Constructs a Color from a hex string.\n\n:param hexString: a string of the format \\#RRGGBB\n @throws std::invalid_argument if the hex string is invalid.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myColor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.Color", "args": [{"name": "h", "type": "int"}, {"name": "s", "type": "int"}, {"name": "v", "type": "int"}], "tooltip": "Creates a Color from HSV values.\n\n:param h: The h value [0-180)\n:param s: The s value [0-255]\n:param v: The v value [0-255]\n\n:returns: The color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "FUNC": "fromHSV"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "color", "type": "wpilib.Color"}], "tooltip": "Return this color represented as a hex string.\n\n:returns: a string of the format \\#RRGGBB", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Color", "FUNC": "hexString"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Color",
- contents: contents,
- className: "wpilib.Color",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.Color8Bit.ts b/src/blocks/generated/class_wpilib.Color8Bit.ts
deleted file mode 100644
index a830026a..00000000
--- a/src/blocks/generated/class_wpilib.Color8Bit.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.Color8Bit
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("wpilib.Color8Bit", "int", ["blue", "green", "red"], ["Blue component (0-255).", "Green component (0-255).", "Red component (0-255)."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 10 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.Color8Bit", "varType": "int", "importModule": "", "selfLabel": "color8Bit", "selfType": "wpilib.Color8Bit"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color8Bit", "VAR": "blue"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor8Bit"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.Color8Bit", "varType": "int", "importModule": "", "selfLabel": "color8Bit", "selfType": "wpilib.Color8Bit"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color8Bit", "VAR": "green"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor8Bit"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.Color8Bit", "varType": "int", "importModule": "", "selfLabel": "color8Bit", "selfType": "wpilib.Color8Bit"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color8Bit", "VAR": "red"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor8Bit"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myColor8Bit"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Color8Bit", "args": [], "tooltip": "Constructs a default color (black).", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color8Bit"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myColor8Bit"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Color8Bit", "args": [{"name": "red", "type": "int"}, {"name": "green", "type": "int"}, {"name": "blue", "type": "int"}], "tooltip": "Constructs a Color8Bit.\n\n:param red: Red value (0-255)\n:param green: Green value (0-255)\n:param blue: Blue value (0-255)", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color8Bit"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myColor8Bit"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Color8Bit", "args": [{"name": "color", "type": "wpilib.Color"}], "tooltip": "Constructs a Color8Bit from a Color.\n\n:param color: The color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color8Bit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myColor8Bit"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Color8Bit", "args": [{"name": "hexString", "type": "str"}], "tooltip": "Constructs a Color8Bit from a hex string.\n\n:param hexString: a string of the format \\#RRGGBB\n @throws std::invalid_argument if the hex string is invalid.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color8Bit"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myColor8Bit"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.Color8Bit", "args": [{"name": "hexString", "type": "str"}], "tooltip": "Create a Color8Bit from a hex string.\n\n:param hexString: a string of the format \\#RRGGBB\n\n:returns: Color8Bit object from hex string.\n @throws std::invalid_argument if the hex string is invalid.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Color8Bit", "FUNC": "fromHexString"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "color8Bit", "type": "wpilib.Color8Bit"}], "tooltip": "Return this color represented as a hex string.\n\n:returns: a string of the format \\#RRGGBB", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Color8Bit", "FUNC": "hexString"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor8Bit"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myColor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.Color", "args": [{"name": "color8Bit", "type": "wpilib.Color8Bit"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Color8Bit", "FUNC": "toColor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor8Bit"}}}}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Color8Bit",
- contents: contents,
- className: "wpilib.Color8Bit",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.Compressor.ts b/src/blocks/generated/class_wpilib.Compressor.ts
deleted file mode 100644
index 36716398..00000000
--- a/src/blocks/generated/class_wpilib.Compressor.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.Compressor
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 13 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCompressor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Compressor", "args": [{"name": "module", "type": "int"}, {"name": "moduleType", "type": "wpilib.PneumaticsModuleType"}], "tooltip": "Constructs a compressor for a specified module and type.\n\n:param module: The module ID to use.\n:param moduleType: The module type to use.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Compressor"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCompressor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Compressor", "args": [{"name": "moduleType", "type": "wpilib.PneumaticsModuleType"}], "tooltip": "Constructs a compressor for a default module and specified type.\n\n:param moduleType: The module type to use.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Compressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "compressor", "type": "wpilib.Compressor"}], "tooltip": "Disable the compressor.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Compressor", "FUNC": "disable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCompressor"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "compressor", "type": "wpilib.Compressor"}, {"name": "minPressure", "type": "wpimath.units.pounds_per_square_inch"}, {"name": "maxPressure", "type": "wpimath.units.pounds_per_square_inch"}], "tooltip": "If supported by the device, enables the compressor in analog mode. This\nmode uses an analog pressure sensor connected to analog channel 0 to cycle\nthe compressor. The compressor will turn on when the pressure drops below\n``minPressure`` and will turn off when the pressure reaches {@code\nmaxPressure}. This mode is only supported by the REV PH with the REV Analog\nPressure Sensor connected to analog channel 0.\n\nOn CTRE PCM, this will enable digital control.\n\n:param minPressure: The minimum pressure. The compressor will turn on when\n the pressure drops below this value.\n:param maxPressure: The maximum pressure. The compressor will turn off when\n the pressure reaches this value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Compressor", "FUNC": "enableAnalog"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCompressor"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "compressor", "type": "wpilib.Compressor"}], "tooltip": "Enables the compressor in digital mode using the digital pressure switch.\nThe compressor will turn on when the pressure switch indicates that the\nsystem is not full, and will turn off when the pressure switch indicates\nthat the system is full.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Compressor", "FUNC": "enableDigital"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCompressor"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "compressor", "type": "wpilib.Compressor"}, {"name": "minPressure", "type": "wpimath.units.pounds_per_square_inch"}, {"name": "maxPressure", "type": "wpimath.units.pounds_per_square_inch"}], "tooltip": "If supported by the device, enables the compressor in hybrid mode. This\nmode uses both a digital pressure switch and an analog pressure sensor\nconnected to analog channel 0 to cycle the compressor. This mode is only\nsupported by the REV PH with the REV Analog Pressure Sensor connected to\nanalog channel 0.\n\nThe compressor will turn on when \\a both:\n\n- The digital pressure switch indicates the system is not full AND\n- The analog pressure sensor indicates that the pressure in the system\nis below the specified minimum pressure.\n\nThe compressor will turn off when \\a either:\n\n- The digital pressure switch is disconnected or indicates that the system\nis full OR\n- The pressure detected by the analog sensor is greater than the specified\nmaximum pressure.\n\nOn CTRE PCM, this will enable digital control.\n\n:param minPressure: The minimum pressure. The compressor will turn on\n when the pressure drops below this value and the pressure switch indicates\n that the system is not full.\n:param maxPressure: The maximum pressure. The compressor will turn\n off when the pressure reaches this value or the pressure switch is\n disconnected or indicates that the system is full.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Compressor", "FUNC": "enableHybrid"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCompressor"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "compressor", "type": "wpilib.Compressor"}], "tooltip": "If supported by the device, returns the analog input voltage (on channel\n0).\n\nThis function is only supported by the REV PH. On CTRE PCM, this will\nreturn 0.\n\n:returns: The analog input voltage, in volts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Compressor", "FUNC": "getAnalogVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCompressor"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCompressorConfigType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.CompressorConfigType", "args": [{"name": "compressor", "type": "wpilib.Compressor"}], "tooltip": "Returns the active compressor configuration.\n\n:returns: The active compressor configuration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Compressor", "FUNC": "getConfigType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCompressor"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.amperes", "args": [{"name": "compressor", "type": "wpilib.Compressor"}], "tooltip": "Get the current drawn by the compressor.\n\n:returns: Current drawn by the compressor.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Compressor", "FUNC": "getCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCompressor"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.pounds_per_square_inch", "args": [{"name": "compressor", "type": "wpilib.Compressor"}], "tooltip": "If supported by the device, returns the pressure read by the analog\npressure sensor (on channel 0).\n\nThis function is only supported by the REV PH with the REV Analog Pressure\nSensor. On CTRE PCM, this will return 0.\n\n:returns: The pressure read by the analog pressure sensor.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Compressor", "FUNC": "getPressure"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCompressor"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "compressor", "type": "wpilib.Compressor"}], "tooltip": "Returns the state of the pressure switch.\n\n:returns: True if pressure switch indicates that the system is not full,\n otherwise false.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Compressor", "FUNC": "getPressureSwitchValue"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCompressor"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "compressor", "type": "wpilib.Compressor"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Compressor", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCompressor"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "compressor", "type": "wpilib.Compressor"}], "tooltip": "Returns whether the compressor is active or not.\n\n:returns: true if the compressor is on - otherwise false.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Compressor", "FUNC": "isEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCompressor"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Compressor",
- contents: contents,
- className: "wpilib.Compressor",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.Counter.ts b/src/blocks/generated/class_wpilib.Counter.ts
deleted file mode 100644
index c37b2d88..00000000
--- a/src/blocks/generated/class_wpilib.Counter.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.Counter
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.Counter.Mode", ["kExternalDirection", "kPulseLength", "kSemiperiod", "kTwoPulse"], "Members:\n\n kTwoPulse\n\n kSemiperiod\n\n kPulseLength\n\n kExternalDirection");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 38 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCounter"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Counter", "args": [{"name": "mode", "type": "wpilib.Counter.Mode"}], "tooltip": "Create an instance of a counter where no sources are selected.\n\nThey all must be selected by calling functions to specify the up source and\nthe down source independently.\n\nThis creates a ChipObject counter and initializes status variables\nappropriately.\n\nThe counter will start counting immediately.\n\n:param mode: The counter mode", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMode"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCounter"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Counter", "args": [{"name": "channel", "type": "int"}], "tooltip": "Create an instance of a Counter object.\n\nCreate an up-Counter instance given a channel.\n\nThe counter will start counting immediately.\n\n:param channel: The DIO channel to use as the up source. 0-9 are on-board,\n 10-25 are on the MXP", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCounter"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Counter", "args": [{"name": "source", "type": "wpilib.DigitalSource"}], "tooltip": "Create an instance of a counter from a Digital Source (such as a Digital\nInput).\n\nThis is used if an existing digital input is to be shared by multiple other\nobjects such as encoders or if the Digital Source is not a Digital Input\nchannel (such as an Analog %Trigger).\n\nThe counter will start counting immediately.\n\n:param source: A pointer to the existing DigitalSource object. It will be\n set as the Up Source.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCounter"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Counter", "args": [{"name": "trigger", "type": "wpilib.AnalogTrigger"}], "tooltip": "Create an instance of a Counter object.\n\nCreate an instance of a simple up-Counter given an analog trigger.\nUse the trigger state output from the analog trigger.\n\nThe counter will start counting immediately.\n\n:param trigger: The reference to the existing AnalogTrigger object.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCounter"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Counter", "args": [{"name": "encodingType", "type": "wpilib.interfaces.CounterBase.EncodingType"}, {"name": "upSource", "type": "wpilib.DigitalSource"}, {"name": "downSource", "type": "wpilib.DigitalSource"}, {"name": "inverted", "type": "bool"}], "tooltip": "Create an instance of a Counter object.\n\nCreates a full up-down counter given two Digital Sources.\n\n:param encodingType: The quadrature decoding mode (1x or 2x)\n:param upSource: The pointer to the DigitalSource to set as the up\n source\n:param downSource: The pointer to the DigitalSource to set as the down\n source\n:param inverted: True to invert the output (reverse the direction)", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncodingType"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}], "tooltip": "Disable the down counting source to the counter.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "clearDownSource"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}], "tooltip": "Disable the up counting source to the counter.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "clearUpSource"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "counter", "type": "wpilib.Counter"}], "tooltip": "Read the current counter value.\n\nRead the value at this instant. It may still be running, so it reflects the\ncurrent value. Next time it is read, it might have a different value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "counter", "type": "wpilib.Counter"}], "tooltip": "The last direction the counter value changed.\n\n:returns: The last direction the counter value changed.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "getDirection"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "counter", "type": "wpilib.Counter"}], "tooltip": "Read the current scaled counter value. Read the value at this instant,\nscaled by the distance per pulse (defaults to 1).\n\n:returns: The distance since the last reset", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "getDistance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "counter", "type": "wpilib.Counter"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "getFPGAIndex"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "counter", "type": "wpilib.Counter"}], "tooltip": "Get the Period of the most recent count.\n\nReturns the time interval of the most recent count. This can be used for\nvelocity calculations to determine shaft speed.\n\n:returns: The period between the last two pulses in units of seconds.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "getPeriod"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "counter", "type": "wpilib.Counter"}], "tooltip": "Get the current rate of the Counter. Read the current rate of the counter\naccounting for the distance per pulse value. The default value for distance\nper pulse (1) yields units of pulses per second.\n\n:returns: The rate in units/sec", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "getRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "counter", "type": "wpilib.Counter"}], "tooltip": "Get the Samples to Average which specifies the number of samples of the\ntimer to average when calculating the period.\n\nPerform averaging to account for mechanical imperfections or as\noversampling to increase resolution.\n\n:returns: The number of samples being averaged (from 1 to 127)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "getSamplesToAverage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "counter", "type": "wpilib.Counter"}], "tooltip": "Determine if the clock is stopped.\n\nDetermine if the clocked input is stopped based on the MaxPeriod value set\nusing the SetMaxPeriod method. If the clock exceeds the MaxPeriod, then the\ndevice (and counter) are assumed to be stopped and it returns true.\n\n:returns: Returns true if the most recent counter period exceeds the\n MaxPeriod value set by SetMaxPeriod.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "getStopped"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}], "tooltip": "Reset the Counter to zero.\n\nSet the counter value to zero. This doesn't effect the running state of the\ncounter, just sets the current value to zero.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "distancePerPulse", "type": "float"}], "tooltip": "Set the distance per pulse for this counter. This sets the multiplier used\nto determine the distance driven based on the count value from the encoder.\nSet this value based on the Pulses per Revolution and factor in any gearing\nreductions. This distance can be in any units you like, linear or angular.\n\n:param distancePerPulse: The scale factor that will be used to convert\n pulses to useful units.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setDistancePerPulse"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "channel", "type": "int"}], "tooltip": "Set the down counting source to be a digital input channel.\n\n:param channel: The DIO channel to use as the up source. 0-9 are on-board,\n 10-25 are on the MXP", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setDownSource"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "analogTrigger", "type": "wpilib.AnalogTrigger"}, {"name": "triggerType", "type": "wpilib.AnalogTriggerType"}], "tooltip": "Set the down counting source to be an analog trigger.\n\n:param analogTrigger: The analog trigger object that is used for the Down\n Source\n:param triggerType: The analog trigger output that will trigger the\n counter.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setDownSource"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerType"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "source", "type": "wpilib.DigitalSource"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setDownSource"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "risingEdge", "type": "bool"}, {"name": "fallingEdge", "type": "bool"}], "tooltip": "Set the edge sensitivity on a down counting source.\n\nSet the down source to either detect rising edges or falling edges.\n\n:param risingEdge: True to trigger on rising edges\n:param fallingEdge: True to trigger on falling edges", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setDownSourceEdge"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}], "tooltip": "Set external direction mode on this counter.\n\nCounts are sourced on the Up counter input.\nThe Down counter input represents the direction to count.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setExternalDirectionMode"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "maxPeriod", "type": "wpimath.units.seconds"}], "tooltip": "Set the maximum period where the device is still considered \"moving\".\n\nSets the maximum period where the device is considered moving. This value\nis used to determine the \"stopped\" state of the counter using the\nGetStopped method.\n\n:param maxPeriod: The maximum period where the counted device is considered\n moving in seconds.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setMaxPeriod"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "threshold", "type": "float"}], "tooltip": "Configure the counter to count in up or down based on the length of the\ninput pulse.\n\nThis mode is most useful for direction sensitive gear tooth sensors.\n\n:param threshold: The pulse length beyond which the counter counts the\n opposite direction. Units are seconds.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setPulseLengthMode"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "reverseDirection", "type": "bool"}], "tooltip": "Set the Counter to return reversed sensing on the direction.\n\nThis allows counters to change the direction they are counting in the case\nof 1X and 2X quadrature encoding only. Any other counter mode isn't\nsupported.\n\n:param reverseDirection: true if the value counted should be negated.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setReverseDirection"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "samplesToAverage", "type": "int"}], "tooltip": "Set the Samples to Average which specifies the number of samples of the\ntimer to average when calculating the period. Perform averaging to account\nfor mechanical imperfections or as oversampling to increase resolution.\n\n:param samplesToAverage: The number of samples to average from 1 to 127.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setSamplesToAverage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "highSemiPeriod", "type": "bool"}], "tooltip": "Set Semi-period mode on this counter.\n\nCounts up on both rising and falling edges.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setSemiPeriodMode"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}], "tooltip": "Set standard up / down counting mode on this counter.\n\nUp and down counts are sourced independently from two inputs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setUpDownCounterMode"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "channel", "type": "int"}], "tooltip": "Set the up source for the counter as a digital input channel.\n\n:param channel: The DIO channel to use as the up source. 0-9 are on-board,\n 10-25 are on the MXP", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setUpSource"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "analogTrigger", "type": "wpilib.AnalogTrigger"}, {"name": "triggerType", "type": "wpilib.AnalogTriggerType"}], "tooltip": "Set the up counting source to be an analog trigger.\n\n:param analogTrigger: The analog trigger object that is used for the Up\n Source\n:param triggerType: The analog trigger output that will trigger the\n counter.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setUpSource"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerType"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "source", "type": "wpilib.DigitalSource"}], "tooltip": "Set the source object that causes the counter to count up.\n\nSet the up counting DigitalSource.\n\n:param source: Pointer to the DigitalSource object to set as the up source", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setUpSource"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "risingEdge", "type": "bool"}, {"name": "fallingEdge", "type": "bool"}], "tooltip": "Set the edge sensitivity on an up counting source.\n\nSet the up source to either detect rising edges or falling edges or both.\n\n:param risingEdge: True to trigger on rising edges\n:param fallingEdge: True to trigger on falling edges", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setUpSourceEdge"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "counter", "type": "wpilib.Counter"}, {"name": "enabled", "type": "bool"}], "tooltip": "Select whether you want to continue updating the event timer output when\nthere are no samples captured.\n\nThe output of the event timer has a buffer of periods that are averaged and\nposted to a register on the FPGA. When the timer detects that the event\nsource has stopped (based on the MaxPeriod) the buffer of samples to be\naveraged is emptied. If you enable the update when empty, you will be\nnotified of the stopped source and the event time will report 0 samples.\nIf you disable update when empty, the most recent average will remain on\nthe output until a new sample is acquired. You will never see 0 samples\noutput (except when there have been no events since an FPGA reset) and you\nwill likely not see the stopped bit become true (since it is updated at the\nend of an average and there are no samples to average).\n\n:param enabled: True to enable update when empty", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Counter", "FUNC": "setUpdateWhenEmpty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Counter.Mode", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Counter.Mode", "ENUM_VALUE": "kExternalDirection"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Counter.Mode", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Counter.Mode", "ENUM_VALUE": "kPulseLength"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Counter.Mode", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Counter.Mode", "ENUM_VALUE": "kSemiperiod"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Counter.Mode", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Counter.Mode", "ENUM_VALUE": "kTwoPulse"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Counter",
- contents: contents,
- className: "wpilib.Counter",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.DMC60.ts b/src/blocks/generated/class_wpilib.DMC60.ts
deleted file mode 100644
index b690a88d..00000000
--- a/src/blocks/generated/class_wpilib.DMC60.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.DMC60
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 22 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDMC60"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DMC60", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructor for a DMC 60 connected via PWM.\n\n:param channel: The PWM channel that the DMC 60 is attached to. 0-9 are\n on-board, 10-19 are on the MXP port", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DMC60"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "follower", "type": "wpilib.PWMMotorController"}], "tooltip": "Make the given PWM motor controller follow the output of this one.\n\n:param follower: The motor controller follower.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "addFollower"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Check if this motor has exceeded its timeout.\n\nThis method is called periodically to determine if this motor has exceeded\nits timeout value. If it has, the stop method is called, and the motor is\nshut down until its value is updated again.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "check"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Check the motors to see if any have timed out.\n\nThis static method is called periodically to poll all the motors and stop\nany that have timed out.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DMC60", "FUNC": "checkMotors"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "disable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "eliminateDeadband", "type": "bool"}], "tooltip": "Optionally eliminate the deadband from a motor controller.\n\n:param eliminateDeadband: If true, set the motor curve on the motor\n controller to eliminate the deadband in the middle\n of the range. Otherwise, keep the full range\n without modifying any values.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "enableDeadbandElimination"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Feed the motor safety object.\n\nResets the timer on this object that is used to do the timeouts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "feed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Get the recently set value of the PWM. This value is affected by the\ninversion property. If you want the value that is sent directly to the\nMotorController, use PWM::GetSpeed() instead.\n\n:returns: The most recently set value for the PWM between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getDescription"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Retrieve the timeout value for the corresponding motor safety object.\n\n:returns: the timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "getExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Gets the voltage output of the motor controller, nominally between -12 V\nand 12 V.\n\n:returns: The voltage of the motor controller, nominally between -12 V and 12\n V.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendable", "type": "wpiutil.Sendable"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "Initializes this Sendable object.\n\n:param builder: sendable builder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpiutil.Sendable", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Determine if the motor is still operating or has timed out.\n\n:returns: true if the motor is still operating normally and hasn't timed out.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isAlive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Return the state of the motor safety enabled flag.\n\nReturn if the motor safety is currently enabled for this device.\n\n:returns: True if motor safety is enforced for this device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "value", "type": "float"}], "tooltip": "Set the PWM value.\n\nThe PWM value is set using a range of -1.0 to 1.0, appropriately scaling\nthe value for the FPGA.\n\n:param value: The speed value between -1.0 and 1.0 to set.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "expirationTime", "type": "wpimath.units.seconds"}], "tooltip": "Set the expiration time for the corresponding motor safety object.\n\n:param expirationTime: The timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "isInverted", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enable/disable motor safety for this device.\n\nTurn on and off the motor safety option for this PWM object.\n\n:param enabled: True if motor safety is enforced for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "output", "type": "wpimath.units.volts"}], "tooltip": "Sets the voltage output of the PWMMotorController. Compensates for\nthe current bus voltage to ensure that the desired voltage is output even\nif the battery voltage is below 12V - highly useful when the voltage\noutputs are \"meaningful\" (e.g. they come from a feedforward calculation).\n\nNOTE: This function *must* be called regularly in order for voltage\ncompensation to work properly - unlike the ordinary set function, it is not\n\"set it and forget it.\"\n\n:param output: The voltage to output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "stopMotor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "DMC60",
- contents: contents,
- className: "wpilib.DMC60",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.DSControlWord.ts b/src/blocks/generated/class_wpilib.DSControlWord.ts
deleted file mode 100644
index 407a4a23..00000000
--- a/src/blocks/generated/class_wpilib.DSControlWord.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.DSControlWord
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 11 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDSControlWord"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DSControlWord", "args": [], "tooltip": "DSControlWord constructor.\n\nUpon construction, the current Driver Station control word is read and\nstored internally.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DSControlWord"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dSControlWord", "type": "wpilib.DSControlWord"}], "tooltip": "Check if the DS is commanding autonomous mode.\n\n:returns: True if the robot is being commanded to be in autonomous mode", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DSControlWord", "FUNC": "isAutonomous"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDSControlWord"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dSControlWord", "type": "wpilib.DSControlWord"}], "tooltip": "Check if the DS is commanding autonomous mode and if it has enabled the\nrobot.\n\n:returns: True if the robot is being commanded to be in autonomous mode and\n enabled.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DSControlWord", "FUNC": "isAutonomousEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDSControlWord"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dSControlWord", "type": "wpilib.DSControlWord"}], "tooltip": "Check if the DS is attached.\n\n:returns: True if the DS is connected to the robot", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DSControlWord", "FUNC": "isDSAttached"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDSControlWord"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dSControlWord", "type": "wpilib.DSControlWord"}], "tooltip": "Check if the robot is disabled.\n\n:returns: True if the robot is explicitly disabled or the DS is not connected", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DSControlWord", "FUNC": "isDisabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDSControlWord"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dSControlWord", "type": "wpilib.DSControlWord"}], "tooltip": "Check if the robot is e-stopped.\n\n:returns: True if the robot is e-stopped", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DSControlWord", "FUNC": "isEStopped"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDSControlWord"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dSControlWord", "type": "wpilib.DSControlWord"}], "tooltip": "Check if the DS has enabled the robot.\n\n:returns: True if the robot is enabled and the DS is connected", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DSControlWord", "FUNC": "isEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDSControlWord"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dSControlWord", "type": "wpilib.DSControlWord"}], "tooltip": "Is the driver station attached to a Field Management System?\n\n:returns: True if the robot is competing on a field being controlled by a\n Field Management System", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DSControlWord", "FUNC": "isFMSAttached"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDSControlWord"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dSControlWord", "type": "wpilib.DSControlWord"}], "tooltip": "Check if the DS is commanding teleop mode.\n\n:returns: True if the robot is being commanded to be in teleop mode", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DSControlWord", "FUNC": "isTeleop"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDSControlWord"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dSControlWord", "type": "wpilib.DSControlWord"}], "tooltip": "Check if the DS is commanding teleop mode and if it has enabled the robot.\n\n:returns: True if the robot is being commanded to be in teleop mode and\n enabled.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DSControlWord", "FUNC": "isTeleopEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDSControlWord"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dSControlWord", "type": "wpilib.DSControlWord"}], "tooltip": "Check if the DS is commanding test mode.\n\n:returns: True if the robot is being commanded to be in test mode", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DSControlWord", "FUNC": "isTest"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDSControlWord"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "DSControlWord",
- contents: contents,
- className: "wpilib.DSControlWord",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.DataLogManager.ts b/src/blocks/generated/class_wpilib.DataLogManager.ts
deleted file mode 100644
index 58a8c619..00000000
--- a/src/blocks/generated/class_wpilib.DataLogManager.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.DataLogManager
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDataLog"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpiutil.log.DataLog", "args": [], "tooltip": "Get the managed data log (for custom logging). Starts the data log manager\nif not already started.\n\n:returns: data log", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DataLogManager", "FUNC": "getLog"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "str", "args": [], "tooltip": "Get the log directory.\n\n:returns: log directory", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DataLogManager", "FUNC": "getLogDir"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "message", "type": "str"}], "tooltip": "Log a message to the \"messages\" entry. The message is also printed to\nstandard output (followed by a newline).\n\n:param message: message", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DataLogManager", "FUNC": "log"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "enabled", "type": "bool"}], "tooltip": "Enable or disable logging of the console output. Defaults to enabled.\n\n:param enabled: true to enable, false to disable", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DataLogManager", "FUNC": "logConsoleOutput"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "enabled", "type": "bool"}], "tooltip": "Enable or disable logging of NetworkTables data. Note that unlike the\nnetwork interface for NetworkTables, this will capture every value change.\nDefaults to enabled.\n\n:param enabled: true to enable, false to disable", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DataLogManager", "FUNC": "logNetworkTables"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "dir", "type": "str"}, {"name": "filename", "type": "str"}, {"name": "period", "type": "float"}], "tooltip": "Start data log manager. The parameters have no effect if the data log\nmanager was already started (e.g. by calling another static function).\n\n:param dir: if not empty, directory to use for data log storage\n:param filename: filename to use; if none provided, the filename is\n automatically generated\n:param period: time between automatic flushes to disk, in seconds;\n this is a time/storage tradeoff", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DataLogManager", "FUNC": "start"}, "inputs": {"ARG0": {"shadow": {"type": "text", "fields": {"TEXT": ""}}}, "ARG1": {"shadow": {"type": "text", "fields": {"TEXT": ""}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Stop data log manager.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DataLogManager", "FUNC": "stop"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "DataLogManager",
- contents: contents,
- className: "wpilib.DataLogManager",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.DigitalGlitchFilter.ts b/src/blocks/generated/class_wpilib.DigitalGlitchFilter.ts
deleted file mode 100644
index c7ca4a40..00000000
--- a/src/blocks/generated/class_wpilib.DigitalGlitchFilter.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.DigitalGlitchFilter
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 12 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDigitalGlitchFilter"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DigitalGlitchFilter", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalGlitchFilter"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalGlitchFilter", "type": "wpilib.DigitalGlitchFilter"}, {"name": "input", "type": "wpilib.DigitalSource"}], "tooltip": "Assigns the DigitalSource to this glitch filter.\n\n:param input: The DigitalSource to add.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalGlitchFilter", "FUNC": "add"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalGlitchFilter"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalGlitchFilter", "type": "wpilib.DigitalGlitchFilter"}, {"name": "input", "type": "wpilib.Encoder"}], "tooltip": "Assigns the Encoder to this glitch filter.\n\n:param input: The Encoder to add.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalGlitchFilter", "FUNC": "add"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalGlitchFilter"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalGlitchFilter", "type": "wpilib.DigitalGlitchFilter"}, {"name": "input", "type": "wpilib.Counter"}], "tooltip": "Assigns the Counter to this glitch filter.\n\n:param input: The Counter to add.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalGlitchFilter", "FUNC": "add"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalGlitchFilter"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "digitalGlitchFilter", "type": "wpilib.DigitalGlitchFilter"}], "tooltip": "Gets the number of cycles that the input must not change state for.\n\n:returns: The number of cycles.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalGlitchFilter", "FUNC": "getPeriodCycles"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalGlitchFilter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "digitalGlitchFilter", "type": "wpilib.DigitalGlitchFilter"}], "tooltip": "Gets the number of nanoseconds that the input must not change state for.\n\n:returns: The number of nanoseconds.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalGlitchFilter", "FUNC": "getPeriodNanoSeconds"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalGlitchFilter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalGlitchFilter", "type": "wpilib.DigitalGlitchFilter"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalGlitchFilter", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalGlitchFilter"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalGlitchFilter", "type": "wpilib.DigitalGlitchFilter"}, {"name": "input", "type": "wpilib.DigitalSource"}], "tooltip": "Removes a digital input from this filter.\n\nRemoves the DigitalSource from this glitch filter and re-assigns it to\nthe default filter.\n\n:param input: The DigitalSource to remove.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalGlitchFilter", "FUNC": "remove"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalGlitchFilter"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalGlitchFilter", "type": "wpilib.DigitalGlitchFilter"}, {"name": "input", "type": "wpilib.Encoder"}], "tooltip": "Removes an encoder from this filter.\n\nRemoves the Encoder from this glitch filter and re-assigns it to\nthe default filter.\n\n:param input: The Encoder to remove.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalGlitchFilter", "FUNC": "remove"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalGlitchFilter"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalGlitchFilter", "type": "wpilib.DigitalGlitchFilter"}, {"name": "input", "type": "wpilib.Counter"}], "tooltip": "Removes a counter from this filter.\n\nRemoves the Counter from this glitch filter and re-assigns it to\nthe default filter.\n\n:param input: The Counter to remove.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalGlitchFilter", "FUNC": "remove"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalGlitchFilter"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCounter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalGlitchFilter", "type": "wpilib.DigitalGlitchFilter"}, {"name": "fpgaCycles", "type": "int"}], "tooltip": "Sets the number of cycles that the input must not change state for.\n\n:param fpgaCycles: The number of FPGA cycles.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalGlitchFilter", "FUNC": "setPeriodCycles"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalGlitchFilter"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalGlitchFilter", "type": "wpilib.DigitalGlitchFilter"}, {"name": "nanoseconds", "type": "int"}], "tooltip": "Sets the number of nanoseconds that the input must not change state for.\n\n:param nanoseconds: The number of nanoseconds.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalGlitchFilter", "FUNC": "setPeriodNanoSeconds"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalGlitchFilter"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "DigitalGlitchFilter",
- contents: contents,
- className: "wpilib.DigitalGlitchFilter",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.DigitalInput.ts b/src/blocks/generated/class_wpilib.DigitalInput.ts
deleted file mode 100644
index 3ffc4b25..00000000
--- a/src/blocks/generated/class_wpilib.DigitalInput.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.DigitalInput
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 8 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDigitalInput"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DigitalInput", "args": [{"name": "channel", "type": "int"}], "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", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalInput"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "digitalInput", "type": "wpilib.DigitalInput"}], "tooltip": "Get the value from a digital input channel.\n\nRetrieve the value of a single digital input channel from the FPGA.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalInput", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalInput"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogTriggerType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.AnalogTriggerType", "args": [{"name": "digitalInput", "type": "wpilib.DigitalInput"}], "tooltip": ":returns: The type of analog trigger output to be used. 0 for Digitals", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalInput", "FUNC": "getAnalogTriggerTypeForRouting"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalInput"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "digitalInput", "type": "wpilib.DigitalInput"}], "tooltip": ":returns: The GPIO channel number that this object represents.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalInput", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "digitalInput", "type": "wpilib.DigitalInput"}], "tooltip": ":returns: The HAL Handle to the specified source.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalInput", "FUNC": "getPortHandleForRouting"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalInput", "type": "wpilib.DigitalInput"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalInput", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalInput"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "digitalInput", "type": "wpilib.DigitalInput"}], "tooltip": "Is source an AnalogTrigger", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalInput", "FUNC": "isAnalogTrigger"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalInput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalInput", "type": "wpilib.DigitalInput"}, {"name": "device", "type": "int"}], "tooltip": "Indicates this input is used by a simulated device.\n\n:param device: simulated device handle", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalInput", "FUNC": "setSimDevice"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalInput"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "DigitalInput",
- contents: contents,
- className: "wpilib.DigitalInput",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.DigitalOutput.ts b/src/blocks/generated/class_wpilib.DigitalOutput.ts
deleted file mode 100644
index 29162d00..00000000
--- a/src/blocks/generated/class_wpilib.DigitalOutput.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.DigitalOutput
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 16 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDigitalOutput"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DigitalOutput", "args": [{"name": "channel", "type": "int"}], "tooltip": "Create an instance of a digital output.\n\nCreate a digital output given a channel.\n\n:param channel: The digital channel 0-9 are on-board, 10-25 are on the MXP\n port", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}], "tooltip": "Change this line from a PWM output back to a static Digital Output line.\n\nFree up one of the 6 DO PWM generator resources that were in use.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "disablePWM"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}, {"name": "dutyCycle", "type": "float"}], "tooltip": "Enable a PWM PPS (Pulse Per Second) Output on this line.\n\nAllocate one of the 6 DO PWM generator resources from this module.\n\nSupply the duty-cycle to output.\n\nThe resolution of the duty cycle is 8-bit.\n\n:param dutyCycle: The duty-cycle to start generating. [0..1]", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "enablePPS"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}, {"name": "initialDutyCycle", "type": "float"}], "tooltip": "Enable a PWM Output on this line.\n\nAllocate one of the 6 DO PWM generator resources from this module.\n\nSupply the initial duty-cycle to output so as to avoid a glitch when first\nstarting.\n\nThe resolution of the duty cycle is 8-bit for low frequencies (1kHz or\nless) but is reduced the higher the frequency of the PWM signal is.\n\n:param initialDutyCycle: The duty-cycle to start generating. [0..1]", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "enablePWM"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}], "tooltip": "Gets the value being output from the Digital Output.\n\n:returns: the state of the digital output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogTriggerType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.AnalogTriggerType", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}], "tooltip": ":returns: The type of analog trigger output to be used. 0 for Digitals", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "getAnalogTriggerTypeForRouting"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}], "tooltip": ":returns: The GPIO channel number that this object represents.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}], "tooltip": ":returns: The HAL Handle to the specified source.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "getPortHandleForRouting"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}], "tooltip": "Is source an AnalogTrigger", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "isAnalogTrigger"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}], "tooltip": "Determine if the pulse is still going.\n\nDetermine if a previously started pulse is still going.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "isPulsing"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}, {"name": "pulseLength", "type": "wpimath.units.seconds"}], "tooltip": "Output a single pulse on the digital output line.\n\nSend a single pulse on the digital output line where the pulse duration is\nspecified in seconds. Maximum of 65535 microseconds.\n\n:param pulseLength: The pulse length in seconds", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "pulse"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}, {"name": "value", "type": "bool"}], "tooltip": "Set the value of a digital output.\n\nSet the value of a digital output to either one (true) or zero (false).\n\n:param value: 1 (true) for high, 0 (false) for disabled", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}, {"name": "rate", "type": "float"}], "tooltip": "Change the PWM frequency of the PWM output on a Digital Output line.\n\nThe valid range is from 0.6 Hz to 19 kHz. The frequency resolution is\nlogarithmic.\n\nThere is only one PWM frequency for all digital channels.\n\n:param rate: The frequency to output all digital output PWM signals.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "setPWMRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}, {"name": "device", "type": "int"}], "tooltip": "Indicates this output is used by a simulated device.\n\n:param device: simulated device handle", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "setSimDevice"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}, {"name": "dutyCycle", "type": "float"}], "tooltip": "Change the duty-cycle that is being generated on the line.\n\nThe resolution of the duty cycle is 8-bit for low frequencies (1kHz or\nless) but is reduced the higher the frequency of the PWM signal is.\n\n:param dutyCycle: The duty-cycle to change to. [0..1]", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalOutput", "FUNC": "updateDutyCycle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "DigitalOutput",
- contents: contents,
- className: "wpilib.DigitalOutput",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.DigitalSource.ts b/src/blocks/generated/class_wpilib.DigitalSource.ts
deleted file mode 100644
index 0f26223a..00000000
--- a/src/blocks/generated/class_wpilib.DigitalSource.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.DigitalSource
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 5 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDigitalSource"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DigitalSource", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalSource"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogTriggerType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.AnalogTriggerType", "args": [{"name": "digitalSource", "type": "wpilib.DigitalSource"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalSource", "FUNC": "getAnalogTriggerTypeForRouting"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "digitalSource", "type": "wpilib.DigitalSource"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalSource", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "digitalSource", "type": "wpilib.DigitalSource"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalSource", "FUNC": "getPortHandleForRouting"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "digitalSource", "type": "wpilib.DigitalSource"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DigitalSource", "FUNC": "isAnalogTrigger"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "DigitalSource",
- contents: contents,
- className: "wpilib.DigitalSource",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.DoubleSolenoid.ts b/src/blocks/generated/class_wpilib.DoubleSolenoid.ts
deleted file mode 100644
index b9e0f476..00000000
--- a/src/blocks/generated/class_wpilib.DoubleSolenoid.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.DoubleSolenoid
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.DoubleSolenoid.Value", ["kForward", "kOff", "kReverse"], "Possible values for a DoubleSolenoid.\n\nMembers:\n\n kOff : Off position.\n\n kForward : Forward position.\n\n kReverse : Reverse position.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 13 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDoubleSolenoid"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DoubleSolenoid", "args": [{"name": "module", "type": "int"}, {"name": "moduleType", "type": "wpilib.PneumaticsModuleType"}, {"name": "forwardChannel", "type": "int"}, {"name": "reverseChannel", "type": "int"}], "tooltip": "Constructs a double solenoid for a specified module of a specific module\ntype.\n\n:param module: The module of the solenoid module to use.\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.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DoubleSolenoid"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDoubleSolenoid"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DoubleSolenoid", "args": [{"name": "moduleType", "type": "wpilib.PneumaticsModuleType"}, {"name": "forwardChannel", "type": "int"}, {"name": "reverseChannel", "type": "int"}], "tooltip": "Constructs a double solenoid for a default module of a specific module\ntype.\n\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.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DoubleSolenoid"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myValue"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.DoubleSolenoid.Value", "args": [{"name": "doubleSolenoid", "type": "wpilib.DoubleSolenoid"}], "tooltip": "Read the current value of the solenoid.\n\n:returns: The current value of the solenoid.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DoubleSolenoid", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDoubleSolenoid"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "doubleSolenoid", "type": "wpilib.DoubleSolenoid"}], "tooltip": "Get the forward channel.\n\n:returns: the forward channel.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DoubleSolenoid", "FUNC": "getFwdChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDoubleSolenoid"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "doubleSolenoid", "type": "wpilib.DoubleSolenoid"}], "tooltip": "Get the reverse channel.\n\n:returns: the reverse channel.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DoubleSolenoid", "FUNC": "getRevChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDoubleSolenoid"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "doubleSolenoid", "type": "wpilib.DoubleSolenoid"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DoubleSolenoid", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDoubleSolenoid"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "doubleSolenoid", "type": "wpilib.DoubleSolenoid"}], "tooltip": "Check if the forward solenoid is Disabled.\n\nIf a solenoid is shorted, it is added to the DisabledList and disabled\nuntil power cycle, or until faults are cleared.\n\n@see ClearAllStickyFaults()\n\n:returns: If solenoid is disabled due to short.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DoubleSolenoid", "FUNC": "isFwdSolenoidDisabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDoubleSolenoid"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "doubleSolenoid", "type": "wpilib.DoubleSolenoid"}], "tooltip": "Check if the reverse solenoid is Disabled.\n\nIf a solenoid is shorted, it is added to the DisabledList and disabled\nuntil power cycle, or until faults are cleared.\n\n@see ClearAllStickyFaults()\n\n:returns: If solenoid is disabled due to short.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DoubleSolenoid", "FUNC": "isRevSolenoidDisabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDoubleSolenoid"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "doubleSolenoid", "type": "wpilib.DoubleSolenoid"}, {"name": "value", "type": "wpilib.DoubleSolenoid.Value"}], "tooltip": "Set the value of a solenoid.\n\n:param value: The value to set (Off, Forward or Reverse)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DoubleSolenoid", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDoubleSolenoid"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myValue"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "doubleSolenoid", "type": "wpilib.DoubleSolenoid"}], "tooltip": "Toggle the value of the solenoid.\n\nIf the solenoid is set to forward, it'll be set to reverse. If the solenoid\nis set to reverse, it'll be set to forward. If the solenoid is set to off,\nnothing happens.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DoubleSolenoid", "FUNC": "toggle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDoubleSolenoid"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.DoubleSolenoid.Value", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.DoubleSolenoid.Value", "ENUM_VALUE": "kForward"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.DoubleSolenoid.Value", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.DoubleSolenoid.Value", "ENUM_VALUE": "kOff"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.DoubleSolenoid.Value", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.DoubleSolenoid.Value", "ENUM_VALUE": "kReverse"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "DoubleSolenoid",
- contents: contents,
- className: "wpilib.DoubleSolenoid",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.DriverStation.ts b/src/blocks/generated/class_wpilib.DriverStation.ts
deleted file mode 100644
index 5744bfbf..00000000
--- a/src/blocks/generated/class_wpilib.DriverStation.ts
+++ /dev/null
@@ -1,80 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.DriverStation
-
-export function initialize() {
- getPythonVariable.initializeClassVariableGetter("wpilib.DriverStation", "int", ["kJoystickPorts"], []);
- pythonEnum.initializeEnum("wpilib.DriverStation.Alliance", ["kBlue", "kRed"], "The robot alliance that the robot is a part of.\n\nMembers:\n\n kRed : Red alliance.\n\n kBlue : Blue alliance.");
- pythonEnum.initializeEnum("wpilib.DriverStation.MatchType", ["kElimination", "kNone", "kPractice", "kQualification"], "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.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 49 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.DriverStation", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "VAR": "kJoystickPorts"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "Optional[wpilib._wpilib.DriverStation.Alliance]", "args": [], "tooltip": "Get the current alliance from the FMS.\n\nIf the FMS is not connected, it is set from the team alliance setting on\nthe driver station.\n\n:returns: The alliance (red or blue) or an empty optional if the alliance is\n invalid", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getAlliance"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "float", "args": [], "tooltip": "Read the battery voltage.\n\n:returns: The battery voltage in Volts.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getBatteryVoltage"}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myTuple"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "tuple[bool, bool, bool]", "args": [{"name": "driverStation", "type": "wpilib.DriverStation"}], "tooltip": "More efficient way to determine what state the robot is in.\n\n:returns: booleans representing enabled, isautonomous, istest\n\n.. versionadded:: 2019.2.1\n\n.. note:: This function only exists in RobotPy", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getControlState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDriverStation"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "str", "args": [], "tooltip": "Returns the name of the competition event provided by the FMS.\n\n:returns: A string containing the event name", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getEventName"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "str", "args": [], "tooltip": "Returns the game specific message provided by the FMS.\n\nIf the FMS is not connected, it is set from the game data setting on the\ndriver station.\n\n:returns: A string containing the game specific message.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getGameSpecificMessage"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [{"name": "stick", "type": "int"}, {"name": "axis", "type": "int"}], "tooltip": "Returns the types of Axes on a given joystick port.\n\n:param stick: The joystick port number and the target axis\n:param axis: The analog axis value to read from the joystick.\n\n:returns: What type of axis the axis is reporting to be", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getJoystickAxisType"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "stick", "type": "int"}], "tooltip": "Returns a boolean indicating if the controller is an xbox controller.\n\n:param stick: The joystick port number\n\n:returns: A boolean that is true if the controller is an xbox controller.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getJoystickIsXbox"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "str", "args": [{"name": "stick", "type": "int"}], "tooltip": "Returns the name of the joystick at the given port.\n\n:param stick: The joystick port number\n\n:returns: The name of the joystick at the given port", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getJoystickName"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [{"name": "stick", "type": "int"}], "tooltip": "Returns the type of joystick at a given port.\n\n:param stick: The joystick port number\n\n:returns: The HID type of joystick at the given port", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getJoystickType"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "Optional[int]", "args": [], "tooltip": "Return the driver station location from the FMS.\n\nIf the FMS is not connected, it is set from the team alliance setting on\nthe driver station.\n\nThis could return 1, 2, or 3.\n\n:returns: The location of the driver station (1-3, 0 for invalid)", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getLocation"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Returns the match number provided by the FMS.\n\n:returns: The number of the match", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getMatchNumber"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.seconds", "args": [], "tooltip": "Return the approximate match time. The FMS does not send an official match\ntime to the robots, but does send an approximate match time. The value will\ncount down the time remaining in the current period (auto or teleop).\nWarning: This is not an official time (so it cannot be used to dispute ref\ncalls or guarantee that a function will trigger before the match ends).\n\nWhen connected to the real field, this number only changes in full\ninteger increments, and always counts down.\n\nWhen the DS is in practice mode, this number is a floating point number,\nand counts down.\n\nWhen the DS is in teleop or autonomous mode, this number is a floating\npoint number, and counts up.\n\nSimulation matches DS behavior without an FMS connected.\n\n:returns: Time remaining in current match period (auto or teleop) in seconds", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getMatchTime"}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMatchType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.DriverStation.MatchType", "args": [], "tooltip": "Returns the type of match being played provided by the FMS.\n\n:returns: The match type enum (kNone, kPractice, kQualification,\n kElimination)", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getMatchType"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Returns the number of times the current match has been replayed from the\nFMS.\n\n:returns: The number of replays", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getReplayNumber"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "float", "args": [{"name": "stick", "type": "int"}, {"name": "axis", "type": "int"}], "tooltip": "Get the value of the axis on a joystick.\n\nThis depends on the mapping of the joystick connected to the specified\nport.\n\n:param stick: The joystick to read.\n:param axis: The analog axis value to read from the joystick.\n\n:returns: The value of the axis on the joystick.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getStickAxis"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [{"name": "stick", "type": "int"}], "tooltip": "Returns the number of axes on a given joystick port.\n\n:param stick: The joystick port number\n\n:returns: The number of axes on the indicated joystick", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getStickAxisCount"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "stick", "type": "int"}, {"name": "button", "type": "int"}], "tooltip": "The state of one joystick button. %Button indexes begin at 1.\n\n:param stick: The joystick to read.\n:param button: The button index, beginning at 1.\n\n:returns: The state of the joystick button.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getStickButton"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [{"name": "stick", "type": "int"}], "tooltip": "Returns the number of buttons on a given joystick port.\n\n:param stick: The joystick port number\n\n:returns: The number of buttons on the indicated joystick", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getStickButtonCount"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "stick", "type": "int"}, {"name": "button", "type": "int"}], "tooltip": "Whether one joystick button was pressed since the last check. %Button\nindexes begin at 1.\n\n:param stick: The joystick to read.\n:param button: The button index, beginning at 1.\n\n:returns: Whether the joystick button was pressed since the last check.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getStickButtonPressed"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "stick", "type": "int"}, {"name": "button", "type": "int"}], "tooltip": "Whether one joystick button was released since the last check. %Button\nindexes begin at 1.\n\n:param stick: The joystick to read.\n:param button: The button index, beginning at 1.\n\n:returns: Whether the joystick button was released since the last check.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getStickButtonReleased"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [{"name": "stick", "type": "int"}], "tooltip": "The state of the buttons on the joystick.\n\n:param stick: The joystick to read.\n\n:returns: The state of the buttons on the joystick.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getStickButtons"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [{"name": "stick", "type": "int"}, {"name": "pov", "type": "int"}], "tooltip": "Get the state of a POV on the joystick.\n\n:returns: the angle of the POV in degrees, or -1 if the POV is not pressed.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getStickPOV"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [{"name": "stick", "type": "int"}], "tooltip": "Returns the number of POVs on a given joystick port.\n\n:param stick: The joystick port number\n\n:returns: The number of POVs on the indicated joystick", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "getStickPOVCount"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the DS is commanding autonomous mode.\n\n:returns: True if the robot is being commanded to be in autonomous mode", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "isAutonomous"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the DS is commanding autonomous mode and if it has enabled the\nrobot.\n\n:returns: True if the robot is being commanded to be in autonomous mode and\n enabled.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "isAutonomousEnabled"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the DS is attached.\n\n:returns: True if the DS is connected to the robot", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "isDSAttached"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the robot is disabled.\n\n:returns: True if the robot is explicitly disabled or the DS is not connected", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "isDisabled"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the robot is e-stopped.\n\n:returns: True if the robot is e-stopped", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "isEStopped"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the DS has enabled the robot.\n\n:returns: True if the robot is enabled and the DS is connected", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "isEnabled"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Is the driver station attached to a Field Management System?\n\n:returns: True if the robot is competing on a field being controlled by a\n Field Management System", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "isFMSAttached"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "stick", "type": "int"}], "tooltip": "Returns if a joystick is connected to the Driver Station.\n\nThis makes a best effort guess by looking at the reported number of axis,\nbuttons, and POVs attached.\n\n:param stick: The joystick port number\n\n:returns: true if a joystick is connected", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "isJoystickConnected"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Returns whether joystick connection warnings are silenced. This will\nalways return false when connected to the FMS.\n\n:returns: Whether joystick connection warnings are silenced.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "isJoystickConnectionWarningSilenced"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the DS is commanding teleop mode.\n\n:returns: True if the robot is being commanded to be in teleop mode", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "isTeleop"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the DS is commanding teleop mode and if it has enabled the robot.\n\n:returns: True if the robot is being commanded to be in teleop mode and\n enabled.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "isTeleopEnabled"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the DS is commanding test mode.\n\n:returns: True if the robot is being commanded to be in test mode", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "isTest"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the DS is commanding Test mode and if it has enabled the robot.\n\n:returns: True if the robot is being commanded to be in Test mode and\n enabled.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "isTestEnabled"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "handle", "type": "int"}], "tooltip": "Registers the given handle for DS data refresh notifications.\n\n:param handle: The event handle.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "provideRefreshedDataEventHandle"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Copy data from the DS task for the user. If no new data exists, it will\njust be returned, otherwise the data will be copied from the DS polling\nloop.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "refreshData"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "handle", "type": "int"}], "tooltip": "Unregisters the given handle from DS data refresh notifications.\n\n:param handle: The event handle.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "removeRefreshedDataEventHandle"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "silence", "type": "bool"}], "tooltip": "Allows the user to specify whether they want joystick connection warnings\nto be printed to the console. This setting is ignored when the FMS is\nconnected -- warnings will always be on in that scenario.\n\n:param silence: Whether warning messages should be silenced.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "silenceJoystickConnectionWarning"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "log", "type": "wpiutil.log.DataLog"}, {"name": "logJoysticks", "type": "bool"}], "tooltip": "Starts logging DriverStation data to data log. Repeated calls are ignored.\n\n:param log: data log\n:param logJoysticks: if true, log joystick data", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "startDataLog"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDataLog"}}}}, "ARG1": {"shadow": {"type": "logic_boolean", "fields": {"BOOL": "TRUE"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "timeout", "type": "wpimath.units.seconds"}], "tooltip": "Wait for a DS connection.\n\n:param timeout: timeout in seconds. 0 for infinite.\n\n:returns: true if connected, false if timeout", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DriverStation", "FUNC": "waitForDsConnection"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.DriverStation.Alliance", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.DriverStation.Alliance", "ENUM_VALUE": "kBlue"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.DriverStation.Alliance", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.DriverStation.Alliance", "ENUM_VALUE": "kRed"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.DriverStation.MatchType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.DriverStation.MatchType", "ENUM_VALUE": "kElimination"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.DriverStation.MatchType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.DriverStation.MatchType", "ENUM_VALUE": "kNone"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.DriverStation.MatchType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.DriverStation.MatchType", "ENUM_VALUE": "kPractice"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.DriverStation.MatchType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.DriverStation.MatchType", "ENUM_VALUE": "kQualification"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "DriverStation",
- contents: contents,
- className: "wpilib.DriverStation",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.DutyCycle.ts b/src/blocks/generated/class_wpilib.DutyCycle.ts
deleted file mode 100644
index a7ccc4ef..00000000
--- a/src/blocks/generated/class_wpilib.DutyCycle.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.DutyCycle
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDutyCycle"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DutyCycle", "args": [{"name": "source", "type": "wpilib.DigitalSource"}], "tooltip": "Constructs a DutyCycle input from a DigitalSource input.\n\nThis class does not own the inputted source.\n\n:param source: The DigitalSource to use.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "dutyCycle", "type": "wpilib.DutyCycle"}], "tooltip": "Get the FPGA index for the DutyCycle.\n\n:returns: the FPGA index", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycle", "FUNC": "getFPGAIndex"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycle"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "dutyCycle", "type": "wpilib.DutyCycle"}], "tooltip": "Get the frequency of the duty cycle signal.\n\n:returns: frequency in Hertz", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycle", "FUNC": "getFrequency"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycle"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "dutyCycle", "type": "wpilib.DutyCycle"}], "tooltip": "Get the raw high time of the duty cycle signal.\n\n:returns: high time of last pulse", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycle", "FUNC": "getHighTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycle"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "dutyCycle", "type": "wpilib.DutyCycle"}], "tooltip": "Get the output ratio of the duty cycle signal.\n\n0 means always low, 1 means always high.\n\n:returns: output ratio between 0 and 1", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycle", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycle"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "dutyCycle", "type": "wpilib.DutyCycle"}], "tooltip": "Get the channel of the source.\n\n:returns: the source channel", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycle", "FUNC": "getSourceChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycle"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendable", "type": "wpiutil.Sendable"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "Initializes this Sendable object.\n\n:param builder: sendable builder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpiutil.Sendable", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "DutyCycle",
- contents: contents,
- className: "wpilib.DutyCycle",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.DutyCycleEncoder.ts b/src/blocks/generated/class_wpilib.DutyCycleEncoder.ts
deleted file mode 100644
index 46bde2d5..00000000
--- a/src/blocks/generated/class_wpilib.DutyCycleEncoder.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.DutyCycleEncoder
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 16 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DutyCycleEncoder", "args": [{"name": "channel", "type": "int"}], "tooltip": "Construct a new DutyCycleEncoder on a specific channel.\n\nThis has a fullRange of 1 and an expectedZero of 0.\n\n:param channel: the channel to attach to", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DutyCycleEncoder", "args": [{"name": "dutyCycle", "type": "wpilib.DutyCycle"}], "tooltip": "Construct a new DutyCycleEncoder attached to an existing DutyCycle object.\n\nThis has a fullRange of 1 and an expectedZero of 0.\n\n:param dutyCycle: the duty cycle to attach to", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycle"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DutyCycleEncoder", "args": [{"name": "digitalSource", "type": "wpilib.DigitalSource"}], "tooltip": "Construct a new DutyCycleEncoder attached to a DigitalSource object.\n\nThis has a fullRange of 1 and an expectedZero of 0.\n\n:param digitalSource: the digital source to attach to", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DutyCycleEncoder", "args": [{"name": "channel", "type": "int"}, {"name": "fullRange", "type": "float"}, {"name": "expectedZero", "type": "float"}], "tooltip": "Construct a new DutyCycleEncoder on a specific channel.\n\n:param channel: the 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()", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DutyCycleEncoder", "args": [{"name": "dutyCycle", "type": "wpilib.DutyCycle"}, {"name": "fullRange", "type": "float"}, {"name": "expectedZero", "type": "float"}], "tooltip": "Construct a new DutyCycleEncoder attached to an existing DutyCycle object.\n\n:param dutyCycle: the duty cycle 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()", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycle"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.DutyCycleEncoder", "args": [{"name": "digitalSource", "type": "wpilib.DigitalSource"}, {"name": "fullRange", "type": "float"}, {"name": "expectedZero", "type": "float"}], "tooltip": "Construct a new DutyCycleEncoder attached to a DigitalSource object.\n\n:param digitalSource: the digital source 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()", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "dutyCycleEncoder", "type": "wpilib.DutyCycleEncoder"}], "tooltip": "Get the encoder value.\n\n:returns: the encoder value scaled by the full range input", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "dutyCycleEncoder", "type": "wpilib.DutyCycleEncoder"}], "tooltip": "Get the FPGA index for the DutyCycleEncoder.\n\n:returns: the FPGA index", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder", "FUNC": "getFPGAIndex"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "dutyCycleEncoder", "type": "wpilib.DutyCycleEncoder"}], "tooltip": "Get the frequency in Hz of the duty cycle signal from the encoder.\n\n:returns: duty cycle frequency in Hz", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder", "FUNC": "getFrequency"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "dutyCycleEncoder", "type": "wpilib.DutyCycleEncoder"}], "tooltip": "Get the channel of the source.\n\n:returns: the source channel", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder", "FUNC": "getSourceChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dutyCycleEncoder", "type": "wpilib.DutyCycleEncoder"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dutyCycleEncoder", "type": "wpilib.DutyCycleEncoder"}], "tooltip": "Get if the sensor is connected\n\nThis uses the duty cycle frequency to determine if the sensor is connected.\nBy default, a value of 100 Hz is used as the threshold, and this value can\nbe changed with SetConnectedFrequencyThreshold.\n\n:returns: true if the sensor is connected", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder", "FUNC": "isConnected"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dutyCycleEncoder", "type": "wpilib.DutyCycleEncoder"}, {"name": "frequency", "type": "wpimath.units.hertz"}], "tooltip": "Sets the assumed frequency of the connected device.\n\nBy default, the DutyCycle engine has to compute the frequency of the\ninput signal. This can result in both delayed readings and jumpy readings.\nTo solve this, you can pass the expected frequency of the sensor to this\nfunction. This will use that frequency to compute the DutyCycle percentage,\nrather than the computed frequency.\n\n:param frequency: the assumed frequency of the sensor", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder", "FUNC": "setAssumedFrequency"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dutyCycleEncoder", "type": "wpilib.DutyCycleEncoder"}, {"name": "frequency", "type": "int"}], "tooltip": "Change the frequency threshold for detecting connection used by\nIsConnected.\n\n:param frequency: the minimum frequency in Hz.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder", "FUNC": "setConnectedFrequencyThreshold"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dutyCycleEncoder", "type": "wpilib.DutyCycleEncoder"}, {"name": "min", "type": "float"}, {"name": "max", "type": "float"}], "tooltip": "Set the encoder duty cycle range. As the encoder needs to maintain a duty\ncycle, the duty cycle cannot go all the way to 0% or all the way to 100%.\nFor example, an encoder with a 4096 us period might have a minimum duty\ncycle of 1 us / 4096 us and a maximum duty cycle of 4095 / 4096 us. Setting\nthe range will result in an encoder duty cycle less than or equal to the\nminimum being output as 0 rotation, the duty cycle greater than or equal to\nthe maximum being output as 1 rotation, and values in between linearly\nscaled from 0 to 1.\n\n:param min: minimum duty cycle (0-1 range)\n:param max: maximum duty cycle (0-1 range)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder", "FUNC": "setDutyCycleRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dutyCycleEncoder", "type": "wpilib.DutyCycleEncoder"}, {"name": "inverted", "type": "bool"}], "tooltip": "Set if this encoder is inverted.\n\n:param inverted: true to invert the encoder, false otherwise", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.DutyCycleEncoder", "FUNC": "setInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "DutyCycleEncoder",
- contents: contents,
- className: "wpilib.DutyCycleEncoder",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.Encoder.ts b/src/blocks/generated/class_wpilib.Encoder.ts
deleted file mode 100644
index e4489e8b..00000000
--- a/src/blocks/generated/class_wpilib.Encoder.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.Encoder
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.Encoder.IndexingType", ["kResetOnFallingEdge", "kResetOnRisingEdge", "kResetWhileHigh", "kResetWhileLow"], "Encoder indexing types.\n\nMembers:\n\n kResetWhileHigh : Reset while the signal is high.\n\n kResetWhileLow : Reset while the signal is low.\n\n kResetOnFallingEdge : Reset on falling edge of the signal.\n\n kResetOnRisingEdge : Reset on rising edge of the signal.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 27 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myEncoder"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Encoder", "args": [{"name": "aChannel", "type": "int"}, {"name": "bChannel", "type": "int"}, {"name": "reverseDirection", "type": "bool"}, {"name": "encodingType", "type": "wpilib.interfaces.CounterBase.EncodingType"}], "tooltip": "Encoder constructor.\n\nConstruct a Encoder given a and b channels.\n\nThe counter will start counting immediately.\n\n:param aChannel: The a channel DIO channel. 0-9 are on-board, 10-25\n are on the MXP port\n:param bChannel: The b channel DIO channel. 0-9 are on-board, 10-25\n are on the MXP port\n:param reverseDirection: represents the orientation of the encoder and\n inverts the output values if necessary so forward\n represents positive values.\n:param encodingType: either k1X, k2X, or k4X to indicate 1X, 2X or 4X\n decoding. If 4X is selected, then an encoder FPGA\n object is used and the returned counts will be 4x\n the encoder spec'd value since all rising and\n falling edges are counted. If 1X or 2X are selected\n then a counter object will be used and the returned\n value will either exactly match the spec'd count or\n be double (2x) the spec'd count.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder"}, "inputs": {"ARG2": {"shadow": {"type": "logic_boolean", "fields": {"BOOL": "FALSE"}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncodingType"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myEncoder"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Encoder", "args": [{"name": "aSource", "type": "wpilib.DigitalSource"}, {"name": "bSource", "type": "wpilib.DigitalSource"}, {"name": "reverseDirection", "type": "bool"}, {"name": "encodingType", "type": "wpilib.interfaces.CounterBase.EncodingType"}], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}, "ARG2": {"shadow": {"type": "logic_boolean", "fields": {"BOOL": "FALSE"}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncodingType"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "encoder", "type": "wpilib.Encoder"}], "tooltip": "Gets the current count.\n\nReturns the current count on the Encoder. This method compensates for the\ndecoding type.\n\n:returns: Current count from the Encoder adjusted for the 1x, 2x, or 4x scale\n factor.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "encoder", "type": "wpilib.Encoder"}], "tooltip": "The last direction the encoder value changed.\n\n:returns: The last direction the encoder value changed.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "getDirection"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "encoder", "type": "wpilib.Encoder"}], "tooltip": "Get the distance the robot has driven since the last reset.\n\n:returns: The distance driven since the last reset as scaled by the value\n from SetDistancePerPulse().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "getDistance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "encoder", "type": "wpilib.Encoder"}], "tooltip": "Get the distance per pulse for this encoder.\n\n:returns: The scale factor that will be used to convert pulses to useful\n units.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "getDistancePerPulse"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "encoder", "type": "wpilib.Encoder"}], "tooltip": "The encoding scale factor 1x, 2x, or 4x, per the requested encodingType.\n\nUsed to divide raw edge counts down to spec'd counts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "getEncodingScale"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "encoder", "type": "wpilib.Encoder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "getFPGAIndex"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "encoder", "type": "wpilib.Encoder"}], "tooltip": "Returns the period of the most recent pulse.\n\nReturns the period of the most recent Encoder pulse in seconds. This method\ncompensates for the decoding type.\n\nWarning: This returns unscaled periods. Use GetRate() for rates that are\nscaled using the value from SetDistancePerPulse().\n\n:deprecated: Use getRate() in favor of this method.\n\n:returns: Period in seconds of the most recent pulse.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "getPeriod"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "encoder", "type": "wpilib.Encoder"}], "tooltip": "Get the current rate of the encoder.\n\nUnits are distance per second as scaled by the value from\nSetDistancePerPulse().\n\n:returns: The current rate of the encoder.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "getRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "encoder", "type": "wpilib.Encoder"}], "tooltip": "Gets the raw value from the encoder.\n\nThe raw value is the actual count unscaled by the 1x, 2x, or 4x scale\nfactor.\n\n:returns: Current raw count from the encoder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "getRaw"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "encoder", "type": "wpilib.Encoder"}], "tooltip": "Get the Samples to Average which specifies the number of samples of the\ntimer to average when calculating the period.\n\nPerform averaging to account for mechanical imperfections or as\noversampling to increase resolution.\n\n:returns: The number of samples being averaged (from 1 to 127)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "getSamplesToAverage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "encoder", "type": "wpilib.Encoder"}], "tooltip": "Determine if the encoder is stopped.\n\nUsing the MaxPeriod value, a boolean is returned that is true if the\nencoder is considered stopped and false if it is still moving. A stopped\nencoder is one where the most recent pulse width exceeds the MaxPeriod.\n\n:returns: True if the encoder is considered stopped.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "getStopped"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoder", "type": "wpilib.Encoder"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoder", "type": "wpilib.Encoder"}], "tooltip": "Reset the Encoder distance to zero.\n\nResets the current count to zero on the encoder.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoder", "type": "wpilib.Encoder"}, {"name": "distancePerPulse", "type": "float"}], "tooltip": "Set the distance per pulse for this encoder.\n\nThis sets the multiplier used to determine the distance driven based on the\ncount value from the encoder.\n\nDo not include the decoding type in this scale. The library already\ncompensates for the decoding type.\n\nSet this value based on the encoder's rated Pulses per Revolution and\nfactor in gearing reductions following the encoder shaft.\n\nThis distance can be in any units you like, linear or angular.\n\n:param distancePerPulse: The scale factor that will be used to convert\n pulses to useful units.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "setDistancePerPulse"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoder", "type": "wpilib.Encoder"}, {"name": "channel", "type": "int"}, {"name": "type", "type": "wpilib.Encoder.IndexingType"}], "tooltip": "Set the index source for the encoder.\n\nWhen this source is activated, the encoder count automatically resets.\n\n:param channel: A DIO channel to set as the encoder index\n:param type: The state that will cause the encoder to reset", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "setIndexSource"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIndexingType"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoder", "type": "wpilib.Encoder"}, {"name": "source", "type": "wpilib.DigitalSource"}, {"name": "type", "type": "wpilib.Encoder.IndexingType"}], "tooltip": "Set the index source for the encoder.\n\nWhen this source is activated, the encoder count automatically resets.\n\n:param source: A digital source to set as the encoder index\n:param type: The state that will cause the encoder to reset", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "setIndexSource"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIndexingType"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoder", "type": "wpilib.Encoder"}, {"name": "maxPeriod", "type": "wpimath.units.seconds"}], "tooltip": "Sets the maximum period for stopped detection.\n\nSets the value that represents the maximum period of the Encoder before it\nwill assume that the attached device is stopped. This timeout allows users\nto determine if the wheels or other shaft has stopped rotating.\nThis method compensates for the decoding type.\n\n:deprecated: Use SetMinRate() in favor of this method. This takes unscaled\n periods and SetMinRate() scales using value from\n SetDistancePerPulse().\n\n:param maxPeriod: The maximum time between rising and falling edges before\n the FPGA will report the device stopped. This is expressed\n in seconds.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "setMaxPeriod"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoder", "type": "wpilib.Encoder"}, {"name": "minRate", "type": "float"}], "tooltip": "Set the minimum rate of the device before the hardware reports it stopped.\n\n:param minRate: The minimum rate. The units are in distance per second as\n scaled by the value from SetDistancePerPulse().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "setMinRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoder", "type": "wpilib.Encoder"}, {"name": "reverseDirection", "type": "bool"}], "tooltip": "Set the direction sensing for this encoder.\n\nThis sets the direction sensing on the encoder so that it could count in\nthe correct software direction regardless of the mounting.\n\n:param reverseDirection: true if the encoder direction should be reversed", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "setReverseDirection"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoder", "type": "wpilib.Encoder"}, {"name": "samplesToAverage", "type": "int"}], "tooltip": "Set the Samples to Average which specifies the number of samples of the\ntimer to average when calculating the period.\n\nPerform averaging to account for mechanical imperfections or as\noversampling to increase resolution.\n\n:param samplesToAverage: The number of samples to average from 1 to 127.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "setSamplesToAverage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoder", "type": "wpilib.Encoder"}, {"name": "device", "type": "int"}], "tooltip": "Indicates this encoder is used by a simulated device.\n\n:param device: simulated device handle", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Encoder", "FUNC": "setSimDevice"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Encoder.IndexingType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Encoder.IndexingType", "ENUM_VALUE": "kResetOnFallingEdge"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Encoder.IndexingType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Encoder.IndexingType", "ENUM_VALUE": "kResetOnRisingEdge"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Encoder.IndexingType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Encoder.IndexingType", "ENUM_VALUE": "kResetWhileHigh"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Encoder.IndexingType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Encoder.IndexingType", "ENUM_VALUE": "kResetWhileLow"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Encoder",
- contents: contents,
- className: "wpilib.Encoder",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.Field2d.ts b/src/blocks/generated/class_wpilib.Field2d.ts
deleted file mode 100644
index 93903fcf..00000000
--- a/src/blocks/generated/class_wpilib.Field2d.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.Field2d
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myField2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Field2d", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Field2d"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myFieldObject2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.FieldObject2d", "args": [{"name": "field2d", "type": "wpilib.Field2d"}, {"name": "name", "type": "str"}], "tooltip": "Get or create a field object.\n\n:returns: Field object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Field2d", "FUNC": "getObject"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myField2d"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myFieldObject2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.FieldObject2d", "args": [{"name": "field2d", "type": "wpilib.Field2d"}], "tooltip": "Get the robot object.\n\n:returns: Field object for robot", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Field2d", "FUNC": "getRobotObject"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myField2d"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "field2d", "type": "wpilib.Field2d"}], "tooltip": "Get the robot pose.\n\n:returns: 2D pose", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Field2d", "FUNC": "getRobotPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myField2d"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "field2d", "type": "wpilib.Field2d"}, {"name": "builder", "type": "ntcore.NTSendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Field2d", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myField2d"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNTSendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "field2d", "type": "wpilib.Field2d"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Set the robot pose from a Pose object.\n\n:param pose: 2D pose", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Field2d", "FUNC": "setRobotPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myField2d"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "field2d", "type": "wpilib.Field2d"}, {"name": "x", "type": "wpimath.units.meters"}, {"name": "y", "type": "wpimath.units.meters"}, {"name": "rotation", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Set the robot pose from x, y, and rotation.\n\n:param x: X location\n:param y: Y location\n:param rotation: rotation", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Field2d", "FUNC": "setRobotPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myField2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Field2d",
- contents: contents,
- className: "wpilib.Field2d",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.FieldObject2d.ts b/src/blocks/generated/class_wpilib.FieldObject2d.ts
deleted file mode 100644
index d5c3d088..00000000
--- a/src/blocks/generated/class_wpilib.FieldObject2d.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.FieldObject2d
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 6 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "fieldObject2d", "type": "wpilib.FieldObject2d"}], "tooltip": "Get the pose.\n\n:returns: 2D pose, or 0,0,0 if unknown / does not exist", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.FieldObject2d", "FUNC": "getPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFieldObject2d"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myList"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "list[wpimath.geometry._geometry.Pose2d]", "args": [{"name": "fieldObject2d", "type": "wpilib.FieldObject2d"}], "tooltip": "Get multiple poses.\n\n:returns: vector of 2D poses", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.FieldObject2d", "FUNC": "getPoses"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFieldObject2d"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "fieldObject2d", "type": "wpilib.FieldObject2d"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Set the pose from a Pose object.\n\n:param pose: 2D pose", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.FieldObject2d", "FUNC": "setPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFieldObject2d"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "fieldObject2d", "type": "wpilib.FieldObject2d"}, {"name": "x", "type": "wpimath.units.meters"}, {"name": "y", "type": "wpimath.units.meters"}, {"name": "rotation", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Set the pose from x, y, and rotation.\n\n:param x: X location\n:param y: Y location\n:param rotation: rotation", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.FieldObject2d", "FUNC": "setPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFieldObject2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "fieldObject2d", "type": "wpilib.FieldObject2d"}, {"name": "poses", "type": "List[wpimath.geometry._geometry.Pose2d]"}], "tooltip": "Set multiple poses from an array of Pose objects.\nThe total number of poses is limited to 85.\n\n:param poses: array of 2D poses", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.FieldObject2d", "FUNC": "setPoses"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFieldObject2d"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "fieldObject2d", "type": "wpilib.FieldObject2d"}, {"name": "trajectory", "type": "wpimath.trajectory.Trajectory"}], "tooltip": "Sets poses from a trajectory.\n\n:param trajectory: The trajectory from which poses should be added.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.FieldObject2d", "FUNC": "setTrajectory"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFieldObject2d"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTrajectory"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "FieldObject2d",
- contents: contents,
- className: "wpilib.FieldObject2d",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.I2C.ts b/src/blocks/generated/class_wpilib.I2C.ts
deleted file mode 100644
index 60a45ebc..00000000
--- a/src/blocks/generated/class_wpilib.I2C.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.I2C
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.I2C.Port", ["kMXP", "kOnboard"], "I2C connection ports.\n\nMembers:\n\n kOnboard : Onboard I2C port.\n\n kMXP : MXP (roboRIO MXP) I2C port.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 12 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myI2C"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.I2C", "args": [{"name": "port", "type": "wpilib.I2C.Port"}, {"name": "deviceAddress", "type": "int"}], "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.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.I2C"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPort"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "i2C", "type": "wpilib.I2C"}], "tooltip": "Attempt to address a device on the I2C bus.\n\nThis allows you to figure out if there is a device on the I2C bus that\nresponds to the address specified in the constructor.\n\n:returns: Transfer Aborted... false for success, true for aborted.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.I2C", "FUNC": "addressOnly"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myI2C"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "i2C", "type": "wpilib.I2C"}], "tooltip": "Returns I2C device address.\n\n:returns: I2C device address.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.I2C", "FUNC": "getDeviceAddress"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myI2C"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPort"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.I2C.Port", "args": [{"name": "i2C", "type": "wpilib.I2C"}], "tooltip": "Returns I2C port.\n\n:returns: I2C port.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.I2C", "FUNC": "getPort"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myI2C"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "i2C", "type": "wpilib.I2C"}, {"name": "registerAddress", "type": "int"}, {"name": "data", "type": "Buffer"}], "tooltip": "Execute a read transaction with the device.\n\nRead bytes from a device.\nMost I2C devices will auto-increment the register pointer internally\nallowing you to read consecutive registers on a device in a single\ntransaction.\n\n:param registerAddress: The register to read first in the transaction.\n:param count: The number of bytes to read in the transaction.\n:param data: A pointer to the array of bytes to store the data\n read from the device.\n\n:returns: Transfer Aborted... false for success, true for aborted.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.I2C", "FUNC": "read"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myI2C"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "i2C", "type": "wpilib.I2C"}, {"name": "buffer", "type": "Buffer"}], "tooltip": "Execute a read only transaction with the device.\n\nRead bytes from a device. This method does not write any data to prompt the\ndevice.\n\n:param buffer: A pointer to the array of bytes to store the data read from\n the device.\n:param count: The number of bytes to read in the transaction.\n\n:returns: Transfer Aborted... false for success, true for aborted.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.I2C", "FUNC": "readOnly"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myI2C"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "i2C", "type": "wpilib.I2C"}, {"name": "dataToSend", "type": "Buffer"}, {"name": "dataReceived", "type": "Buffer"}], "tooltip": "Generic transaction.\n\nThis is a lower-level interface to the I2C hardware giving you more control\nover each transaction. If you intend to write multiple bytes in the same\ntransaction and do not plan to receive anything back, use writeBulk()\ninstead. Calling this with a receiveSize of 0 will result in an error.\n\n:param dataToSend: Buffer of data to send as part of the transaction.\n:param sendSize: Number of bytes to send as part of the transaction.\n:param dataReceived: Buffer to read data into.\n:param receiveSize: Number of bytes to read from the device.\n\n:returns: Transfer Aborted... false for success, true for aborted.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.I2C", "FUNC": "transaction"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myI2C"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "i2C", "type": "wpilib.I2C"}, {"name": "registerAddress", "type": "int"}, {"name": "expected", "type": "Buffer"}], "tooltip": "Verify that a device's registers contain expected values.\n\nMost devices will have a set of registers that contain a known value that\ncan be used to identify them. This allows an I2C device driver to easily\nverify that the device contains the expected value.\n\n@pre The device must support and be configured to use register\nauto-increment.\n\n:param registerAddress: The base register to start reading from the device.\n:param count: The size of the field to be verified.\n:param expected: A buffer containing the values expected from the\n device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.I2C", "FUNC": "verifySensor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myI2C"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "i2C", "type": "wpilib.I2C"}, {"name": "registerAddress", "type": "int"}, {"name": "data", "type": "int"}], "tooltip": "Execute a write transaction with the device.\n\nWrite a single byte to a register on a device and wait until the\ntransaction is complete.\n\n:param registerAddress: The address of the register on the device to be\n written.\n:param data: The byte to write to the register on the device.\n\n:returns: Transfer Aborted... false for success, true for aborted.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.I2C", "FUNC": "write"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myI2C"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "i2C", "type": "wpilib.I2C"}, {"name": "data", "type": "Buffer"}], "tooltip": "Execute a bulk write transaction with the device.\n\nWrite multiple bytes to a device and wait until the\ntransaction is complete.\n\n:param data: The data to write to the register on the device.\n:param count: The number of bytes to be written.\n\n:returns: Transfer Aborted... false for success, true for aborted.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.I2C", "FUNC": "writeBulk"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myI2C"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.I2C.Port", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.I2C.Port", "ENUM_VALUE": "kMXP"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.I2C.Port", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.I2C.Port", "ENUM_VALUE": "kOnboard"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "I2C",
- contents: contents,
- className: "wpilib.I2C",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.IterativeRobotBase.ts b/src/blocks/generated/class_wpilib.IterativeRobotBase.ts
deleted file mode 100644
index 8bcaf7a8..00000000
--- a/src/blocks/generated/class_wpilib.IterativeRobotBase.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.IterativeRobotBase
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 36 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myIterativeRobotBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.IterativeRobotBase", "args": [{"name": "period", "type": "wpimath.units.seconds"}], "tooltip": "Constructor for IterativeRobotBase.\n\n:param period: Period.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Exit code for autonomous mode should go here.\n\nUsers should override this method for code which will be called each time\nthe robot exits autonomous mode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "autonomousExit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Initialization code for autonomous mode should go here.\n\nUsers should override this method for initialization code which will be\ncalled each time the robot enters autonomous mode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "autonomousInit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Periodic code for autonomous mode should go here.\n\nUsers should override this method for code which will be called each time a\nnew packet is received from the driver station and the robot is in\nautonomous mode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "autonomousPeriodic"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Exit code for disabled mode should go here.\n\nUsers should override this method for code which will be called each time\nthe robot exits disabled mode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "disabledExit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Initialization code for disabled mode should go here.\n\nUsers should override this method for initialization code which will be\ncalled each time\nthe robot enters disabled mode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "disabledInit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Periodic code for disabled mode should go here.\n\nUsers should override this method for code which will be called each time a\nnew packet is received from the driver station and the robot is in disabled\nmode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "disabledPeriodic"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Code that needs to know the DS state should go here.\n\nUsers should override this method for initialization that needs to occur\nafter the DS is connected, such as needing the alliance information.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "driverStationConnected"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}, {"name": "testLW", "type": "bool"}], "tooltip": "Sets whether LiveWindow operation is enabled during test mode.\n\n:param testLW: True to enable, false to disable. Defaults to false.\n @throws if called in test mode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "enableLiveWindowInTest"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Ends the main loop in StartCompetition().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "endCompetition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myTuple"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "tuple[bool, bool, bool]", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "More efficient way to determine what state the robot is in.\n\n:returns: booleans representing enabled, isautonomous, istest\n\n.. versionadded:: 2019.2.1\n\n.. note:: This function only exists in RobotPy", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "getControlState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Gets time period between calls to Periodic() functions.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "getPeriod"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myRuntimeType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.RuntimeType", "args": [], "tooltip": "Get the current runtime type.\n\n:returns: Current runtime type.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "getRuntimeType"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the robot is currently in Autonomous mode.\n\n:returns: True if the robot is currently operating Autonomously as determined\n by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isAutonomous"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the robot is currently in Autonomous mode and enabled.\n\n:returns: True if the robot us currently operating Autonomously while enabled\n as determined by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isAutonomousEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the Robot is currently disabled.\n\n:returns: True if the Robot is currently disabled by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isDisabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the Robot is currently enabled.\n\n:returns: True if the Robot is currently enabled by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Whether LiveWindow operation is enabled during test mode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "isLiveWindowEnabledInTest"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Get if the robot is real.\n\n:returns: If the robot is running in the real world.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "isReal"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Get if the robot is a simulation.\n\n:returns: If the robot is running in simulation.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "isSimulation"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the robot is currently in Operator Control mode.\n\n:returns: True if the robot is currently operating in Tele-Op mode as\n determined by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isTeleop"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the robot is current in Operator Control mode and enabled.\n\n:returns: True if the robot is currently operating in Tele-Op mode while\n enabled as determined by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isTeleopEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the robot is currently in Test mode.\n\n:returns: True if the robot is currently running in Test mode as determined\n by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isTest"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the robot is current in Test mode and enabled.\n\n:returns: True if the robot is currently operating in Test mode while\n enabled as determined by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isTestEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "object", "args": [{"name": "robot_cls", "type": "object"}], "tooltip": "Starting point for the application", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "main"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Prints list of epochs added so far and their times.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "printWatchdogEpochs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Robot-wide initialization code should go here.\n\nUsers should override this method for default Robot-wide initialization\nwhich will be called when the robot is first powered on. It will be called\nexactly one time.\n\nNote: This method is functionally identical to the class constructor so\nthat should be used instead.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "robotInit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Periodic code for all modes should go here.\n\nThis function is called each time a new packet is received from the driver\nstation.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "robotPeriodic"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enables or disables flushing NetworkTables every loop iteration.\nBy default, this is enabled.\n\n:deprecated: Deprecated without replacement.\n\n:param enabled: True to enable, false to disable", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "setNetworkTablesFlushEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Start the main robot code. This function will be called once and should not\nexit until signalled by EndCompetition()", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "startCompetition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Exit code for teleop mode should go here.\n\nUsers should override this method for code which will be called each time\nthe robot exits teleop mode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "teleopExit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Initialization code for teleop mode should go here.\n\nUsers should override this method for initialization code which will be\ncalled each time the robot enters teleop mode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "teleopInit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Periodic code for teleop mode should go here.\n\nUsers should override this method for code which will be called each time a\nnew packet is received from the driver station and the robot is in teleop\nmode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "teleopPeriodic"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Exit code for test mode should go here.\n\nUsers should override this method for code which will be called each time\nthe robot exits test mode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "testExit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Initialization code for test mode should go here.\n\nUsers should override this method for initialization code which will be\ncalled each time the robot enters test mode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "testInit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "iterativeRobotBase", "type": "wpilib.IterativeRobotBase"}], "tooltip": "Periodic code for test mode should go here.\n\nUsers should override this method for code which will be called each time a\nnew packet is received from the driver station and the robot is in test\nmode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.IterativeRobotBase", "FUNC": "testPeriodic"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myIterativeRobotBase"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "IterativeRobotBase",
- contents: contents,
- className: "wpilib.IterativeRobotBase",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.Jaguar.ts b/src/blocks/generated/class_wpilib.Jaguar.ts
deleted file mode 100644
index 3a45d5a0..00000000
--- a/src/blocks/generated/class_wpilib.Jaguar.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.Jaguar
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 22 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myJaguar"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Jaguar", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructor for a Jaguar connected via PWM.\n\n:param channel: The PWM channel that the Jaguar is attached to. 0-9 are\n on-board, 10-19 are on the MXP port", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Jaguar"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "follower", "type": "wpilib.PWMMotorController"}], "tooltip": "Make the given PWM motor controller follow the output of this one.\n\n:param follower: The motor controller follower.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "addFollower"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Check if this motor has exceeded its timeout.\n\nThis method is called periodically to determine if this motor has exceeded\nits timeout value. If it has, the stop method is called, and the motor is\nshut down until its value is updated again.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "check"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Check the motors to see if any have timed out.\n\nThis static method is called periodically to poll all the motors and stop\nany that have timed out.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Jaguar", "FUNC": "checkMotors"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "disable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "eliminateDeadband", "type": "bool"}], "tooltip": "Optionally eliminate the deadband from a motor controller.\n\n:param eliminateDeadband: If true, set the motor curve on the motor\n controller to eliminate the deadband in the middle\n of the range. Otherwise, keep the full range\n without modifying any values.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "enableDeadbandElimination"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Feed the motor safety object.\n\nResets the timer on this object that is used to do the timeouts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "feed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Get the recently set value of the PWM. This value is affected by the\ninversion property. If you want the value that is sent directly to the\nMotorController, use PWM::GetSpeed() instead.\n\n:returns: The most recently set value for the PWM between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getDescription"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Retrieve the timeout value for the corresponding motor safety object.\n\n:returns: the timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "getExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Gets the voltage output of the motor controller, nominally between -12 V\nand 12 V.\n\n:returns: The voltage of the motor controller, nominally between -12 V and 12\n V.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendable", "type": "wpiutil.Sendable"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "Initializes this Sendable object.\n\n:param builder: sendable builder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpiutil.Sendable", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Determine if the motor is still operating or has timed out.\n\n:returns: true if the motor is still operating normally and hasn't timed out.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isAlive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Return the state of the motor safety enabled flag.\n\nReturn if the motor safety is currently enabled for this device.\n\n:returns: True if motor safety is enforced for this device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "value", "type": "float"}], "tooltip": "Set the PWM value.\n\nThe PWM value is set using a range of -1.0 to 1.0, appropriately scaling\nthe value for the FPGA.\n\n:param value: The speed value between -1.0 and 1.0 to set.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "expirationTime", "type": "wpimath.units.seconds"}], "tooltip": "Set the expiration time for the corresponding motor safety object.\n\n:param expirationTime: The timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "isInverted", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enable/disable motor safety for this device.\n\nTurn on and off the motor safety option for this PWM object.\n\n:param enabled: True if motor safety is enforced for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "output", "type": "wpimath.units.volts"}], "tooltip": "Sets the voltage output of the PWMMotorController. Compensates for\nthe current bus voltage to ensure that the desired voltage is output even\nif the battery voltage is below 12V - highly useful when the voltage\noutputs are \"meaningful\" (e.g. they come from a feedforward calculation).\n\nNOTE: This function *must* be called regularly in order for voltage\ncompensation to work properly - unlike the ordinary set function, it is not\n\"set it and forget it.\"\n\n:param output: The voltage to output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "stopMotor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Jaguar",
- contents: contents,
- className: "wpilib.Jaguar",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.Joystick.ts b/src/blocks/generated/class_wpilib.Joystick.ts
deleted file mode 100644
index ae2bda15..00000000
--- a/src/blocks/generated/class_wpilib.Joystick.ts
+++ /dev/null
@@ -1,100 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.Joystick
-
-export function initialize() {
- getPythonVariable.initializeClassVariableGetter("wpilib.Joystick", "int", ["kDefaultThrottleChannel", "kDefaultTwistChannel", "kDefaultXChannel", "kDefaultYChannel", "kDefaultZChannel"], []);
- pythonEnum.initializeEnum("wpilib.Joystick.AxisType", ["kThrottleAxis", "kTwistAxis", "kXAxis", "kYAxis", "kZAxis"], "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.");
- pythonEnum.initializeEnum("wpilib.Joystick.ButtonType", ["kTopButton", "kTriggerButton"], "Represents a digital button on a joystick.\n\nMembers:\n\n kTriggerButton : kTrigger.\n\n kTopButton : kTop.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 69 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Joystick", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "VAR": "kDefaultThrottleChannel"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Joystick", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "VAR": "kDefaultTwistChannel"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Joystick", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "VAR": "kDefaultXChannel"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Joystick", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "VAR": "kDefaultYChannel"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.Joystick", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "VAR": "kDefaultZChannel"}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myJoystick"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Joystick", "args": [{"name": "port", "type": "int"}], "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).", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "angle", "type": "int"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around this angle of a POV on the\nHID.\n\nThe POV angles start at 0 in the up direction, and increase clockwise\n(eg right is 90, upper-left is 315).\n\n:param loop: the event loop instance to attach the event to.\n:param angle: POV angle in degrees, or -1 for the center / not pressed.\n\n:returns: a BooleanEvent instance based around this angle of a POV on the\n HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "pov", "type": "int"}, {"name": "angle", "type": "int"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around this angle of a POV on the\nHID.\n\nThe POV angles start at 0 in the up direction, and increase clockwise\n(eg right is 90, upper-left is 315).\n\n:param loop: the event loop instance to attach the event to.\n:param pov: index of the POV to read (starting at 0). Defaults to 0.\n:param angle: POV angle in degrees, or -1 for the center / not pressed.\n\n:returns: a BooleanEvent instance based around this angle of a POV on the\n HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the center (not pressed) of\nthe default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the center of a POV on the\n HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVCenter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 180 degree angle (down)\nof the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 180 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVDown"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 225 degree angle (down\nleft) of the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 225 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVDownLeft"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 135 degree angle (right\ndown) of the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 135 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVDownRight"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 270 degree angle (left)\nof the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 270 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVLeft"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 90 degree angle (right)\nof the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 90 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVRight"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 0 degree angle (up) of\nthe default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 0 degree angle of a POV on\n the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVUp"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 315 degree angle (left\nup) of the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 315 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVUpLeft"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 45 degree angle (right\nup) of the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 45 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVUpRight"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "axis", "type": "int"}, {"name": "threshold", "type": "float"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance that is true when the axis value is greater\nthan threshold\n\n:param axis: The axis to read, starting at 0.\n:param threshold: The value above which this trigger should return true.\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance that is true when the axis value is greater than\n the provided threshold.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "axisGreaterThan"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "axis", "type": "int"}, {"name": "threshold", "type": "float"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance that is true when the axis value is less than\nthreshold\n\n:param axis: The axis to read, starting at 0.\n:param threshold: The value below which this trigger should return true.\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance that is true when the axis value is less than the\n provided threshold.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "axisLessThan"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "button", "type": "int"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around this button's digital signal.\n\n:param button: the button index\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the button's digital signal attached\n to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the number of axes for the HID.\n\n:returns: the number of axis for the current HID", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getAxisCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "axis", "type": "int"}], "tooltip": "Get the axis type of a joystick axis.\n\n:returns: the axis type of a joystick axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getAxisType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the number of buttons for the HID.\n\n:returns: the number of buttons on the current HID", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getButtonCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getDirectionDegrees"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Get the direction of the vector formed by the joystick and its origin.\n\n:returns: The direction of the vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getDirectionRadians"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Get the magnitude of the direction vector formed by the joystick's\ncurrent position relative to its origin.\n\n:returns: The magnitude of the direction vector", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getMagnitude"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the name of the HID.\n\n:returns: the name of the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "pov", "type": "int"}], "tooltip": "Get the angle in degrees of a POV on the HID.\n\nThe POV angles start at 0 in the up direction, and increase clockwise\n(e.g. right is 90, upper-left is 315).\n\n:param pov: The index of the POV to read (starting at 0)\n\n:returns: the angle of the POV in degrees, or -1 if the POV is not pressed.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"shadow": {"type": "math_number", "fields": {"NUM": 0.0}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the number of POVs for the HID.\n\n:returns: the number of POVs for the current HID", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getPOVCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the port number of the HID.\n\n:returns: The port number of the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getPort"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "axis", "type": "int"}], "tooltip": "Get the value of the axis.\n\n:param axis: The axis to read, starting at 0.\n\n:returns: The value of the axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getRawAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "button", "type": "int"}], "tooltip": "Get the button value (starting at button 1).\n\nThe buttons are returned in a single 16 bit value with one bit representing\nthe state of each button. The appropriate button is returned as a boolean\nvalue.\n\nThis method returns true if the button is being held down at the time\nthat this method is being called.\n\n:param button: The button number to be read (starting at 1)\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getRawButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "button", "type": "int"}], "tooltip": "Whether the button was pressed since the last check. %Button indexes begin\nat 1.\n\nThis method returns true if the button went from not pressed to held down\nsince the last time this method was called. This is useful if you only\nwant to call a function once when you press the button.\n\n:param button: The button index, beginning at 1.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getRawButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "button", "type": "int"}], "tooltip": "Whether the button was released since the last check. %Button indexes begin\nat 1.\n\nThis method returns true if the button went from held down to not pressed\nsince the last time this method was called. This is useful if you only\nwant to call a function once when you release the button.\n\n:param button: The button index, beginning at 1.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getRawButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Get the throttle value of the current joystick.\n\nThis depends on the mapping of the joystick connected to the current port.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getThrottle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Get the channel currently associated with the throttle axis.\n\n:returns: The channel for the axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getThrottleChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Read the state of the top button on the joystick.\n\nLook up which button has been assigned to the top and read its state.\n\n:returns: The state of the top button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getTop"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Whether the top button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getTopPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Whether the top button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getTopReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Read the state of the trigger on the joystick.\n\nLook up which button has been assigned to the trigger and read its state.\n\n:returns: The state of the trigger.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getTrigger"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Whether the trigger was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getTriggerPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Whether the trigger was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getTriggerReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Get the twist value of the current joystick.\n\nThis depends on the mapping of the joystick connected to the current port.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getTwist"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Get the channel currently associated with the twist axis.\n\n:returns: The channel for the axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getTwistChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myHIDType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.interfaces.GenericHID.HIDType", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the type of the HID.\n\n:returns: the type of the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Get the X value of the current joystick.\n\nThis depends on the mapping of the joystick connected to the current port.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Get the channel currently associated with the X axis.\n\n:returns: The channel for the axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getXChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Get the Y value of the current joystick.\n\nThis depends on the mapping of the joystick connected to the current port.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Get the channel currently associated with the Y axis.\n\n:returns: The channel for the axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getYChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Get the Z value of the current joystick.\n\nThis depends on the mapping of the joystick connected to the current port.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Get the channel currently associated with the Z axis.\n\n:returns: The channel for the axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "getZChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get if the HID is connected.\n\n:returns: true if the HID is connected", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "isConnected"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "outputNumber", "type": "int"}, {"name": "value", "type": "bool"}], "tooltip": "Set a single HID output value for the HID.\n\n:param outputNumber: The index of the output to set (1-32)\n:param value: The value to set the output to", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "setOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "value", "type": "int"}], "tooltip": "Set all output values for the HID.\n\n:param value: The 32 bit output value (1 bit for each output)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "setOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.RumbleType"}, {"name": "value", "type": "float"}], "tooltip": "Set the rumble output for the HID.\n\nThe DS currently supports 2 rumble values, left rumble and right rumble.\n\n:param type: Which rumble value to set\n:param value: The normalized value (0 to 1) to set the rumble to", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "setRumble"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRumbleType"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "joystick", "type": "wpilib.Joystick"}, {"name": "channel", "type": "int"}], "tooltip": "Set the channel associated with the throttle axis.\n\n:param channel: The channel to set the axis to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "setThrottleChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "joystick", "type": "wpilib.Joystick"}, {"name": "channel", "type": "int"}], "tooltip": "Set the channel associated with the twist axis.\n\n:param channel: The channel to set the axis to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "setTwistChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "joystick", "type": "wpilib.Joystick"}, {"name": "channel", "type": "int"}], "tooltip": "Set the channel associated with the X axis.\n\n:param channel: The channel to set the axis to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "setXChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "joystick", "type": "wpilib.Joystick"}, {"name": "channel", "type": "int"}], "tooltip": "Set the channel associated with the Y axis.\n\n:param channel: The channel to set the axis to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "setYChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "joystick", "type": "wpilib.Joystick"}, {"name": "channel", "type": "int"}], "tooltip": "Set the channel associated with the Z axis.\n\n:param channel: The channel to set the axis to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "setZChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "joystick", "type": "wpilib.Joystick"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the top button's digital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the top button's digital signal\n attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "top"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "joystick", "type": "wpilib.Joystick"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the trigger button's digital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the trigger button's digital signal\n attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Joystick", "FUNC": "trigger"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Joystick.AxisType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Joystick.AxisType", "ENUM_VALUE": "kThrottleAxis"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Joystick.AxisType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Joystick.AxisType", "ENUM_VALUE": "kTwistAxis"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Joystick.AxisType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Joystick.AxisType", "ENUM_VALUE": "kXAxis"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Joystick.AxisType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Joystick.AxisType", "ENUM_VALUE": "kYAxis"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Joystick.AxisType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Joystick.AxisType", "ENUM_VALUE": "kZAxis"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Joystick.ButtonType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Joystick.ButtonType", "ENUM_VALUE": "kTopButton"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Joystick.ButtonType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Joystick.ButtonType", "ENUM_VALUE": "kTriggerButton"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Joystick",
- contents: contents,
- className: "wpilib.Joystick",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.LEDPattern.LEDReader.ts b/src/blocks/generated/class_wpilib.LEDPattern.LEDReader.ts
deleted file mode 100644
index 5db731e6..00000000
--- a/src/blocks/generated/class_wpilib.LEDPattern.LEDReader.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.LEDPattern.LEDReader
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 2 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDReader"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.LEDPattern.LEDReader", "args": [{"name": "impl", "type": "Callable[[int], wpilib._wpilib.AddressableLED.LEDData]"}, {"name": "size", "type": "int"}], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern.LEDReader"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "lEDReader", "type": "wpilib.LEDPattern.LEDReader"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern.LEDReader", "FUNC": "size"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDReader"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "LEDReader",
- contents: contents,
- className: "wpilib.LEDPattern.LEDReader",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.LEDPattern.ts b/src/blocks/generated/class_wpilib.LEDPattern.ts
deleted file mode 100644
index f36fa8f8..00000000
--- a/src/blocks/generated/class_wpilib.LEDPattern.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.LEDPattern
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.LEDPattern.GradientType", ["kContinuous", "kDiscontinuous"], "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.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 25 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.LEDPattern", "args": [{"name": "impl", "type": "Callable[[wpilib._wpilib.LEDPattern.LEDReader, Callable[[int, wpilib._wpilib.Color], None]], None]"}], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "reader", "type": "wpilib.LEDPattern.LEDReader"}, {"name": "writer", "type": "Callable[[int, wpilib._wpilib.Color], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "applyTo"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDReader"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "data", "type": "List[wpilib._wpilib.AddressableLED.LEDData]"}, {"name": "writer", "type": "Callable[[int, wpilib._wpilib.Color], None]"}], "tooltip": "Writes the pattern to an LED buffer. Dynamic animations should be called\nperiodically (such as with a command or with a periodic method) to refresh\nthe buffer over time.\n\nThis method is intentionally designed to use separate objects for reading\nand writing data. By splitting them up, we can easily modify the behavior\nof some base pattern to make it scroll, blink, or breathe by intercepting\nthe data writes to transform their behavior to whatever we like.\n\n:param data: the current data of the LED strip\n:param writer: data writer for setting new LED colors on the LED strip", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "applyTo"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "data", "type": "List[wpilib._wpilib.AddressableLED.LEDData]"}], "tooltip": "Writes the pattern to an LED buffer. Dynamic animations should be called\nperiodically (such as with a command or with a periodic method) to refresh\nthe buffer over time.\n\nThis method is intentionally designed to use separate objects for reading\nand writing data. By splitting them up, we can easily modify the behavior\nof some base pattern to make it scroll, blink, or breathe by intercepting\nthe data writes to transform their behavior to whatever we like.\n\n:param data: the current data of the LED strip", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "applyTo"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.LEDPattern", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "relativeBrightness", "type": "float"}], "tooltip": "Creates a pattern that plays this one, but at a different brightness.\nBrightness multipliers are applied per-channel in the RGB space; no HSL or\nHSV conversions are applied. Multipliers are also uncapped, which may\nresult in the original colors washing out and appearing less saturated or\neven just a bright white.\n\nThis method is predominantly intended for dimming LEDs to avoid\npainfully bright or distracting patterns from playing (apologies to the\n2024 NE Greater Boston field staff).\n\nFor example, dimming can be done simply by adding a call to\n`atBrightness` at the end of a pattern:\n\n::\n\n // Solid red, but at 50% brightness\n frc::LEDPattern::Solid(frc::Color::kRed).AtBrightness(0.5);\n \n // Solid white, but at only 10% (i.e. ~0.5V)\n frc::LEDPattern::Solid(frc:Color::kWhite).AtBrightness(0.1);\n\n:param relativeBrightness: the multiplier to apply to all channels to modify\n brightness\n\n:returns: the input pattern, displayed at", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "atBrightness"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.LEDPattern", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "other", "type": "wpilib.LEDPattern"}], "tooltip": "Creates a pattern that displays outputs as a combination of this pattern\nand another. Color values are calculated as the average color of both\npatterns; if both patterns set the same LED to the same color, then it is\nset to that color, but if one pattern sets to one color and the other\npattern sets it to off, then it will show the color of the first pattern\nbut at approximately half brightness. This is different from {@link\nLEDPattern::OverlayOn(const LEDPattern&)}, which will show the base pattern\nat full brightness if the overlay is set to off at that position.\n\n:param other: the pattern to blend with\n\n:returns: the blended pattern", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "blend"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.LEDPattern", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "onTime", "type": "wpimath.units.seconds"}, {"name": "offTime", "type": "wpimath.units.seconds"}], "tooltip": "Creates a pattern that switches between playing this pattern and turning\nthe entire LED strip off.\n\n:param onTime: how long the pattern should play for, per cycle\n:param offTime: how long the pattern should be turned off for, per cycle\n\n:returns: the blinking pattern", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "blink"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.LEDPattern", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "onTime", "type": "wpimath.units.seconds"}], "tooltip": "Like {@link LEDPattern::Blink(units::second_t)}, but where the\n\"off\" time is exactly equal to the \"on\" time.\n\n:param onTime: how long the pattern should play for (and be turned off for),\n per cycle\n\n:returns: the blinking pattern", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "blink"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.LEDPattern", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "period", "type": "wpimath.units.seconds"}], "tooltip": "Creates a pattern that brightens and dims this one over time. Brightness\nfollows a sinusoidal pattern.\n\n:param period: how fast the breathing pattern should complete a single cycle\n\n:returns: the breathing pattern", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "breathe"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.LEDPattern", "args": [{"name": "type", "type": "wpilib.LEDPattern.GradientType"}, {"name": "colors", "type": "List[wpilib._wpilib.Color]"}], "tooltip": "Creates a pattern that displays a non-animated gradient of colors across\nthe entire length of the LED strip. Colors are evenly distributed along the\nfull length of the LED strip. The gradient type is configured with the\n``type`` parameter, allowing the gradient to be either continuous (no\nseams, good for scrolling effects) or discontinuous (a clear seam is\nvisible, but the gradient applies to the full length of the LED strip\nwithout needing to use some space for wrapping).\n\n:param type: the type of gradient (continuous or discontinuous)\n:param colors: the colors to display in the gradient\n\n:returns: a motionless gradient pattern", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "gradient"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGradientType"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.LEDPattern", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "indexMapper", "type": "Callable[[int, int], int]"}], "tooltip": "Creates a pattern with remapped indices.\n\n:param indexMapper: the index mapper\n\n:returns: the mapped pattern", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "mapIndex"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.LEDPattern", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "mask", "type": "wpilib.LEDPattern"}], "tooltip": "Similar to {@link LEDPattern::Blend(const LEDPattern&)}, but performs a\nbitwise mask on each color channel rather than averaging the colors for\neach LED. This can be helpful for displaying only a portion of the base\npattern by applying a mask that sets the desired area to white, and all\nother areas to black. However, it can also be used to display only certain\ncolor channels or hues; for example, masking with {@code\nLEDPattern.color(Color.kRed)} will turn off the green and blue channels on\nthe output pattern, leaving only the red LEDs to be illuminated.\n\n:param mask: the mask to apply\n\n:returns: the masked pattern", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "mask"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.LEDPattern", "args": [], "tooltip": "A pattern that turns off all LEDs.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "off"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.LEDPattern", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "offset", "type": "int"}], "tooltip": "Creates a pattern that displays this one, but offset by a certain number of\nLEDs. The offset pattern will wrap around, if necessary.\n\n:param offset: how many LEDs to offset by\n\n:returns: the offset pattern", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "offsetBy"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.LEDPattern", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "base", "type": "wpilib.LEDPattern"}], "tooltip": "Creates a pattern that plays this pattern overlaid on another. Anywhere\nthis pattern sets an LED to off (or {@link frc::Color::kBlack}), the base\npattern will be displayed instead.\n\n:param base: the base pattern to overlay on top of\n\n:returns: the combined overlay pattern", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "overlayOn"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.LEDPattern", "args": [{"name": "progressFunction", "type": "Callable[[], float]"}], "tooltip": "Creates a pattern that works as a mask layer for {@link\nLEDPattern::Mask(const LEDPattern&)} that illuminates only the portion of\nthe LED strip corresponding with some progress. The mask pattern will start\nfrom the base and set LEDs to white at a proportion equal to the progress\nreturned by the function. Some usages for this could be for displaying\nprogress of a flywheel to its target velocity, progress of a complex\nautonomous sequence, or the height of an elevator.\n\nFor example, creating a mask for displaying a red-to-blue gradient,\nstarting from the red end, based on where an elevator is in its range of\ntravel.\n\n::\n\n frc::LEDPattern basePattern =\n frc::LEDPattern::Gradient(frc::Color::kRed, frc::Color::kBlue);\n frc::LEDPattern progressPattern =\n basePattern.Mask(frc::LEDPattern::ProgressMaskLayer([&]() {\n return elevator.GetHeight() / elevator.MaxHeight();\n });\n\n:param progressFunction: the function to call to determine the progress.\n This should return values in the range [0, 1]; any values outside that\n range will be clamped.\n\n:returns: the mask pattern", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "progressMaskLayer"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.LEDPattern", "args": [{"name": "saturation", "type": "int"}, {"name": "value", "type": "int"}], "tooltip": "Creates an LED pattern that displays a rainbow across the color wheel. The\nrainbow pattern will stretch across the entire length of the LED strip.\n\n:param saturation: the saturation of the HSV colors, in [0, 255]\n:param value: the value of the HSV colors, in [0, 255]\n\n:returns: the rainbow pattern", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "rainbow"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.LEDPattern", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}], "tooltip": "Creates a pattern that displays this one in reverse. Scrolling patterns\nwill scroll in the opposite direction (but at the same speed). It will\ntreat the end of an LED strip as the start, and the start of the strip as\nthe end. This can be useful for making ping-pong patterns that travel from\none end of an LED strip to the other, then reverse direction and move back\nto the start. This can also be useful when working with LED strips\nconnected in a serpentine pattern (where the start of one strip is\nconnected to the end of the previous one).\n\n:returns: the reverse pattern", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "reversed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.LEDPattern", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "velocity", "type": "wpimath.units.meters_per_second"}, {"name": "ledSpacing", "type": "wpimath.units.meters"}], "tooltip": "Creates a pattern that plays this one scrolling up an LED strip. A negative\nvelocity makes the pattern play in reverse.\n\nFor example, scrolling a pattern at 4 inches per second along an LED\nstrip with 60 LEDs per meter:\n\n::\n\n // LEDs per meter, a known value taken from the spec sheet of our\n particular LED strip units::meter_t LED_SPACING = units::meter_t{1 /60.0};\n \n frc::LEDPattern rainbow = frc::LEDPattern::Rainbow();\n frc::LEDPattern scrollingRainbow =\n rainbow.ScrollAtAbsoluteSpeed(units::feet_per_second_t{1 / 3.0},\n LED_SPACING);\n\nNote that this pattern will scroll *faster* if applied to a less\ndense LED strip (such as 30 LEDs per meter), or *slower* if applied to\na denser LED strip (such as 120 or 144 LEDs per meter).\n\n:param velocity: how fast the pattern should move along a physical LED strip\n:param ledSpacing: the distance between adjacent LEDs on the physical LED\n strip\n\n:returns: the scrolling pattern", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "scrollAtAbsoluteSpeed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.LEDPattern", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "velocity", "type": "wpimath.units.hertz"}], "tooltip": "Creates a pattern that plays this one scrolling up the buffer. The velocity\ncontrols how fast the pattern returns back to its original position, and is\nin terms of the length of the LED strip; scrolling across a segment that is\n10 LEDs long will travel twice as fast as on a segment that's only 5 LEDs\nlong (assuming equal LED density on both segments).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "scrollAtRelativeSpeed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.LEDPattern", "args": [{"name": "color", "type": "wpilib.Color"}], "tooltip": "Creates a pattern that displays a single static color along the entire\nlength of the LED strip.\n\n:param color: the color to display\n\n:returns: the pattern", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "solid"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.LEDPattern", "args": [{"name": "steps", "type": "List[tuple[float, wpilib._wpilib.Color]]"}], "tooltip": "Display a set of colors in steps across the length of the LED strip. No\ninterpolation is done between colors. Colors are specified by the first LED\non the strip to show that color. The last color in the map will be\ndisplayed all the way to the end of the strip. LEDs positioned before the\nfirst specified step will be turned off (you can think of this as if\nthere's a 0 -> black step by default).\n\n:param steps: a map of progress to the color to start displaying at that\n position along the LED strip\n\n:returns: a motionless step pattern", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "steps"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLEDPattern"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.LEDPattern", "args": [{"name": "lEDPattern", "type": "wpilib.LEDPattern"}, {"name": "signal", "type": "Callable[[], bool]"}], "tooltip": "Creates a pattern that blinks this one on and off in sync with a true/false\nsignal. The pattern will play while the signal outputs ``true``, and\nwill turn off while the signal outputs\n``false``.\n\n:param signal: the signal to synchronize with\n\n:returns: the blinking pattern", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.LEDPattern", "FUNC": "synchronizedBlink"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLEDPattern"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.LEDPattern.GradientType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.LEDPattern.GradientType", "ENUM_VALUE": "kContinuous"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.LEDPattern.GradientType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.LEDPattern.GradientType", "ENUM_VALUE": "kDiscontinuous"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "LEDPattern",
- contents: contents,
- className: "wpilib.LEDPattern",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.LiveWindow.ts b/src/blocks/generated/class_wpilib.LiveWindow.ts
deleted file mode 100644
index 1deddb6e..00000000
--- a/src/blocks/generated/class_wpilib.LiveWindow.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.LiveWindow
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 9 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Disable ALL telemetry.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LiveWindow", "FUNC": "disableAllTelemetry"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "component", "type": "wpiutil.Sendable"}], "tooltip": "Disable telemetry for a single component.\n\n:param component: sendable", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LiveWindow", "FUNC": "disableTelemetry"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Enable ALL telemetry.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LiveWindow", "FUNC": "enableAllTelemetry"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "component", "type": "wpiutil.Sendable"}], "tooltip": "Enable telemetry for a single component.\n\n:param component: sendable", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LiveWindow", "FUNC": "enableTelemetry"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Returns true if LiveWindow is enabled.\n\n:returns: True if LiveWindow is enabled.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LiveWindow", "FUNC": "isEnabled"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "func", "type": "Callable[[], None]"}], "tooltip": "Sets function to be called when LiveWindow is disabled.\n\n:param func: function (or nullptr for none)", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LiveWindow", "FUNC": "setDisabledCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "enabled", "type": "bool"}], "tooltip": "Change the enabled status of LiveWindow.\n\nIf it changes to enabled, start livewindow running otherwise stop it", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LiveWindow", "FUNC": "setEnabled"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "func", "type": "Callable[[], None]"}], "tooltip": "Sets function to be called when LiveWindow is enabled.\n\n:param func: function (or nullptr for none)", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LiveWindow", "FUNC": "setEnabledCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Tell all the sensors to update (send) their values.\n\nActuators are handled through callbacks on their value changing from the\nSmartDashboard widgets.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.LiveWindow", "FUNC": "updateValues"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "LiveWindow",
- contents: contents,
- className: "wpilib.LiveWindow",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.Mechanism2d.ts b/src/blocks/generated/class_wpilib.Mechanism2d.ts
deleted file mode 100644
index ed927bf2..00000000
--- a/src/blocks/generated/class_wpilib.Mechanism2d.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.Mechanism2d
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 4 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMechanism2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Mechanism2d", "args": [{"name": "width", "type": "float"}, {"name": "height", "type": "float"}, {"name": "backgroundColor", "type": "wpilib.Color8Bit"}], "tooltip": "Create a new Mechanism2d with the given dimensions and background color.\n\nThe dimensions represent the canvas that all the nodes are drawn on. The\ndefault color is dark blue.\n\n:param width: the width\n:param height: the height\n:param backgroundColor: the background color", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Mechanism2d"}, "inputs": {"ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor8Bit"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMechanismRoot2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.MechanismRoot2d", "args": [{"name": "mechanism2d", "type": "wpilib.Mechanism2d"}, {"name": "name", "type": "str"}, {"name": "x", "type": "float"}, {"name": "y", "type": "float"}], "tooltip": "Get or create a root in this Mechanism2d with the given name and\nposition.\n\nIf a root with the given name already exists, the given x and y\ncoordinates are not used.\n\n:param name: the root name\n:param x: the root x coordinate\n:param y: the root y coordinate\n\n:returns: a new root object, or the existing one with the given name.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Mechanism2d", "FUNC": "getRoot"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanism2d"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mechanism2d", "type": "wpilib.Mechanism2d"}, {"name": "builder", "type": "ntcore.NTSendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Mechanism2d", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanism2d"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNTSendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mechanism2d", "type": "wpilib.Mechanism2d"}, {"name": "color", "type": "wpilib.Color8Bit"}], "tooltip": "Set the Mechanism2d background color.\n\n:param color: the new background color", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Mechanism2d", "FUNC": "setBackgroundColor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanism2d"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor8Bit"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Mechanism2d",
- contents: contents,
- className: "wpilib.Mechanism2d",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.MechanismLigament2d.ts b/src/blocks/generated/class_wpilib.MechanismLigament2d.ts
deleted file mode 100644
index 3f47b49b..00000000
--- a/src/blocks/generated/class_wpilib.MechanismLigament2d.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.MechanismLigament2d
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 10 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMechanismLigament2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.MechanismLigament2d", "args": [{"name": "mechanismObject2d", "type": "wpilib.MechanismObject2d"}, {"name": "name", "type": "str"}, {"name": "length", "type": "float"}, {"name": "angle", "type": "wpimath.units.degrees"}, {"name": "lineWidth", "type": "float"}, {"name": "color", "type": "wpilib.Color8Bit"}], "tooltip": "Append a ligament node", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismObject2d", "FUNC": "appendLigament"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismObject2d"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor8Bit"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "mechanismLigament2d", "type": "wpilib.MechanismLigament2d"}], "tooltip": "Get the ligament's angle relative to its parent.\n\n:returns: the angle", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismLigament2d", "FUNC": "getAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismLigament2d"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myColor8Bit"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.Color8Bit", "args": [{"name": "mechanismLigament2d", "type": "wpilib.MechanismLigament2d"}], "tooltip": "Get the ligament color.\n\n:returns: the color of the line", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismLigament2d", "FUNC": "getColor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismLigament2d"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "mechanismLigament2d", "type": "wpilib.MechanismLigament2d"}], "tooltip": "Get the ligament length.\n\n:returns: the line length", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismLigament2d", "FUNC": "getLength"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismLigament2d"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "mechanismLigament2d", "type": "wpilib.MechanismLigament2d"}], "tooltip": "Get the line thickness.\n\n:returns: the line thickness", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismLigament2d", "FUNC": "getLineWeight"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismLigament2d"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "mechanismObject2d", "type": "wpilib.MechanismObject2d"}], "tooltip": "Retrieve the object's name.\n\n:returns: the object's name relative to its parent.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismObject2d", "FUNC": "getName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismObject2d"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mechanismLigament2d", "type": "wpilib.MechanismLigament2d"}, {"name": "angle", "type": "wpimath.units.degrees"}], "tooltip": "Set the ligament's angle relative to its parent.\n\n:param angle: the angle", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismLigament2d", "FUNC": "setAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismLigament2d"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mechanismLigament2d", "type": "wpilib.MechanismLigament2d"}, {"name": "color", "type": "wpilib.Color8Bit"}], "tooltip": "Set the ligament color.\n\n:param color: the color of the line", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismLigament2d", "FUNC": "setColor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismLigament2d"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor8Bit"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mechanismLigament2d", "type": "wpilib.MechanismLigament2d"}, {"name": "length", "type": "float"}], "tooltip": "Set the ligament's length.\n\n:param length: the line length", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismLigament2d", "FUNC": "setLength"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismLigament2d"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mechanismLigament2d", "type": "wpilib.MechanismLigament2d"}, {"name": "lineWidth", "type": "float"}], "tooltip": "Set the line thickness.\n\n:param lineWidth: the line thickness", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismLigament2d", "FUNC": "setLineWeight"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismLigament2d"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "MechanismLigament2d",
- contents: contents,
- className: "wpilib.MechanismLigament2d",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.MechanismObject2d.ts b/src/blocks/generated/class_wpilib.MechanismObject2d.ts
deleted file mode 100644
index 2be26b2a..00000000
--- a/src/blocks/generated/class_wpilib.MechanismObject2d.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.MechanismObject2d
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 2 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMechanismLigament2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.MechanismLigament2d", "args": [{"name": "mechanismObject2d", "type": "wpilib.MechanismObject2d"}, {"name": "name", "type": "str"}, {"name": "length", "type": "float"}, {"name": "angle", "type": "wpimath.units.degrees"}, {"name": "lineWidth", "type": "float"}, {"name": "color", "type": "wpilib.Color8Bit"}], "tooltip": "Append a ligament node", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismObject2d", "FUNC": "appendLigament"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismObject2d"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor8Bit"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "mechanismObject2d", "type": "wpilib.MechanismObject2d"}], "tooltip": "Retrieve the object's name.\n\n:returns: the object's name relative to its parent.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismObject2d", "FUNC": "getName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismObject2d"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "MechanismObject2d",
- contents: contents,
- className: "wpilib.MechanismObject2d",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.MechanismRoot2d.ts b/src/blocks/generated/class_wpilib.MechanismRoot2d.ts
deleted file mode 100644
index 781e82c5..00000000
--- a/src/blocks/generated/class_wpilib.MechanismRoot2d.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.MechanismRoot2d
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 3 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMechanismLigament2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.MechanismLigament2d", "args": [{"name": "mechanismRoot2d", "type": "wpilib.MechanismRoot2d"}, {"name": "name", "type": "str"}, {"name": "length", "type": "float"}, {"name": "angle", "type": "wpimath.units.degrees"}, {"name": "lineWidth", "type": "float"}, {"name": "color", "type": "wpilib.Color8Bit"}], "tooltip": "Append a ligament node", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismRoot2d", "FUNC": "appendLigament"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismRoot2d"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myColor8Bit"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "mechanismRoot2d", "type": "wpilib.MechanismRoot2d"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismRoot2d", "FUNC": "getName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismRoot2d"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mechanismRoot2d", "type": "wpilib.MechanismRoot2d"}, {"name": "x", "type": "float"}, {"name": "y", "type": "float"}], "tooltip": "Set the root's position.\n\n:param x: new x coordinate\n:param y: new y coordinate", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MechanismRoot2d", "FUNC": "setPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMechanismRoot2d"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "MechanismRoot2d",
- contents: contents,
- className: "wpilib.MechanismRoot2d",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.MotorControllerGroup.ts b/src/blocks/generated/class_wpilib.MotorControllerGroup.ts
deleted file mode 100644
index 6e2a38af..00000000
--- a/src/blocks/generated/class_wpilib.MotorControllerGroup.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.MotorControllerGroup
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 9 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMotorControllerGroup"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.MotorControllerGroup", "args": [{"name": "args", "type": "tuple"}], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorControllerGroup"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorControllerGroup", "type": "wpilib.MotorControllerGroup"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorControllerGroup", "FUNC": "disable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorControllerGroup"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "motorControllerGroup", "type": "wpilib.MotorControllerGroup"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorControllerGroup", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorControllerGroup"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorControllerGroup", "type": "wpilib.MotorControllerGroup"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorControllerGroup", "FUNC": "getInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorControllerGroup"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorControllerGroup", "type": "wpilib.MotorControllerGroup"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorControllerGroup", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorControllerGroup"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorControllerGroup", "type": "wpilib.MotorControllerGroup"}, {"name": "speed", "type": "float"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorControllerGroup", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorControllerGroup"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorControllerGroup", "type": "wpilib.MotorControllerGroup"}, {"name": "isInverted", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorControllerGroup", "FUNC": "setInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorControllerGroup"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorControllerGroup", "type": "wpilib.MotorControllerGroup"}, {"name": "output", "type": "wpimath.units.volts"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorControllerGroup", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorControllerGroup"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorControllerGroup", "type": "wpilib.MotorControllerGroup"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorControllerGroup", "FUNC": "stopMotor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorControllerGroup"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "MotorControllerGroup",
- contents: contents,
- className: "wpilib.MotorControllerGroup",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.MotorSafety.ts b/src/blocks/generated/class_wpilib.MotorSafety.ts
deleted file mode 100644
index 32787a52..00000000
--- a/src/blocks/generated/class_wpilib.MotorSafety.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.MotorSafety
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 11 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMotorSafety"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.MotorSafety", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Check if this motor has exceeded its timeout.\n\nThis method is called periodically to determine if this motor has exceeded\nits timeout value. If it has, the stop method is called, and the motor is\nshut down until its value is updated again.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "check"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Check the motors to see if any have timed out.\n\nThis static method is called periodically to poll all the motors and stop\nany that have timed out.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "checkMotors"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Feed the motor safety object.\n\nResets the timer on this object that is used to do the timeouts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "feed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Returns a description to print when an error occurs.\n\n:returns: Description to print when an error occurs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "getDescription"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Retrieve the timeout value for the corresponding motor safety object.\n\n:returns: the timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "getExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Determine if the motor is still operating or has timed out.\n\n:returns: true if the motor is still operating normally and hasn't timed out.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isAlive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Return the state of the motor safety enabled flag.\n\nReturn if the motor safety is currently enabled for this device.\n\n:returns: True if motor safety is enforced for this device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "expirationTime", "type": "wpimath.units.seconds"}], "tooltip": "Set the expiration time for the corresponding motor safety object.\n\n:param expirationTime: The timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enable/disable motor safety for this device.\n\nTurn on and off the motor safety option for this PWM object.\n\n:param enabled: True if motor safety is enforced for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Called to stop the motor when the timeout expires.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "stopMotor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "MotorSafety",
- contents: contents,
- className: "wpilib.MotorSafety",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.NidecBrushless.ts b/src/blocks/generated/class_wpilib.NidecBrushless.ts
deleted file mode 100644
index 3aca7c69..00000000
--- a/src/blocks/generated/class_wpilib.NidecBrushless.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.NidecBrushless
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 20 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myNidecBrushless"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.NidecBrushless", "args": [{"name": "pwmChannel", "type": "int"}, {"name": "dioChannel", "type": "int"}], "tooltip": "Constructor.\n\n:param pwmChannel: The PWM channel that the Nidec Brushless controller is\n attached to. 0-9 are on-board, 10-19 are on the MXP port.\n:param dioChannel: The DIO channel that the Nidec Brushless controller is\n attached to. 0-9 are on-board, 10-25 are on the MXP port.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.NidecBrushless"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Check if this motor has exceeded its timeout.\n\nThis method is called periodically to determine if this motor has exceeded\nits timeout value. If it has, the stop method is called, and the motor is\nshut down until its value is updated again.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "check"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Check the motors to see if any have timed out.\n\nThis static method is called periodically to poll all the motors and stop\nany that have timed out.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.NidecBrushless", "FUNC": "checkMotors"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "nidecBrushless", "type": "wpilib.NidecBrushless"}], "tooltip": "Disable the motor. The Enable() function must be called to re-enable the\nmotor.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.NidecBrushless", "FUNC": "disable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNidecBrushless"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "nidecBrushless", "type": "wpilib.NidecBrushless"}], "tooltip": "Re-enable the motor after Disable() has been called. The Set() function\nmust be called to set a new motor speed.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.NidecBrushless", "FUNC": "enable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNidecBrushless"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Feed the motor safety object.\n\nResets the timer on this object that is used to do the timeouts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "feed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "nidecBrushless", "type": "wpilib.NidecBrushless"}], "tooltip": "Get the recently set value of the PWM.\n\n:returns: The most recently set value for the PWM between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.NidecBrushless", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNidecBrushless"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "nidecBrushless", "type": "wpilib.NidecBrushless"}], "tooltip": "Gets the channel number associated with the object.\n\n:returns: The channel number.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.NidecBrushless", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNidecBrushless"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "nidecBrushless", "type": "wpilib.NidecBrushless"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.NidecBrushless", "FUNC": "getDescription"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNidecBrushless"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Retrieve the timeout value for the corresponding motor safety object.\n\n:returns: the timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "getExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "nidecBrushless", "type": "wpilib.NidecBrushless"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.NidecBrushless", "FUNC": "getInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNidecBrushless"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "nidecBrushless", "type": "wpilib.NidecBrushless"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.NidecBrushless", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNidecBrushless"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Determine if the motor is still operating or has timed out.\n\n:returns: true if the motor is still operating normally and hasn't timed out.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isAlive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Return the state of the motor safety enabled flag.\n\nReturn if the motor safety is currently enabled for this device.\n\n:returns: True if motor safety is enforced for this device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "nidecBrushless", "type": "wpilib.NidecBrushless"}, {"name": "speed", "type": "float"}], "tooltip": "Set the PWM value.\n\nThe PWM value is set using a range of -1.0 to 1.0, appropriately scaling\nthe value for the FPGA.\n\n:param speed: The speed value between -1.0 and 1.0 to set.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.NidecBrushless", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNidecBrushless"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "expirationTime", "type": "wpimath.units.seconds"}], "tooltip": "Set the expiration time for the corresponding motor safety object.\n\n:param expirationTime: The timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "nidecBrushless", "type": "wpilib.NidecBrushless"}, {"name": "isInverted", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.NidecBrushless", "FUNC": "setInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNidecBrushless"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enable/disable motor safety for this device.\n\nTurn on and off the motor safety option for this PWM object.\n\n:param enabled: True if motor safety is enforced for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorController", "type": "wpilib.interfaces.MotorController"}, {"name": "output", "type": "wpimath.units.volts"}], "tooltip": "Sets the voltage output of the MotorController. Compensates for\nthe current bus voltage to ensure that the desired voltage is output even\nif the battery voltage is below 12V - highly useful when the voltage\noutputs are \"meaningful\" (e.g. they come from a feedforward calculation).\n\nNOTE: This function *must* be called regularly in order for voltage\ncompensation to work properly - unlike the ordinary set function, it is not\n\"set it and forget it.\"\n\n:param output: The voltage to output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.MotorController", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "nidecBrushless", "type": "wpilib.NidecBrushless"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.NidecBrushless", "FUNC": "stopMotor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNidecBrushless"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "NidecBrushless",
- contents: contents,
- className: "wpilib.NidecBrushless",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.Notifier.ts b/src/blocks/generated/class_wpilib.Notifier.ts
deleted file mode 100644
index 8cd3686f..00000000
--- a/src/blocks/generated/class_wpilib.Notifier.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.Notifier
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myNotifier"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Notifier", "args": [{"name": "handler", "type": "Callable[[], None]"}], "tooltip": "Create a Notifier for timer event notification.\n\n:param handler: The handler is called at the notification time which is set\n using StartSingle or StartPeriodic.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Notifier"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "notifier", "type": "wpilib.Notifier"}, {"name": "handler", "type": "Callable[[], None]"}], "tooltip": "Change the handler function.\n\n:param handler: Handler", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Notifier", "FUNC": "setCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNotifier"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "realTime", "type": "bool"}, {"name": "priority", "type": "int"}], "tooltip": "Sets the HAL notifier thread priority.\n\nThe HAL notifier thread is responsible for managing the FPGA's notifier\ninterrupt and waking up user's Notifiers when it's their time to run.\nGiving the HAL notifier thread real-time priority helps ensure the user's\nreal-time Notifiers, if any, are notified to run in a timely manner.\n\n:param realTime: Set to true to set a real-time priority, false for standard\n priority.\n:param priority: Priority to set the thread to. For real-time, this is 1-99\n with 99 being highest. For non-real-time, this is forced to\n 0. See \"man 7 sched\" for more details.\n\n:returns: True on success.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Notifier", "FUNC": "setHALThreadPriority"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "notifier", "type": "wpilib.Notifier"}, {"name": "name", "type": "str"}], "tooltip": "Sets the name of the notifier. Used for debugging purposes only.\n\n:param name: Name", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Notifier", "FUNC": "setName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNotifier"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "notifier", "type": "wpilib.Notifier"}, {"name": "period", "type": "wpimath.units.seconds"}], "tooltip": "Register for periodic event notification.\n\nA timer event is queued for periodic event notification. Each time the\ninterrupt occurs, the event will be immediately requeued for the same time\ninterval.\n\n:param period: Period to call the handler starting one period\n after the call to this method.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Notifier", "FUNC": "startPeriodic"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNotifier"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "notifier", "type": "wpilib.Notifier"}, {"name": "delay", "type": "wpimath.units.seconds"}], "tooltip": "Register for single event notification.\n\nA timer event is queued for a single event after the specified delay.\n\n:param delay: Amount of time to wait before the handler is called.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Notifier", "FUNC": "startSingle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNotifier"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "notifier", "type": "wpilib.Notifier"}], "tooltip": "Stop timer events from occurring.\n\nStop any repeating timer events from occurring. This will also remove any\nsingle notification events from the queue.\n\nIf a timer-based call to the registered handler is in progress, this\nfunction will block until the handler call is complete.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Notifier", "FUNC": "stop"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNotifier"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Notifier",
- contents: contents,
- className: "wpilib.Notifier",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PS4Controller.Axis.ts b/src/blocks/generated/class_wpilib.PS4Controller.Axis.ts
deleted file mode 100644
index cb0fc846..00000000
--- a/src/blocks/generated/class_wpilib.PS4Controller.Axis.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PS4Controller.Axis
-
-export function initialize() {
- getPythonVariable.initializeClassVariableGetter("wpilib.PS4Controller.Axis", "int", ["kL2", "kLeftX", "kLeftY", "kR2", "kRightX", "kRightY"], []);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Axis", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Axis", "VAR": "kL2"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Axis", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Axis", "VAR": "kLeftX"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Axis", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Axis", "VAR": "kLeftY"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Axis", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Axis", "VAR": "kR2"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Axis", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Axis", "VAR": "kRightX"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Axis", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Axis", "VAR": "kRightY"}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAxis"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PS4Controller.Axis", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Axis"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Axis",
- contents: contents,
- className: "wpilib.PS4Controller.Axis",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PS4Controller.Button.ts b/src/blocks/generated/class_wpilib.PS4Controller.Button.ts
deleted file mode 100644
index 90e19eda..00000000
--- a/src/blocks/generated/class_wpilib.PS4Controller.Button.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PS4Controller.Button
-
-export function initialize() {
- getPythonVariable.initializeClassVariableGetter("wpilib.PS4Controller.Button", "int", ["kCircle", "kCross", "kL1", "kL2", "kL3", "kOptions", "kPS", "kR1", "kR2", "kR3", "kShare", "kSquare", "kTouchpad", "kTriangle"], []);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 15 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button", "VAR": "kCircle"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button", "VAR": "kCross"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button", "VAR": "kL1"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button", "VAR": "kL2"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button", "VAR": "kL3"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button", "VAR": "kOptions"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button", "VAR": "kPS"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button", "VAR": "kR1"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button", "VAR": "kR2"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button", "VAR": "kR3"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button", "VAR": "kShare"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button", "VAR": "kSquare"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button", "VAR": "kTouchpad"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS4Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button", "VAR": "kTriangle"}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myButton"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PS4Controller.Button", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller.Button"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Button",
- contents: contents,
- className: "wpilib.PS4Controller.Button",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PS4Controller.ts b/src/blocks/generated/class_wpilib.PS4Controller.ts
deleted file mode 100644
index 7112d519..00000000
--- a/src/blocks/generated/class_wpilib.PS4Controller.ts
+++ /dev/null
@@ -1,123 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PS4Controller
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 97 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPS4Controller"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PS4Controller", "args": [{"name": "port", "type": "int"}], "tooltip": "Construct an instance of a controller.\n\nThe controller index is the USB port on the Driver Station.\n\n:param port: The port on the Driver Station that the controller is plugged\n into (0-5).", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the left trigger 1 button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the left trigger 1 button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "L1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the left trigger 2 button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the left trigger 2 button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "L2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the L3 (left stick) button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the L3 (left stick) button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "L3"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "angle", "type": "int"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around this angle of a POV on the\nHID.\n\nThe POV angles start at 0 in the up direction, and increase clockwise\n(eg right is 90, upper-left is 315).\n\n:param loop: the event loop instance to attach the event to.\n:param angle: POV angle in degrees, or -1 for the center / not pressed.\n\n:returns: a BooleanEvent instance based around this angle of a POV on the\n HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "pov", "type": "int"}, {"name": "angle", "type": "int"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around this angle of a POV on the\nHID.\n\nThe POV angles start at 0 in the up direction, and increase clockwise\n(eg right is 90, upper-left is 315).\n\n:param loop: the event loop instance to attach the event to.\n:param pov: index of the POV to read (starting at 0). Defaults to 0.\n:param angle: POV angle in degrees, or -1 for the center / not pressed.\n\n:returns: a BooleanEvent instance based around this angle of a POV on the\n HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the center (not pressed) of\nthe default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the center of a POV on the\n HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVCenter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 180 degree angle (down)\nof the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 180 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVDown"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 225 degree angle (down\nleft) of the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 225 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVDownLeft"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 135 degree angle (right\ndown) of the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 135 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVDownRight"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 270 degree angle (left)\nof the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 270 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVLeft"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 90 degree angle (right)\nof the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 90 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVRight"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 0 degree angle (up) of\nthe default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 0 degree angle of a POV on\n the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVUp"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 315 degree angle (left\nup) of the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 315 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVUpLeft"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 45 degree angle (right\nup) of the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 45 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVUpRight"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the PlayStation button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the PlayStation button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "PS"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the right trigger 1 button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the right trigger 1 button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "R1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the right trigger 2 button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the right trigger 2 button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "R2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the R3 (right stick) button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the R3 (right stick) button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "R3"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "axis", "type": "int"}, {"name": "threshold", "type": "float"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance that is true when the axis value is greater\nthan threshold\n\n:param axis: The axis to read, starting at 0.\n:param threshold: The value above which this trigger should return true.\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance that is true when the axis value is greater than\n the provided threshold.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "axisGreaterThan"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "axis", "type": "int"}, {"name": "threshold", "type": "float"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance that is true when the axis value is less than\nthreshold\n\n:param axis: The axis to read, starting at 0.\n:param threshold: The value below which this trigger should return true.\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance that is true when the axis value is less than the\n provided threshold.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "axisLessThan"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "button", "type": "int"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around this button's digital signal.\n\n:param button: the button index\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the button's digital signal attached\n to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the circle button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the circle button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "circle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the cross button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the cross button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "cross"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the number of axes for the HID.\n\n:returns: the number of axis for the current HID", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getAxisCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "axis", "type": "int"}], "tooltip": "Get the axis type of a joystick axis.\n\n:returns: the axis type of a joystick axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getAxisType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the number of buttons for the HID.\n\n:returns: the number of buttons on the current HID", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getButtonCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the circle button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getCircleButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the circle button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getCircleButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the circle button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getCircleButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the cross button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getCrossButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the cross button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getCrossButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the cross button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getCrossButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the left trigger 1 button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getL1Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the left trigger 1 button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getL1ButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the left trigger 1 button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getL1ButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Get the left trigger 2 axis value of the controller. Note that this axis\nis bound to the range of [0, 1] as opposed to the usual [-1, 1].\n\n:returns: the axis value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getL2Axis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the left trigger 2 button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getL2Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the left trigger 2 button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getL2ButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the left trigger 2 button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getL2ButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the L3 (left stick) button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getL3Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the L3 (left stick) button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getL3ButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the L3 (left stick) button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getL3ButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Get the X axis value of left side of the controller.\n\n:returns: the axis value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getLeftX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Get the Y axis value of left side of the controller.\n\n:returns: the axis value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getLeftY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the name of the HID.\n\n:returns: the name of the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the options button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getOptionsButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the options button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getOptionsButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the options button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getOptionsButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "pov", "type": "int"}], "tooltip": "Get the angle in degrees of a POV on the HID.\n\nThe POV angles start at 0 in the up direction, and increase clockwise\n(e.g. right is 90, upper-left is 315).\n\n:param pov: The index of the POV to read (starting at 0)\n\n:returns: the angle of the POV in degrees, or -1 if the POV is not pressed.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"shadow": {"type": "math_number", "fields": {"NUM": 0.0}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the number of POVs for the HID.\n\n:returns: the number of POVs for the current HID", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getPOVCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the PlayStation button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getPSButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the PlayStation button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getPSButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the PlayStation button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getPSButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the port number of the HID.\n\n:returns: The port number of the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getPort"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the right trigger 1 button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getR1Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the right trigger 1 button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getR1ButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the right trigger 1 button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getR1ButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Get the right trigger 2 axis value of the controller. Note that this axis\nis bound to the range of [0, 1] as opposed to the usual [-1, 1].\n\n:returns: the axis value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getR2Axis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the right trigger 2 button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getR2Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the right trigger 2 button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getR2ButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the right trigger 2 button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getR2ButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the R3 (right stick) button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getR3Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the R3 (right stick) button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getR3ButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the R3 (right stick) button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getR3ButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "axis", "type": "int"}], "tooltip": "Get the value of the axis.\n\n:param axis: The axis to read, starting at 0.\n\n:returns: The value of the axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getRawAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "button", "type": "int"}], "tooltip": "Get the button value (starting at button 1).\n\nThe buttons are returned in a single 16 bit value with one bit representing\nthe state of each button. The appropriate button is returned as a boolean\nvalue.\n\nThis method returns true if the button is being held down at the time\nthat this method is being called.\n\n:param button: The button number to be read (starting at 1)\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getRawButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "button", "type": "int"}], "tooltip": "Whether the button was pressed since the last check. %Button indexes begin\nat 1.\n\nThis method returns true if the button went from not pressed to held down\nsince the last time this method was called. This is useful if you only\nwant to call a function once when you press the button.\n\n:param button: The button index, beginning at 1.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getRawButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "button", "type": "int"}], "tooltip": "Whether the button was released since the last check. %Button indexes begin\nat 1.\n\nThis method returns true if the button went from held down to not pressed\nsince the last time this method was called. This is useful if you only\nwant to call a function once when you release the button.\n\n:param button: The button index, beginning at 1.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getRawButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Get the X axis value of right side of the controller.\n\n:returns: the axis value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getRightX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Get the Y axis value of right side of the controller.\n\n:returns: the axis value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getRightY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the share button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getShareButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the share button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getShareButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the share button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getShareButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the square button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getSquareButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the square button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getSquareButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the square button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getSquareButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the touchpad button on the controller.\n\n:deprecated: Use GetTouchpadButton instead. This function is deprecated for\n removal to make function names consistent to allow the HID classes to be\n automatically generated.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getTouchpad"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the touchpad button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getTouchpadButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the touchpad button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getTouchpadButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the touchpad button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getTouchpadButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the touchpad was pressed since the last check.\n\n:deprecated: Use GetTouchpadButtonPressed instead. This function is\n deprecated for removal to make function names consistent to allow the HID\n classes to be automatically generated.\n\n:returns: Whether the touchpad was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getTouchpadPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the touchpad was released since the last check.\n\n:deprecated: Use GetLeftBumperButton instead. This function is deprecated\n for removal to make function names consistent to allow the HID classes to\n be automatically generated.\n\n:returns: Whether the touchpad was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getTouchpadReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Read the value of the triangle button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getTriangleButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the triangle button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getTriangleButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}], "tooltip": "Whether the triangle button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "getTriangleButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myHIDType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.interfaces.GenericHID.HIDType", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the type of the HID.\n\n:returns: the type of the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get if the HID is connected.\n\n:returns: true if the HID is connected", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "isConnected"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the options button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the options button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "options"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "outputNumber", "type": "int"}, {"name": "value", "type": "bool"}], "tooltip": "Set a single HID output value for the HID.\n\n:param outputNumber: The index of the output to set (1-32)\n:param value: The value to set the output to", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "setOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "value", "type": "int"}], "tooltip": "Set all output values for the HID.\n\n:param value: The 32 bit output value (1 bit for each output)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "setOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.RumbleType"}, {"name": "value", "type": "float"}], "tooltip": "Set the rumble output for the HID.\n\nThe DS currently supports 2 rumble values, left rumble and right rumble.\n\n:param type: Which rumble value to set\n:param value: The normalized value (0 to 1) to set the rumble to", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "setRumble"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRumbleType"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the share button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the share button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "share"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the square button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the square button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "square"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the touchpad button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the touchpad button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "touchpad"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS4Controller", "type": "wpilib.PS4Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the triangle button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the triangle button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS4Controller", "FUNC": "triangle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PS4Controller",
- contents: contents,
- className: "wpilib.PS4Controller",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PS5Controller.Axis.ts b/src/blocks/generated/class_wpilib.PS5Controller.Axis.ts
deleted file mode 100644
index 9fc52de9..00000000
--- a/src/blocks/generated/class_wpilib.PS5Controller.Axis.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PS5Controller.Axis
-
-export function initialize() {
- getPythonVariable.initializeClassVariableGetter("wpilib.PS5Controller.Axis", "int", ["kL2", "kLeftX", "kLeftY", "kR2", "kRightX", "kRightY"], []);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 7 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Axis", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Axis", "VAR": "kL2"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Axis", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Axis", "VAR": "kLeftX"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Axis", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Axis", "VAR": "kLeftY"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Axis", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Axis", "VAR": "kR2"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Axis", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Axis", "VAR": "kRightX"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Axis", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Axis", "VAR": "kRightY"}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAxis"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PS5Controller.Axis", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Axis"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Axis",
- contents: contents,
- className: "wpilib.PS5Controller.Axis",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PS5Controller.Button.ts b/src/blocks/generated/class_wpilib.PS5Controller.Button.ts
deleted file mode 100644
index 520c1bbb..00000000
--- a/src/blocks/generated/class_wpilib.PS5Controller.Button.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PS5Controller.Button
-
-export function initialize() {
- getPythonVariable.initializeClassVariableGetter("wpilib.PS5Controller.Button", "int", ["kCircle", "kCreate", "kCross", "kL1", "kL2", "kL3", "kOptions", "kPS", "kR1", "kR2", "kR3", "kSquare", "kTouchpad", "kTriangle"], []);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 15 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button", "VAR": "kCircle"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button", "VAR": "kCreate"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button", "VAR": "kCross"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button", "VAR": "kL1"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button", "VAR": "kL2"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button", "VAR": "kL3"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button", "VAR": "kOptions"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button", "VAR": "kPS"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button", "VAR": "kR1"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button", "VAR": "kR2"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button", "VAR": "kR3"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button", "VAR": "kSquare"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button", "VAR": "kTouchpad"}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PS5Controller.Button", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button", "VAR": "kTriangle"}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myButton"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PS5Controller.Button", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller.Button"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Button",
- contents: contents,
- className: "wpilib.PS5Controller.Button",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PS5Controller.ts b/src/blocks/generated/class_wpilib.PS5Controller.ts
deleted file mode 100644
index 81a33048..00000000
--- a/src/blocks/generated/class_wpilib.PS5Controller.ts
+++ /dev/null
@@ -1,123 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PS5Controller
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 97 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPS5Controller"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PS5Controller", "args": [{"name": "port", "type": "int"}], "tooltip": "Construct an instance of a controller.\n\nThe controller index is the USB port on the Driver Station.\n\n:param port: The port on the Driver Station that the controller is plugged\n into (0-5).", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the left trigger 1 button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the left trigger 1 button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "L1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the left trigger 2 button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the left trigger 2 button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "L2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the L3 (left stick) button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the L3 (left stick) button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "L3"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "angle", "type": "int"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around this angle of a POV on the\nHID.\n\nThe POV angles start at 0 in the up direction, and increase clockwise\n(eg right is 90, upper-left is 315).\n\n:param loop: the event loop instance to attach the event to.\n:param angle: POV angle in degrees, or -1 for the center / not pressed.\n\n:returns: a BooleanEvent instance based around this angle of a POV on the\n HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "pov", "type": "int"}, {"name": "angle", "type": "int"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around this angle of a POV on the\nHID.\n\nThe POV angles start at 0 in the up direction, and increase clockwise\n(eg right is 90, upper-left is 315).\n\n:param loop: the event loop instance to attach the event to.\n:param pov: index of the POV to read (starting at 0). Defaults to 0.\n:param angle: POV angle in degrees, or -1 for the center / not pressed.\n\n:returns: a BooleanEvent instance based around this angle of a POV on the\n HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the center (not pressed) of\nthe default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the center of a POV on the\n HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVCenter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 180 degree angle (down)\nof the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 180 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVDown"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 225 degree angle (down\nleft) of the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 225 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVDownLeft"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 135 degree angle (right\ndown) of the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 135 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVDownRight"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 270 degree angle (left)\nof the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 270 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVLeft"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 90 degree angle (right)\nof the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 90 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVRight"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 0 degree angle (up) of\nthe default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 0 degree angle of a POV on\n the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVUp"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 315 degree angle (left\nup) of the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 315 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVUpLeft"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs a BooleanEvent instance based around the 45 degree angle (right\nup) of the default (index 0) POV on the HID.\n\n:returns: a BooleanEvent instance based around the 45 degree angle of a POV\n on the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "POVUpRight"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the PlayStation button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the PlayStation button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "PS"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the right trigger 1 button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the right trigger 1 button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "R1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the right trigger 2 button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the right trigger 2 button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "R2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the R3 (right stick) button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the R3 (right stick) button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "R3"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "axis", "type": "int"}, {"name": "threshold", "type": "float"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance that is true when the axis value is greater\nthan threshold\n\n:param axis: The axis to read, starting at 0.\n:param threshold: The value above which this trigger should return true.\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance that is true when the axis value is greater than\n the provided threshold.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "axisGreaterThan"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "axis", "type": "int"}, {"name": "threshold", "type": "float"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance that is true when the axis value is less than\nthreshold\n\n:param axis: The axis to read, starting at 0.\n:param threshold: The value below which this trigger should return true.\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance that is true when the axis value is less than the\n provided threshold.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "axisLessThan"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "button", "type": "int"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around this button's digital signal.\n\n:param button: the button index\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the button's digital signal attached\n to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the circle button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the circle button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "circle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the create button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the create button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "create"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the cross button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the cross button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "cross"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the number of axes for the HID.\n\n:returns: the number of axis for the current HID", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getAxisCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "axis", "type": "int"}], "tooltip": "Get the axis type of a joystick axis.\n\n:returns: the axis type of a joystick axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getAxisType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the number of buttons for the HID.\n\n:returns: the number of buttons on the current HID", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getButtonCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the circle button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getCircleButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the circle button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getCircleButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the circle button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getCircleButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the create button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getCreateButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the create button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getCreateButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the create button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getCreateButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the cross button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getCrossButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the cross button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getCrossButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the cross button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getCrossButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the left trigger 1 button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getL1Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the left trigger 1 button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getL1ButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the left trigger 1 button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getL1ButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Get the left trigger 2 axis value of the controller. Note that this axis\nis bound to the range of [0, 1] as opposed to the usual [-1, 1].\n\n:returns: the axis value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getL2Axis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the left trigger 2 button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getL2Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the left trigger 2 button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getL2ButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the left trigger 2 button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getL2ButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the L3 (left stick) button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getL3Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the L3 (left stick) button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getL3ButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the L3 (left stick) button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getL3ButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Get the X axis value of left side of the controller.\n\n:returns: the axis value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getLeftX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Get the Y axis value of left side of the controller.\n\n:returns: the axis value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getLeftY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the name of the HID.\n\n:returns: the name of the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the options button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getOptionsButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the options button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getOptionsButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the options button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getOptionsButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "pov", "type": "int"}], "tooltip": "Get the angle in degrees of a POV on the HID.\n\nThe POV angles start at 0 in the up direction, and increase clockwise\n(e.g. right is 90, upper-left is 315).\n\n:param pov: The index of the POV to read (starting at 0)\n\n:returns: the angle of the POV in degrees, or -1 if the POV is not pressed.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"shadow": {"type": "math_number", "fields": {"NUM": 0.0}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the number of POVs for the HID.\n\n:returns: the number of POVs for the current HID", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getPOVCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the PlayStation button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getPSButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the PlayStation button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getPSButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the PlayStation button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getPSButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the port number of the HID.\n\n:returns: The port number of the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getPort"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the right trigger 1 button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getR1Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the right trigger 1 button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getR1ButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the right trigger 1 button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getR1ButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Get the right trigger 2 axis value of the controller. Note that this axis\nis bound to the range of [0, 1] as opposed to the usual [-1, 1].\n\n:returns: the axis value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getR2Axis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the right trigger 2 button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getR2Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the right trigger 2 button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getR2ButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the right trigger 2 button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getR2ButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the R3 (right stick) button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getR3Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the R3 (right stick) button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getR3ButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the R3 (right stick) button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getR3ButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "axis", "type": "int"}], "tooltip": "Get the value of the axis.\n\n:param axis: The axis to read, starting at 0.\n\n:returns: The value of the axis.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getRawAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "button", "type": "int"}], "tooltip": "Get the button value (starting at button 1).\n\nThe buttons are returned in a single 16 bit value with one bit representing\nthe state of each button. The appropriate button is returned as a boolean\nvalue.\n\nThis method returns true if the button is being held down at the time\nthat this method is being called.\n\n:param button: The button number to be read (starting at 1)\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getRawButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "button", "type": "int"}], "tooltip": "Whether the button was pressed since the last check. %Button indexes begin\nat 1.\n\nThis method returns true if the button went from not pressed to held down\nsince the last time this method was called. This is useful if you only\nwant to call a function once when you press the button.\n\n:param button: The button index, beginning at 1.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getRawButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "button", "type": "int"}], "tooltip": "Whether the button was released since the last check. %Button indexes begin\nat 1.\n\nThis method returns true if the button went from held down to not pressed\nsince the last time this method was called. This is useful if you only\nwant to call a function once when you release the button.\n\n:param button: The button index, beginning at 1.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getRawButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Get the X axis value of right side of the controller.\n\n:returns: the axis value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getRightX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Get the Y axis value of right side of the controller.\n\n:returns: the axis value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getRightY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the square button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getSquareButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the square button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getSquareButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the square button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getSquareButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the touchpad button on the controller.\n\n:deprecated: Use GetTouchpadButton instead. This function is deprecated for\n removal to make function names consistent to allow the HID classes to be\n automatically generated.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getTouchpad"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the touchpad button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getTouchpadButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the touchpad button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getTouchpadButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the touchpad button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getTouchpadButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the touchpad was pressed since the last check.\n\n:deprecated: Use GetTouchpadButtonPressed instead. This function is\n deprecated for removal to make function names consistent to allow the HID\n classes to be automatically generated.\n\n:returns: Whether the touchpad was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getTouchpadPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the touchpad was released since the last check.\n\n:deprecated: Use GetLeftBumperButton instead. This function is deprecated\n for removal to make function names consistent to allow the HID classes to\n be automatically generated.\n\n:returns: Whether the touchpad was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getTouchpadReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Read the value of the triangle button on the controller.\n\n:returns: The state of the button.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getTriangleButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the triangle button was pressed since the last check.\n\n:returns: Whether the button was pressed since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getTriangleButtonPressed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}], "tooltip": "Whether the triangle button was released since the last check.\n\n:returns: Whether the button was released since the last check.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "getTriangleButtonReleased"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myHIDType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.interfaces.GenericHID.HIDType", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get the type of the HID.\n\n:returns: the type of the HID.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Get if the HID is connected.\n\n:returns: true if the HID is connected", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "isConnected"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the options button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the options button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "options"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "outputNumber", "type": "int"}, {"name": "value", "type": "bool"}], "tooltip": "Set a single HID output value for the HID.\n\n:param outputNumber: The index of the output to set (1-32)\n:param value: The value to set the output to", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "setOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "value", "type": "int"}], "tooltip": "Set all output values for the HID.\n\n:param value: The 32 bit output value (1 bit for each output)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "setOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHID", "type": "wpilib.interfaces.GenericHID"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.RumbleType"}, {"name": "value", "type": "float"}], "tooltip": "Set the rumble output for the HID.\n\nThe DS currently supports 2 rumble values, left rumble and right rumble.\n\n:param type: Which rumble value to set\n:param value: The normalized value (0 to 1) to set the rumble to", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.interfaces.GenericHID", "FUNC": "setRumble"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRumbleType"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the square button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the square button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "square"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the touchpad button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the touchpad button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "touchpad"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBooleanEvent"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.event.BooleanEvent", "args": [{"name": "pS5Controller", "type": "wpilib.PS5Controller"}, {"name": "loop", "type": "wpilib.event.EventLoop"}], "tooltip": "Constructs an event instance around the triangle button's\ndigital signal.\n\n:param loop: the event loop instance to attach the event to.\n\n:returns: an event instance representing the triangle button's\n digital signal attached to the given loop.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PS5Controller", "FUNC": "triangle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEventLoop"}}}}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PS5Controller",
- contents: contents,
- className: "wpilib.PS5Controller",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PWM.ts b/src/blocks/generated/class_wpilib.PWM.ts
deleted file mode 100644
index 100d0a12..00000000
--- a/src/blocks/generated/class_wpilib.PWM.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PWM
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.PWM.PeriodMultiplier", ["kPeriodMultiplier_1X", "kPeriodMultiplier_2X", "kPeriodMultiplier_4X"], "Represents the amount to multiply the minimum servo-pulse pwm period by.\n\nMembers:\n\n kPeriodMultiplier_1X : Don't skip pulses. PWM pulses occur every 5.05 ms\n\n kPeriodMultiplier_2X : Skip every other pulse. PWM pulses occur every 10.10 ms\n\n kPeriodMultiplier_4X : Skip three out of four pulses. PWM pulses occur every 20.20 ms");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 19 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPWM"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PWM", "args": [{"name": "channel", "type": "int"}, {"name": "registerSendable", "type": "bool"}], "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\n and LiveWindow", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM"}, "inputs": {"ARG1": {"shadow": {"type": "logic_boolean", "fields": {"BOOL": "TRUE"}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}, {"name": "eliminateDeadband", "type": "bool"}], "tooltip": "Optionally eliminate the deadband from a motor controller.\n\n:param eliminateDeadband: If true, set the motor curve on the motor\n controller to eliminate the deadband in the middle\n of the range. Otherwise, keep the full range\n without modifying any values.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "enableDeadbandElimination"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}, {"name": "max", "type": "wpimath.units.microseconds"}, {"name": "deadbandMax", "type": "wpimath.units.microseconds"}, {"name": "center", "type": "wpimath.units.microseconds"}, {"name": "deadbandMin", "type": "wpimath.units.microseconds"}, {"name": "min", "type": "wpimath.units.microseconds"}], "tooltip": "Get the bounds on the PWM values.\n\nThis gets the bounds on the PWM values for a particular each type of\ncontroller. The values determine the upper and lower speeds as well as the\ndeadband bracket.\n\n:param max: The maximum pwm value\n:param deadbandMax: The high end of the deadband range\n:param center: The center speed (off)\n:param deadbandMin: The low end of the deadband range\n:param min: The minimum pwm value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "getBounds"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pWM", "type": "wpilib.PWM"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWM", "type": "wpilib.PWM"}], "tooltip": "Get the PWM value in terms of a position.\n\nThis is intended to be used by servos.\n\n@pre SetBounds() called.\n\n:returns: The position the servo is set to between 0.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "getPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.microseconds", "args": [{"name": "pWM", "type": "wpilib.PWM"}], "tooltip": "Get the PWM pulse time directly from the hardware.\n\nRead a microsecond value from a PWM channel.\n\n:returns: Microsecond PWM control value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "getPulseTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWM", "type": "wpilib.PWM"}], "tooltip": "Get the PWM value in terms of speed.\n\nThis is intended to be used by motor controllers.\n\n@pre SetBounds() called.\n\n:returns: The most recently set speed between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "getSpeed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendable", "type": "wpiutil.Sendable"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "Initializes this Sendable object.\n\n:param builder: sendable builder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpiutil.Sendable", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}], "tooltip": "Sets the PWM output to be a continuous high signal while enabled.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setAlwaysHighMode"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}, {"name": "max", "type": "wpimath.units.microseconds"}, {"name": "deadbandMax", "type": "wpimath.units.microseconds"}, {"name": "center", "type": "wpimath.units.microseconds"}, {"name": "deadbandMin", "type": "wpimath.units.microseconds"}, {"name": "min", "type": "wpimath.units.microseconds"}], "tooltip": "Set the bounds on the PWM pulse widths.\n\nThis sets the bounds on the PWM values for a particular type of controller.\nThe values determine the upper and lower speeds as well as the deadband\nbracket.\n\n:param max: The max PWM pulse width in us\n:param deadbandMax: The high end of the deadband range pulse width in us\n:param center: The center (off) pulse width in us\n:param deadbandMin: The low end of the deadband pulse width in us\n:param min: The minimum pulse width in us", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setBounds"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}], "tooltip": "Temporarily disables the PWM output. The next set call will re-enable\nthe output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setDisabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}, {"name": "mult", "type": "wpilib.PWM.PeriodMultiplier"}], "tooltip": "Slow down the PWM signal for old devices.\n\n:param mult: The period multiplier to apply to this channel", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setPeriodMultiplier"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPeriodMultiplier"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}, {"name": "pos", "type": "float"}], "tooltip": "Set the PWM value based on a position.\n\nThis is intended to be used by servos.\n\n@pre SetBounds() called.\n\n:param pos: The position to set the servo between 0.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}, {"name": "time", "type": "wpimath.units.microseconds"}], "tooltip": "Set the PWM pulse time directly to the hardware.\n\nWrite a microsecond value to a PWM channel.\n\n:param time: Microsecond PWM value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setPulseTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}, {"name": "speed", "type": "float"}], "tooltip": "Set the PWM value based on a speed.\n\nThis is intended to be used by motor controllers.\n\n@pre SetBounds() called.\n\n:param speed: The speed to set the motor controller between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setSpeed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}], "tooltip": "Latches PWM to zero.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setZeroLatch"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.PWM.PeriodMultiplier", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.PWM.PeriodMultiplier", "ENUM_VALUE": "kPeriodMultiplier_1X"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.PWM.PeriodMultiplier", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.PWM.PeriodMultiplier", "ENUM_VALUE": "kPeriodMultiplier_2X"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.PWM.PeriodMultiplier", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.PWM.PeriodMultiplier", "ENUM_VALUE": "kPeriodMultiplier_4X"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PWM",
- contents: contents,
- className: "wpilib.PWM",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PWMMotorController.ts b/src/blocks/generated/class_wpilib.PWMMotorController.ts
deleted file mode 100644
index aa756b0c..00000000
--- a/src/blocks/generated/class_wpilib.PWMMotorController.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PWMMotorController
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 22 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPWMMotorController"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PWMMotorController", "args": [{"name": "name", "type": "str"}, {"name": "channel", "type": "int"}], "tooltip": "Constructor for a PWM Motor %Controller connected via PWM.\n\n:param name: Name to use for SendableRegistry\n:param channel: The PWM channel that the controller is attached to. 0-9 are\n on-board, 10-19 are on the MXP port", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "follower", "type": "wpilib.PWMMotorController"}], "tooltip": "Make the given PWM motor controller follow the output of this one.\n\n:param follower: The motor controller follower.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "addFollower"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Check if this motor has exceeded its timeout.\n\nThis method is called periodically to determine if this motor has exceeded\nits timeout value. If it has, the stop method is called, and the motor is\nshut down until its value is updated again.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "check"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Check the motors to see if any have timed out.\n\nThis static method is called periodically to poll all the motors and stop\nany that have timed out.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "checkMotors"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "disable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "eliminateDeadband", "type": "bool"}], "tooltip": "Optionally eliminate the deadband from a motor controller.\n\n:param eliminateDeadband: If true, set the motor curve on the motor\n controller to eliminate the deadband in the middle\n of the range. Otherwise, keep the full range\n without modifying any values.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "enableDeadbandElimination"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Feed the motor safety object.\n\nResets the timer on this object that is used to do the timeouts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "feed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Get the recently set value of the PWM. This value is affected by the\ninversion property. If you want the value that is sent directly to the\nMotorController, use PWM::GetSpeed() instead.\n\n:returns: The most recently set value for the PWM between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getDescription"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Retrieve the timeout value for the corresponding motor safety object.\n\n:returns: the timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "getExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Gets the voltage output of the motor controller, nominally between -12 V\nand 12 V.\n\n:returns: The voltage of the motor controller, nominally between -12 V and 12\n V.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendable", "type": "wpiutil.Sendable"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "Initializes this Sendable object.\n\n:param builder: sendable builder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpiutil.Sendable", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Determine if the motor is still operating or has timed out.\n\n:returns: true if the motor is still operating normally and hasn't timed out.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isAlive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Return the state of the motor safety enabled flag.\n\nReturn if the motor safety is currently enabled for this device.\n\n:returns: True if motor safety is enforced for this device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "value", "type": "float"}], "tooltip": "Set the PWM value.\n\nThe PWM value is set using a range of -1.0 to 1.0, appropriately scaling\nthe value for the FPGA.\n\n:param value: The speed value between -1.0 and 1.0 to set.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "expirationTime", "type": "wpimath.units.seconds"}], "tooltip": "Set the expiration time for the corresponding motor safety object.\n\n:param expirationTime: The timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "isInverted", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enable/disable motor safety for this device.\n\nTurn on and off the motor safety option for this PWM object.\n\n:param enabled: True if motor safety is enforced for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "output", "type": "wpimath.units.volts"}], "tooltip": "Sets the voltage output of the PWMMotorController. Compensates for\nthe current bus voltage to ensure that the desired voltage is output even\nif the battery voltage is below 12V - highly useful when the voltage\noutputs are \"meaningful\" (e.g. they come from a feedforward calculation).\n\nNOTE: This function *must* be called regularly in order for voltage\ncompensation to work properly - unlike the ordinary set function, it is not\n\"set it and forget it.\"\n\n:param output: The voltage to output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "stopMotor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PWMMotorController",
- contents: contents,
- className: "wpilib.PWMMotorController",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PWMSparkFlex.ts b/src/blocks/generated/class_wpilib.PWMSparkFlex.ts
deleted file mode 100644
index a7f2ecde..00000000
--- a/src/blocks/generated/class_wpilib.PWMSparkFlex.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PWMSparkFlex
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 22 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPWMSparkFlex"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PWMSparkFlex", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructor for a SPARK Flex connected via PWM.\n\n:param channel: The PWM channel that the SPARK Flex is attached to. 0-9 are\n on-board, 10-19 are on the MXP port", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMSparkFlex"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "follower", "type": "wpilib.PWMMotorController"}], "tooltip": "Make the given PWM motor controller follow the output of this one.\n\n:param follower: The motor controller follower.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "addFollower"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Check if this motor has exceeded its timeout.\n\nThis method is called periodically to determine if this motor has exceeded\nits timeout value. If it has, the stop method is called, and the motor is\nshut down until its value is updated again.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "check"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Check the motors to see if any have timed out.\n\nThis static method is called periodically to poll all the motors and stop\nany that have timed out.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMSparkFlex", "FUNC": "checkMotors"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "disable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "eliminateDeadband", "type": "bool"}], "tooltip": "Optionally eliminate the deadband from a motor controller.\n\n:param eliminateDeadband: If true, set the motor curve on the motor\n controller to eliminate the deadband in the middle\n of the range. Otherwise, keep the full range\n without modifying any values.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "enableDeadbandElimination"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Feed the motor safety object.\n\nResets the timer on this object that is used to do the timeouts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "feed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Get the recently set value of the PWM. This value is affected by the\ninversion property. If you want the value that is sent directly to the\nMotorController, use PWM::GetSpeed() instead.\n\n:returns: The most recently set value for the PWM between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getDescription"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Retrieve the timeout value for the corresponding motor safety object.\n\n:returns: the timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "getExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Gets the voltage output of the motor controller, nominally between -12 V\nand 12 V.\n\n:returns: The voltage of the motor controller, nominally between -12 V and 12\n V.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendable", "type": "wpiutil.Sendable"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "Initializes this Sendable object.\n\n:param builder: sendable builder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpiutil.Sendable", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Determine if the motor is still operating or has timed out.\n\n:returns: true if the motor is still operating normally and hasn't timed out.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isAlive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Return the state of the motor safety enabled flag.\n\nReturn if the motor safety is currently enabled for this device.\n\n:returns: True if motor safety is enforced for this device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "value", "type": "float"}], "tooltip": "Set the PWM value.\n\nThe PWM value is set using a range of -1.0 to 1.0, appropriately scaling\nthe value for the FPGA.\n\n:param value: The speed value between -1.0 and 1.0 to set.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "expirationTime", "type": "wpimath.units.seconds"}], "tooltip": "Set the expiration time for the corresponding motor safety object.\n\n:param expirationTime: The timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "isInverted", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enable/disable motor safety for this device.\n\nTurn on and off the motor safety option for this PWM object.\n\n:param enabled: True if motor safety is enforced for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "output", "type": "wpimath.units.volts"}], "tooltip": "Sets the voltage output of the PWMMotorController. Compensates for\nthe current bus voltage to ensure that the desired voltage is output even\nif the battery voltage is below 12V - highly useful when the voltage\noutputs are \"meaningful\" (e.g. they come from a feedforward calculation).\n\nNOTE: This function *must* be called regularly in order for voltage\ncompensation to work properly - unlike the ordinary set function, it is not\n\"set it and forget it.\"\n\n:param output: The voltage to output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "stopMotor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PWMSparkFlex",
- contents: contents,
- className: "wpilib.PWMSparkFlex",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PWMSparkMax.ts b/src/blocks/generated/class_wpilib.PWMSparkMax.ts
deleted file mode 100644
index c807812c..00000000
--- a/src/blocks/generated/class_wpilib.PWMSparkMax.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PWMSparkMax
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 22 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPWMSparkMax"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PWMSparkMax", "args": [{"name": "channel", "type": "int"}], "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", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMSparkMax"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "follower", "type": "wpilib.PWMMotorController"}], "tooltip": "Make the given PWM motor controller follow the output of this one.\n\n:param follower: The motor controller follower.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "addFollower"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Check if this motor has exceeded its timeout.\n\nThis method is called periodically to determine if this motor has exceeded\nits timeout value. If it has, the stop method is called, and the motor is\nshut down until its value is updated again.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "check"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Check the motors to see if any have timed out.\n\nThis static method is called periodically to poll all the motors and stop\nany that have timed out.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMSparkMax", "FUNC": "checkMotors"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "disable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "eliminateDeadband", "type": "bool"}], "tooltip": "Optionally eliminate the deadband from a motor controller.\n\n:param eliminateDeadband: If true, set the motor curve on the motor\n controller to eliminate the deadband in the middle\n of the range. Otherwise, keep the full range\n without modifying any values.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "enableDeadbandElimination"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Feed the motor safety object.\n\nResets the timer on this object that is used to do the timeouts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "feed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Get the recently set value of the PWM. This value is affected by the\ninversion property. If you want the value that is sent directly to the\nMotorController, use PWM::GetSpeed() instead.\n\n:returns: The most recently set value for the PWM between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getDescription"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Retrieve the timeout value for the corresponding motor safety object.\n\n:returns: the timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "getExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Gets the voltage output of the motor controller, nominally between -12 V\nand 12 V.\n\n:returns: The voltage of the motor controller, nominally between -12 V and 12\n V.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendable", "type": "wpiutil.Sendable"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "Initializes this Sendable object.\n\n:param builder: sendable builder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpiutil.Sendable", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Determine if the motor is still operating or has timed out.\n\n:returns: true if the motor is still operating normally and hasn't timed out.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isAlive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Return the state of the motor safety enabled flag.\n\nReturn if the motor safety is currently enabled for this device.\n\n:returns: True if motor safety is enforced for this device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "value", "type": "float"}], "tooltip": "Set the PWM value.\n\nThe PWM value is set using a range of -1.0 to 1.0, appropriately scaling\nthe value for the FPGA.\n\n:param value: The speed value between -1.0 and 1.0 to set.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "expirationTime", "type": "wpimath.units.seconds"}], "tooltip": "Set the expiration time for the corresponding motor safety object.\n\n:param expirationTime: The timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "isInverted", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enable/disable motor safety for this device.\n\nTurn on and off the motor safety option for this PWM object.\n\n:param enabled: True if motor safety is enforced for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "output", "type": "wpimath.units.volts"}], "tooltip": "Sets the voltage output of the PWMMotorController. Compensates for\nthe current bus voltage to ensure that the desired voltage is output even\nif the battery voltage is below 12V - highly useful when the voltage\noutputs are \"meaningful\" (e.g. they come from a feedforward calculation).\n\nNOTE: This function *must* be called regularly in order for voltage\ncompensation to work properly - unlike the ordinary set function, it is not\n\"set it and forget it.\"\n\n:param output: The voltage to output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "stopMotor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PWMSparkMax",
- contents: contents,
- className: "wpilib.PWMSparkMax",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PWMTalonFX.ts b/src/blocks/generated/class_wpilib.PWMTalonFX.ts
deleted file mode 100644
index fd32e697..00000000
--- a/src/blocks/generated/class_wpilib.PWMTalonFX.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PWMTalonFX
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 22 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPWMTalonFX"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PWMTalonFX", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructor for a Talon FX connected via PWM.\n\n:param channel: The PWM channel that the Talon FX is attached to. 0-9 are\n on-board, 10-19 are on the MXP port", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMTalonFX"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "follower", "type": "wpilib.PWMMotorController"}], "tooltip": "Make the given PWM motor controller follow the output of this one.\n\n:param follower: The motor controller follower.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "addFollower"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Check if this motor has exceeded its timeout.\n\nThis method is called periodically to determine if this motor has exceeded\nits timeout value. If it has, the stop method is called, and the motor is\nshut down until its value is updated again.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "check"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Check the motors to see if any have timed out.\n\nThis static method is called periodically to poll all the motors and stop\nany that have timed out.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMTalonFX", "FUNC": "checkMotors"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "disable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "eliminateDeadband", "type": "bool"}], "tooltip": "Optionally eliminate the deadband from a motor controller.\n\n:param eliminateDeadband: If true, set the motor curve on the motor\n controller to eliminate the deadband in the middle\n of the range. Otherwise, keep the full range\n without modifying any values.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "enableDeadbandElimination"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Feed the motor safety object.\n\nResets the timer on this object that is used to do the timeouts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "feed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Get the recently set value of the PWM. This value is affected by the\ninversion property. If you want the value that is sent directly to the\nMotorController, use PWM::GetSpeed() instead.\n\n:returns: The most recently set value for the PWM between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getDescription"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Retrieve the timeout value for the corresponding motor safety object.\n\n:returns: the timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "getExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Gets the voltage output of the motor controller, nominally between -12 V\nand 12 V.\n\n:returns: The voltage of the motor controller, nominally between -12 V and 12\n V.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendable", "type": "wpiutil.Sendable"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "Initializes this Sendable object.\n\n:param builder: sendable builder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpiutil.Sendable", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Determine if the motor is still operating or has timed out.\n\n:returns: true if the motor is still operating normally and hasn't timed out.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isAlive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Return the state of the motor safety enabled flag.\n\nReturn if the motor safety is currently enabled for this device.\n\n:returns: True if motor safety is enforced for this device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "value", "type": "float"}], "tooltip": "Set the PWM value.\n\nThe PWM value is set using a range of -1.0 to 1.0, appropriately scaling\nthe value for the FPGA.\n\n:param value: The speed value between -1.0 and 1.0 to set.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "expirationTime", "type": "wpimath.units.seconds"}], "tooltip": "Set the expiration time for the corresponding motor safety object.\n\n:param expirationTime: The timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "isInverted", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enable/disable motor safety for this device.\n\nTurn on and off the motor safety option for this PWM object.\n\n:param enabled: True if motor safety is enforced for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "output", "type": "wpimath.units.volts"}], "tooltip": "Sets the voltage output of the PWMMotorController. Compensates for\nthe current bus voltage to ensure that the desired voltage is output even\nif the battery voltage is below 12V - highly useful when the voltage\noutputs are \"meaningful\" (e.g. they come from a feedforward calculation).\n\nNOTE: This function *must* be called regularly in order for voltage\ncompensation to work properly - unlike the ordinary set function, it is not\n\"set it and forget it.\"\n\n:param output: The voltage to output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "stopMotor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PWMTalonFX",
- contents: contents,
- className: "wpilib.PWMTalonFX",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PWMTalonSRX.ts b/src/blocks/generated/class_wpilib.PWMTalonSRX.ts
deleted file mode 100644
index a8d8eaf5..00000000
--- a/src/blocks/generated/class_wpilib.PWMTalonSRX.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PWMTalonSRX
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 22 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPWMTalonSRX"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PWMTalonSRX", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructor for a Talon SRX connected via PWM.\n\n:param channel: The PWM channel that the Talon SRX is attached to. 0-9 are\n on-board, 10-19 are on the MXP port", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMTalonSRX"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "follower", "type": "wpilib.PWMMotorController"}], "tooltip": "Make the given PWM motor controller follow the output of this one.\n\n:param follower: The motor controller follower.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "addFollower"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Check if this motor has exceeded its timeout.\n\nThis method is called periodically to determine if this motor has exceeded\nits timeout value. If it has, the stop method is called, and the motor is\nshut down until its value is updated again.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "check"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Check the motors to see if any have timed out.\n\nThis static method is called periodically to poll all the motors and stop\nany that have timed out.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMTalonSRX", "FUNC": "checkMotors"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "disable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "eliminateDeadband", "type": "bool"}], "tooltip": "Optionally eliminate the deadband from a motor controller.\n\n:param eliminateDeadband: If true, set the motor curve on the motor\n controller to eliminate the deadband in the middle\n of the range. Otherwise, keep the full range\n without modifying any values.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "enableDeadbandElimination"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Feed the motor safety object.\n\nResets the timer on this object that is used to do the timeouts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "feed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Get the recently set value of the PWM. This value is affected by the\ninversion property. If you want the value that is sent directly to the\nMotorController, use PWM::GetSpeed() instead.\n\n:returns: The most recently set value for the PWM between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getDescription"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Retrieve the timeout value for the corresponding motor safety object.\n\n:returns: the timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "getExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Gets the voltage output of the motor controller, nominally between -12 V\nand 12 V.\n\n:returns: The voltage of the motor controller, nominally between -12 V and 12\n V.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendable", "type": "wpiutil.Sendable"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "Initializes this Sendable object.\n\n:param builder: sendable builder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpiutil.Sendable", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Determine if the motor is still operating or has timed out.\n\n:returns: true if the motor is still operating normally and hasn't timed out.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isAlive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Return the state of the motor safety enabled flag.\n\nReturn if the motor safety is currently enabled for this device.\n\n:returns: True if motor safety is enforced for this device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "value", "type": "float"}], "tooltip": "Set the PWM value.\n\nThe PWM value is set using a range of -1.0 to 1.0, appropriately scaling\nthe value for the FPGA.\n\n:param value: The speed value between -1.0 and 1.0 to set.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "expirationTime", "type": "wpimath.units.seconds"}], "tooltip": "Set the expiration time for the corresponding motor safety object.\n\n:param expirationTime: The timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "isInverted", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enable/disable motor safety for this device.\n\nTurn on and off the motor safety option for this PWM object.\n\n:param enabled: True if motor safety is enforced for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "output", "type": "wpimath.units.volts"}], "tooltip": "Sets the voltage output of the PWMMotorController. Compensates for\nthe current bus voltage to ensure that the desired voltage is output even\nif the battery voltage is below 12V - highly useful when the voltage\noutputs are \"meaningful\" (e.g. they come from a feedforward calculation).\n\nNOTE: This function *must* be called regularly in order for voltage\ncompensation to work properly - unlike the ordinary set function, it is not\n\"set it and forget it.\"\n\n:param output: The voltage to output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "stopMotor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PWMTalonSRX",
- contents: contents,
- className: "wpilib.PWMTalonSRX",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PWMVenom.ts b/src/blocks/generated/class_wpilib.PWMVenom.ts
deleted file mode 100644
index ffd87c18..00000000
--- a/src/blocks/generated/class_wpilib.PWMVenom.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PWMVenom
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 22 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPWMVenom"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PWMVenom", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructor for a Venom connected via PWM.\n\n:param channel: The PWM channel that the Venom is attached to. 0-9 are\n on-board, 10-19 are on the MXP port", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMVenom"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "follower", "type": "wpilib.PWMMotorController"}], "tooltip": "Make the given PWM motor controller follow the output of this one.\n\n:param follower: The motor controller follower.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "addFollower"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Check if this motor has exceeded its timeout.\n\nThis method is called periodically to determine if this motor has exceeded\nits timeout value. If it has, the stop method is called, and the motor is\nshut down until its value is updated again.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "check"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Check the motors to see if any have timed out.\n\nThis static method is called periodically to poll all the motors and stop\nany that have timed out.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMVenom", "FUNC": "checkMotors"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "disable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "eliminateDeadband", "type": "bool"}], "tooltip": "Optionally eliminate the deadband from a motor controller.\n\n:param eliminateDeadband: If true, set the motor curve on the motor\n controller to eliminate the deadband in the middle\n of the range. Otherwise, keep the full range\n without modifying any values.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "enableDeadbandElimination"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Feed the motor safety object.\n\nResets the timer on this object that is used to do the timeouts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "feed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Get the recently set value of the PWM. This value is affected by the\ninversion property. If you want the value that is sent directly to the\nMotorController, use PWM::GetSpeed() instead.\n\n:returns: The most recently set value for the PWM between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getDescription"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Retrieve the timeout value for the corresponding motor safety object.\n\n:returns: the timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "getExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Gets the voltage output of the motor controller, nominally between -12 V\nand 12 V.\n\n:returns: The voltage of the motor controller, nominally between -12 V and 12\n V.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendable", "type": "wpiutil.Sendable"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "Initializes this Sendable object.\n\n:param builder: sendable builder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpiutil.Sendable", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Determine if the motor is still operating or has timed out.\n\n:returns: true if the motor is still operating normally and hasn't timed out.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isAlive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Return the state of the motor safety enabled flag.\n\nReturn if the motor safety is currently enabled for this device.\n\n:returns: True if motor safety is enforced for this device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "value", "type": "float"}], "tooltip": "Set the PWM value.\n\nThe PWM value is set using a range of -1.0 to 1.0, appropriately scaling\nthe value for the FPGA.\n\n:param value: The speed value between -1.0 and 1.0 to set.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "expirationTime", "type": "wpimath.units.seconds"}], "tooltip": "Set the expiration time for the corresponding motor safety object.\n\n:param expirationTime: The timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "isInverted", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enable/disable motor safety for this device.\n\nTurn on and off the motor safety option for this PWM object.\n\n:param enabled: True if motor safety is enforced for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "output", "type": "wpimath.units.volts"}], "tooltip": "Sets the voltage output of the PWMMotorController. Compensates for\nthe current bus voltage to ensure that the desired voltage is output even\nif the battery voltage is below 12V - highly useful when the voltage\noutputs are \"meaningful\" (e.g. they come from a feedforward calculation).\n\nNOTE: This function *must* be called regularly in order for voltage\ncompensation to work properly - unlike the ordinary set function, it is not\n\"set it and forget it.\"\n\n:param output: The voltage to output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "stopMotor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PWMVenom",
- contents: contents,
- className: "wpilib.PWMVenom",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PWMVictorSPX.ts b/src/blocks/generated/class_wpilib.PWMVictorSPX.ts
deleted file mode 100644
index 5a49f5f6..00000000
--- a/src/blocks/generated/class_wpilib.PWMVictorSPX.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PWMVictorSPX
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 22 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPWMVictorSPX"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PWMVictorSPX", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructor for a Victor SPX connected via PWM.\n\n:param channel: The PWM channel that the Victor SPX is attached to. 0-9 are\n on-board, 10-19 are on the MXP port", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMVictorSPX"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "follower", "type": "wpilib.PWMMotorController"}], "tooltip": "Make the given PWM motor controller follow the output of this one.\n\n:param follower: The motor controller follower.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "addFollower"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Check if this motor has exceeded its timeout.\n\nThis method is called periodically to determine if this motor has exceeded\nits timeout value. If it has, the stop method is called, and the motor is\nshut down until its value is updated again.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "check"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Check the motors to see if any have timed out.\n\nThis static method is called periodically to poll all the motors and stop\nany that have timed out.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMVictorSPX", "FUNC": "checkMotors"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "disable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "eliminateDeadband", "type": "bool"}], "tooltip": "Optionally eliminate the deadband from a motor controller.\n\n:param eliminateDeadband: If true, set the motor curve on the motor\n controller to eliminate the deadband in the middle\n of the range. Otherwise, keep the full range\n without modifying any values.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "enableDeadbandElimination"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Feed the motor safety object.\n\nResets the timer on this object that is used to do the timeouts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "feed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Get the recently set value of the PWM. This value is affected by the\ninversion property. If you want the value that is sent directly to the\nMotorController, use PWM::GetSpeed() instead.\n\n:returns: The most recently set value for the PWM between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getDescription"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Retrieve the timeout value for the corresponding motor safety object.\n\n:returns: the timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "getExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Gets the voltage output of the motor controller, nominally between -12 V\nand 12 V.\n\n:returns: The voltage of the motor controller, nominally between -12 V and 12\n V.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendable", "type": "wpiutil.Sendable"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "Initializes this Sendable object.\n\n:param builder: sendable builder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpiutil.Sendable", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Determine if the motor is still operating or has timed out.\n\n:returns: true if the motor is still operating normally and hasn't timed out.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isAlive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Return the state of the motor safety enabled flag.\n\nReturn if the motor safety is currently enabled for this device.\n\n:returns: True if motor safety is enforced for this device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "value", "type": "float"}], "tooltip": "Set the PWM value.\n\nThe PWM value is set using a range of -1.0 to 1.0, appropriately scaling\nthe value for the FPGA.\n\n:param value: The speed value between -1.0 and 1.0 to set.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "expirationTime", "type": "wpimath.units.seconds"}], "tooltip": "Set the expiration time for the corresponding motor safety object.\n\n:param expirationTime: The timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "isInverted", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enable/disable motor safety for this device.\n\nTurn on and off the motor safety option for this PWM object.\n\n:param enabled: True if motor safety is enforced for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "output", "type": "wpimath.units.volts"}], "tooltip": "Sets the voltage output of the PWMMotorController. Compensates for\nthe current bus voltage to ensure that the desired voltage is output even\nif the battery voltage is below 12V - highly useful when the voltage\noutputs are \"meaningful\" (e.g. they come from a feedforward calculation).\n\nNOTE: This function *must* be called regularly in order for voltage\ncompensation to work properly - unlike the ordinary set function, it is not\n\"set it and forget it.\"\n\n:param output: The voltage to output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "stopMotor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PWMVictorSPX",
- contents: contents,
- className: "wpilib.PWMVictorSPX",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PneumaticHub.Faults.ts b/src/blocks/generated/class_wpilib.PneumaticHub.Faults.ts
deleted file mode 100644
index 543d9f35..00000000
--- a/src/blocks/generated/class_wpilib.PneumaticHub.Faults.ts
+++ /dev/null
@@ -1,76 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PneumaticHub.Faults
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("wpilib.PneumaticHub.Faults", "int", ["Brownout", "CanWarning", "Channel0Fault", "Channel10Fault", "Channel11Fault", "Channel12Fault", "Channel13Fault", "Channel14Fault", "Channel15Fault", "Channel1Fault", "Channel2Fault", "Channel3Fault", "Channel4Fault", "Channel5Fault", "Channel6Fault", "Channel7Fault", "Channel8Fault", "Channel9Fault", "CompressorOpen", "CompressorOverCurrent", "HardwareFault", "SolenoidOverCurrent"], ["The input voltage is below the minimum voltage.", "A warning was raised by the device's CAN controller.", "Fault on channel 0.", "Fault on channel 10.", "Fault on channel 11.", "Fault on channel 12.", "Fault on channel 13.", "Fault on channel 14.", "Fault on channel 15.", "Fault on channel 1.", "Fault on channel 2.", "Fault on channel 3.", "Fault on channel 4.", "Fault on channel 5.", "Fault on channel 6.", "Fault on channel 7.", "Fault on channel 8.", "Fault on channel 9.", "The compressor output has an open circuit.", "An overcurrent event occurred on the compressor output.", "The hardware on the device has malfunctioned.", "An overcurrent event occurred on a solenoid output."]);
- setPythonVariable.initializeInstanceVariableSetter("wpilib.PneumaticHub.Faults", "int", ["Brownout", "CanWarning", "Channel0Fault", "Channel10Fault", "Channel11Fault", "Channel12Fault", "Channel13Fault", "Channel14Fault", "Channel15Fault", "Channel1Fault", "Channel2Fault", "Channel3Fault", "Channel4Fault", "Channel5Fault", "Channel6Fault", "Channel7Fault", "Channel8Fault", "Channel9Fault", "CompressorOpen", "CompressorOverCurrent", "HardwareFault", "SolenoidOverCurrent"], ["The input voltage is below the minimum voltage.", "A warning was raised by the device's CAN controller.", "Fault on channel 0.", "Fault on channel 10.", "Fault on channel 11.", "Fault on channel 12.", "Fault on channel 13.", "Fault on channel 14.", "Fault on channel 15.", "Fault on channel 1.", "Fault on channel 2.", "Fault on channel 3.", "Fault on channel 4.", "Fault on channel 5.", "Fault on channel 6.", "Fault on channel 7.", "Fault on channel 8.", "Fault on channel 9.", "The compressor output has an open circuit.", "An overcurrent event occurred on the compressor output.", "The hardware on the device has malfunctioned.", "An overcurrent event occurred on a solenoid output."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 46 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "CanWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "CanWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel0Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel0Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel10Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel10Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel11Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel11Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel12Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel12Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel13Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel13Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel14Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel14Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel15Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel15Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel1Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel1Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel2Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel2Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel3Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel3Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel4Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel4Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel5Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel5Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel6Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel6Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel7Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel7Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel8Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel8Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel9Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "Channel9Fault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "CompressorOpen"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "CompressorOpen"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "CompressorOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "CompressorOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "HardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "HardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "SolenoidOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PneumaticHub.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "VAR": "SolenoidOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myFaults"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PneumaticHub.Faults", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "faults", "type": "wpilib.PneumaticHub.Faults"}, {"name": "channel", "type": "int"}], "tooltip": "Gets whether there is a fault at the specified channel.\n\n:param channel: Channel to check for faults.\n\n:returns: True if a a fault exists at the channel, otherwise false.\n @throws A ChannelIndexOutOfRange error if the provided channel is outside\n of the range supported by the hardware.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Faults", "FUNC": "getChannelFault"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Faults",
- contents: contents,
- className: "wpilib.PneumaticHub.Faults",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PneumaticHub.StickyFaults.ts b/src/blocks/generated/class_wpilib.PneumaticHub.StickyFaults.ts
deleted file mode 100644
index 86a994f5..00000000
--- a/src/blocks/generated/class_wpilib.PneumaticHub.StickyFaults.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PneumaticHub.StickyFaults
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("wpilib.PneumaticHub.StickyFaults", "int", ["Brownout", "CanBusOff", "CanWarning", "CompressorOpen", "CompressorOverCurrent", "FirmwareFault", "HardwareFault", "HasReset", "SolenoidOverCurrent"], ["The input voltage is below the minimum voltage.", "The device's CAN controller experienced a \"Bus Off\" event.", "A warning was raised by the device's CAN controller.", "The compressor output has an open circuit.", "An overcurrent event occurred on the compressor output.", "The firmware on the device has malfunctioned.", "The hardware on the device has malfunctioned.", "The device has rebooted.", "An overcurrent event occurred on a solenoid output."]);
- setPythonVariable.initializeInstanceVariableSetter("wpilib.PneumaticHub.StickyFaults", "int", ["Brownout", "CanBusOff", "CanWarning", "CompressorOpen", "CompressorOverCurrent", "FirmwareFault", "HardwareFault", "HasReset", "SolenoidOverCurrent"], ["The input voltage is below the minimum voltage.", "The device's CAN controller experienced a \"Bus Off\" event.", "A warning was raised by the device's CAN controller.", "The compressor output has an open circuit.", "An overcurrent event occurred on the compressor output.", "The firmware on the device has malfunctioned.", "The hardware on the device has malfunctioned.", "The device has rebooted.", "An overcurrent event occurred on a solenoid output."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 19 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "Brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "Brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "CanBusOff"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "CanBusOff"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "CanWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "CanWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "CompressorOpen"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "CompressorOpen"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "CompressorOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "CompressorOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "FirmwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "FirmwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "HardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "HardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "HasReset"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "HasReset"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "SolenoidOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PneumaticHub.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults", "VAR": "SolenoidOverCurrent"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myStickyFaults"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PneumaticHub.StickyFaults", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.StickyFaults"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "StickyFaults",
- contents: contents,
- className: "wpilib.PneumaticHub.StickyFaults",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PneumaticHub.Version.ts b/src/blocks/generated/class_wpilib.PneumaticHub.Version.ts
deleted file mode 100644
index ce41f100..00000000
--- a/src/blocks/generated/class_wpilib.PneumaticHub.Version.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PneumaticHub.Version
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("wpilib.PneumaticHub.Version", "int", ["FirmwareFix", "FirmwareMajor", "FirmwareMinor", "HardwareMajor", "HardwareMinor", "UniqueId"], ["The firmware fix version.", "The firmware major version.", "The firmware minor version.", "The hardware major version.", "The hardware minor version.", "The device's unique ID."]);
- setPythonVariable.initializeInstanceVariableSetter("wpilib.PneumaticHub.Version", "int", ["FirmwareFix", "FirmwareMajor", "FirmwareMinor", "HardwareMajor", "HardwareMinor", "UniqueId"], ["The firmware fix version.", "The firmware major version.", "The firmware minor version.", "The hardware major version.", "The hardware minor version.", "The device's unique ID."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 13 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PneumaticHub.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Version", "VAR": "FirmwareFix"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PneumaticHub.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Version", "VAR": "FirmwareFix"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PneumaticHub.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Version", "VAR": "FirmwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PneumaticHub.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Version", "VAR": "FirmwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PneumaticHub.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Version", "VAR": "FirmwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PneumaticHub.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Version", "VAR": "FirmwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PneumaticHub.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Version", "VAR": "HardwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PneumaticHub.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Version", "VAR": "HardwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PneumaticHub.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Version", "VAR": "HardwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PneumaticHub.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Version", "VAR": "HardwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PneumaticHub.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Version", "VAR": "UniqueId"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PneumaticHub.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PneumaticHub.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Version", "VAR": "UniqueId"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myVersion"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PneumaticHub.Version", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub.Version"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Version",
- contents: contents,
- className: "wpilib.PneumaticHub.Version",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PneumaticHub.ts b/src/blocks/generated/class_wpilib.PneumaticHub.ts
deleted file mode 100644
index a0e47902..00000000
--- a/src/blocks/generated/class_wpilib.PneumaticHub.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PneumaticHub
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 36 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticHub"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PneumaticHub", "args": [], "tooltip": "Constructs a PneumaticHub with the default ID (1).", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticHub"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PneumaticHub", "args": [{"name": "module", "type": "int"}], "tooltip": "Constructs a PneumaticHub.\n\n:param module: module number to construct", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}, {"name": "mask", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "checkAndReserveSolenoids"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}, {"name": "channel", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "checkSolenoidChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "Clears the sticky faults.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "clearStickyFaults"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "Disables the compressor. The compressor will not turn on until\nEnableCompressorDigital(), EnableCompressorAnalog(), or\nEnableCompressorHybrid() are called.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "disableCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}, {"name": "minPressure", "type": "wpimath.units.pounds_per_square_inch"}, {"name": "maxPressure", "type": "wpimath.units.pounds_per_square_inch"}], "tooltip": "Enables the compressor in analog mode. This mode uses an analog pressure\nsensor connected to analog channel 0 to cycle the compressor. The\ncompressor will turn on when the pressure drops below ``minPressure``\nand will turn off when the pressure reaches ``maxPressure``.\n\n:param minPressure: The minimum pressure. The compressor will turn on when\n the pressure drops below this value. Range 0 - 120 PSI.\n:param maxPressure: The maximum pressure. The compressor will turn off when\n the pressure reaches this value. Range 0 - 120 PSI. Must be larger then\n minPressure.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "enableCompressorAnalog"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "enableCompressorDigital"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}, {"name": "minPressure", "type": "wpimath.units.pounds_per_square_inch"}, {"name": "maxPressure", "type": "wpimath.units.pounds_per_square_inch"}], "tooltip": "Enables the compressor in hybrid mode. This mode uses both a digital\npressure switch and an analog pressure sensor connected to analog channel 0\nto cycle the compressor.\n\nThe compressor will turn on when \\a both:\n\n- The digital pressure switch indicates the system is not full AND\n- The analog pressure sensor indicates that the pressure in the system is\nbelow the specified minimum pressure.\n\nThe compressor will turn off when \\a either:\n\n- The digital pressure switch is disconnected or indicates that the system\nis full OR\n- The pressure detected by the analog sensor is greater than the specified\nmaximum pressure.\n\n:param minPressure: The minimum pressure. The compressor will turn on when\n the pressure drops below this value and the pressure switch indicates that\n the system is not full. Range 0 - 120 PSI.\n:param maxPressure: The maximum pressure. The compressor will turn off when\n the pressure reaches this value or the pressure switch is disconnected or\n indicates that the system is full. Range 0 - 120 PSI. Must be larger then\n minPressure.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "enableCompressorHybrid"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}, {"name": "index", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "fireOneShot"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "Returns the current voltage of the regulated 5v supply.\n\n:returns: The current voltage of the 5v supply.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "get5VRegulatedVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}, {"name": "channel", "type": "int"}], "tooltip": "Returns the raw voltage of the specified analog input channel.\n\n:param channel: The analog input channel to read voltage from.\n\n:returns: The voltage of the specified analog input channel.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getAnalogVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCompressorConfigType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.CompressorConfigType", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getCompressorConfigType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.amperes", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getCompressorCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [{"name": "moduleType", "type": "wpilib.PneumaticsModuleType"}], "tooltip": "For internal use to get the default for a specific type.\n\n:param moduleType: module type\n\n:returns: module default", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getDefaultForType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myFaults"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.PneumaticHub.Faults", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "Returns the faults currently active on this device.\n\n:returns: The faults.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getFaults"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticsBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.PneumaticsBase", "args": [{"name": "module", "type": "int"}, {"name": "moduleType", "type": "wpilib.PneumaticsModuleType"}], "tooltip": "For internal use to get a module for a specific type.\n\n:param module: module number\n:param moduleType: module type\n\n:returns: module", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getForType"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "Returns the current input voltage for this device.\n\n:returns: The input voltage.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getInputVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getModuleNumber"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.pounds_per_square_inch", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}, {"name": "channel", "type": "int"}], "tooltip": "Returns the pressure read by an analog pressure sensor on the specified\nanalog input channel.\n\n:param channel: The analog input channel to read pressure from.\n\n:returns: The pressure read by an analog pressure sensor on the specified\n analog input channel.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getPressure"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getPressureSwitch"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getSolenoidDisabledList"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getSolenoids"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.amperes", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "Returns the total current drawn by all solenoids.\n\n:returns: Total current drawn by all solenoids.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getSolenoidsTotalCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "Returns the current voltage of the solenoid power supply.\n\n:returns: The current voltage of the solenoid power supply.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getSolenoidsVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myStickyFaults"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.PneumaticHub.StickyFaults", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "Returns the sticky faults currently active on this device.\n\n:returns: The sticky faults.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getStickyFaults"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myVersion"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.PneumaticHub.Version", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "Returns the hardware and firmware versions of this device.\n\n:returns: The hardware and firmware versions.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "getVersion"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCompressor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.Compressor", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "makeCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDoubleSolenoid"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.DoubleSolenoid", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}, {"name": "forwardChannel", "type": "int"}, {"name": "reverseChannel", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "makeDoubleSolenoid"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySolenoid"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.Solenoid", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}, {"name": "channel", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "makeSolenoid"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "reserveCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}, {"name": "index", "type": "int"}, {"name": "duration", "type": "wpimath.units.seconds"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "setOneShotDuration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}, {"name": "mask", "type": "int"}, {"name": "values", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "setSolenoids"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "unreserveCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticHub", "type": "wpilib.PneumaticHub"}, {"name": "mask", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticHub", "FUNC": "unreserveSolenoids"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticHub"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PneumaticHub",
- contents: contents,
- className: "wpilib.PneumaticHub",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PneumaticsBase.ts b/src/blocks/generated/class_wpilib.PneumaticsBase.ts
deleted file mode 100644
index 71e57ba7..00000000
--- a/src/blocks/generated/class_wpilib.PneumaticsBase.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PneumaticsBase
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 27 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticsBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PneumaticsBase", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}, {"name": "mask", "type": "int"}], "tooltip": "Check to see if the solenoids marked in the bitmask can be reserved, and if\nso, reserve them.\n\n:param mask: The bitmask of solenoids to reserve. The LSB represents\n solenoid 0.\n\n:returns: 0 if successful; mask of solenoids that couldn't be allocated\n otherwise", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "checkAndReserveSolenoids"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}, {"name": "channel", "type": "int"}], "tooltip": "Check if a solenoid channel is valid.\n\n:param channel: Channel to check\n\n:returns: True if channel exists", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "checkSolenoidChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}], "tooltip": "Disables the compressor.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "disableCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}, {"name": "minPressure", "type": "wpimath.units.pounds_per_square_inch"}, {"name": "maxPressure", "type": "wpimath.units.pounds_per_square_inch"}], "tooltip": "If supported by the device, enables the compressor in analog mode. This\nmode uses an analog pressure sensor connected to analog channel 0 to cycle\nthe compressor. The compressor will turn on when the pressure drops below\n``minPressure`` and will turn off when the pressure reaches {@code\nmaxPressure}. This mode is only supported by the REV PH with the REV Analog\nPressure Sensor connected to analog channel 0.\n\nOn CTRE PCM, this will enable digital control.\n\n:param minPressure: The minimum pressure. The compressor will turn on\n when the pressure drops below this value.\n:param maxPressure: The maximum pressure. The compressor will turn\n off when the pressure reaches this value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "enableCompressorAnalog"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}], "tooltip": "Enables the compressor in digital mode using the digital pressure switch.\nThe compressor will turn on when the pressure switch indicates that the\nsystem is not full, and will turn off when the pressure switch indicates\nthat the system is full.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "enableCompressorDigital"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}, {"name": "minPressure", "type": "wpimath.units.pounds_per_square_inch"}, {"name": "maxPressure", "type": "wpimath.units.pounds_per_square_inch"}], "tooltip": "If supported by the device, enables the compressor in hybrid mode. This\nmode uses both a digital pressure switch and an analog pressure sensor\nconnected to analog channel 0 to cycle the compressor. This mode is only\nsupported by the REV PH with the REV Analog Pressure Sensor connected to\nanalog channel 0.\n\nThe compressor will turn on when \\a both:\n\n- The digital pressure switch indicates the system is not full AND\n- The analog pressure sensor indicates that the pressure in the system\nis below the specified minimum pressure.\n\nThe compressor will turn off when \\a either:\n\n- The digital pressure switch is disconnected or indicates that the system\nis full OR\n- The pressure detected by the analog sensor is greater than the specified\nmaximum pressure.\n\nOn CTRE PCM, this will enable digital control.\n\n:param minPressure: The minimum pressure. The compressor will turn on\n when the pressure drops below this value and the pressure switch indicates\n that the system is not full.\n:param maxPressure: The maximum pressure. The compressor will turn\n off when the pressure reaches this value or the pressure switch is\n disconnected or indicates that the system is full.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "enableCompressorHybrid"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}, {"name": "index", "type": "int"}], "tooltip": "Fire a single solenoid shot.\n\n:param index: solenoid index", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "fireOneShot"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}, {"name": "channel", "type": "int"}], "tooltip": "If supported by the device, returns the raw voltage of the specified analog\ninput channel.\n\nThis function is only supported by the REV PH. On CTRE PCM, this will\nreturn 0.\n\n:param channel: The analog input channel to read voltage from.\n\n:returns: The voltage of the specified analog input channel.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "getAnalogVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}], "tooltip": "Returns whether the compressor is active or not.\n\n:returns: True if the compressor is on - otherwise false.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "getCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCompressorConfigType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.CompressorConfigType", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}], "tooltip": "Returns the active compressor configuration.\n\n:returns: The active compressor configuration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "getCompressorConfigType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.amperes", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}], "tooltip": "Returns the current drawn by the compressor.\n\n:returns: The current drawn by the compressor.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "getCompressorCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [{"name": "moduleType", "type": "wpilib.PneumaticsModuleType"}], "tooltip": "For internal use to get the default for a specific type.\n\n:param moduleType: module type\n\n:returns: module default", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "getDefaultForType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticsBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.PneumaticsBase", "args": [{"name": "module", "type": "int"}, {"name": "moduleType", "type": "wpilib.PneumaticsModuleType"}], "tooltip": "For internal use to get a module for a specific type.\n\n:param module: module number\n:param moduleType: module type\n\n:returns: module", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "getForType"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}], "tooltip": "Get module number for this module.\n\n:returns: module number", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "getModuleNumber"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.pounds_per_square_inch", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}, {"name": "channel", "type": "int"}], "tooltip": "If supported by the device, returns the pressure read by an analog\npressure sensor on the specified analog input channel.\n\nThis function is only supported by the REV PH. On CTRE PCM, this will\nreturn 0.\n\n:param channel: The analog input channel to read pressure from.\n\n:returns: The pressure read by an analog pressure sensor on the\n specified analog input channel.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "getPressure"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}], "tooltip": "Returns the state of the pressure switch.\n\n:returns: True if pressure switch indicates that the system is full,\n otherwise false.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "getPressureSwitch"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}], "tooltip": "Get a bitmask of disabled solenoids.\n\n:returns: Bitmask indicating disabled solenoids. The LSB represents solenoid\n 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "getSolenoidDisabledList"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}], "tooltip": "Gets a bitmask of solenoid values.\n\n:returns: Bitmask containing the state of the solenoids. The LSB represents\n solenoid 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "getSolenoids"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCompressor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.Compressor", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}], "tooltip": "Create a compressor object.\n\n:returns: Compressor object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "makeCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDoubleSolenoid"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.DoubleSolenoid", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}, {"name": "forwardChannel", "type": "int"}, {"name": "reverseChannel", "type": "int"}], "tooltip": "Create a double solenoid object for the specified channels.\n\n:param forwardChannel: solenoid channel for forward\n:param reverseChannel: solenoid channel for reverse\n\n:returns: DoubleSolenoid object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "makeDoubleSolenoid"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySolenoid"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.Solenoid", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}, {"name": "channel", "type": "int"}], "tooltip": "Create a solenoid object for the specified channel.\n\n:param channel: solenoid channel\n\n:returns: Solenoid object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "makeSolenoid"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}], "tooltip": "Reserve the compressor.\n\n:returns: true if successful; false if compressor already reserved", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "reserveCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}, {"name": "index", "type": "int"}, {"name": "duration", "type": "wpimath.units.seconds"}], "tooltip": "Set the duration for a single solenoid shot.\n\n:param index: solenoid index\n:param duration: shot duration", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "setOneShotDuration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}, {"name": "mask", "type": "int"}, {"name": "values", "type": "int"}], "tooltip": "Sets solenoids on a pneumatics module.\n\n:param mask: Bitmask indicating which solenoids to set. The LSB represents\n solenoid 0.\n:param values: Bitmask indicating the desired states of the solenoids. The\n LSB represents solenoid 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "setSolenoids"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}], "tooltip": "Unreserve the compressor.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "unreserveCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBase", "type": "wpilib.PneumaticsBase"}, {"name": "mask", "type": "int"}], "tooltip": "Unreserve the solenoids marked in the bitmask.\n\n:param mask: The bitmask of solenoids to unreserve. The LSB represents\n solenoid 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsBase", "FUNC": "unreserveSolenoids"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PneumaticsBase",
- contents: contents,
- className: "wpilib.PneumaticsBase",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PneumaticsControlModule.ts b/src/blocks/generated/class_wpilib.PneumaticsControlModule.ts
deleted file mode 100644
index 9cb0a6ca..00000000
--- a/src/blocks/generated/class_wpilib.PneumaticsControlModule.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PneumaticsControlModule
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 37 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PneumaticsControlModule", "args": [], "tooltip": "Constructs a PneumaticsControlModule with the default ID (0).", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PneumaticsControlModule", "args": [{"name": "module", "type": "int"}], "tooltip": "Constructs a PneumaticsControlModule.\n\n:param module: module number to construct", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}, {"name": "mask", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "checkAndReserveSolenoids"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}, {"name": "channel", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "checkSolenoidChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "Clears all sticky faults on this device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "clearAllStickyFaults"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "Disables the compressor. The compressor will not turn on until\nEnableCompressorDigital() is called.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "disableCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}, {"name": "minPressure", "type": "wpimath.units.pounds_per_square_inch"}, {"name": "maxPressure", "type": "wpimath.units.pounds_per_square_inch"}], "tooltip": "Enables the compressor in digital mode. Analog mode is unsupported by the\nCTRE PCM.\n\n:param minPressure: Unsupported.\n:param maxPressure: Unsupported.\n @see EnableCompressorDigital()", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "enableCompressorAnalog"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "enableCompressorDigital"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}, {"name": "minPressure", "type": "wpimath.units.pounds_per_square_inch"}, {"name": "maxPressure", "type": "wpimath.units.pounds_per_square_inch"}], "tooltip": "Enables the compressor in digital mode. Hybrid mode is unsupported by the\nCTRE PCM.\n\n:param minPressure: Unsupported.\n:param maxPressure: Unsupported.\n @see EnableCompressorDigital()", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "enableCompressorHybrid"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}, {"name": "index", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "fireOneShot"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}, {"name": "channel", "type": "int"}], "tooltip": "Unsupported by the CTRE PCM.\n\n:param channel: Unsupported.\n\n:returns: 0", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getAnalogVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCompressorConfigType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.CompressorConfigType", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getCompressorConfigType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.amperes", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getCompressorCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "Return whether the compressor current is currently too high.\n\n:returns: True if the compressor current is too high, otherwise false.\n @see GetCompressorCurrentTooHighStickyFault()", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getCompressorCurrentTooHighFault"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "Returns whether the compressor current has been too high since sticky\nfaults were last cleared. This fault is persistent and can be cleared by\nClearAllStickyFaults()\n\n:returns: True if the compressor current has been too high since sticky\n faults were last cleared.\n @see GetCompressorCurrentTooHighFault()", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getCompressorCurrentTooHighStickyFault"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "Returns whether the compressor is currently disconnected.\n\n:returns: True if compressor is currently disconnected, otherwise false.\n @see GetCompressorNotConnectedStickyFault()", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getCompressorNotConnectedFault"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "Returns whether the compressor has been disconnected since sticky faults\nwere last cleared. This fault is persistent and can be cleared by\nClearAllStickyFaults()\n\n:returns: True if the compressor has been disconnected since sticky faults\n were last cleared, otherwise false.\n @see GetCompressorNotConnectedFault()", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getCompressorNotConnectedStickyFault"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "Returns whether the compressor is currently shorted.\n\n:returns: True if the compressor is currently shorted, otherwise false.\n @see GetCompressorShortedStickyFault()", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getCompressorShortedFault"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "Returns whether the compressor has been shorted since sticky faults were\nlast cleared. This fault is persistent and can be cleared by\nClearAllStickyFaults()\n\n:returns: True if the compressor has been shorted since sticky faults were\n last cleared, otherwise false.\n @see GetCompressorShortedFault()", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getCompressorShortedStickyFault"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [{"name": "moduleType", "type": "wpilib.PneumaticsModuleType"}], "tooltip": "For internal use to get the default for a specific type.\n\n:param moduleType: module type\n\n:returns: module default", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getDefaultForType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticsBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.PneumaticsBase", "args": [{"name": "module", "type": "int"}, {"name": "moduleType", "type": "wpilib.PneumaticsModuleType"}], "tooltip": "For internal use to get a module for a specific type.\n\n:param module: module number\n:param moduleType: module type\n\n:returns: module", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getForType"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getModuleNumber"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.pounds_per_square_inch", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}, {"name": "channel", "type": "int"}], "tooltip": "Unsupported by the CTRE PCM.\n\n:param channel: Unsupported.\n\n:returns: 0", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getPressure"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getPressureSwitch"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getSolenoidDisabledList"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "Returns whether the solenoid is currently reporting a voltage fault.\n\n:returns: True if solenoid is reporting a fault, otherwise false.\n @see GetSolenoidVoltageStickyFault()", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getSolenoidVoltageFault"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "Returns whether the solenoid has reported a voltage fault since sticky\nfaults were last cleared. This fault is persistent and can be cleared by\nClearAllStickyFaults()\n\n:returns: True if solenoid is reporting a fault, otherwise false.\n @see GetSolenoidVoltageFault()", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getSolenoidVoltageStickyFault"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "getSolenoids"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCompressor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.Compressor", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "makeCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDoubleSolenoid"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.DoubleSolenoid", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}, {"name": "forwardChannel", "type": "int"}, {"name": "reverseChannel", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "makeDoubleSolenoid"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySolenoid"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.Solenoid", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}, {"name": "channel", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "makeSolenoid"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "reserveCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}, {"name": "index", "type": "int"}, {"name": "duration", "type": "wpimath.units.seconds"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "setOneShotDuration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}, {"name": "mask", "type": "int"}, {"name": "values", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "setSolenoids"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "unreserveCompressor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsControlModule", "type": "wpilib.PneumaticsControlModule"}, {"name": "mask", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PneumaticsControlModule", "FUNC": "unreserveSolenoids"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsControlModule"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PneumaticsControlModule",
- contents: contents,
- className: "wpilib.PneumaticsControlModule",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PowerDistribution.Faults.ts b/src/blocks/generated/class_wpilib.PowerDistribution.Faults.ts
deleted file mode 100644
index cf40794e..00000000
--- a/src/blocks/generated/class_wpilib.PowerDistribution.Faults.ts
+++ /dev/null
@@ -1,86 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PowerDistribution.Faults
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("wpilib.PowerDistribution.Faults", "int", ["Brownout", "CanWarning", "Channel0BreakerFault", "Channel10BreakerFault", "Channel11BreakerFault", "Channel12BreakerFault", "Channel13BreakerFault", "Channel14BreakerFault", "Channel15BreakerFault", "Channel16BreakerFault", "Channel17BreakerFault", "Channel18BreakerFault", "Channel19BreakerFault", "Channel1BreakerFault", "Channel20BreakerFault", "Channel21BreakerFault", "Channel22BreakerFault", "Channel23BreakerFault", "Channel2BreakerFault", "Channel3BreakerFault", "Channel4BreakerFault", "Channel5BreakerFault", "Channel6BreakerFault", "Channel7BreakerFault", "Channel8BreakerFault", "Channel9BreakerFault", "HardwareFault"], ["The input voltage is below the minimum voltage.", "A warning was raised by the device's CAN controller.", "Breaker fault on channel 0.", "Breaker fault on channel 10.", "Breaker fault on channel 12.", "Breaker fault on channel 13.", "Breaker fault on channel 14.", "Breaker fault on channel 15.", "Breaker fault on channel 16.", "Breaker fault on channel 17.", "Breaker fault on channel 18.", "Breaker fault on channel 19.", "Breaker fault on channel 20.", "Breaker fault on channel 1.", "Breaker fault on channel 21.", "Breaker fault on channel 22.", "Breaker fault on channel 23.", "Breaker fault on channel 24.", "Breaker fault on channel 2.", "Breaker fault on channel 3.", "Breaker fault on channel 4.", "Breaker fault on channel 5.", "Breaker fault on channel 6.", "Breaker fault on channel 7.", "Breaker fault on channel 8.", "Breaker fault on channel 9.", "The hardware on the device has malfunctioned."]);
- setPythonVariable.initializeInstanceVariableSetter("wpilib.PowerDistribution.Faults", "int", ["Brownout", "CanWarning", "Channel0BreakerFault", "Channel10BreakerFault", "Channel11BreakerFault", "Channel12BreakerFault", "Channel13BreakerFault", "Channel14BreakerFault", "Channel15BreakerFault", "Channel16BreakerFault", "Channel17BreakerFault", "Channel18BreakerFault", "Channel19BreakerFault", "Channel1BreakerFault", "Channel20BreakerFault", "Channel21BreakerFault", "Channel22BreakerFault", "Channel23BreakerFault", "Channel2BreakerFault", "Channel3BreakerFault", "Channel4BreakerFault", "Channel5BreakerFault", "Channel6BreakerFault", "Channel7BreakerFault", "Channel8BreakerFault", "Channel9BreakerFault", "HardwareFault"], ["The input voltage is below the minimum voltage.", "A warning was raised by the device's CAN controller.", "Breaker fault on channel 0.", "Breaker fault on channel 10.", "Breaker fault on channel 12.", "Breaker fault on channel 13.", "Breaker fault on channel 14.", "Breaker fault on channel 15.", "Breaker fault on channel 16.", "Breaker fault on channel 17.", "Breaker fault on channel 18.", "Breaker fault on channel 19.", "Breaker fault on channel 20.", "Breaker fault on channel 1.", "Breaker fault on channel 21.", "Breaker fault on channel 22.", "Breaker fault on channel 23.", "Breaker fault on channel 24.", "Breaker fault on channel 2.", "Breaker fault on channel 3.", "Breaker fault on channel 4.", "Breaker fault on channel 5.", "Breaker fault on channel 6.", "Breaker fault on channel 7.", "Breaker fault on channel 8.", "Breaker fault on channel 9.", "The hardware on the device has malfunctioned."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 56 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "CanWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "CanWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel0BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel0BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel10BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel10BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel11BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel11BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel12BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel12BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel13BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel13BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel14BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel14BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel15BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel15BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel16BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel16BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel17BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel17BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel18BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel18BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel19BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel19BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel1BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel1BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel20BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel20BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel21BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel21BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel22BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel22BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel23BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel23BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel2BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel2BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel3BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel3BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel4BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel4BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel5BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel5BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel6BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel6BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel7BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel7BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel8BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel8BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel9BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "Channel9BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "HardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Faults", "varType": "int", "importModule": "", "selfLabel": "faults", "selfType": "wpilib.PowerDistribution.Faults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "VAR": "HardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myFaults"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PowerDistribution.Faults", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "faults", "type": "wpilib.PowerDistribution.Faults"}, {"name": "channel", "type": "int"}], "tooltip": "Gets whether there is a breaker fault at a specified channel.\n\n:param channel: Channel to check for faults.\n\n:returns: If there is a breaker fault.\n @throws A ChannelIndexOutOfRange error if the given int is outside of the\n range supported by the hardware.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Faults", "FUNC": "getBreakerFault"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFaults"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Faults",
- contents: contents,
- className: "wpilib.PowerDistribution.Faults",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PowerDistribution.StickyFaults.ts b/src/blocks/generated/class_wpilib.PowerDistribution.StickyFaults.ts
deleted file mode 100644
index 47311335..00000000
--- a/src/blocks/generated/class_wpilib.PowerDistribution.StickyFaults.ts
+++ /dev/null
@@ -1,92 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PowerDistribution.StickyFaults
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("wpilib.PowerDistribution.StickyFaults", "int", ["Brownout", "CanBusOff", "CanWarning", "Channel0BreakerFault", "Channel10BreakerFault", "Channel11BreakerFault", "Channel12BreakerFault", "Channel13BreakerFault", "Channel14BreakerFault", "Channel15BreakerFault", "Channel16BreakerFault", "Channel17BreakerFault", "Channel18BreakerFault", "Channel19BreakerFault", "Channel1BreakerFault", "Channel20BreakerFault", "Channel21BreakerFault", "Channel22BreakerFault", "Channel23BreakerFault", "Channel2BreakerFault", "Channel3BreakerFault", "Channel4BreakerFault", "Channel5BreakerFault", "Channel6BreakerFault", "Channel7BreakerFault", "Channel8BreakerFault", "Channel9BreakerFault", "FirmwareFault", "HardwareFault", "HasReset"], ["The input voltage is below the minimum voltage.", "The device's CAN controller experienced a \"Bus Off\" event.", "A warning was raised by the device's CAN controller.", "Breaker fault on channel 0.", "Breaker fault on channel 10.", "Breaker fault on channel 12.", "Breaker fault on channel 13.", "Breaker fault on channel 14.", "Breaker fault on channel 15.", "Breaker fault on channel 16.", "Breaker fault on channel 17.", "Breaker fault on channel 18.", "Breaker fault on channel 19.", "Breaker fault on channel 20.", "Breaker fault on channel 1.", "Breaker fault on channel 21.", "Breaker fault on channel 22.", "Breaker fault on channel 23.", "Breaker fault on channel 24.", "Breaker fault on channel 2.", "Breaker fault on channel 3.", "Breaker fault on channel 4.", "Breaker fault on channel 5.", "Breaker fault on channel 6.", "Breaker fault on channel 7.", "Breaker fault on channel 8.", "Breaker fault on channel 9.", "The firmware on the device has malfunctioned.", "The hardware on the device has malfunctioned.", "The device has rebooted."]);
- setPythonVariable.initializeInstanceVariableSetter("wpilib.PowerDistribution.StickyFaults", "int", ["Brownout", "CanBusOff", "CanWarning", "Channel0BreakerFault", "Channel10BreakerFault", "Channel11BreakerFault", "Channel12BreakerFault", "Channel13BreakerFault", "Channel14BreakerFault", "Channel15BreakerFault", "Channel16BreakerFault", "Channel17BreakerFault", "Channel18BreakerFault", "Channel19BreakerFault", "Channel1BreakerFault", "Channel20BreakerFault", "Channel21BreakerFault", "Channel22BreakerFault", "Channel23BreakerFault", "Channel2BreakerFault", "Channel3BreakerFault", "Channel4BreakerFault", "Channel5BreakerFault", "Channel6BreakerFault", "Channel7BreakerFault", "Channel8BreakerFault", "Channel9BreakerFault", "FirmwareFault", "HardwareFault", "HasReset"], ["The input voltage is below the minimum voltage.", "The device's CAN controller experienced a \"Bus Off\" event.", "A warning was raised by the device's CAN controller.", "Breaker fault on channel 0.", "Breaker fault on channel 10.", "Breaker fault on channel 12.", "Breaker fault on channel 13.", "Breaker fault on channel 14.", "Breaker fault on channel 15.", "Breaker fault on channel 16.", "Breaker fault on channel 17.", "Breaker fault on channel 18.", "Breaker fault on channel 19.", "Breaker fault on channel 20.", "Breaker fault on channel 1.", "Breaker fault on channel 21.", "Breaker fault on channel 22.", "Breaker fault on channel 23.", "Breaker fault on channel 24.", "Breaker fault on channel 2.", "Breaker fault on channel 3.", "Breaker fault on channel 4.", "Breaker fault on channel 5.", "Breaker fault on channel 6.", "Breaker fault on channel 7.", "Breaker fault on channel 8.", "Breaker fault on channel 9.", "The firmware on the device has malfunctioned.", "The hardware on the device has malfunctioned.", "The device has rebooted."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 62 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Brownout"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "CanBusOff"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "CanBusOff"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "CanWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "CanWarning"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel0BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel0BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel10BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel10BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel11BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel11BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel12BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel12BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel13BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel13BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel14BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel14BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel15BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel15BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel16BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel16BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel17BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel17BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel18BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel18BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel19BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel19BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel1BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel1BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel20BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel20BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel21BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel21BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel22BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel22BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel23BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel23BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel2BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel2BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel3BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel3BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel4BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel4BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel5BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel5BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel6BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel6BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel7BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel7BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel8BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel8BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel9BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "Channel9BreakerFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "FirmwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "FirmwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "HardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "HardwareFault"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "HasReset"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.StickyFaults", "varType": "int", "importModule": "", "selfLabel": "stickyFaults", "selfType": "wpilib.PowerDistribution.StickyFaults"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "VAR": "HasReset"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myStickyFaults"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PowerDistribution.StickyFaults", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "stickyFaults", "type": "wpilib.PowerDistribution.StickyFaults"}, {"name": "channel", "type": "int"}], "tooltip": "Gets whether there is a sticky breaker fault at the specified channel.\n\n:param channel: Index to check for sticky faults.\n\n:returns: True if there is a sticky breaker fault at the channel, otherwise\n false.\n @throws A ChannelIndexOutOfRange error if the provided channel is outside\n of the range supported by the hardware.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.StickyFaults", "FUNC": "getBreakerFault"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStickyFaults"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "StickyFaults",
- contents: contents,
- className: "wpilib.PowerDistribution.StickyFaults",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PowerDistribution.Version.ts b/src/blocks/generated/class_wpilib.PowerDistribution.Version.ts
deleted file mode 100644
index 0e415f62..00000000
--- a/src/blocks/generated/class_wpilib.PowerDistribution.Version.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as setPythonVariable from "../mrc_set_python_variable";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PowerDistribution.Version
-
-export function initialize() {
- getPythonVariable.initializeInstanceVariableGetter("wpilib.PowerDistribution.Version", "int", ["FirmwareFix", "FirmwareMajor", "FirmwareMinor", "HardwareMajor", "HardwareMinor", "UniqueId"], ["Firmware fix version number.", "Firmware major version number.", "Firmware minor version number.", "Hardware major version number.", "Hardware minor version number.", "Unique ID."]);
- setPythonVariable.initializeInstanceVariableSetter("wpilib.PowerDistribution.Version", "int", ["FirmwareFix", "FirmwareMajor", "FirmwareMinor", "HardwareMajor", "HardwareMinor", "UniqueId"], ["Firmware fix version number.", "Firmware major version number.", "Firmware minor version number.", "Hardware major version number.", "Hardware minor version number.", "Unique ID."]);
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 13 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PowerDistribution.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Version", "VAR": "FirmwareFix"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PowerDistribution.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Version", "VAR": "FirmwareFix"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PowerDistribution.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Version", "VAR": "FirmwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PowerDistribution.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Version", "VAR": "FirmwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PowerDistribution.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Version", "VAR": "FirmwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PowerDistribution.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Version", "VAR": "FirmwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PowerDistribution.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Version", "VAR": "HardwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PowerDistribution.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Version", "VAR": "HardwareMajor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PowerDistribution.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Version", "VAR": "HardwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PowerDistribution.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Version", "VAR": "HardwareMinor"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PowerDistribution.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Version", "VAR": "UniqueId"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpilib.PowerDistribution.Version", "varType": "int", "importModule": "", "selfLabel": "version", "selfType": "wpilib.PowerDistribution.Version"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Version", "VAR": "UniqueId"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myVersion"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myVersion"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PowerDistribution.Version", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution.Version"}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Version",
- contents: contents,
- className: "wpilib.PowerDistribution.Version",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.PowerDistribution.ts b/src/blocks/generated/class_wpilib.PowerDistribution.ts
deleted file mode 100644
index 056d9e99..00000000
--- a/src/blocks/generated/class_wpilib.PowerDistribution.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as getPythonVariable from "../mrc_get_python_variable";
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.PowerDistribution
-
-export function initialize() {
- getPythonVariable.initializeClassVariableGetter("wpilib.PowerDistribution", "int", ["kDefaultModule"], []);
- pythonEnum.initializeEnum("wpilib.PowerDistribution.ModuleType", ["kCTRE", "kRev"], "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).");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 23 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.PowerDistribution", "varType": "int", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "VAR": "kDefaultModule"}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPowerDistribution"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PowerDistribution", "args": [], "tooltip": "Constructs a PowerDistribution object.\n\nDetects the connected PDP/PDH using the default CAN ID (0 for CTRE and 1\nfor REV).", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPowerDistribution"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.PowerDistribution", "args": [{"name": "module", "type": "int"}, {"name": "moduleType", "type": "wpilib.PowerDistribution.ModuleType"}], "tooltip": "Constructs a PowerDistribution object.\n\n:param module: The CAN ID of the PDP/PDH\n:param moduleType: The type of module", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myModuleType"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "Remove all of the fault flags on the PDP/PDH.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "clearStickyFaults"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myList"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "list[float]", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "Query all currents of the PDP.\n\n:returns: The current of each channel in Amperes", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "getAllCurrents"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}, {"name": "channel", "type": "int"}], "tooltip": "Query the current of a single channel of the PDP/PDH.\n\n:param channel: the channel to query (0-15 for PDP, 0-23 for PDH)\n\n:returns: The current of the channel in Amperes", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "getCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myFaults"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.PowerDistribution.Faults", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "Returns the power distribution faults.\n\nOn a CTRE PDP, this will return an object with no faults active.\n\n:returns: The power distribution faults.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "getFaults"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "Gets module number (CAN ID).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "getModule"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "Gets the number of channels for this power distribution object.\n\n:returns: Number of output channels (16 for PDP, 24 for PDH).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "getNumChannels"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myStickyFaults"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.PowerDistribution.StickyFaults", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "Returns the power distribution sticky faults.\n\nOn a CTRE PDP, this will return an object with no faults active.\n\n:returns: The power distribution sticky faults.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "getStickyFaults"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "Gets whether the PDH switchable channel is turned on or off. Returns false\nwith the CTRE PDP.\n\n:returns: The output state of the PDH switchable channel", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "getSwitchableChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "Query the temperature of the PDP.\n\nNot supported on the Rev PDH and returns 0.\n\n:returns: The temperature in degrees Celsius", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "getTemperature"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "Query the total current of all monitored PDP/PDH channels.\n\n:returns: The total current drawn from all channels in Amperes", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "getTotalCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "Query the total energy drawn from the monitored PDP channels.\n\nNot supported on the Rev PDH and returns 0.\n\n:returns: The total energy drawn in Joules", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "getTotalEnergy"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "Query the total power drawn from all monitored PDP channels.\n\nNot supported on the Rev PDH and returns 0.\n\n:returns: The total power drawn in Watts", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "getTotalPower"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myModuleType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.PowerDistribution.ModuleType", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "Gets module type.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myVersion"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.PowerDistribution.Version", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "getVersion"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "Query the input voltage of the PDP/PDH.\n\n:returns: The input voltage in volts", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}], "tooltip": "Reset the total energy drawn from the PDP.\n\nNot supported on the Rev PDH and does nothing.\n\n@see PowerDistribution#GetTotalEnergy", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "resetTotalEnergy"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "powerDistribution", "type": "wpilib.PowerDistribution"}, {"name": "enabled", "type": "bool"}], "tooltip": "Sets the PDH switchable channel on or off. Does nothing with the CTRE PDP.\n\n:param enabled: Whether to turn the PDH switchable channel on or off", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PowerDistribution", "FUNC": "setSwitchableChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.PowerDistribution.ModuleType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.PowerDistribution.ModuleType", "ENUM_VALUE": "kCTRE"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.PowerDistribution.ModuleType", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.PowerDistribution.ModuleType", "ENUM_VALUE": "kRev"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "PowerDistribution",
- contents: contents,
- className: "wpilib.PowerDistribution",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.Preferences.ts b/src/blocks/generated/class_wpilib.Preferences.ts
deleted file mode 100644
index c32a54a3..00000000
--- a/src/blocks/generated/class_wpilib.Preferences.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.Preferences
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 22 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "key", "type": "str"}], "tooltip": "Returns whether or not there is a key with the given name.\n\n:param key: the key\n\n:returns: if there is a value at the given key", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "containsKey"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "key", "type": "str"}, {"name": "defaultValue", "type": "bool"}], "tooltip": "Returns the boolean at the given key. If this table does not have a value\nfor that position, then the given defaultValue value will be returned.\n\n:param key: the key\n:param defaultValue: the value to return if none exists in the table\n\n:returns: either the value in the table, or the defaultValue", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "getBoolean"}, "inputs": {"ARG1": {"shadow": {"type": "logic_boolean", "fields": {"BOOL": "FALSE"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "float", "args": [{"name": "key", "type": "str"}, {"name": "defaultValue", "type": "float"}], "tooltip": "Returns the double at the given key. If this table does not have a value\nfor that position, then the given defaultValue value will be returned.\n\n:param key: the key\n:param defaultValue: the value to return if none exists in the table\n\n:returns: either the value in the table, or the defaultValue", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "getDouble"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "float", "args": [{"name": "key", "type": "str"}, {"name": "defaultValue", "type": "float"}], "tooltip": "Returns the float at the given key. If this table does not have a value\nfor that position, then the given defaultValue value will be returned.\n\n:param key: the key\n:param defaultValue: the value to return if none exists in the table\n\n:returns: either the value in the table, or the defaultValue", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "getFloat"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [{"name": "key", "type": "str"}, {"name": "defaultValue", "type": "int"}], "tooltip": "Returns the int at the given key. If this table does not have a value for\nthat position, then the given defaultValue value will be returned.\n\n:param key: the key\n:param defaultValue: the value to return if none exists in the table\n\n:returns: either the value in the table, or the defaultValue", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "getInt"}, "inputs": {"ARG1": {"shadow": {"type": "math_number", "fields": {"NUM": 0.0}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myList"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "list[str]", "args": [], "tooltip": "Returns a vector of all the keys.\n\n:returns: a vector of the keys", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "getKeys"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [{"name": "key", "type": "str"}, {"name": "defaultValue", "type": "int"}], "tooltip": "Returns the long (int64_t) at the given key. If this table does not have a\nvalue for that position, then the given defaultValue value will be\nreturned.\n\n:param key: the key\n:param defaultValue: the value to return if none exists in the table\n\n:returns: either the value in the table, or the defaultValue", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "getLong"}, "inputs": {"ARG1": {"shadow": {"type": "math_number", "fields": {"NUM": 0.0}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "str", "args": [{"name": "key", "type": "str"}, {"name": "defaultValue", "type": "str"}], "tooltip": "Returns the string at the given key. If this table does not have a value\nfor that position, then the given defaultValue will be returned.\n\n:param key: the key\n:param defaultValue: the value to return if none exists in the table\n\n:returns: either the value in the table, or the defaultValue", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "getString"}, "inputs": {"ARG1": {"shadow": {"type": "text", "fields": {"TEXT": ""}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "key", "type": "str"}, {"name": "value", "type": "bool"}], "tooltip": "Puts the given boolean into the preferences table if it doesn't\nalready exist.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "initBoolean"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "key", "type": "str"}, {"name": "value", "type": "float"}], "tooltip": "Puts the given double into the preferences table if it doesn't\nalready exist.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "initDouble"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "key", "type": "str"}, {"name": "value", "type": "float"}], "tooltip": "Puts the given float into the preferences table if it doesn't\nalready exist.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "initFloat"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "key", "type": "str"}, {"name": "value", "type": "int"}], "tooltip": "Puts the given int into the preferences table if it doesn't\nalready exist.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "initInt"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "key", "type": "str"}, {"name": "value", "type": "int"}], "tooltip": "Puts the given long into the preferences table if it doesn't\nalready exist.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "initLong"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "key", "type": "str"}, {"name": "value", "type": "str"}], "tooltip": "Puts the given string into the preferences table if it doesn't\nalready exist.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "initString"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "key", "type": "str"}], "tooltip": "Remove a preference.\n\n:param key: the key", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "remove"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Remove all preferences.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "removeAll"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "key", "type": "str"}, {"name": "value", "type": "bool"}], "tooltip": "Puts the given boolean into the preferences table.\n\nThe key may not have any whitespace nor an equals sign.\n\n:param key: the key\n:param value: the value", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "setBoolean"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "key", "type": "str"}, {"name": "value", "type": "float"}], "tooltip": "Puts the given double into the preferences table.\n\nThe key may not have any whitespace nor an equals sign.\n\n:param key: the key\n:param value: the value", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "setDouble"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "key", "type": "str"}, {"name": "value", "type": "float"}], "tooltip": "Puts the given float into the preferences table.\n\nThe key may not have any whitespace nor an equals sign.\n\n:param key: the key\n:param value: the value", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "setFloat"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "key", "type": "str"}, {"name": "value", "type": "int"}], "tooltip": "Puts the given int into the preferences table.\n\nThe key may not have any whitespace nor an equals sign.\n\n:param key: the key\n:param value: the value", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "setInt"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "key", "type": "str"}, {"name": "value", "type": "int"}], "tooltip": "Puts the given long (int64_t) into the preferences table.\n\nThe key may not have any whitespace nor an equals sign.\n\n:param key: the key\n:param value: the value", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "setLong"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "key", "type": "str"}, {"name": "value", "type": "str"}], "tooltip": "Puts the given string into the preferences table.\n\nThe value may not have quotation marks, nor may the key have any whitespace\nnor an equals sign.\n\n:param key: the key\n:param value: the value", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Preferences", "FUNC": "setString"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Preferences",
- contents: contents,
- className: "wpilib.Preferences",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.Relay.ts b/src/blocks/generated/class_wpilib.Relay.ts
deleted file mode 100644
index c34cb8f4..00000000
--- a/src/blocks/generated/class_wpilib.Relay.ts
+++ /dev/null
@@ -1,51 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.Relay
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.Relay.Direction", ["kBothDirections", "kForwardOnly", "kReverseOnly"], "The Direction(s) that a relay is configured to operate in.\n\nMembers:\n\n kBothDirections : Both directions are valid.\n\n kForwardOnly : Only forward is valid.\n\n kReverseOnly : Only reverse is valid.");
- pythonEnum.initializeEnum("wpilib.Relay.Value", ["kForward", "kOff", "kOn", "kReverse"], "The state to drive a Relay to.\n\nMembers:\n\n kOff : Off.\n\n kOn : On.\n\n kForward : Forward.\n\n kReverse : Reverse.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 22 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myRelay"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Relay", "args": [{"name": "channel", "type": "int"}, {"name": "direction", "type": "wpilib.Relay.Direction"}], "tooltip": "Relay constructor given a channel.\n\nThis code initializes the relay and reserves all resources that need to be\nlocked. Initially the relay is set to both lines at 0v.\n\n:param channel: The channel number (0-3).\n:param direction: The direction that the Relay object will control.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Relay"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDirection"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Check if this motor has exceeded its timeout.\n\nThis method is called periodically to determine if this motor has exceeded\nits timeout value. If it has, the stop method is called, and the motor is\nshut down until its value is updated again.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "check"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Check the motors to see if any have timed out.\n\nThis static method is called periodically to poll all the motors and stop\nany that have timed out.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Relay", "FUNC": "checkMotors"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Feed the motor safety object.\n\nResets the timer on this object that is used to do the timeouts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "feed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myValue"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.Relay.Value", "args": [{"name": "relay", "type": "wpilib.Relay"}], "tooltip": "Get the Relay State\n\nGets the current state of the relay.\n\nWhen set to kForwardOnly or kReverseOnly, value is returned as kOn/kOff not\nkForward/kReverse (per the recommendation in Set).\n\n:returns: The current state of the relay as a Relay::Value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Relay", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelay"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "relay", "type": "wpilib.Relay"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Relay", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelay"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "relay", "type": "wpilib.Relay"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Relay", "FUNC": "getDescription"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelay"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Retrieve the timeout value for the corresponding motor safety object.\n\n:returns: the timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "getExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "relay", "type": "wpilib.Relay"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Relay", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelay"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Determine if the motor is still operating or has timed out.\n\n:returns: true if the motor is still operating normally and hasn't timed out.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isAlive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Return the state of the motor safety enabled flag.\n\nReturn if the motor safety is currently enabled for this device.\n\n:returns: True if motor safety is enforced for this device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "relay", "type": "wpilib.Relay"}, {"name": "value", "type": "wpilib.Relay.Value"}], "tooltip": "Set the relay state.\n\nValid values depend on which directions of the relay are controlled by the\nobject.\n\nWhen set to kBothDirections, the relay can be any of the four states:\n0v-0v, 0v-12v, 12v-0v, 12v-12v\n\nWhen set to kForwardOnly or kReverseOnly, you can specify the constant for\nthe direction or you can simply specify kOff and kOn. Using only kOff and\nkOn is recommended.\n\n:param value: The state to set the relay.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Relay", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelay"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myValue"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "expirationTime", "type": "wpimath.units.seconds"}], "tooltip": "Set the expiration time for the corresponding motor safety object.\n\n:param expirationTime: The timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enable/disable motor safety for this device.\n\nTurn on and off the motor safety option for this PWM object.\n\n:param enabled: True if motor safety is enforced for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "relay", "type": "wpilib.Relay"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Relay", "FUNC": "stopMotor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelay"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Relay.Direction", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Relay.Direction", "ENUM_VALUE": "kBothDirections"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Relay.Direction", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Relay.Direction", "ENUM_VALUE": "kForwardOnly"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Relay.Direction", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Relay.Direction", "ENUM_VALUE": "kReverseOnly"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Relay.Value", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Relay.Value", "ENUM_VALUE": "kForward"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Relay.Value", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Relay.Value", "ENUM_VALUE": "kOff"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Relay.Value", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Relay.Value", "ENUM_VALUE": "kOn"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.Relay.Value", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.Relay.Value", "ENUM_VALUE": "kReverse"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Relay",
- contents: contents,
- className: "wpilib.Relay",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.RobotBase.ts b/src/blocks/generated/class_wpilib.RobotBase.ts
deleted file mode 100644
index e4151f8e..00000000
--- a/src/blocks/generated/class_wpilib.RobotBase.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.RobotBase
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 16 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myRobotBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.RobotBase", "args": [], "tooltip": "Constructor for a generic robot program.\n\nUser code can be placed in the constructor that runs before the\nAutonomous or Operator Control period starts. The constructor will run to\ncompletion before Autonomous is entered.\n\nThis must be used to ensure that the communications code starts. In the\nfuture it would be nice to put this code into it's own task that loads on\nboot so ensure that it runs.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Ends the main loop in StartCompetition().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "endCompetition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myTuple"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "tuple[bool, bool, bool]", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "More efficient way to determine what state the robot is in.\n\n:returns: booleans representing enabled, isautonomous, istest\n\n.. versionadded:: 2019.2.1\n\n.. note:: This function only exists in RobotPy", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "getControlState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myRuntimeType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.RuntimeType", "args": [], "tooltip": "Get the current runtime type.\n\n:returns: Current runtime type.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "getRuntimeType"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the robot is currently in Autonomous mode.\n\n:returns: True if the robot is currently operating Autonomously as determined\n by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isAutonomous"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the robot is currently in Autonomous mode and enabled.\n\n:returns: True if the robot us currently operating Autonomously while enabled\n as determined by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isAutonomousEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the Robot is currently disabled.\n\n:returns: True if the Robot is currently disabled by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isDisabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the Robot is currently enabled.\n\n:returns: True if the Robot is currently enabled by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Get if the robot is real.\n\n:returns: If the robot is running in the real world.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isReal"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Get if the robot is a simulation.\n\n:returns: If the robot is running in simulation.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isSimulation"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the robot is currently in Operator Control mode.\n\n:returns: True if the robot is currently operating in Tele-Op mode as\n determined by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isTeleop"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the robot is current in Operator Control mode and enabled.\n\n:returns: True if the robot is currently operating in Tele-Op mode while\n enabled as determined by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isTeleopEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the robot is currently in Test mode.\n\n:returns: True if the robot is currently running in Test mode as determined\n by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isTest"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Determine if the robot is current in Test mode and enabled.\n\n:returns: True if the robot is currently operating in Test mode while\n enabled as determined by the Driver Station.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "isTestEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "object", "args": [{"name": "robot_cls", "type": "object"}], "tooltip": "Starting point for the application", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "main"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "robotBase", "type": "wpilib.RobotBase"}], "tooltip": "Start the main robot code. This function will be called once and should not\nexit until signalled by EndCompetition()", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotBase", "FUNC": "startCompetition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRobotBase"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "RobotBase",
- contents: contents,
- className: "wpilib.RobotBase",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.RobotController.ts b/src/blocks/generated/class_wpilib.RobotController.ts
deleted file mode 100644
index e74ad572..00000000
--- a/src/blocks/generated/class_wpilib.RobotController.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.RobotController
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 39 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.volts", "args": [], "tooltip": "Read the battery voltage.\n\n:returns: The battery voltage in Volts.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getBatteryVoltage"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.volts", "args": [], "tooltip": "Get the current brownout voltage setting.\n\n:returns: The brownout voltage", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getBrownoutVoltage"}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCANStatus"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.CANStatus", "args": [], "tooltip": "Get the current status of the CAN bus.\n\n:returns: The status of the CAN bus", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getCANStatus"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.celsius", "args": [], "tooltip": "Get the current CPU temperature.\n\n:returns: current CPU temperature", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getCPUTemp"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "str", "args": [], "tooltip": "Return the comments from the roboRIO web interface.\n\nThe comments string is cached after the first call to this function on the\nRoboRIO - restart the robot code to reload the comments string after\nchanging it in the web interface.\n\n:returns: The comments from the roboRIO web interface.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getComments"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Gets the number of times the system has been disabled due to communication\nerrors with the Driver Station.\n\n:returns: number of disables due to communication errors.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getCommsDisableCount"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "float", "args": [], "tooltip": "Get the current output of the 3.3V rail.\n\n:returns: The controller 3.3V rail output current value in Amps", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getCurrent3V3"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "float", "args": [], "tooltip": "Get the current output of the 5V rail.\n\n:returns: The controller 5V rail output current value in Amps", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getCurrent5V"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "float", "args": [], "tooltip": "Get the current output of the 6V rail.\n\n:returns: The controller 6V rail output current value in Amps", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getCurrent6V"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Get the enabled state of the 3.3V rail. The rail may be disabled due to\ncalling SetEnabled3V3(), a controller brownout, a short circuit on the\nrail, or controller over-voltage.\n\n:returns: The controller 3.3V rail enabled value. True for enabled.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getEnabled3V3"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Get the enabled state of the 5V rail. The rail may be disabled due to\ncalling SetEnabled5V(), a controller brownout, a short circuit on the rail,\nor controller over-voltage.\n\n:returns: The controller 5V rail enabled value. True for enabled.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getEnabled5V"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Get the enabled state of the 6V rail. The rail may be disabled due to\ncalling SetEnabled6V(), a controller brownout, a short circuit on the rail,\nor controller over-voltage.\n\n:returns: The controller 6V rail enabled value. True for enabled.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getEnabled6V"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Return the FPGA Revision number.\n\nThe format of the revision is 3 numbers. The 12 most significant bits are\nthe Major Revision. The next 8 bits are the Minor Revision. The 12 least\nsignificant bits are the Build Number.\n\n:returns: FPGA Revision number.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getFPGARevision"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Read the microsecond-resolution timer on the FPGA.\n\n:returns: The current time in microseconds according to the FPGA (since FPGA\n reset).", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getFPGATime"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Return the FPGA Version number.\n\nFor now, expect this to be competition year.\n\n:returns: FPGA Version number.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getFPGAVersion"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Get the count of the total current faults on the 3.3V rail since the\ncode started.\n\n:returns: The number of faults", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getFaultCount3V3"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Get the count of the total current faults on the 5V rail since the\ncode started.\n\n:returns: The number of faults", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getFaultCount5V"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Get the count of the total current faults on the 6V rail since the\ncode started.\n\n:returns: The number of faults.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getFaultCount6V"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "float", "args": [], "tooltip": "Get the input current to the robot controller.\n\n:returns: The controller input current value in Amps", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getInputCurrent"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "float", "args": [], "tooltip": "Get the input voltage to the robot controller.\n\n:returns: The controller input voltage value in Volts", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getInputVoltage"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Gets the current state of the Robot Signal Light (RSL)\n\n:returns: The current state of the RSL- true if on, false if off", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getRSLState"}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myRadioLEDState"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.RadioLEDState", "args": [], "tooltip": "Get the state of the \"Radio\" LED. On the RoboRIO, this reads from sysfs, so\nthis function should not be called multiple times per loop cycle to avoid\noverruns.\n\n:returns: The state of the LED.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getRadioLEDState"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "str", "args": [], "tooltip": "Return the serial number of the roboRIO.\n\n:returns: The serial number of the roboRIO.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getSerialNumber"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Returns the team number configured for the robot controller.\n\n:returns: team number, or 0 if not found.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getTeamNumber"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Read the microsecond timestamp. By default, the time is based on the FPGA\nhardware clock in microseconds since the FPGA started. However, the return\nvalue of this method may be modified to use any time base, including\nnon-monotonic and non-continuous time bases.\n\n:returns: The current time in microseconds.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getTime"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Get the state of the \"USER\" button on the roboRIO.\n\n@warning the User Button is used to stop user programs from automatically\nloading if it is held for more then 5 seconds. Because of this, it's not\nrecommended to be used by teams for any other purpose.\n\n:returns: True if the button is currently pressed down", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getUserButton"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "float", "args": [], "tooltip": "Get the voltage of the 3.3V rail.\n\n:returns: The controller 3.3V rail voltage value in Volts", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getVoltage3V3"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "float", "args": [], "tooltip": "Get the voltage of the 5V rail.\n\n:returns: The controller 5V rail voltage value in Volts", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getVoltage5V"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "float", "args": [], "tooltip": "Get the voltage of the 6V rail.\n\n:returns: The controller 6V rail voltage value in Volts", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "getVoltage6V"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the system is browned out.\n\n:returns: True if the system is browned out", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "isBrownedOut"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the FPGA outputs are enabled.\n\nThe outputs may be disabled if the robot is disabled or e-stopped, the\nwatchdog has expired, or if the roboRIO browns out.\n\n:returns: True if the FPGA outputs are enabled.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "isSysActive"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Gets if the system time is valid.\n\n:returns: True if the system time is valid, false otherwise", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "isSystemTimeValid"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Reset the overcurrent fault counters for all user rails to 0.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "resetRailFaultCounts"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "brownoutVoltage", "type": "wpimath.units.volts"}], "tooltip": "Set the voltage the roboRIO will brownout and disable all outputs.\n\nNote that this only does anything on the roboRIO 2.\nOn the roboRIO it is a no-op.\n\n:param brownoutVoltage: The brownout voltage", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "setBrownoutVoltage"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "enabled", "type": "bool"}], "tooltip": "Enables or disables the 3.3V rail.\n\n:param enabled: whether to enable the 3.3V rail.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "setEnabled3V3"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "enabled", "type": "bool"}], "tooltip": "Enables or disables the 5V rail.\n\n:param enabled: whether to enable the 5V rail.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "setEnabled5V"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "enabled", "type": "bool"}], "tooltip": "Enables or disables the 6V rail.\n\n:param enabled: whether to enable the 6V rail.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "setEnabled6V"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "state", "type": "wpilib.RadioLEDState"}], "tooltip": "Set the state of the \"Radio\" LED. On the RoboRIO, this writes to sysfs, so\nthis function should not be called multiple times per loop cycle to avoid\noverruns.\n\n:param state: The state to set the LED to.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "setRadioLEDState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRadioLEDState"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "supplier", "type": "Callable[[], int]"}], "tooltip": "Sets a new source to provide the clock time in microseconds. Changing this\naffects the return value of ``GetTime``.\n\n:param supplier: Function to return the time in microseconds.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotController", "FUNC": "setTimeSource"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "RobotController",
- contents: contents,
- className: "wpilib.RobotController",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.RobotState.ts b/src/blocks/generated/class_wpilib.RobotState.ts
deleted file mode 100644
index cc7e9204..00000000
--- a/src/blocks/generated/class_wpilib.RobotState.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.RobotState
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 6 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Returns true if the robot is in autonomous mode.\n\n:returns: True if the robot is in autonomous mode.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotState", "FUNC": "isAutonomous"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Returns true if the robot is disabled.\n\n:returns: True if the robot is disabled.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotState", "FUNC": "isDisabled"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Returns true if the robot is E-stopped.\n\n:returns: True if the robot is E-stopped.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotState", "FUNC": "isEStopped"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Returns true if the robot is enabled.\n\n:returns: True if the robot is enabled.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotState", "FUNC": "isEnabled"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Returns true if the robot is in teleop mode.\n\n:returns: True if the robot is in teleop mode.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotState", "FUNC": "isTeleop"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Returns true if the robot is in test mode.\n\n:returns: True if the robot is in test mode.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.RobotState", "FUNC": "isTest"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "RobotState",
- contents: contents,
- className: "wpilib.RobotState",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.SD540.ts b/src/blocks/generated/class_wpilib.SD540.ts
deleted file mode 100644
index f707003b..00000000
--- a/src/blocks/generated/class_wpilib.SD540.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.SD540
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 22 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySD540"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.SD540", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructor for a SD540 connected via PWM.\n\n:param channel: The PWM channel that the SD540 is attached to. 0-9 are\n on-board, 10-19 are on the MXP port", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SD540"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "follower", "type": "wpilib.PWMMotorController"}], "tooltip": "Make the given PWM motor controller follow the output of this one.\n\n:param follower: The motor controller follower.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "addFollower"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Check if this motor has exceeded its timeout.\n\nThis method is called periodically to determine if this motor has exceeded\nits timeout value. If it has, the stop method is called, and the motor is\nshut down until its value is updated again.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "check"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Check the motors to see if any have timed out.\n\nThis static method is called periodically to poll all the motors and stop\nany that have timed out.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SD540", "FUNC": "checkMotors"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "disable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "eliminateDeadband", "type": "bool"}], "tooltip": "Optionally eliminate the deadband from a motor controller.\n\n:param eliminateDeadband: If true, set the motor curve on the motor\n controller to eliminate the deadband in the middle\n of the range. Otherwise, keep the full range\n without modifying any values.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "enableDeadbandElimination"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Feed the motor safety object.\n\nResets the timer on this object that is used to do the timeouts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "feed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Get the recently set value of the PWM. This value is affected by the\ninversion property. If you want the value that is sent directly to the\nMotorController, use PWM::GetSpeed() instead.\n\n:returns: The most recently set value for the PWM between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getDescription"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Retrieve the timeout value for the corresponding motor safety object.\n\n:returns: the timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "getExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "Gets the voltage output of the motor controller, nominally between -12 V\nand 12 V.\n\n:returns: The voltage of the motor controller, nominally between -12 V and 12\n V.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendable", "type": "wpiutil.Sendable"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "Initializes this Sendable object.\n\n:param builder: sendable builder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpiutil.Sendable", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Determine if the motor is still operating or has timed out.\n\n:returns: true if the motor is still operating normally and hasn't timed out.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isAlive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}], "tooltip": "Return the state of the motor safety enabled flag.\n\nReturn if the motor safety is currently enabled for this device.\n\n:returns: True if motor safety is enforced for this device.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "isSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "value", "type": "float"}], "tooltip": "Set the PWM value.\n\nThe PWM value is set using a range of -1.0 to 1.0, appropriately scaling\nthe value for the FPGA.\n\n:param value: The speed value between -1.0 and 1.0 to set.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "expirationTime", "type": "wpimath.units.seconds"}], "tooltip": "Set the expiration time for the corresponding motor safety object.\n\n:param expirationTime: The timeout value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setExpiration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "isInverted", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setInverted"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "motorSafety", "type": "wpilib.MotorSafety"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enable/disable motor safety for this device.\n\nTurn on and off the motor safety option for this PWM object.\n\n:param enabled: True if motor safety is enforced for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.MotorSafety", "FUNC": "setSafetyEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorSafety"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}, {"name": "output", "type": "wpimath.units.volts"}], "tooltip": "Sets the voltage output of the PWMMotorController. Compensates for\nthe current bus voltage to ensure that the desired voltage is output even\nif the battery voltage is below 12V - highly useful when the voltage\noutputs are \"meaningful\" (e.g. they come from a feedforward calculation).\n\nNOTE: This function *must* be called regularly in order for voltage\ncompensation to work properly - unlike the ordinary set function, it is not\n\"set it and forget it.\"\n\n:param output: The voltage to output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMMotorController", "type": "wpilib.PWMMotorController"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWMMotorController", "FUNC": "stopMotor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SD540",
- contents: contents,
- className: "wpilib.SD540",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.SPI.ts b/src/blocks/generated/class_wpilib.SPI.ts
deleted file mode 100644
index 81959ae1..00000000
--- a/src/blocks/generated/class_wpilib.SPI.ts
+++ /dev/null
@@ -1,70 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.SPI
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.SPI.Mode", ["kMode0", "kMode1", "kMode2", "kMode3"], "SPI mode.\n\nMembers:\n\n kMode0 : Clock idle low, data sampled on rising edge.\n\n kMode1 : Clock idle low, data sampled on falling edge.\n\n kMode2 : Clock idle high, data sampled on falling edge.\n\n kMode3 : Clock idle high, data sampled on rising edge.");
- pythonEnum.initializeEnum("wpilib.SPI.Port", ["kMXP", "kOnboardCS0", "kOnboardCS1", "kOnboardCS2", "kOnboardCS3"], "SPI port.\n\nMembers:\n\n kOnboardCS0 : Onboard SPI bus port CS0.\n\n kOnboardCS1 : Onboard SPI bus port CS1.\n\n kOnboardCS2 : Onboard SPI bus port CS2.\n\n kOnboardCS3 : Onboard SPI bus port CS3.\n\n kMXP : MXP (roboRIO MXP) SPI bus port.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 41 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySPI"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.SPI", "args": [{"name": "port", "type": "wpilib.SPI.Port"}], "tooltip": "Constructor\n\n:param port: the physical SPI port", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPort"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "port", "type": "hal.SPIPort"}, {"name": "csToSclkTicks", "type": "int"}, {"name": "stallTicks", "type": "int"}, {"name": "pow2BytesPerRead", "type": "int"}], "tooltip": "Configure the Auto SPI Stall time between reads.\n\n:param port: The number of the port to use. 0-3 for Onboard CS0-CS2, 4 for\n MXP.\n:param csToSclkTicks: the number of ticks to wait before asserting the cs\n pin\n:param stallTicks: the number of ticks to stall for\n:param pow2BytesPerRead: the number of bytes to read before stalling", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "configureAutoStall"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIPort"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Force the engine to make a single transfer.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "forceAutoRead"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Frees the accumulator.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "freeAccumulator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Frees the automatic SPI transfer engine.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "freeAuto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Read the average of the accumulated value.\n\n:returns: The accumulated average value (value / count).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "getAccumulatorAverage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Read the number of accumulated values.\n\nRead the count of the accumulated values since the accumulator was last\nReset().\n\n:returns: The number of times samples from the channel were accumulated.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "getAccumulatorCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Read the average of the integrated value. This is the sum of (each value\ntimes the time between values), divided by the count.\n\n:returns: The average of the integrated value accumulated since the last\n Reset().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "getAccumulatorIntegratedAverage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Read the integrated value. This is the sum of (each value * time between\nvalues).\n\n:returns: The integrated value accumulated since the last Reset().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "getAccumulatorIntegratedValue"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Read the last value read by the accumulator engine.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "getAccumulatorLastValue"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myTuple"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "tuple[int, int]", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Read the accumulated value and the number of accumulated values atomically.\n\nThis function reads the value and count atomically.\nThis can be used for averaging.\n\n:param value: Pointer to the 64-bit accumulated output.\n:param count: Pointer to the number of accumulation cycles.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "getAccumulatorOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Read the accumulated value.\n\n:returns: The 64-bit value accumulated since the last Reset().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "getAccumulatorValue"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Get the number of bytes dropped by the automatic SPI transfer engine due\nto the receive buffer being full.\n\n:returns: Number of bytes dropped", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "getAutoDroppedCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPort"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.SPI.Port", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Returns the SPI port.\n\n:returns: The SPI port.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "getPort"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "period", "type": "wpimath.units.seconds"}, {"name": "cmd", "type": "int"}, {"name": "xferSize", "type": "int"}, {"name": "validMask", "type": "int"}, {"name": "validValue", "type": "int"}, {"name": "dataShift", "type": "int"}, {"name": "dataSize", "type": "int"}, {"name": "isSigned", "type": "bool"}, {"name": "bigEndian", "type": "bool"}], "tooltip": "Initialize the accumulator.\n\n:param period: Time between reads\n:param cmd: SPI command to send to request data\n:param xferSize: SPI transfer size, in bytes\n:param validMask: Mask to apply to received data for validity checking\n:param validValue: After valid_mask is applied, required matching value for\n validity checking\n:param dataShift: Bit shift to apply to received data to get actual data\n value\n:param dataSize: Size (in bits) of data field\n:param isSigned: Is data field signed?\n:param bigEndian: Is device big endian?", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "initAccumulator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "bufferSize", "type": "int"}], "tooltip": "Initialize automatic SPI transfer engine.\n\nOnly a single engine is available, and use of it blocks use of all other\nchip select usage on the same physical SPI port while it is running.\n\n:param bufferSize: buffer size in bytes", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "initAuto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "initiate", "type": "bool"}, {"name": "dataReceived", "type": "Buffer"}], "tooltip": "Read a word from the receive FIFO.\n\nWaits for the current transfer to complete if the receive FIFO is empty.\n\nIf the receive FIFO is empty, there is no active transfer, and initiate\nis false, errors.\n\n:param initiate: If true, this function pushes \"0\" into the transmit\n buffer and initiates a transfer. If false, this\n function assumes that data is already in the receive\n FIFO from a previous write.\n:param dataReceived: Buffer to receive data from the device\n:param size: The length of the transaction, in bytes", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "read"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "buffer", "type": "Buffer"}, {"name": "timeout", "type": "wpimath.units.seconds"}], "tooltip": "Read data that has been transferred by the automatic SPI transfer engine.\n\nTransfers may be made a byte at a time, so it's necessary for the caller\nto handle cases where an entire transfer has not been completed.\n\nEach received data sequence consists of a timestamp followed by the\nreceived data bytes, one byte per word (in the least significant byte).\nThe length of each received data sequence is the same as the combined\nsize of the data and zeroSize set in SetAutoTransmitData().\n\nBlocks until numToRead words have been read or timeout expires.\nMay be called with numToRead=0 to retrieve how many words are available.\n\n:param buffer: buffer where read words are stored\n:param numToRead: number of words to read\n:param timeout: timeout (ms resolution)\n\n:returns: Number of words remaining to be read", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "readAutoReceivedData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Resets the accumulator to zero.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "resetAccumulator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "center", "type": "int"}], "tooltip": "Set the center value of the accumulator.\n\nThe center value is subtracted from each value before it is added to the\naccumulator. This is used for the center value of devices like gyros and\naccelerometers to make integration work and to take the device offset into\naccount when integrating.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "setAccumulatorCenter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "deadband", "type": "int"}], "tooltip": "Set the accumulator's deadband.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "setAccumulatorDeadband"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "center", "type": "float"}], "tooltip": "Set the center value of the accumulator integrator.\n\nThe center value is subtracted from each value*dt before it is added to the\nintegrated value. This is used for the center value of devices like gyros\nand accelerometers to take the device offset into account when integrating.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "setAccumulatorIntegratedCenter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "dataToSend", "type": "Buffer"}, {"name": "zeroSize", "type": "int"}], "tooltip": "Set the data to be transmitted by the engine.\n\nUp to 16 bytes are configurable, and may be followed by up to 127 zero\nbytes.\n\n:param dataToSend: data to send (maximum 16 bytes)\n:param zeroSize: number of zeros to send after the data", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "setAutoTransmitData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Configure the chip select line to be active high.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "setChipSelectActiveHigh"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Configure the chip select line to be active low.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "setChipSelectActiveLow"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "hz", "type": "int"}], "tooltip": "Configure the rate of the generated clock signal.\n\nThe default value is 500,000Hz.\nThe maximum value is 4,000,000Hz.\n\n:param hz: The clock rate in Hertz.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "setClockRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "mode", "type": "wpilib.SPI.Mode"}], "tooltip": "Sets the mode for the SPI device.\n\nMode 0 is Clock idle low, data sampled on rising edge\n\nMode 1 is Clock idle low, data sampled on falling edge\n\nMode 2 is Clock idle high, data sampled on falling edge\n\nMode 3 is Clock idle high, data sampled on rising edge\n\n:param mode: The mode to set.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "setMode"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMode"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "period", "type": "wpimath.units.seconds"}], "tooltip": "Start running the automatic SPI transfer engine at a periodic rate.\n\nInitAuto() and SetAutoTransmitData() must be called before calling this\nfunction.\n\n:param period: period between transfers (us resolution)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "startAutoRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "source", "type": "wpilib.DigitalSource"}, {"name": "rising", "type": "bool"}, {"name": "falling", "type": "bool"}], "tooltip": "Start running the automatic SPI transfer engine when a trigger occurs.\n\nInitAuto() and SetAutoTransmitData() must be called before calling this\nfunction.\n\n:param source: digital source for the trigger (may be an analog trigger)\n:param rising: trigger on the rising edge\n:param falling: trigger on the falling edge", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "startAutoTrigger"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalSource"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPI", "type": "wpilib.SPI"}], "tooltip": "Stop running the automatic SPI transfer engine.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "stopAuto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "dataToSend", "type": "Buffer"}, {"name": "dataReceived", "type": "Buffer"}], "tooltip": "Perform a simultaneous read/write transaction with the device\n\n:param dataToSend: The data to be written out to the device\n:param dataReceived: Buffer to receive data from the device\n:param size: The length of the transaction, in bytes", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "transaction"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "sPI", "type": "wpilib.SPI"}, {"name": "data", "type": "Buffer"}], "tooltip": "Write data to the peripheral device. Blocks until there is space in the\noutput FIFO.\n\nIf not running in output only mode, also saves the data received\non the CIPO input during the transfer into the receive FIFO.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SPI", "FUNC": "write"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPI"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SPI.Mode", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SPI.Mode", "ENUM_VALUE": "kMode0"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SPI.Mode", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SPI.Mode", "ENUM_VALUE": "kMode1"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SPI.Mode", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SPI.Mode", "ENUM_VALUE": "kMode2"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SPI.Mode", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SPI.Mode", "ENUM_VALUE": "kMode3"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SPI.Port", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SPI.Port", "ENUM_VALUE": "kMXP"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SPI.Port", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SPI.Port", "ENUM_VALUE": "kOnboardCS0"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SPI.Port", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SPI.Port", "ENUM_VALUE": "kOnboardCS1"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SPI.Port", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SPI.Port", "ENUM_VALUE": "kOnboardCS2"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SPI.Port", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SPI.Port", "ENUM_VALUE": "kOnboardCS3"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SPI",
- contents: contents,
- className: "wpilib.SPI",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.SendableBuilderImpl.ts b/src/blocks/generated/class_wpilib.SendableBuilderImpl.ts
deleted file mode 100644
index 022da654..00000000
--- a/src/blocks/generated/class_wpilib.SendableBuilderImpl.ts
+++ /dev/null
@@ -1,72 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.SendableBuilderImpl
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 46 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.SendableBuilderImpl", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[], list[int]]"}, {"name": "setter", "type": "Callable[[List[int]], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addBooleanArrayProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[], bool]"}, {"name": "setter", "type": "Callable[[bool], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addBooleanProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[], list[float]]"}, {"name": "setter", "type": "Callable[[List[float]], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addDoubleArrayProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[], float]"}, {"name": "setter", "type": "Callable[[float], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addDoubleProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[], list[float]]"}, {"name": "setter", "type": "Callable[[List[float]], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addFloatArrayProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[], float]"}, {"name": "setter", "type": "Callable[[float], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addFloatProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[], list[int]]"}, {"name": "setter", "type": "Callable[[List[int]], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addIntegerArrayProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[], int]"}, {"name": "setter", "type": "Callable[[int], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addIntegerProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "typeString", "type": "str"}, {"name": "getter", "type": "Callable[[], list[int]]"}, {"name": "setter", "type": "Callable[[Buffer], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addRawProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[List[int]], List[int]]"}, {"name": "setter", "type": "Callable[[List[int]], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addSmallBooleanArrayProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[List[float]], List[float]]"}, {"name": "setter", "type": "Callable[[List[float]], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addSmallDoubleArrayProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[List[float]], List[float]]"}, {"name": "setter", "type": "Callable[[List[float]], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addSmallFloatArrayProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[List[int]], List[int]]"}, {"name": "setter", "type": "Callable[[List[int]], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addSmallIntegerArrayProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "typeString", "type": "str"}, {"name": "getter", "type": "Callable[[List[int]], Buffer]"}, {"name": "setter", "type": "Callable[[Buffer], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addSmallRawProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[List[str]], List[str]]"}, {"name": "setter", "type": "Callable[[List[str]], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addSmallStringArrayProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[List[str]], str]"}, {"name": "setter", "type": "Callable[[str], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addSmallStringProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[], list[str]]"}, {"name": "setter", "type": "Callable[[List[str]], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addStringArrayProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "getter", "type": "Callable[[], str]"}, {"name": "setter", "type": "Callable[[str], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "addStringProperty"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}], "tooltip": "Clear properties.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "clearProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBackendKind"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpiutil.SendableBuilder.BackendKind", "args": [{"name": "nTSendableBuilder", "type": "ntcore.NTSendableBuilder"}], "tooltip": "Gets the kind of backend being used.\n\n:returns: Backend kind", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "ntcore.NTSendableBuilder", "FUNC": "getBackendKind"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNTSendableBuilder"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myNetworkTable"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "ntcore.NetworkTable", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}], "tooltip": "Get the network table.\n\n:returns: The network table", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "getTable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myTopic"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "ntcore.Topic", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "getTopic"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}], "tooltip": "Return whether this sendable should be treated as an actuator.\n\n:returns: True if actuator, false if not.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "isActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}], "tooltip": "Return whether this sendable has an associated table.\n\n:returns: True if it has a table, false if not.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "isPublished"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "value", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "publishConstBoolean"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "value", "type": "List[int]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "publishConstBooleanArray"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "value", "type": "float"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "publishConstDouble"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "value", "type": "List[float]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "publishConstDoubleArray"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "value", "type": "float"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "publishConstFloat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "value", "type": "List[float]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "publishConstFloatArray"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "value", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "publishConstInteger"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "value", "type": "List[int]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "publishConstIntegerArray"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "typeString", "type": "str"}, {"name": "value", "type": "Buffer"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "publishConstRaw"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "value", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "publishConstString"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "key", "type": "str"}, {"name": "value", "type": "List[str]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "publishConstStringArray"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "value", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "setActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "func", "type": "Callable[[], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "setSafeState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "setSmartDashboardType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "table", "type": "ntcore.NetworkTable"}], "tooltip": "Set the network table. Must be called prior to any Add* functions being\ncalled.\n\n:param table: Network table", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "setTable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}, {"name": "func", "type": "Callable[[], None]"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "setUpdateTable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}], "tooltip": "Hook setters for all properties.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "startListeners"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}], "tooltip": "Start LiveWindow mode by hooking the setters for all properties. Also\ncalls the SafeState function if one was provided.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "startLiveWindowMode"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}], "tooltip": "Unhook setters for all properties.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "stopListeners"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}], "tooltip": "Stop LiveWindow mode by unhooking the setters for all properties. Also\ncalls the SafeState function if one was provided.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "stopLiveWindowMode"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableBuilderImpl", "type": "wpilib.SendableBuilderImpl"}], "tooltip": "Synchronize with network table values by calling the getters for all\nproperties and setters when the network table value has changed.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableBuilderImpl", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilderImpl"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SendableBuilderImpl",
- contents: contents,
- className: "wpilib.SendableBuilderImpl",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.SendableChooser.ts b/src/blocks/generated/class_wpilib.SendableChooser.ts
deleted file mode 100644
index f86c3a0f..00000000
--- a/src/blocks/generated/class_wpilib.SendableChooser.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.SendableChooser
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 6 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySendableChooser"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.SendableChooser", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableChooser"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableChooser", "type": "wpilib.SendableChooser"}, {"name": "name", "type": "str"}, {"name": "object", "type": "object"}], "tooltip": "Adds the given object to the list of options.\n\nOn the SmartDashboard on the desktop, the object will appear as the given\nname.\n\n:param name: the name of the option\n:param object: the option", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableChooser", "FUNC": "addOption"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableChooser"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "object", "args": [{"name": "sendableChooser", "type": "wpilib.SendableChooser"}], "tooltip": "Returns a copy of the selected option (a std::weak_ptr if T =\nstd::shared_ptr).\n\nIf there is none selected, it will return the default. If there is none\nselected and no default, then it will return a value-initialized instance.\nFor integer types, this is 0. For container types like std::string, this is\nan empty string.\n\n:returns: The option selected", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableChooser", "FUNC": "getSelected"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableChooser"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableChooser", "type": "wpilib.SendableChooser"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableChooser", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableChooser"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableChooser", "type": "wpilib.SendableChooser"}, {"name": "listener", "type": "Callable[[object], None]"}], "tooltip": "Bind a listener that's called when the selected value changes.\nOnly one listener can be bound. Calling this function will replace the\nprevious listener.\n\n:param listener: The function to call that accepts the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableChooser", "FUNC": "onChange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableChooser"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableChooser", "type": "wpilib.SendableChooser"}, {"name": "name", "type": "str"}, {"name": "object", "type": "object"}], "tooltip": "Add the given object to the list of options and marks it as the default.\n\nFunctionally, this is very close to AddOption() except that it will use\nthis as the default option if none other is explicitly selected.\n\n:param name: the name of the option\n:param object: the option", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SendableChooser", "FUNC": "setDefaultOption"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableChooser"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SendableChooser",
- contents: contents,
- className: "wpilib.SendableChooser",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.SendableChooserBase.ts b/src/blocks/generated/class_wpilib.SendableChooserBase.ts
deleted file mode 100644
index 428704e2..00000000
--- a/src/blocks/generated/class_wpilib.SendableChooserBase.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.SendableChooserBase
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 1 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendable", "type": "wpiutil.Sendable"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "Initializes this Sendable object.\n\n:param builder: sendable builder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpiutil.Sendable", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SendableChooserBase",
- contents: contents,
- className: "wpilib.SendableChooserBase",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.SensorUtil.ts b/src/blocks/generated/class_wpilib.SensorUtil.ts
deleted file mode 100644
index b6e20e21..00000000
--- a/src/blocks/generated/class_wpilib.SensorUtil.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.SensorUtil
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 12 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "channel", "type": "int"}], "tooltip": "Check that the analog input number is value.\n\nVerify that the analog input number is one of the legal channel numbers.\nChannel numbers are 0-based.\n\n:returns: Analog channel is valid", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SensorUtil", "FUNC": "checkAnalogInputChannel"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "channel", "type": "int"}], "tooltip": "Check that the analog output number is valid.\n\nVerify that the analog output number is one of the legal channel numbers.\nChannel numbers are 0-based.\n\n:returns: Analog channel is valid", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SensorUtil", "FUNC": "checkAnalogOutputChannel"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "channel", "type": "int"}], "tooltip": "Check that the digital channel number is valid.\n\nVerify that the channel number is one of the legal channel numbers. Channel\nnumbers are 0-based.\n\n:returns: Digital channel is valid", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SensorUtil", "FUNC": "checkDigitalChannel"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "channel", "type": "int"}], "tooltip": "Check that the digital channel number is valid.\n\nVerify that the channel number is one of the legal channel numbers. Channel\nnumbers are 0-based.\n\n:returns: PWM channel is valid", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SensorUtil", "FUNC": "checkPWMChannel"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "channel", "type": "int"}], "tooltip": "Check that the relay channel number is valid.\n\nVerify that the channel number is one of the legal channel numbers. Channel\nnumbers are 0-based.\n\n:returns: Relay channel is valid", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SensorUtil", "FUNC": "checkRelayChannel"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Get the number of the default solenoid module.\n\n:returns: The number of the default solenoid module.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SensorUtil", "FUNC": "getDefaultCTREPCMModule"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Get the number of the default solenoid module.\n\n:returns: The number of the default solenoid module.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SensorUtil", "FUNC": "getDefaultREVPHModule"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SensorUtil", "FUNC": "getNumAnalogInputs"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SensorUtil", "FUNC": "getNumAnalogOuputs"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SensorUtil", "FUNC": "getNumDigitalChannels"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SensorUtil", "FUNC": "getNumPwmChannels"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SensorUtil", "FUNC": "getNumRelayChannels"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SensorUtil",
- contents: contents,
- className: "wpilib.SensorUtil",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.SerialPort.ts b/src/blocks/generated/class_wpilib.SerialPort.ts
deleted file mode 100644
index 3d9e55bd..00000000
--- a/src/blocks/generated/class_wpilib.SerialPort.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as pythonEnum from "../mrc_get_python_enum_value";
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.SerialPort
-
-export function initialize() {
- pythonEnum.initializeEnum("wpilib.SerialPort.FlowControl", ["kFlowControl_DtrDsr", "kFlowControl_None", "kFlowControl_RtsCts", "kFlowControl_XonXoff"], "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.");
- pythonEnum.initializeEnum("wpilib.SerialPort.Parity", ["kParity_Even", "kParity_Mark", "kParity_None", "kParity_Odd", "kParity_Space"], "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.");
- pythonEnum.initializeEnum("wpilib.SerialPort.Port", ["kMXP", "kOnboard", "kUSB", "kUSB1", "kUSB2"], "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.");
- pythonEnum.initializeEnum("wpilib.SerialPort.StopBits", ["kStopBits_One", "kStopBits_OnePointFive", "kStopBits_Two"], "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.");
- pythonEnum.initializeEnum("wpilib.SerialPort.WriteBufferMode", ["kFlushOnAccess", "kFlushWhenFull"], "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.");
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 33 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySerialPort"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.SerialPort", "args": [{"name": "baudRate", "type": "int"}, {"name": "port", "type": "wpilib.SerialPort.Port"}, {"name": "dataBits", "type": "int"}, {"name": "parity", "type": "wpilib.SerialPort.Parity"}, {"name": "stopBits", "type": "wpilib.SerialPort.StopBits"}], "tooltip": "Create an instance of a Serial Port class.\n\n:param baudRate: The baud rate to configure the serial port.\n:param port: The physical port 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.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SerialPort"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPort"}}}}, "ARG2": {"shadow": {"type": "math_number", "fields": {"NUM": 8.0}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myParity"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStopBits"}}}}}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySerialPort"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.SerialPort", "args": [{"name": "baudRate", "type": "int"}, {"name": "portName", "type": "str"}, {"name": "port", "type": "wpilib.SerialPort.Port"}, {"name": "dataBits", "type": "int"}, {"name": "parity", "type": "wpilib.SerialPort.Parity"}, {"name": "stopBits", "type": "wpilib.SerialPort.StopBits"}], "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.", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SerialPort"}, "inputs": {"ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPort"}}}}, "ARG3": {"shadow": {"type": "math_number", "fields": {"NUM": 8.0}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myParity"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStopBits"}}}}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "serialPort", "type": "wpilib.SerialPort"}], "tooltip": "Disable termination behavior.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SerialPort", "FUNC": "disableTermination"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySerialPort"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "serialPort", "type": "wpilib.SerialPort"}, {"name": "terminator", "type": "str"}], "tooltip": "Enable termination and specify the termination character.\n\nTermination is currently only implemented for receive.\nWhen the the terminator is received, the Read() or Scanf() will return\nfewer bytes than requested, stopping after the terminator.\n\n:param terminator: The character to use for termination.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SerialPort", "FUNC": "enableTermination"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySerialPort"}}}}, "ARG1": {"shadow": {"type": "text", "fields": {"TEXT": "\\n"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "serialPort", "type": "wpilib.SerialPort"}], "tooltip": "Force the output buffer to be written to the port.\n\nThis is used when SetWriteBufferMode() is set to kFlushWhenFull to force a\nflush before the buffer is full.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SerialPort", "FUNC": "flush"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySerialPort"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "serialPort", "type": "wpilib.SerialPort"}], "tooltip": "Get the number of bytes currently available to read from the serial port.\n\n:returns: The number of bytes available to read", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SerialPort", "FUNC": "getBytesReceived"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySerialPort"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "serialPort", "type": "wpilib.SerialPort"}, {"name": "buffer", "type": "Buffer"}], "tooltip": "Read raw bytes out of the buffer.\n\n:param buffer: Pointer to the buffer to store the bytes in.\n:param count: The maximum number of bytes to read.\n\n:returns: The number of bytes actually read into the buffer.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SerialPort", "FUNC": "read"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySerialPort"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "serialPort", "type": "wpilib.SerialPort"}], "tooltip": "Reset the serial port driver to a known state.\n\nEmpty the transmit and receive buffers in the device and formatted I/O.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SerialPort", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySerialPort"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "serialPort", "type": "wpilib.SerialPort"}, {"name": "flowControl", "type": "wpilib.SerialPort.FlowControl"}], "tooltip": "Set the type of flow control to enable on this port.\n\nBy default, flow control is disabled.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SerialPort", "FUNC": "setFlowControl"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySerialPort"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFlowControl"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "serialPort", "type": "wpilib.SerialPort"}, {"name": "size", "type": "int"}], "tooltip": "Specify the size of the input buffer.\n\nSpecify the amount of data that can be stored before data\nfrom the device is returned to Read or Scanf. If you want\ndata that is received to be returned immediately, set this to 1.\n\nIt the buffer is not filled before the read timeout expires, all\ndata that has been received so far will be returned.\n\n:param size: The read buffer size.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SerialPort", "FUNC": "setReadBufferSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySerialPort"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "serialPort", "type": "wpilib.SerialPort"}, {"name": "timeout", "type": "wpimath.units.seconds"}], "tooltip": "Configure the timeout of the serial port.\n\nThis defines the timeout for transactions with the hardware.\nIt will affect reads and very large writes.\n\n:param timeout: The time to wait for I/O.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SerialPort", "FUNC": "setTimeout"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySerialPort"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "serialPort", "type": "wpilib.SerialPort"}, {"name": "mode", "type": "wpilib.SerialPort.WriteBufferMode"}], "tooltip": "Specify the flushing behavior of the output buffer.\n\nWhen set to kFlushOnAccess, data is synchronously written to the serial\nport after each call to either Printf() or Write().\n\nWhen set to kFlushWhenFull, data will only be written to the serial port\nwhen the buffer is full or when Flush() is called.\n\n:param mode: The write buffer mode.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SerialPort", "FUNC": "setWriteBufferMode"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySerialPort"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWriteBufferMode"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "serialPort", "type": "wpilib.SerialPort"}, {"name": "size", "type": "int"}], "tooltip": "Specify the size of the output buffer.\n\nSpecify the amount of data that can be stored before being\ntransmitted to the device.\n\n:param size: The write buffer size.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SerialPort", "FUNC": "setWriteBufferSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySerialPort"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "serialPort", "type": "wpilib.SerialPort"}, {"name": "buffer", "type": "Buffer"}], "tooltip": "Write raw bytes to the buffer.\n\n:param buffer: Pointer to the buffer to read the bytes from.\n:param count: The maximum number of bytes to write.\n\n:returns: The number of bytes actually written into the port.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SerialPort", "FUNC": "write"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySerialPort"}}}}}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.FlowControl", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.FlowControl", "ENUM_VALUE": "kFlowControl_DtrDsr"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.FlowControl", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.FlowControl", "ENUM_VALUE": "kFlowControl_None"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.FlowControl", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.FlowControl", "ENUM_VALUE": "kFlowControl_RtsCts"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.FlowControl", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.FlowControl", "ENUM_VALUE": "kFlowControl_XonXoff"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.Parity", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.Parity", "ENUM_VALUE": "kParity_Even"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.Parity", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.Parity", "ENUM_VALUE": "kParity_Mark"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.Parity", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.Parity", "ENUM_VALUE": "kParity_None"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.Parity", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.Parity", "ENUM_VALUE": "kParity_Odd"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.Parity", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.Parity", "ENUM_VALUE": "kParity_Space"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.Port", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.Port", "ENUM_VALUE": "kMXP"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.Port", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.Port", "ENUM_VALUE": "kOnboard"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.Port", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.Port", "ENUM_VALUE": "kUSB"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.Port", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.Port", "ENUM_VALUE": "kUSB1"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.Port", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.Port", "ENUM_VALUE": "kUSB2"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.StopBits", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.StopBits", "ENUM_VALUE": "kStopBits_One"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.StopBits", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.StopBits", "ENUM_VALUE": "kStopBits_OnePointFive"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.StopBits", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.StopBits", "ENUM_VALUE": "kStopBits_Two"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.WriteBufferMode", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.WriteBufferMode", "ENUM_VALUE": "kFlushOnAccess"}},
- {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpilib.SerialPort.WriteBufferMode", "importModule": "wpilib"}, "fields": {"ENUM_TYPE": "wpilib.SerialPort.WriteBufferMode", "ENUM_VALUE": "kFlushWhenFull"}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SerialPort",
- contents: contents,
- className: "wpilib.SerialPort",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.Servo.ts b/src/blocks/generated/class_wpilib.Servo.ts
deleted file mode 100644
index c6b984cc..00000000
--- a/src/blocks/generated/class_wpilib.Servo.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.Servo
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 23 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myServo"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.Servo", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructor.\n\nBy default, 2.4 ms is used as the max PWM value and 0.6 ms is used as the\nmin PWM value.\n\n:param channel: The PWM channel to which the servo is attached. 0-9 are\n on-board, 10-19 are on the MXP port", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.Servo"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}, {"name": "eliminateDeadband", "type": "bool"}], "tooltip": "Optionally eliminate the deadband from a motor controller.\n\n:param eliminateDeadband: If true, set the motor curve on the motor\n controller to eliminate the deadband in the middle\n of the range. Otherwise, keep the full range\n without modifying any values.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "enableDeadbandElimination"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "servo", "type": "wpilib.Servo"}], "tooltip": "Get the servo position.\n\nServo values range from 0.0 to 1.0 corresponding to the range of full left\nto full right. This returns the commanded position, not the position that\nthe servo is actually at, as the servo does not report its own position.\n\n:returns: Position from 0.0 to 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Servo", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myServo"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "servo", "type": "wpilib.Servo"}], "tooltip": "Get the servo angle.\n\nThis returns the commanded angle, not the angle that the servo is actually\nat, as the servo does not report its own angle.\n\n:returns: The angle in degrees to which the servo is set.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Servo", "FUNC": "getAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myServo"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}, {"name": "max", "type": "wpimath.units.microseconds"}, {"name": "deadbandMax", "type": "wpimath.units.microseconds"}, {"name": "center", "type": "wpimath.units.microseconds"}, {"name": "deadbandMin", "type": "wpimath.units.microseconds"}, {"name": "min", "type": "wpimath.units.microseconds"}], "tooltip": "Get the bounds on the PWM values.\n\nThis gets the bounds on the PWM values for a particular each type of\ncontroller. The values determine the upper and lower speeds as well as the\ndeadband bracket.\n\n:param max: The maximum pwm value\n:param deadbandMax: The high end of the deadband range\n:param center: The center speed (off)\n:param deadbandMin: The low end of the deadband range\n:param min: The minimum pwm value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "getBounds"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pWM", "type": "wpilib.PWM"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "servo", "type": "wpilib.Servo"}], "tooltip": "Get the maximum angle of the servo.\n\n:returns: The maximum angle of the servo in degrees.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Servo", "FUNC": "getMaxAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myServo"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "servo", "type": "wpilib.Servo"}], "tooltip": "Get the minimum angle of the servo.\n\n:returns: The minimum angle of the servo in degrees.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Servo", "FUNC": "getMinAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myServo"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWM", "type": "wpilib.PWM"}], "tooltip": "Get the PWM value in terms of a position.\n\nThis is intended to be used by servos.\n\n@pre SetBounds() called.\n\n:returns: The position the servo is set to between 0.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "getPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.microseconds", "args": [{"name": "pWM", "type": "wpilib.PWM"}], "tooltip": "Get the PWM pulse time directly from the hardware.\n\nRead a microsecond value from a PWM channel.\n\n:returns: Microsecond PWM control value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "getPulseTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWM", "type": "wpilib.PWM"}], "tooltip": "Get the PWM value in terms of speed.\n\nThis is intended to be used by motor controllers.\n\n@pre SetBounds() called.\n\n:returns: The most recently set speed between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "getSpeed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "servo", "type": "wpilib.Servo"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Servo", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myServo"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "servo", "type": "wpilib.Servo"}, {"name": "value", "type": "float"}], "tooltip": "Set the servo position.\n\nServo values range from 0.0 to 1.0 corresponding to the range of full left\nto full right.\n\n:param value: Position from 0.0 to 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Servo", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myServo"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}], "tooltip": "Sets the PWM output to be a continuous high signal while enabled.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setAlwaysHighMode"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "servo", "type": "wpilib.Servo"}, {"name": "angle", "type": "float"}], "tooltip": "Set the servo angle.\n\nThe angles are based on the HS-322HD Servo, and have a range of 0 to 180\ndegrees.\n\nServo angles that are out of the supported range of the servo simply\n\"saturate\" in that direction. In other words, if the servo has a range of\n(X degrees to Y degrees) than angles of less than X result in an angle of\nX being set and angles of more than Y degrees result in an angle of Y being\nset.\n\n:param angle: The angle in degrees to set the servo.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Servo", "FUNC": "setAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myServo"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}, {"name": "max", "type": "wpimath.units.microseconds"}, {"name": "deadbandMax", "type": "wpimath.units.microseconds"}, {"name": "center", "type": "wpimath.units.microseconds"}, {"name": "deadbandMin", "type": "wpimath.units.microseconds"}, {"name": "min", "type": "wpimath.units.microseconds"}], "tooltip": "Set the bounds on the PWM pulse widths.\n\nThis sets the bounds on the PWM values for a particular type of controller.\nThe values determine the upper and lower speeds as well as the deadband\nbracket.\n\n:param max: The max PWM pulse width in us\n:param deadbandMax: The high end of the deadband range pulse width in us\n:param center: The center (off) pulse width in us\n:param deadbandMin: The low end of the deadband pulse width in us\n:param min: The minimum pulse width in us", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setBounds"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}], "tooltip": "Temporarily disables the PWM output. The next set call will re-enable\nthe output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setDisabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "servo", "type": "wpilib.Servo"}], "tooltip": "Set the servo to offline.\n\nSet the servo raw value to 0 (undriven)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.Servo", "FUNC": "setOffline"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myServo"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}, {"name": "mult", "type": "wpilib.PWM.PeriodMultiplier"}], "tooltip": "Slow down the PWM signal for old devices.\n\n:param mult: The period multiplier to apply to this channel", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setPeriodMultiplier"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPeriodMultiplier"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}, {"name": "pos", "type": "float"}], "tooltip": "Set the PWM value based on a position.\n\nThis is intended to be used by servos.\n\n@pre SetBounds() called.\n\n:param pos: The position to set the servo between 0.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}, {"name": "time", "type": "wpimath.units.microseconds"}], "tooltip": "Set the PWM pulse time directly to the hardware.\n\nWrite a microsecond value to a PWM channel.\n\n:param time: Microsecond PWM value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setPulseTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}, {"name": "speed", "type": "float"}], "tooltip": "Set the PWM value based on a speed.\n\nThis is intended to be used by motor controllers.\n\n@pre SetBounds() called.\n\n:param speed: The speed to set the motor controller between -1.0 and 1.0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setSpeed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWM", "type": "wpilib.PWM"}], "tooltip": "Latches PWM to zero.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.PWM", "FUNC": "setZeroLatch"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "Servo",
- contents: contents,
- className: "wpilib.Servo",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.SharpIR.ts b/src/blocks/generated/class_wpilib.SharpIR.ts
deleted file mode 100644
index 42cfab3b..00000000
--- a/src/blocks/generated/class_wpilib.SharpIR.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.SharpIR
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 8 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySharpIR"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.SharpIR", "args": [{"name": "channel", "type": "int"}, {"name": "a", "type": "float"}, {"name": "b", "type": "float"}, {"name": "minCM", "type": "float"}, {"name": "maxCM", "type": "float"}], "tooltip": "Manually construct a SharpIR object. The distance is computed using this\nformula: A*v ^ B. Prefer to use one of the static factories to create this\ndevice instead.\n\n:param channel: Analog input channel the sensor is connected to\n:param a: Constant A\n:param b: Constant B\n:param minCM: Minimum distance to report in centimeters\n:param maxCM: Maximum distance to report in centimeters", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SharpIR"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySharpIR"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.SharpIR", "args": [{"name": "channel", "type": "int"}], "tooltip": "Sharp GP2Y0A02YK0F is an analog IR sensor capable of measuring\ndistances from 20cm to 150cm.\n\n:param channel: Analog input channel the sensor is connected to\n\n:returns: sensor object", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SharpIR", "FUNC": "GP2Y0A02YK0F"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySharpIR"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.SharpIR", "args": [{"name": "channel", "type": "int"}], "tooltip": "Sharp GP2Y0A21YK0F is an analog IR sensor capable of measuring\ndistances from 10cm to 80cm.\n\n:param channel: Analog input channel the sensor is connected to\n\n:returns: sensor object", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SharpIR", "FUNC": "GP2Y0A21YK0F"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySharpIR"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.SharpIR", "args": [{"name": "channel", "type": "int"}], "tooltip": "Sharp GP2Y0A41SK0F is an analog IR sensor capable of measuring\ndistances from 4cm to 30cm.\n\n:param channel: Analog input channel the sensor is connected to\n\n:returns: sensor object", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SharpIR", "FUNC": "GP2Y0A41SK0F"}}}}},
- {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySharpIR"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.SharpIR", "args": [{"name": "channel", "type": "int"}], "tooltip": "Sharp GP2Y0A51SK0F is an analog IR sensor capable of measuring\ndistances from 2cm to 15cm.\n\n:param channel: Analog input channel the sensor is connected to\n\n:returns: sensor object", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SharpIR", "FUNC": "GP2Y0A51SK0F"}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "sharpIR", "type": "wpilib.SharpIR"}], "tooltip": "Get the analog input channel number.\n\n:returns: analog input channel", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SharpIR", "FUNC": "getChannel"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySharpIR"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.centimeters", "args": [{"name": "sharpIR", "type": "wpilib.SharpIR"}], "tooltip": "Get the range from the distance sensor.\n\n:returns: range of the target returned by the sensor", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SharpIR", "FUNC": "getRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySharpIR"}}}}}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sharpIR", "type": "wpilib.SharpIR"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.SharpIR", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySharpIR"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}},
- ];
-
- contents.push(...subcategories);
-
- const category: toolboxItems.PythonClassCategory = {
- kind: "category",
- name: "SharpIR",
- contents: contents,
- className: "wpilib.SharpIR",
- };
-
- return category;
-}
diff --git a/src/blocks/generated/class_wpilib.SmartDashboard.ts b/src/blocks/generated/class_wpilib.SmartDashboard.ts
deleted file mode 100644
index 05020b5a..00000000
--- a/src/blocks/generated/class_wpilib.SmartDashboard.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-// This file was generated. Do not edit!
-
-import * as toolboxItems from "../../toolbox/items";
-
-// Blocks for class wpilib.SmartDashboard
-
-export function initialize() {
-}
-
-export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category {
-
- // There are 36 blocks.
- const contents: toolboxItems.ContentsType[] = [
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "key", "type": "str"}], "tooltip": "Stop making a key's value persistent through program restarts.\nThe key cannot be null.\n\n:param key: the key name", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SmartDashboard", "FUNC": "clearPersistent"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [{"name": "key", "type": "str"}], "tooltip": "Determines whether the given key is in this table.\n\n:param key: the key to search for\n\n:returns: true if the table as a value assigned to the given key", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SmartDashboard", "FUNC": "containsKey"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "object", "args": [{"name": "keyName", "type": "str"}, {"name": "defaultValue", "type": "object"}], "tooltip": "Returns the value at the specified key.\n\nIf the key is not found, returns the default value.\n\n:param keyName: the key\n:param defaultValue: the default value to return if key doesn't exist\n\n:returns: the value", "importModule": "wpilib"}, "fields": {"MODULE_OR_CLASS": "wpilib.SmartDashboard", "FUNC": "getBoolean"}},
- {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "object", "args": [{"name": "key", "type": "str"}, {"name": "defaultValue", "type": "object"}], "tooltip": "Returns the boolean array the key maps to.\n\nIf the key does not exist or is of different type, it will return the\ndefault value.\n\n:param key: The key to look up.\n:param defaultValue: The value to be returned if no value is found.\n\n:returns: the value associated with the given key or the given default value\n if there is no value associated with the key\n \n .. note:: This makes a copy of the array. If the overhead of this is a concern,\n use GetValue() instead.\n \n .. note:: The returned array is std::vector
{@code\nShuffleboard::GetTab(\"Example Tab\")->getLayout(\"My Layout\",\n&BuiltInLayouts.kList);\n\n// Later...\nShuffleboard::GetTab(\"Example Tab\")->GetLayout(\"My Layout\");\n}\n\n:param title: the title of the layout to get\n\n:returns: the layout with the given title\n @throws if no layout has yet been defined with the given title", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardContainer", "FUNC": "getLayout"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardContainer"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ShuffleboardContainer", - contents: contents, - className: "wpilib.shuffleboard.ShuffleboardContainer", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.ShuffleboardLayout.ts b/src/blocks/generated/class_wpilib.shuffleboard.ShuffleboardLayout.ts deleted file mode 100644 index de725615..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.ShuffleboardLayout.ts +++ /dev/null @@ -1,81 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.ShuffleboardLayout - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 55 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardLayout"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.shuffleboard.ShuffleboardLayout", "args": [{"name": "parent", "type": "wpilib.shuffleboard.ShuffleboardContainer"}, {"name": "name", "type": "str"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": "wpilib.shuffleboard"}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardLayout"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardContainer"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myComplexWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ComplexWidget", "args": [{"name": "shuffleboardContainer", "type": "wpilib.shuffleboard.ShuffleboardContainer"}, {"name": "title", "type": "str"}, {"name": "defaultValue", "type": "wpiutil.Sendable"}], "tooltip": "Adds a widget to this container to display the given sendable.\n\n:param title: the title of the widget\n:param defaultValue: the sendable to display\n\n:returns: a widget to display the sendable data\n @throws IllegalArgumentException if a widget already exists in this\n container with the given title", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardContainer", "FUNC": "add"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardContainer"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myComplexWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ComplexWidget", "args": [{"name": "shuffleboardContainer", "type": "wpilib.shuffleboard.ShuffleboardContainer"}, {"name": "defaultValue", "type": "wpiutil.Sendable"}], "tooltip": "Adds a widget to this container to display the given sendable.\n\n:param defaultValue: the sendable to display\n\n:returns: a widget to display the sendable data\n @throws IllegalArgumentException if a widget already exists in this\n container with the given title, or if the sendable's name has not been\n specified", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardContainer", "FUNC": "add"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardContainer"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "shuffleboardContainer", "type": "wpilib.shuffleboard.ShuffleboardContainer"}, {"name": "title", "type": "str"}, {"name": "defaultValue", "type": "ntcore.Value"}], "tooltip": "Adds a widget to this container to display the given data.\n\n:param title: the title of the widget\n:param defaultValue: the default value of the widget\n\n:returns: a widget to display the sendable data\n @throws IllegalArgumentException if a widget already exists in this\n container with the given title\n @see AddPersistent(std::string_view, std::shared_ptr
{@code\nShuffleboard::GetTab(\"Example Tab\")->getLayout(\"My Layout\",\n&BuiltInLayouts.kList);\n\n// Later...\nShuffleboard::GetTab(\"Example Tab\")->GetLayout(\"My Layout\");\n}\n\n:param title: the title of the layout to get\n\n:returns: the layout with the given title\n @throws if no layout has yet been defined with the given title", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardContainer", "FUNC": "getLayout"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardContainer"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardLayout"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardLayout", "args": [{"name": "_LayoutComponent", "type": "wpilib.shuffleboard._LayoutComponent"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._LayoutComponent", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_LayoutComponent"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardLayout"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardLayout", "args": [{"name": "_LayoutComponent", "type": "wpilib.shuffleboard._LayoutComponent"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._LayoutComponent", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_LayoutComponent"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardLayout"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardLayout", "args": [{"name": "_LayoutComponent", "type": "wpilib.shuffleboard._LayoutComponent"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._LayoutComponent", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_LayoutComponent"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ShuffleboardLayout", - contents: contents, - className: "wpilib.shuffleboard.ShuffleboardLayout", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.ShuffleboardTab.ts b/src/blocks/generated/class_wpilib.shuffleboard.ShuffleboardTab.ts deleted file mode 100644 index 6ed5d771..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.ShuffleboardTab.ts +++ /dev/null @@ -1,75 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.ShuffleboardTab - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 49 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardTab"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.shuffleboard.ShuffleboardTab", "args": [{"name": "root", "type": "wpilib.shuffleboard._ShuffleboardRoot"}, {"name": "title", "type": "str"}], "tooltip": "", "importModule": "wpilib.shuffleboard"}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardTab"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_ShuffleboardRoot"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myComplexWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ComplexWidget", "args": [{"name": "shuffleboardContainer", "type": "wpilib.shuffleboard.ShuffleboardContainer"}, {"name": "title", "type": "str"}, {"name": "defaultValue", "type": "wpiutil.Sendable"}], "tooltip": "Adds a widget to this container to display the given sendable.\n\n:param title: the title of the widget\n:param defaultValue: the sendable to display\n\n:returns: a widget to display the sendable data\n @throws IllegalArgumentException if a widget already exists in this\n container with the given title", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardContainer", "FUNC": "add"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardContainer"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myComplexWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ComplexWidget", "args": [{"name": "shuffleboardContainer", "type": "wpilib.shuffleboard.ShuffleboardContainer"}, {"name": "defaultValue", "type": "wpiutil.Sendable"}], "tooltip": "Adds a widget to this container to display the given sendable.\n\n:param defaultValue: the sendable to display\n\n:returns: a widget to display the sendable data\n @throws IllegalArgumentException if a widget already exists in this\n container with the given title, or if the sendable's name has not been\n specified", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardContainer", "FUNC": "add"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardContainer"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "shuffleboardContainer", "type": "wpilib.shuffleboard.ShuffleboardContainer"}, {"name": "title", "type": "str"}, {"name": "defaultValue", "type": "ntcore.Value"}], "tooltip": "Adds a widget to this container to display the given data.\n\n:param title: the title of the widget\n:param defaultValue: the default value of the widget\n\n:returns: a widget to display the sendable data\n @throws IllegalArgumentException if a widget already exists in this\n container with the given title\n @see AddPersistent(std::string_view, std::shared_ptr
{@code\nShuffleboard::GetTab(\"Example Tab\")->getLayout(\"My Layout\",\n&BuiltInLayouts.kList);\n\n// Later...\nShuffleboard::GetTab(\"Example Tab\")->GetLayout(\"My Layout\");\n}\n\n:param title: the title of the layout to get\n\n:returns: the layout with the given title\n @throws if no layout has yet been defined with the given title", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardContainer", "FUNC": "getLayout"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardContainer"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "my_ShuffleboardRoot"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard._ShuffleboardRoot", "args": [{"name": "shuffleboardTab", "type": "wpilib.shuffleboard.ShuffleboardTab"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardTab", "FUNC": "getRoot"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardTab"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ShuffleboardTab", - contents: contents, - className: "wpilib.shuffleboard.ShuffleboardTab", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.ShuffleboardValue.ts b/src/blocks/generated/class_wpilib.shuffleboard.ShuffleboardValue.ts deleted file mode 100644 index 3ebc4b22..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.ShuffleboardValue.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.ShuffleboardValue - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 4 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ShuffleboardValue", - contents: contents, - className: "wpilib.shuffleboard.ShuffleboardValue", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.SimpleWidget.ts b/src/blocks/generated/class_wpilib.shuffleboard.SimpleWidget.ts deleted file mode 100644 index 2c71126e..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.SimpleWidget.ts +++ /dev/null @@ -1,43 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.SimpleWidget - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 17 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "parent", "type": "wpilib.shuffleboard.ShuffleboardContainer"}, {"name": "title", "type": "str"}], "tooltip": "", "importModule": "wpilib.shuffleboard"}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SimpleWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardContainer"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "simpleWidget", "type": "wpilib.shuffleboard.SimpleWidget"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SimpleWidget", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myGenericEntry"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "ntcore.GenericEntry", "args": [{"name": "simpleWidget", "type": "wpilib.shuffleboard.SimpleWidget"}], "tooltip": "Gets the NetworkTable entry that contains the data for this widget.\nThe widget owns the entry; the returned pointer's lifetime is the same as\nthat of the widget.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SimpleWidget", "FUNC": "getEntry"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleWidget"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myGenericEntry"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "ntcore.GenericEntry", "args": [{"name": "simpleWidget", "type": "wpilib.shuffleboard.SimpleWidget"}, {"name": "typeString", "type": "str"}], "tooltip": "Gets the NetworkTable entry that contains the data for this widget.\nThe widget owns the entry; the returned pointer's lifetime is the same as\nthat of the widget.\n\n:param typeString: NT type string", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SimpleWidget", "FUNC": "getEntry"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleWidget"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleComponent", "type": "wpilib.shuffleboard._SimpleComponent"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleComponent", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleComponent"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleComponent", "type": "wpilib.shuffleboard._SimpleComponent"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleComponent", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleComponent"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleComponent", "type": "wpilib.shuffleboard._SimpleComponent"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleComponent", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleComponent"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleWidget", "type": "wpilib.shuffleboard._SimpleWidget"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleWidget", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleWidget", "type": "wpilib.shuffleboard._SimpleWidget"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleWidget", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleWidget", "type": "wpilib.shuffleboard._SimpleWidget"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleWidget", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleWidget"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SimpleWidget", - contents: contents, - className: "wpilib.shuffleboard.SimpleWidget", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedBoolListValueWidget.ts b/src/blocks/generated/class_wpilib.shuffleboard.SuppliedBoolListValueWidget.ts deleted file mode 100644 index ad1ad4d2..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedBoolListValueWidget.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.SuppliedBoolListValueWidget - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "suppliedBoolListValueWidget", "type": "wpilib.shuffleboard.SuppliedBoolListValueWidget"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_bool"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_bool"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_bool"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_bool"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_bool"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_bool"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SuppliedBoolListValueWidget", - contents: contents, - className: "wpilib.shuffleboard.SuppliedBoolListValueWidget", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedBoolValueWidget.ts b/src/blocks/generated/class_wpilib.shuffleboard.SuppliedBoolValueWidget.ts deleted file mode 100644 index 1941c157..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedBoolValueWidget.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.SuppliedBoolValueWidget - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "suppliedBoolValueWidget", "type": "wpilib.shuffleboard.SuppliedBoolValueWidget"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SuppliedBoolValueWidget", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueComponent_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_bool"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_bool", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_bool"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueComponent_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_bool"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_bool", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_bool"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueComponent_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_bool"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_bool", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_bool"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueWidget_bool", "type": "wpilib.shuffleboard._SuppliedValueWidget_bool"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_bool", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_bool"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueWidget_bool", "type": "wpilib.shuffleboard._SuppliedValueWidget_bool"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_bool", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_bool"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueWidget_bool", "type": "wpilib.shuffleboard._SuppliedValueWidget_bool"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_bool", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_bool"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SuppliedBoolValueWidget", - contents: contents, - className: "wpilib.shuffleboard.SuppliedBoolValueWidget", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedDoubleListValueWidget.ts b/src/blocks/generated/class_wpilib.shuffleboard.SuppliedDoubleListValueWidget.ts deleted file mode 100644 index 01b91e7f..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedDoubleListValueWidget.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.SuppliedDoubleListValueWidget - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "suppliedDoubleListValueWidget", "type": "wpilib.shuffleboard.SuppliedDoubleListValueWidget"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_double"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_double"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_double"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_double", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_double"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_double", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_double"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_double", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_double"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_double", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_double"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_double", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_double"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_double", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_double"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SuppliedDoubleListValueWidget", - contents: contents, - className: "wpilib.shuffleboard.SuppliedDoubleListValueWidget", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedDoubleValueWidget.ts b/src/blocks/generated/class_wpilib.shuffleboard.SuppliedDoubleValueWidget.ts deleted file mode 100644 index cb72cd11..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedDoubleValueWidget.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.SuppliedDoubleValueWidget - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "suppliedDoubleValueWidget", "type": "wpilib.shuffleboard.SuppliedDoubleValueWidget"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueComponent_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_double"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_double", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_double"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueComponent_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_double"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_double", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_double"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueComponent_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_double"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_double", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_double"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueWidget_double", "type": "wpilib.shuffleboard._SuppliedValueWidget_double"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_double", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_double"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueWidget_double", "type": "wpilib.shuffleboard._SuppliedValueWidget_double"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_double", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_double"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueWidget_double", "type": "wpilib.shuffleboard._SuppliedValueWidget_double"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_double", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_double"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SuppliedDoubleValueWidget", - contents: contents, - className: "wpilib.shuffleboard.SuppliedDoubleValueWidget", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedFloatListValueWidget.ts b/src/blocks/generated/class_wpilib.shuffleboard.SuppliedFloatListValueWidget.ts deleted file mode 100644 index c40e14bf..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedFloatListValueWidget.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.SuppliedFloatListValueWidget - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "suppliedFloatListValueWidget", "type": "wpilib.shuffleboard.SuppliedFloatListValueWidget"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_float"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_float"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_float"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_float", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_float"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_float", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_float"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_float", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_float"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_float", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_float"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_float", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_float"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_float", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_float"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SuppliedFloatListValueWidget", - contents: contents, - className: "wpilib.shuffleboard.SuppliedFloatListValueWidget", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedFloatValueWidget.ts b/src/blocks/generated/class_wpilib.shuffleboard.SuppliedFloatValueWidget.ts deleted file mode 100644 index 67b3e55f..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedFloatValueWidget.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.SuppliedFloatValueWidget - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "suppliedFloatValueWidget", "type": "wpilib.shuffleboard.SuppliedFloatValueWidget"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SuppliedFloatValueWidget", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueComponent_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_float"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_float", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_float"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueComponent_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_float"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_float", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_float"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueComponent_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_float"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_float", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_float"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueWidget_float", "type": "wpilib.shuffleboard._SuppliedValueWidget_float"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_float", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_float"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueWidget_float", "type": "wpilib.shuffleboard._SuppliedValueWidget_float"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_float", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_float"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueWidget_float", "type": "wpilib.shuffleboard._SuppliedValueWidget_float"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_float", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_float"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SuppliedFloatValueWidget", - contents: contents, - className: "wpilib.shuffleboard.SuppliedFloatValueWidget", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedIntListValueWidget.ts b/src/blocks/generated/class_wpilib.shuffleboard.SuppliedIntListValueWidget.ts deleted file mode 100644 index 005b1c82..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedIntListValueWidget.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.SuppliedIntListValueWidget - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "suppliedIntListValueWidget", "type": "wpilib.shuffleboard.SuppliedIntListValueWidget"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SuppliedIntListValueWidget", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_int", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_int"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_int", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_int"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_int", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_int"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_int", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_int"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_int", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_int"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_int", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_int"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_int", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_int"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_int", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_int"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_int", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_int"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SuppliedIntListValueWidget", - contents: contents, - className: "wpilib.shuffleboard.SuppliedIntListValueWidget", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedIntegerValueWidget.ts b/src/blocks/generated/class_wpilib.shuffleboard.SuppliedIntegerValueWidget.ts deleted file mode 100644 index 5dbbf183..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedIntegerValueWidget.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.SuppliedIntegerValueWidget - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "suppliedIntegerValueWidget", "type": "wpilib.shuffleboard.SuppliedIntegerValueWidget"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueComponent_integer", "type": "wpilib.shuffleboard._SuppliedValueComponent_integer"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_integer", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_integer"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueComponent_integer", "type": "wpilib.shuffleboard._SuppliedValueComponent_integer"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_integer", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_integer"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueComponent_integer", "type": "wpilib.shuffleboard._SuppliedValueComponent_integer"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_integer", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_integer"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueWidget_integer", "type": "wpilib.shuffleboard._SuppliedValueWidget_integer"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_integer", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_integer"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueWidget_integer", "type": "wpilib.shuffleboard._SuppliedValueWidget_integer"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_integer", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_integer"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueWidget_integer", "type": "wpilib.shuffleboard._SuppliedValueWidget_integer"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_integer", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_integer"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SuppliedIntegerValueWidget", - contents: contents, - className: "wpilib.shuffleboard.SuppliedIntegerValueWidget", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedRawValueWidget.ts b/src/blocks/generated/class_wpilib.shuffleboard.SuppliedRawValueWidget.ts deleted file mode 100644 index 88c167f2..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedRawValueWidget.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.SuppliedRawValueWidget - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "suppliedRawValueWidget", "type": "wpilib.shuffleboard.SuppliedRawValueWidget"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SuppliedRawValueWidget", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_raw"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_raw"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_raw"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_raw"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_raw"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_raw"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SuppliedRawValueWidget", - contents: contents, - className: "wpilib.shuffleboard.SuppliedRawValueWidget", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedStringListValueWidget.ts b/src/blocks/generated/class_wpilib.shuffleboard.SuppliedStringListValueWidget.ts deleted file mode 100644 index 8b2467d1..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedStringListValueWidget.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.SuppliedStringListValueWidget - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "suppliedStringListValueWidget", "type": "wpilib.shuffleboard.SuppliedStringListValueWidget"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SuppliedStringListValueWidget", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_string"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_string"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_string"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_string", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_string"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_string", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_string"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_string", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_string"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_string", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_string"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_string", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_string"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_string", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_string"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SuppliedStringListValueWidget", - contents: contents, - className: "wpilib.shuffleboard.SuppliedStringListValueWidget", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedStringValueWidget.ts b/src/blocks/generated/class_wpilib.shuffleboard.SuppliedStringValueWidget.ts deleted file mode 100644 index 0c440e34..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.SuppliedStringValueWidget.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.SuppliedStringValueWidget - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "suppliedStringValueWidget", "type": "wpilib.shuffleboard.SuppliedStringValueWidget"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.SuppliedStringValueWidget", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueComponent_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_string"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_string", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_string"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueComponent_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_string"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_string", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_string"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueComponent_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_string"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_string", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_string"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueWidget_string", "type": "wpilib.shuffleboard._SuppliedValueWidget_string"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_string", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_string"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueWidget_string", "type": "wpilib.shuffleboard._SuppliedValueWidget_string"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_string", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_string"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueWidget_string", "type": "wpilib.shuffleboard._SuppliedValueWidget_string"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_string", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_string"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SuppliedStringValueWidget", - contents: contents, - className: "wpilib.shuffleboard.SuppliedStringValueWidget", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard.WidgetType.ts b/src/blocks/generated/class_wpilib.shuffleboard.WidgetType.ts deleted file mode 100644 index 040e5f95..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard.WidgetType.ts +++ /dev/null @@ -1,28 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard.WidgetType - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 2 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myWidgetType"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.shuffleboard.WidgetType", "args": [{"name": "widgetName", "type": "str"}], "tooltip": "", "importModule": "wpilib.shuffleboard"}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.WidgetType"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Gets the string type of the widget as defined by that widget in\nShuffleboard.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.WidgetType", "FUNC": "getWidgetName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "WidgetType", - contents: contents, - className: "wpilib.shuffleboard.WidgetType", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._ComplexComponent.ts b/src/blocks/generated/class_wpilib.shuffleboard._ComplexComponent.ts deleted file mode 100644 index 1f3d2305..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._ComplexComponent.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._ComplexComponent - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myComplexWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ComplexWidget", "args": [{"name": "_ComplexComponent", "type": "wpilib.shuffleboard._ComplexComponent"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._ComplexComponent", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_ComplexComponent"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myComplexWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ComplexWidget", "args": [{"name": "_ComplexComponent", "type": "wpilib.shuffleboard._ComplexComponent"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._ComplexComponent", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_ComplexComponent"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myComplexWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ComplexWidget", "args": [{"name": "_ComplexComponent", "type": "wpilib.shuffleboard._ComplexComponent"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._ComplexComponent", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_ComplexComponent"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_ComplexComponent", - contents: contents, - className: "wpilib.shuffleboard._ComplexComponent", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._ComplexWidget.ts b/src/blocks/generated/class_wpilib.shuffleboard._ComplexWidget.ts deleted file mode 100644 index b1f1bdfe..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._ComplexWidget.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._ComplexWidget - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myComplexWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ComplexWidget", "args": [{"name": "_ComplexComponent", "type": "wpilib.shuffleboard._ComplexComponent"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._ComplexComponent", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_ComplexComponent"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myComplexWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ComplexWidget", "args": [{"name": "_ComplexComponent", "type": "wpilib.shuffleboard._ComplexComponent"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._ComplexComponent", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_ComplexComponent"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myComplexWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ComplexWidget", "args": [{"name": "_ComplexComponent", "type": "wpilib.shuffleboard._ComplexComponent"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._ComplexComponent", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_ComplexComponent"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myComplexWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ComplexWidget", "args": [{"name": "_ComplexWidget", "type": "wpilib.shuffleboard._ComplexWidget"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._ComplexWidget", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_ComplexWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myComplexWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ComplexWidget", "args": [{"name": "_ComplexWidget", "type": "wpilib.shuffleboard._ComplexWidget"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._ComplexWidget", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_ComplexWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myComplexWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ComplexWidget", "args": [{"name": "_ComplexWidget", "type": "wpilib.shuffleboard._ComplexWidget"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._ComplexWidget", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_ComplexWidget"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_ComplexWidget", - contents: contents, - className: "wpilib.shuffleboard._ComplexWidget", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._LayoutComponent.ts b/src/blocks/generated/class_wpilib.shuffleboard._LayoutComponent.ts deleted file mode 100644 index 3cdb2547..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._LayoutComponent.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._LayoutComponent - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardLayout"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardLayout", "args": [{"name": "_LayoutComponent", "type": "wpilib.shuffleboard._LayoutComponent"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._LayoutComponent", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_LayoutComponent"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardLayout"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardLayout", "args": [{"name": "_LayoutComponent", "type": "wpilib.shuffleboard._LayoutComponent"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._LayoutComponent", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_LayoutComponent"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardLayout"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardLayout", "args": [{"name": "_LayoutComponent", "type": "wpilib.shuffleboard._LayoutComponent"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._LayoutComponent", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_LayoutComponent"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_LayoutComponent", - contents: contents, - className: "wpilib.shuffleboard._LayoutComponent", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SimpleComponent.ts b/src/blocks/generated/class_wpilib.shuffleboard._SimpleComponent.ts deleted file mode 100644 index 4bafe01c..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SimpleComponent.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SimpleComponent - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleComponent", "type": "wpilib.shuffleboard._SimpleComponent"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleComponent", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleComponent"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleComponent", "type": "wpilib.shuffleboard._SimpleComponent"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleComponent", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleComponent"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleComponent", "type": "wpilib.shuffleboard._SimpleComponent"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleComponent", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleComponent"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SimpleComponent", - contents: contents, - className: "wpilib.shuffleboard._SimpleComponent", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SimpleWidget.ts b/src/blocks/generated/class_wpilib.shuffleboard._SimpleWidget.ts deleted file mode 100644 index 7b1c934c..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SimpleWidget.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SimpleWidget - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleComponent", "type": "wpilib.shuffleboard._SimpleComponent"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleComponent", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleComponent"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleComponent", "type": "wpilib.shuffleboard._SimpleComponent"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleComponent", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleComponent"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleComponent", "type": "wpilib.shuffleboard._SimpleComponent"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleComponent", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleComponent"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleWidget", "type": "wpilib.shuffleboard._SimpleWidget"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleWidget", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleWidget", "type": "wpilib.shuffleboard._SimpleWidget"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleWidget", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleWidget"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SimpleWidget", "args": [{"name": "_SimpleWidget", "type": "wpilib.shuffleboard._SimpleWidget"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SimpleWidget", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SimpleWidget"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SimpleWidget", - contents: contents, - className: "wpilib.shuffleboard._SimpleWidget", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_bool.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_bool.ts deleted file mode 100644 index 7ecbf61e..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_bool.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueComponent_bool - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueComponent_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_bool"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_bool", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_bool"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueComponent_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_bool"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_bool", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_bool"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueComponent_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_bool"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_bool", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_bool"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueComponent_bool", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueComponent_bool", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_double.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_double.ts deleted file mode 100644 index 14ce491a..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_double.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueComponent_double - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueComponent_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_double"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_double", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_double"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueComponent_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_double"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_double", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_double"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueComponent_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_double"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_double", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_double"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueComponent_double", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueComponent_double", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_float.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_float.ts deleted file mode 100644 index 4fc67e7c..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_float.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueComponent_float - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueComponent_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_float"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_float", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_float"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueComponent_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_float"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_float", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_float"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueComponent_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_float"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_float", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_float"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueComponent_float", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueComponent_float", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_integer.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_integer.ts deleted file mode 100644 index 727f5d58..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_integer.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueComponent_integer - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueComponent_integer", "type": "wpilib.shuffleboard._SuppliedValueComponent_integer"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_integer", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_integer"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueComponent_integer", "type": "wpilib.shuffleboard._SuppliedValueComponent_integer"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_integer", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_integer"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueComponent_integer", "type": "wpilib.shuffleboard._SuppliedValueComponent_integer"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_integer", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_integer"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueComponent_integer", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueComponent_integer", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_string.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_string.ts deleted file mode 100644 index 80727220..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_string.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueComponent_string - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueComponent_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_string"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_string", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_string"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueComponent_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_string"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_string", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_string"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueComponent_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_string"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_string", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_string"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueComponent_string", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueComponent_string", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_bool.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_bool.ts deleted file mode 100644 index 26f5a136..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_bool.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueComponent_vector_bool - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_bool"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_bool"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_bool"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueComponent_vector_bool", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_double.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_double.ts deleted file mode 100644 index 507beb8f..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_double.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueComponent_vector_double - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_double"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_double"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_double"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueComponent_vector_double", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueComponent_vector_double", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_float.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_float.ts deleted file mode 100644 index 2053642d..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_float.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueComponent_vector_float - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_float"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_float"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_float"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueComponent_vector_float", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueComponent_vector_float", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_int.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_int.ts deleted file mode 100644 index 906e15b0..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_int.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueComponent_vector_int - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_int", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_int"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_int", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_int"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_int", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_int"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueComponent_vector_int", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueComponent_vector_int", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_raw.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_raw.ts deleted file mode 100644 index cf711ec3..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_raw.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueComponent_vector_raw - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_raw"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_raw"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_raw"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueComponent_vector_raw", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_string.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_string.ts deleted file mode 100644 index 7f2c0ca2..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueComponent_vector_string.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueComponent_vector_string - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_string"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_string"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_string"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueComponent_vector_string", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueComponent_vector_string", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_bool.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_bool.ts deleted file mode 100644 index 0882dcfe..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_bool.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueWidget_bool - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueComponent_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_bool"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_bool", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_bool"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueComponent_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_bool"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_bool", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_bool"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueComponent_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_bool"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_bool", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_bool"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueWidget_bool", "type": "wpilib.shuffleboard._SuppliedValueWidget_bool"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_bool", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_bool"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueWidget_bool", "type": "wpilib.shuffleboard._SuppliedValueWidget_bool"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_bool", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_bool"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", "args": [{"name": "_SuppliedValueWidget_bool", "type": "wpilib.shuffleboard._SuppliedValueWidget_bool"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_bool", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_bool"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueWidget_bool", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueWidget_bool", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_double.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_double.ts deleted file mode 100644 index b5057f78..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_double.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueWidget_double - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueComponent_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_double"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_double", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_double"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueComponent_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_double"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_double", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_double"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueComponent_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_double"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_double", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_double"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueWidget_double", "type": "wpilib.shuffleboard._SuppliedValueWidget_double"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_double", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_double"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueWidget_double", "type": "wpilib.shuffleboard._SuppliedValueWidget_double"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_double", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_double"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", "args": [{"name": "_SuppliedValueWidget_double", "type": "wpilib.shuffleboard._SuppliedValueWidget_double"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_double", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_double"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueWidget_double", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueWidget_double", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_float.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_float.ts deleted file mode 100644 index 34798d64..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_float.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueWidget_float - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueComponent_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_float"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_float", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_float"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueComponent_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_float"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_float", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_float"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueComponent_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_float"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_float", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_float"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueWidget_float", "type": "wpilib.shuffleboard._SuppliedValueWidget_float"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_float", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_float"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueWidget_float", "type": "wpilib.shuffleboard._SuppliedValueWidget_float"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_float", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_float"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", "args": [{"name": "_SuppliedValueWidget_float", "type": "wpilib.shuffleboard._SuppliedValueWidget_float"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_float", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_float"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueWidget_float", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueWidget_float", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_integer.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_integer.ts deleted file mode 100644 index b0a27778..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_integer.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueWidget_integer - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueComponent_integer", "type": "wpilib.shuffleboard._SuppliedValueComponent_integer"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_integer", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_integer"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueComponent_integer", "type": "wpilib.shuffleboard._SuppliedValueComponent_integer"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_integer", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_integer"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueComponent_integer", "type": "wpilib.shuffleboard._SuppliedValueComponent_integer"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_integer", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_integer"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueWidget_integer", "type": "wpilib.shuffleboard._SuppliedValueWidget_integer"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_integer", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_integer"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueWidget_integer", "type": "wpilib.shuffleboard._SuppliedValueWidget_integer"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_integer", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_integer"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntegerValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", "args": [{"name": "_SuppliedValueWidget_integer", "type": "wpilib.shuffleboard._SuppliedValueWidget_integer"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_integer", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_integer"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueWidget_integer", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueWidget_integer", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_string.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_string.ts deleted file mode 100644 index 8842ed25..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_string.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueWidget_string - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueComponent_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_string"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_string", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_string"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueComponent_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_string"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_string", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_string"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueComponent_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_string"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_string", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_string"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueWidget_string", "type": "wpilib.shuffleboard._SuppliedValueWidget_string"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_string", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_string"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueWidget_string", "type": "wpilib.shuffleboard._SuppliedValueWidget_string"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_string", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_string"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", "args": [{"name": "_SuppliedValueWidget_string", "type": "wpilib.shuffleboard._SuppliedValueWidget_string"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_string", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_string"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueWidget_string", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueWidget_string", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_bool.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_bool.ts deleted file mode 100644 index 9438b48c..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_bool.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueWidget_vector_bool - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_bool"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_bool"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_bool"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_bool"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_bool"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedBoolListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_bool", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_bool"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueWidget_vector_bool", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueWidget_vector_bool", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_double.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_double.ts deleted file mode 100644 index 82c39b44..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_double.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueWidget_vector_double - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_double"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_double"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_double", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_double"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_double", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_double"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_double", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_double"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_double", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_double"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_double", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_double"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedDoubleListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_double", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_double"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_double", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_double"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueWidget_vector_double", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueWidget_vector_double", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_float.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_float.ts deleted file mode 100644 index 23fc8aec..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_float.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueWidget_vector_float - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_float"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_float"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_float", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_float"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_float", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_float"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_float", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_float"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_float", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_float"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_float", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_float"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedFloatListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_float", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_float"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_float", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_float"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueWidget_vector_float", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueWidget_vector_float", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_int.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_int.ts deleted file mode 100644 index eebd7ba3..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_int.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueWidget_vector_int - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_int", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_int"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_int", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_int"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_int", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_int"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_int", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_int"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_int", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_int"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_int", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_int"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_int", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_int"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedIntListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_int", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_int"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_int", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_int"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueWidget_vector_int", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueWidget_vector_int", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_raw.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_raw.ts deleted file mode 100644 index e61e6a5f..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_raw.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueWidget_vector_raw - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_raw"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_raw"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_raw"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_raw"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_raw"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedRawValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_raw", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_raw"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueWidget_vector_raw", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueWidget_vector_raw", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_string.ts b/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_string.ts deleted file mode 100644 index 071c4f5f..00000000 --- a/src/blocks/generated/class_wpilib.shuffleboard._SuppliedValueWidget_vector_string.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.shuffleboard._SuppliedValueWidget_vector_string - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 14 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}, {"name": "parentTable", "type": "ntcore.NetworkTable"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "buildInto"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "metaTable", "type": "ntcore.NetworkTable"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "buildMetadata"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTable"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "disableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator().", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "enableIfActuator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myShuffleboardContainer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.ShuffleboardContainer", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getParent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardValue", "type": "wpilib.shuffleboard.ShuffleboardValue"}], "tooltip": "Gets the title of this Shuffleboard value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardValue", "FUNC": "getTitle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardValue"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "getType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "shuffleboardComponentBase", "type": "wpilib.shuffleboard.ShuffleboardComponentBase"}, {"name": "type", "type": "str"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard.ShuffleboardComponentBase", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myShuffleboardComponentBase"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string"}, {"name": "columnIndex", "type": "int"}, {"name": "rowIndex", "type": "int"}], "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", "FUNC": "withPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_string"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string"}, {"name": "properties", "type": "dict[str, ntcore._ntcore.Value]"}], "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", "FUNC": "withProperties"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_string"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDict"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueComponent_vector_string", "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string"}, {"name": "width", "type": "int"}, {"name": "height", "type": "int"}], "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", "FUNC": "withSize"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueComponent_vector_string"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_string", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_string"}, {"name": "widgetType", "type": "wpilib.shuffleboard.BuiltInWidgets"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_string", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_string"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInWidgets"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_string", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_string"}, {"name": "widgetType", "type": "wpilib.shuffleboard.WidgetType"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_string", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_string"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myWidgetType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySuppliedStringListValueWidget"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", "args": [{"name": "_SuppliedValueWidget_vector_string", "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_string"}, {"name": "widgetType", "type": "str"}], "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.shuffleboard._SuppliedValueWidget_vector_string", "FUNC": "withWidget"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "my_SuppliedValueWidget_vector_string"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "_SuppliedValueWidget_vector_string", - contents: contents, - className: "wpilib.shuffleboard._SuppliedValueWidget_vector_string", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.ADIS16448_IMUSim.ts b/src/blocks/generated/class_wpilib.simulation.ADIS16448_IMUSim.ts deleted file mode 100644 index fcf2d4b5..00000000 --- a/src/blocks/generated/class_wpilib.simulation.ADIS16448_IMUSim.ts +++ /dev/null @@ -1,36 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.ADIS16448_IMUSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 10 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADIS16448_IMUSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.ADIS16448_IMUSim", "args": [{"name": "imu", "type": "wpilib.ADIS16448_IMU"}], "tooltip": "Constructs from a ADIS16448_IMU object.\n\n:param imu: ADIS16448_IMU to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16448_IMUSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMU"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16448_IMUSim", "type": "wpilib.simulation.ADIS16448_IMUSim"}, {"name": "accel", "type": "wpimath.units.meters_per_second_squared"}], "tooltip": "Sets the X axis acceleration.\n\n:param accel: The acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16448_IMUSim", "FUNC": "setAccelX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16448_IMUSim", "type": "wpilib.simulation.ADIS16448_IMUSim"}, {"name": "accel", "type": "wpimath.units.meters_per_second_squared"}], "tooltip": "Sets the Y axis acceleration.\n\n:param accel: The acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16448_IMUSim", "FUNC": "setAccelY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16448_IMUSim", "type": "wpilib.simulation.ADIS16448_IMUSim"}, {"name": "accel", "type": "wpimath.units.meters_per_second_squared"}], "tooltip": "Sets the Z axis acceleration.\n\n:param accel: The acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16448_IMUSim", "FUNC": "setAccelZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16448_IMUSim", "type": "wpilib.simulation.ADIS16448_IMUSim"}, {"name": "angle", "type": "wpimath.units.degrees"}], "tooltip": "Sets the X axis angle (CCW positive).\n\n:param angle: The angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16448_IMUSim", "FUNC": "setGyroAngleX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16448_IMUSim", "type": "wpilib.simulation.ADIS16448_IMUSim"}, {"name": "angle", "type": "wpimath.units.degrees"}], "tooltip": "Sets the Y axis angle (CCW positive).\n\n:param angle: The angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16448_IMUSim", "FUNC": "setGyroAngleY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16448_IMUSim", "type": "wpilib.simulation.ADIS16448_IMUSim"}, {"name": "angle", "type": "wpimath.units.degrees"}], "tooltip": "Sets the Z axis angle (CCW positive).\n\n:param angle: The angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16448_IMUSim", "FUNC": "setGyroAngleZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16448_IMUSim", "type": "wpilib.simulation.ADIS16448_IMUSim"}, {"name": "angularRate", "type": "wpimath.units.degrees_per_second"}], "tooltip": "Sets the X axis angular rate (CCW positive).\n\n:param angularRate: The angular rate.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16448_IMUSim", "FUNC": "setGyroRateX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16448_IMUSim", "type": "wpilib.simulation.ADIS16448_IMUSim"}, {"name": "angularRate", "type": "wpimath.units.degrees_per_second"}], "tooltip": "Sets the Y axis angular rate (CCW positive).\n\n:param angularRate: The angular rate.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16448_IMUSim", "FUNC": "setGyroRateY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16448_IMUSim", "type": "wpilib.simulation.ADIS16448_IMUSim"}, {"name": "angularRate", "type": "wpimath.units.degrees_per_second"}], "tooltip": "Sets the Z axis angular rate (CCW positive).\n\n:param angularRate: The angular rate.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16448_IMUSim", "FUNC": "setGyroRateZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16448_IMUSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ADIS16448_IMUSim", - contents: contents, - className: "wpilib.simulation.ADIS16448_IMUSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.ADIS16470_IMUSim.ts b/src/blocks/generated/class_wpilib.simulation.ADIS16470_IMUSim.ts deleted file mode 100644 index 7f17fa59..00000000 --- a/src/blocks/generated/class_wpilib.simulation.ADIS16470_IMUSim.ts +++ /dev/null @@ -1,36 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.ADIS16470_IMUSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 10 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADIS16470_IMUSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.ADIS16470_IMUSim", "args": [{"name": "imu", "type": "wpilib.ADIS16470_IMU"}], "tooltip": "Constructs from a ADIS16470_IMU object.\n\n:param imu: ADIS16470_IMU to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16470_IMUSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMU"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMUSim", "type": "wpilib.simulation.ADIS16470_IMUSim"}, {"name": "accel", "type": "wpimath.units.meters_per_second_squared"}], "tooltip": "Sets the X axis acceleration.\n\n:param accel: The acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16470_IMUSim", "FUNC": "setAccelX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMUSim", "type": "wpilib.simulation.ADIS16470_IMUSim"}, {"name": "accel", "type": "wpimath.units.meters_per_second_squared"}], "tooltip": "Sets the Y axis acceleration.\n\n:param accel: The acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16470_IMUSim", "FUNC": "setAccelY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMUSim", "type": "wpilib.simulation.ADIS16470_IMUSim"}, {"name": "accel", "type": "wpimath.units.meters_per_second_squared"}], "tooltip": "Sets the Z axis acceleration.\n\n:param accel: The acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16470_IMUSim", "FUNC": "setAccelZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMUSim", "type": "wpilib.simulation.ADIS16470_IMUSim"}, {"name": "angle", "type": "wpimath.units.degrees"}], "tooltip": "Sets the X axis angle (CCW positive).\n\n:param angle: The angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16470_IMUSim", "FUNC": "setGyroAngleX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMUSim", "type": "wpilib.simulation.ADIS16470_IMUSim"}, {"name": "angle", "type": "wpimath.units.degrees"}], "tooltip": "Sets the Y axis angle (CCW positive).\n\n:param angle: The angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16470_IMUSim", "FUNC": "setGyroAngleY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMUSim", "type": "wpilib.simulation.ADIS16470_IMUSim"}, {"name": "angle", "type": "wpimath.units.degrees"}], "tooltip": "Sets the Z axis angle (CCW positive).\n\n:param angle: The angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16470_IMUSim", "FUNC": "setGyroAngleZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMUSim", "type": "wpilib.simulation.ADIS16470_IMUSim"}, {"name": "angularRate", "type": "wpimath.units.degrees_per_second"}], "tooltip": "Sets the X axis angular rate (CCW positive).\n\n:param angularRate: The angular rate.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16470_IMUSim", "FUNC": "setGyroRateX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMUSim", "type": "wpilib.simulation.ADIS16470_IMUSim"}, {"name": "angularRate", "type": "wpimath.units.degrees_per_second"}], "tooltip": "Sets the Y axis angular rate (CCW positive).\n\n:param angularRate: The angular rate.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16470_IMUSim", "FUNC": "setGyroRateY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMUSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDIS16470_IMUSim", "type": "wpilib.simulation.ADIS16470_IMUSim"}, {"name": "angularRate", "type": "wpimath.units.degrees_per_second"}], "tooltip": "Sets the Z axis angular rate (CCW positive).\n\n:param angularRate: The angular rate.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADIS16470_IMUSim", "FUNC": "setGyroRateZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADIS16470_IMUSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ADIS16470_IMUSim", - contents: contents, - className: "wpilib.simulation.ADIS16470_IMUSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.ADXL345Sim.ts b/src/blocks/generated/class_wpilib.simulation.ADXL345Sim.ts deleted file mode 100644 index 9d13c51c..00000000 --- a/src/blocks/generated/class_wpilib.simulation.ADXL345Sim.ts +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.ADXL345Sim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 5 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADXL345Sim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.ADXL345Sim", "args": [{"name": "accel", "type": "wpilib.ADXL345_I2C"}], "tooltip": "Constructs from a ADXL345_I2C object.\n\n:param accel: ADXL345 accel to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADXL345Sim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_I2C"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADXL345Sim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.ADXL345Sim", "args": [{"name": "accel", "type": "wpilib.ADXL345_SPI"}], "tooltip": "Constructs from a ADXL345_SPI object.\n\n:param accel: ADXL345 accel to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADXL345Sim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345_SPI"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXL345Sim", "type": "wpilib.simulation.ADXL345Sim"}, {"name": "accel", "type": "float"}], "tooltip": "Sets the X acceleration.\n\n:param accel: The X acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADXL345Sim", "FUNC": "setX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345Sim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXL345Sim", "type": "wpilib.simulation.ADXL345Sim"}, {"name": "accel", "type": "float"}], "tooltip": "Sets the Y acceleration.\n\n:param accel: The Y acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADXL345Sim", "FUNC": "setY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345Sim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXL345Sim", "type": "wpilib.simulation.ADXL345Sim"}, {"name": "accel", "type": "float"}], "tooltip": "Sets the Z acceleration.\n\n:param accel: The Z acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADXL345Sim", "FUNC": "setZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL345Sim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ADXL345Sim", - contents: contents, - className: "wpilib.simulation.ADXL345Sim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.ADXL362Sim.ts b/src/blocks/generated/class_wpilib.simulation.ADXL362Sim.ts deleted file mode 100644 index 28a28232..00000000 --- a/src/blocks/generated/class_wpilib.simulation.ADXL362Sim.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.ADXL362Sim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 4 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADXL362Sim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.ADXL362Sim", "args": [{"name": "accel", "type": "wpilib.ADXL362"}], "tooltip": "Constructs from a ADXL362 object.\n\n:param accel: ADXL362 accel to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADXL362Sim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL362"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXL362Sim", "type": "wpilib.simulation.ADXL362Sim"}, {"name": "accel", "type": "float"}], "tooltip": "Sets the X acceleration.\n\n:param accel: The X acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADXL362Sim", "FUNC": "setX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL362Sim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXL362Sim", "type": "wpilib.simulation.ADXL362Sim"}, {"name": "accel", "type": "float"}], "tooltip": "Sets the Y acceleration.\n\n:param accel: The Y acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADXL362Sim", "FUNC": "setY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL362Sim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXL362Sim", "type": "wpilib.simulation.ADXL362Sim"}, {"name": "accel", "type": "float"}], "tooltip": "Sets the Z acceleration.\n\n:param accel: The Z acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADXL362Sim", "FUNC": "setZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXL362Sim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ADXL362Sim", - contents: contents, - className: "wpilib.simulation.ADXL362Sim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.ADXRS450_GyroSim.ts b/src/blocks/generated/class_wpilib.simulation.ADXRS450_GyroSim.ts deleted file mode 100644 index 9c599770..00000000 --- a/src/blocks/generated/class_wpilib.simulation.ADXRS450_GyroSim.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.ADXRS450_GyroSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 3 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myADXRS450_GyroSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.ADXRS450_GyroSim", "args": [{"name": "gyro", "type": "wpilib.ADXRS450_Gyro"}], "tooltip": "Constructs from a ADXRS450_Gyro object.\n\n:param gyro: ADXRS450_Gyro to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADXRS450_GyroSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXRS450_Gyro"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXRS450_GyroSim", "type": "wpilib.simulation.ADXRS450_GyroSim"}, {"name": "angle", "type": "wpimath.units.degrees"}], "tooltip": "Sets the angle.\n\n:param angle: The angle (clockwise positive).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADXRS450_GyroSim", "FUNC": "setAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXRS450_GyroSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "aDXRS450_GyroSim", "type": "wpilib.simulation.ADXRS450_GyroSim"}, {"name": "rate", "type": "wpimath.units.degrees_per_second"}], "tooltip": "Sets the angular rate (clockwise positive).\n\n:param rate: The angular rate.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ADXRS450_GyroSim", "FUNC": "setRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myADXRS450_GyroSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ADXRS450_GyroSim", - contents: contents, - className: "wpilib.simulation.ADXRS450_GyroSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.AddressableLEDSim.ts b/src/blocks/generated/class_wpilib.simulation.AddressableLEDSim.ts deleted file mode 100644 index 099393ee..00000000 --- a/src/blocks/generated/class_wpilib.simulation.AddressableLEDSim.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.AddressableLEDSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 19 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAddressableLEDSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.AddressableLEDSim", "args": [], "tooltip": "Constructs for the first addressable LED.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAddressableLEDSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.AddressableLEDSim", "args": [{"name": "addressableLED", "type": "wpilib.AddressableLED"}], "tooltip": "Constructs from an AddressableLED object.\n\n:param addressableLED: AddressableLED to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLED"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAddressableLEDSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.AddressableLEDSim", "args": [{"name": "pwmChannel", "type": "int"}], "tooltip": "Creates an AddressableLEDSim for a PWM channel.\n\n:param pwmChannel: PWM channel\n\n:returns: Simulated object\n @throws std::out_of_range if no AddressableLED is configured for that\n channel", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "createForChannel"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAddressableLEDSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.AddressableLEDSim", "args": [{"name": "index", "type": "int"}], "tooltip": "Creates an AddressableLEDSim for a simulated index.\nThe index is incremented for each simulated AddressableLED.\n\n:param index: simulator index\n\n:returns: Simulated object", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "createForIndex"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}, {"name": "data", "type": "hal.AddressableLEDData"}], "tooltip": "Get the LED data.\n\n:param data: output parameter to fill with LED data\n\n:returns: the length of the LED data", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "getData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDData"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}], "tooltip": "Check if initialized.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "getInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}], "tooltip": "Get the length of the LED strip.\n\n:returns: the length", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "getLength"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}], "tooltip": "Get the output port.\n\n:returns: the output port", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "getOutputPort"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}], "tooltip": "Check if the LEDs are running.\n\n:returns: true if they are", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "getRunning"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}, {"name": "callback", "type": "Callable[[str, int, int], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the LED data.\n\n:param callback: the callback that will be called whenever the LED data is\n changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "registerDataCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the Initialized property.\n\n:param callback: the callback that will be called whenever the Initialized\n property is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object storing this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "registerInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the length.\n\n:param callback: the callback that will be called whenever the length is\n changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "registerLengthCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the output port.\n\n:param callback: the callback that will be called whenever the output port\n is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "registerOutputPortCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on whether the LEDs are running.\n\n:param callback: the callback that will be called whenever the LED state is\n changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "registerRunningCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}, {"name": "data", "type": "hal.AddressableLEDData"}, {"name": "length", "type": "int"}], "tooltip": "Change the LED data.\n\n:param data: the new data\n:param length: the length of the LED data", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "setData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDData"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}, {"name": "initialized", "type": "bool"}], "tooltip": "Change the Initialized value of the LED strip.\n\n:param initialized: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "setInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}, {"name": "length", "type": "int"}], "tooltip": "Change the length of the LED strip.\n\n:param length: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "setLength"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}, {"name": "outputPort", "type": "int"}], "tooltip": "Change the output port.\n\n:param outputPort: the new output port", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "setOutputPort"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "addressableLEDSim", "type": "wpilib.simulation.AddressableLEDSim"}, {"name": "running", "type": "bool"}], "tooltip": "Change whether the LEDs are active.\n\n:param running: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AddressableLEDSim", "FUNC": "setRunning"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAddressableLEDSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "AddressableLEDSim", - contents: contents, - className: "wpilib.simulation.AddressableLEDSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.AnalogEncoderSim.ts b/src/blocks/generated/class_wpilib.simulation.AnalogEncoderSim.ts deleted file mode 100644 index 424002fa..00000000 --- a/src/blocks/generated/class_wpilib.simulation.AnalogEncoderSim.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.AnalogEncoderSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 3 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogEncoderSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.AnalogEncoderSim", "args": [{"name": "encoder", "type": "wpilib.AnalogEncoder"}], "tooltip": "Constructs from an AnalogEncoder object.\n\n:param encoder: AnalogEncoder to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogEncoderSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogEncoder"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogEncoderSim", "type": "wpilib.simulation.AnalogEncoderSim"}], "tooltip": "Get the simulated position.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogEncoderSim", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogEncoderSim", "type": "wpilib.simulation.AnalogEncoderSim"}, {"name": "value", "type": "float"}], "tooltip": "Set the position.\n\n:param value: The position.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogEncoderSim", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogEncoderSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "AnalogEncoderSim", - contents: contents, - className: "wpilib.simulation.AnalogEncoderSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.AnalogGyroSim.ts b/src/blocks/generated/class_wpilib.simulation.AnalogGyroSim.ts deleted file mode 100644 index 6dd2d793..00000000 --- a/src/blocks/generated/class_wpilib.simulation.AnalogGyroSim.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.AnalogGyroSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogGyroSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.AnalogGyroSim", "args": [{"name": "gyro", "type": "wpilib.AnalogGyro"}], "tooltip": "Constructs from an AnalogGyro object.\n\n:param gyro: AnalogGyro to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogGyroSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyro"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogGyroSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.AnalogGyroSim", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructs from an analog input channel number.\n\n:param channel: Channel number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogGyroSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogGyroSim", "type": "wpilib.simulation.AnalogGyroSim"}], "tooltip": "Get the current angle of the gyro.\n\n:returns: the angle measured by the gyro", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogGyroSim", "FUNC": "getAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyroSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "analogGyroSim", "type": "wpilib.simulation.AnalogGyroSim"}], "tooltip": "Check if the gyro is initialized.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogGyroSim", "FUNC": "getInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyroSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogGyroSim", "type": "wpilib.simulation.AnalogGyroSim"}], "tooltip": "Get the rate of angle change on this gyro.\n\n:returns: the rate", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogGyroSim", "FUNC": "getRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyroSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogGyroSim", "type": "wpilib.simulation.AnalogGyroSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the angle.\n\n:param callback: the callback that will be called whenever the angle changes\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogGyroSim", "FUNC": "registerAngleCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyroSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogGyroSim", "type": "wpilib.simulation.AnalogGyroSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on whether the gyro is initialized.\n\n:param callback: the callback that will be called whenever the gyro is\n initialized\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogGyroSim", "FUNC": "registerInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyroSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogGyroSim", "type": "wpilib.simulation.AnalogGyroSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the rate.\n\n:param callback: the callback that will be called whenever the rate changes\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogGyroSim", "FUNC": "registerRateCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyroSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogGyroSim", "type": "wpilib.simulation.AnalogGyroSim"}], "tooltip": "Reset all simulation data for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogGyroSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyroSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogGyroSim", "type": "wpilib.simulation.AnalogGyroSim"}, {"name": "angle", "type": "float"}], "tooltip": "Change the angle measured by the gyro.\n\n:param angle: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogGyroSim", "FUNC": "setAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyroSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogGyroSim", "type": "wpilib.simulation.AnalogGyroSim"}, {"name": "initialized", "type": "bool"}], "tooltip": "Set whether this gyro is initialized.\n\n:param initialized: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogGyroSim", "FUNC": "setInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyroSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogGyroSim", "type": "wpilib.simulation.AnalogGyroSim"}, {"name": "rate", "type": "float"}], "tooltip": "Change the rate of the gyro.\n\n:param rate: the new rate", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogGyroSim", "FUNC": "setRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogGyroSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "AnalogGyroSim", - contents: contents, - className: "wpilib.simulation.AnalogGyroSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.AnalogInputSim.ts b/src/blocks/generated/class_wpilib.simulation.AnalogInputSim.ts deleted file mode 100644 index 714fcdb0..00000000 --- a/src/blocks/generated/class_wpilib.simulation.AnalogInputSim.ts +++ /dev/null @@ -1,56 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.AnalogInputSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 30 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogInputSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.AnalogInputSim", "args": [{"name": "analogInput", "type": "wpilib.AnalogInput"}], "tooltip": "Constructs from an AnalogInput object.\n\n:param analogInput: AnalogInput to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInput"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogInputSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.AnalogInputSim", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructs from an analog input channel number.\n\n:param channel: Channel number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}], "tooltip": "Get the accumulator center.\n\n:returns: the accumulator center", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "getAccumulatorCenter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}], "tooltip": "Get the accumulator count.\n\n:returns: the accumulator count.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "getAccumulatorCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}], "tooltip": "Get the accumulator deadband.\n\n:returns: the accumulator deadband", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "getAccumulatorDeadband"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}], "tooltip": "Check if the accumulator has been initialized.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "getAccumulatorInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}], "tooltip": "Get the accumulator value.\n\n:returns: the accumulator value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "getAccumulatorValue"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}], "tooltip": "Get the number of average bits.\n\n:returns: the number of average bits", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "getAverageBits"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}], "tooltip": "Check if this analog input has been initialized.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "getInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}], "tooltip": "Get the amount of oversampling bits.\n\n:returns: the amount of oversampling bits", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "getOversampleBits"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}], "tooltip": "Get the voltage.\n\n:returns: the voltage", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the accumulator center.\n\n:param callback: the callback that will be called whenever the accumulator\n center is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "registerAccumulatorCenterCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the accumulator count.\n\n:param callback: the callback that will be called whenever the accumulator\n count is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "registerAccumulatorCountCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the accumulator deadband.\n\n:param callback: the callback that will be called whenever the accumulator\n deadband is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "registerAccumulatorDeadbandCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on whether the accumulator is initialized.\n\n:param callback: the callback that will be called whenever the accumulator\n is initialized\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "registerAccumulatorInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the accumulator value.\n\n:param callback: the callback that will be called whenever the accumulator\n value is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "registerAccumulatorValueCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the number of average bits.\n\n:param callback: the callback that will be called whenever the number of\n average bits is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "registerAverageBitsCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on whether the analog input is initialized.\n\n:param callback: the callback that will be called whenever the analog input\n is initialized\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "registerInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the amount of oversampling bits.\n\n:param callback: the callback that will be called whenever the oversampling\n bits are changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "registerOversampleBitsCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the voltage.\n\n:param callback: the callback that will be called whenever the voltage is\n changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "registerVoltageCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}], "tooltip": "Reset all simulation data for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "accumulatorCenter", "type": "int"}], "tooltip": "Change the accumulator center.\n\n:param accumulatorCenter: the new center", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "setAccumulatorCenter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "accumulatorCount", "type": "int"}], "tooltip": "Change the accumulator count.\n\n:param accumulatorCount: the new count.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "setAccumulatorCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "accumulatorDeadband", "type": "int"}], "tooltip": "Change the accumulator deadband.\n\n:param accumulatorDeadband: the new deadband", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "setAccumulatorDeadband"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "accumulatorInitialized", "type": "bool"}], "tooltip": "Change whether the accumulator has been initialized.\n\n:param accumulatorInitialized: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "setAccumulatorInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "accumulatorValue", "type": "int"}], "tooltip": "Change the accumulator value.\n\n:param accumulatorValue: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "setAccumulatorValue"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "averageBits", "type": "int"}], "tooltip": "Change the number of average bits.\n\n:param averageBits: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "setAverageBits"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "initialized", "type": "bool"}], "tooltip": "Change whether this analog input has been initialized.\n\n:param initialized: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "setInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "oversampleBits", "type": "int"}], "tooltip": "Change the amount of oversampling bits.\n\n:param oversampleBits: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "setOversampleBits"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogInputSim", "type": "wpilib.simulation.AnalogInputSim"}, {"name": "voltage", "type": "float"}], "tooltip": "Change the voltage.\n\n:param voltage: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogInputSim", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogInputSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "AnalogInputSim", - contents: contents, - className: "wpilib.simulation.AnalogInputSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.AnalogOutputSim.ts b/src/blocks/generated/class_wpilib.simulation.AnalogOutputSim.ts deleted file mode 100644 index 61875495..00000000 --- a/src/blocks/generated/class_wpilib.simulation.AnalogOutputSim.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.AnalogOutputSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 9 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogOutputSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.AnalogOutputSim", "args": [{"name": "analogOutput", "type": "wpilib.AnalogOutput"}], "tooltip": "Constructs from an AnalogOutput object.\n\n:param analogOutput: AnalogOutput to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogOutputSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogOutput"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogOutputSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.AnalogOutputSim", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructs from an analog output channel number.\n\n:param channel: Channel number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogOutputSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "analogOutputSim", "type": "wpilib.simulation.AnalogOutputSim"}], "tooltip": "Check whether this analog output has been initialized.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogOutputSim", "FUNC": "getInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogOutputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogOutputSim", "type": "wpilib.simulation.AnalogOutputSim"}], "tooltip": "Read the analog output voltage.\n\n:returns: the voltage on this analog output", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogOutputSim", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogOutputSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogOutputSim", "type": "wpilib.simulation.AnalogOutputSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when this analog output is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogOutputSim", "FUNC": "registerInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogOutputSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogOutputSim", "type": "wpilib.simulation.AnalogOutputSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the voltage changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogOutputSim", "FUNC": "registerVoltageCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogOutputSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogOutputSim", "type": "wpilib.simulation.AnalogOutputSim"}], "tooltip": "Reset all simulation data on this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogOutputSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogOutputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogOutputSim", "type": "wpilib.simulation.AnalogOutputSim"}, {"name": "initialized", "type": "bool"}], "tooltip": "Define whether this analog output has been initialized.\n\n:param initialized: whether this object is initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogOutputSim", "FUNC": "setInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogOutputSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogOutputSim", "type": "wpilib.simulation.AnalogOutputSim"}, {"name": "voltage", "type": "float"}], "tooltip": "Set the analog output voltage.\n\n:param voltage: the new voltage on this analog output", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogOutputSim", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogOutputSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "AnalogOutputSim", - contents: contents, - className: "wpilib.simulation.AnalogOutputSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.AnalogTriggerSim.ts b/src/blocks/generated/class_wpilib.simulation.AnalogTriggerSim.ts deleted file mode 100644 index ef7b41ff..00000000 --- a/src/blocks/generated/class_wpilib.simulation.AnalogTriggerSim.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.AnalogTriggerSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogTriggerSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.AnalogTriggerSim", "args": [{"name": "analogTrigger", "type": "wpilib.AnalogTrigger"}], "tooltip": "Constructs from an AnalogTrigger object.\n\n:param analogTrigger: AnalogTrigger to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogTriggerSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTrigger"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogTriggerSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.AnalogTriggerSim", "args": [{"name": "channel", "type": "int"}], "tooltip": "Creates an AnalogTriggerSim for an analog input channel.\n\n:param channel: analog input channel\n\n:returns: Simulated object\n @throws std::out_of_range if no AnalogTrigger is configured for that\n channel", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogTriggerSim", "FUNC": "createForChannel"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAnalogTriggerSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.AnalogTriggerSim", "args": [{"name": "index", "type": "int"}], "tooltip": "Creates an AnalogTriggerSim for a simulated index.\nThe index is incremented for each simulated AnalogTrigger.\n\n:param index: simulator index\n\n:returns: Simulated object", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogTriggerSim", "FUNC": "createForIndex"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "analogTriggerSim", "type": "wpilib.simulation.AnalogTriggerSim"}], "tooltip": "Check if this analog trigger has been initialized.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogTriggerSim", "FUNC": "getInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogTriggerSim", "type": "wpilib.simulation.AnalogTriggerSim"}], "tooltip": "Get the lower bound.\n\n:returns: the lower bound", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogTriggerSim", "FUNC": "getTriggerLowerBound"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "analogTriggerSim", "type": "wpilib.simulation.AnalogTriggerSim"}], "tooltip": "Get the upper bound.\n\n:returns: the upper bound", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogTriggerSim", "FUNC": "getTriggerUpperBound"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogTriggerSim", "type": "wpilib.simulation.AnalogTriggerSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on whether the analog trigger is initialized.\n\n:param callback: the callback that will be called whenever the analog\n trigger is initialized\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogTriggerSim", "FUNC": "registerInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogTriggerSim", "type": "wpilib.simulation.AnalogTriggerSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the lower bound.\n\n:param callback: the callback that will be called whenever the lower bound\n is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogTriggerSim", "FUNC": "registerTriggerLowerBoundCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "analogTriggerSim", "type": "wpilib.simulation.AnalogTriggerSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the upper bound.\n\n:param callback: the callback that will be called whenever the upper bound\n is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogTriggerSim", "FUNC": "registerTriggerUpperBoundCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogTriggerSim", "type": "wpilib.simulation.AnalogTriggerSim"}], "tooltip": "Reset all simulation data for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogTriggerSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogTriggerSim", "type": "wpilib.simulation.AnalogTriggerSim"}, {"name": "initialized", "type": "bool"}], "tooltip": "Change whether this analog trigger has been initialized.\n\n:param initialized: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogTriggerSim", "FUNC": "setInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogTriggerSim", "type": "wpilib.simulation.AnalogTriggerSim"}, {"name": "triggerLowerBound", "type": "float"}], "tooltip": "Change the lower bound.\n\n:param triggerLowerBound: the new lower bound", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogTriggerSim", "FUNC": "setTriggerLowerBound"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "analogTriggerSim", "type": "wpilib.simulation.AnalogTriggerSim"}, {"name": "triggerUpperBound", "type": "float"}], "tooltip": "Change the upper bound.\n\n:param triggerUpperBound: the new upper bound", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.AnalogTriggerSim", "FUNC": "setTriggerUpperBound"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAnalogTriggerSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "AnalogTriggerSim", - contents: contents, - className: "wpilib.simulation.AnalogTriggerSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.BatterySim.ts b/src/blocks/generated/class_wpilib.simulation.BatterySim.ts deleted file mode 100644 index 8dc2f150..00000000 --- a/src/blocks/generated/class_wpilib.simulation.BatterySim.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.BatterySim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 3 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBatterySim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.BatterySim", "args": [], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BatterySim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.volts", "args": [{"name": "nominalVoltage", "type": "wpimath.units.volts"}, {"name": "resistance", "type": "wpimath.units.ohms"}, {"name": "currents", "type": "List[wpimath.units.amperes]"}], "tooltip": "Calculate the loaded battery voltage. Use this with\nRoboRioSim::SetVInVoltage(double) to set the simulated battery voltage,\nwhich can then be retrieved with the RobotController::GetBatteryVoltage()\nmethod.\n\n:param nominalVoltage: The nominal battery voltage. Usually 12v.\n:param resistance: The forward resistance of the battery. Most batteries\n are at or below 20 milliohms.\n:param currents: The currents drawn from the battery.\n\n:returns: The battery's voltage under load.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BatterySim", "FUNC": "calculate"}, "inputs": {"ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.volts", "args": [{"name": "currents", "type": "List[wpimath.units.amperes]"}], "tooltip": "Calculate the loaded battery voltage. Use this with\nRoboRioSimSetVInVoltage(double) to set the simulated battery voltage, which\ncan then be retrieved with the RobotController::GetBatteryVoltage() method.\nThis function assumes a nominal voltage of 12V and a resistance of 20\nmilliohms (0.020 ohms).\n\n:param currents: The currents drawn from the battery.\n\n:returns: The battery's voltage under load.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BatterySim", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "BatterySim", - contents: contents, - className: "wpilib.simulation.BatterySim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.BuiltInAccelerometerSim.ts b/src/blocks/generated/class_wpilib.simulation.BuiltInAccelerometerSim.ts deleted file mode 100644 index 4134d1ec..00000000 --- a/src/blocks/generated/class_wpilib.simulation.BuiltInAccelerometerSim.ts +++ /dev/null @@ -1,44 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.BuiltInAccelerometerSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 18 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.BuiltInAccelerometerSim", "args": [], "tooltip": "Constructs for the first built-in accelerometer.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.BuiltInAccelerometerSim", "args": [{"name": "accel", "type": "wpilib.BuiltInAccelerometer"}], "tooltip": "Constructs from a BuiltInAccelerometer object.\n\n:param accel: BuiltInAccelerometer to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometer"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}], "tooltip": "Check whether the accelerometer is active.\n\n:returns: true if active", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "getActive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAccelerometerRange"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "hal.AccelerometerRange", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}], "tooltip": "Check the range of this accelerometer.\n\n:returns: the accelerometer range", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "getRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}], "tooltip": "Measure the X axis value.\n\n:returns: the X axis measurement", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "getX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}], "tooltip": "Measure the Y axis value.\n\n:returns: the Y axis measurement", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "getY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}], "tooltip": "Measure the Z axis value.\n\n:returns: the Z axis measurement", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "getZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when this accelerometer activates.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "registerActiveCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the range changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "registerRangeCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the X axis value changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "registerXCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the Y axis value changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "registerYCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the Z axis value changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "registerZCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}], "tooltip": "Reset all simulation data of this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}, {"name": "active", "type": "bool"}], "tooltip": "Define whether this accelerometer is active.\n\n:param active: the new state", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "setActive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}, {"name": "range", "type": "hal.AccelerometerRange"}], "tooltip": "Change the range of this accelerometer.\n\n:param range: the new accelerometer range", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "setRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAccelerometerRange"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}, {"name": "x", "type": "float"}], "tooltip": "Change the X axis value of the accelerometer.\n\n:param x: the new reading of the X axis", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "setX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}, {"name": "y", "type": "float"}], "tooltip": "Change the Y axis value of the accelerometer.\n\n:param y: the new reading of the Y axis", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "setY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "builtInAccelerometerSim", "type": "wpilib.simulation.BuiltInAccelerometerSim"}, {"name": "z", "type": "float"}], "tooltip": "Change the Z axis value of the accelerometer.\n\n:param z: the new reading of the Z axis", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.BuiltInAccelerometerSim", "FUNC": "setZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBuiltInAccelerometerSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "BuiltInAccelerometerSim", - contents: contents, - className: "wpilib.simulation.BuiltInAccelerometerSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.CTREPCMSim.ts b/src/blocks/generated/class_wpilib.simulation.CTREPCMSim.ts deleted file mode 100644 index c53beb41..00000000 --- a/src/blocks/generated/class_wpilib.simulation.CTREPCMSim.ts +++ /dev/null @@ -1,51 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.CTREPCMSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 25 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCTREPCMSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.CTREPCMSim", "args": [], "tooltip": "Constructs with the default PCM module number (CAN ID).", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCTREPCMSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.CTREPCMSim", "args": [{"name": "module", "type": "int"}], "tooltip": "Constructs from a PCM module number (CAN ID).\n\n:param module: module number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCTREPCMSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.CTREPCMSim", "args": [{"name": "pneumatics", "type": "wpilib.PneumaticsBase"}], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "getAllSolenoidOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}], "tooltip": "Check whether the closed loop compressor control is active.\n\n:returns: true if active", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "getClosedLoopEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}], "tooltip": "Read the compressor current.\n\n:returns: the current of the compressor connected to this module", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "getCompressorCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "getCompressorOn"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.PneumaticsBaseSim", "args": [{"name": "module", "type": "int"}, {"name": "type", "type": "wpilib.PneumaticsModuleType"}], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "getForType"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "getInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}], "tooltip": "Check the value of the pressure switch.\n\n:returns: the pressure switch value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "getPressureSwitch"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}, {"name": "channel", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "getSolenoidOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the closed loop state changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "registerClosedLoopEnabledCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the compressor current changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "registerCompressorCurrentCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "registerCompressorOnCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "registerInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the pressure switch value changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "registerPressureSwitchCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}, {"name": "channel", "type": "int"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "registerSolenoidOutputCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}, {"name": "outputs", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "setAllSolenoidOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}, {"name": "closedLoopEnabled", "type": "bool"}], "tooltip": "Turn on/off the closed loop control of the compressor.\n\n:param closedLoopEnabled: whether the control loop is active", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "setClosedLoopEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}, {"name": "compressorCurrent", "type": "float"}], "tooltip": "Set the compressor current.\n\n:param compressorCurrent: the new compressor current", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "setCompressorCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}, {"name": "compressorOn", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "setCompressorOn"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}, {"name": "initialized", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "setInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}, {"name": "pressureSwitch", "type": "bool"}], "tooltip": "Set the value of the pressure switch.\n\n:param pressureSwitch: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "setPressureSwitch"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "cTREPCMSim", "type": "wpilib.simulation.CTREPCMSim"}, {"name": "channel", "type": "int"}, {"name": "solenoidOutput", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CTREPCMSim", "FUNC": "setSolenoidOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCTREPCMSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "CTREPCMSim", - contents: contents, - className: "wpilib.simulation.CTREPCMSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.CallbackStore.ts b/src/blocks/generated/class_wpilib.simulation.CallbackStore.ts deleted file mode 100644 index 87d0f0cb..00000000 --- a/src/blocks/generated/class_wpilib.simulation.CallbackStore.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.CallbackStore - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 1 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "callbackStore", "type": "wpilib.simulation.CallbackStore"}, {"name": "uid", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.CallbackStore", "FUNC": "setUid"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallbackStore"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "CallbackStore", - contents: contents, - className: "wpilib.simulation.CallbackStore", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.DCMotorSim.ts b/src/blocks/generated/class_wpilib.simulation.DCMotorSim.ts deleted file mode 100644 index 6bb175fb..00000000 --- a/src/blocks/generated/class_wpilib.simulation.DCMotorSim.ts +++ /dev/null @@ -1,47 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.DCMotorSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 21 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDCMotorSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DCMotorSim", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_2_1_2"}, {"name": "gearbox", "type": "wpimath.system.plant.DCMotor"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(2)]"}], "tooltip": "Creates a simulated DC motor mechanism.\n\n:param plant: The linear system representing the DC motor. This\n system can be created with LinearSystemId::DCMotorSystem(). If\n LinearSystemId::DCMotorSystem(kV, kA) is used, the distance unit must be\n radians.\n:param gearbox: The type of and number of motors in the DC motor\n gearbox.\n:param measurementStdDevs: The standard deviation of the measurement noise.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DCMotorSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians_per_second_squared", "args": [{"name": "dCMotorSim", "type": "wpilib.simulation.DCMotorSim"}], "tooltip": "Returns the DC motor acceleration.\n\n:returns: The DC motor acceleration", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DCMotorSim", "FUNC": "getAngularAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians", "args": [{"name": "dCMotorSim", "type": "wpilib.simulation.DCMotorSim"}], "tooltip": "Returns the DC motor position.\n\n:returns: The DC motor position.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DCMotorSim", "FUNC": "getAngularPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians_per_second", "args": [{"name": "dCMotorSim", "type": "wpilib.simulation.DCMotorSim"}], "tooltip": "Returns the DC motor velocity.\n\n:returns: The DC motor velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DCMotorSim", "FUNC": "getAngularVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.amperes", "args": [{"name": "dCMotorSim", "type": "wpilib.simulation.DCMotorSim"}], "tooltip": "Returns the DC motor current draw.\n\n:returns: The DC motor current draw.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DCMotorSim", "FUNC": "getCurrentDraw"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotorSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDCMotor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.system.plant.DCMotor", "args": [{"name": "dCMotorSim", "type": "wpilib.simulation.DCMotorSim"}], "tooltip": "Returns the gearbox.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DCMotorSim", "FUNC": "getGearbox"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotorSim"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "dCMotorSim", "type": "wpilib.simulation.DCMotorSim"}], "tooltip": "Returns the gearing;", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DCMotorSim", "FUNC": "getGearing"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}], "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "dCMotorSim", "type": "wpilib.simulation.DCMotorSim"}], "tooltip": "Gets the input voltage for the DC motor.\n\n:returns: The DC motor input voltage.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DCMotorSim", "FUNC": "getInputVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.kilogram_square_meters", "args": [{"name": "dCMotorSim", "type": "wpilib.simulation.DCMotorSim"}], "tooltip": "Returns the moment of inertia", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DCMotorSim", "FUNC": "getJ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}], "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.newton_meters", "args": [{"name": "dCMotorSim", "type": "wpilib.simulation.DCMotorSim"}], "tooltip": "Returns the DC motor torque.\n\n:returns: The DC motor torque", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DCMotorSim", "FUNC": "getTorque"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dCMotorSim", "type": "wpilib.simulation.DCMotorSim"}, {"name": "angularPosition", "type": "wpimath.units.radians"}], "tooltip": "Sets the DC motor's angular position.\n\n:param angularPosition: The new position in radians.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DCMotorSim", "FUNC": "setAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dCMotorSim", "type": "wpilib.simulation.DCMotorSim"}, {"name": "angularVelocity", "type": "wpimath.units.radians_per_second"}], "tooltip": "Sets the DC motor's angular velocity.\n\n:param angularVelocity: The new velocity in radians per second.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DCMotorSim", "FUNC": "setAngularVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "row", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dCMotorSim", "type": "wpilib.simulation.DCMotorSim"}, {"name": "voltage", "type": "wpimath.units.volts"}], "tooltip": "Sets the input voltage for the DC motor.\n\n:param voltage: The input voltage.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DCMotorSim", "FUNC": "setInputVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dCMotorSim", "type": "wpilib.simulation.DCMotorSim"}, {"name": "angularPosition", "type": "wpimath.units.radians"}, {"name": "angularVelocity", "type": "wpimath.units.radians_per_second"}], "tooltip": "Sets the state of the DC motor.\n\n:param angularPosition: The new position\n:param angularVelocity: The new velocity", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DCMotorSim", "FUNC": "setState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Updates the simulation.\n\n:param dt: The time between updates.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "DCMotorSim", - contents: contents, - className: "wpilib.simulation.DCMotorSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.DIOSim.ts b/src/blocks/generated/class_wpilib.simulation.DIOSim.ts deleted file mode 100644 index 250bb2ed..00000000 --- a/src/blocks/generated/class_wpilib.simulation.DIOSim.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.DIOSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 19 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDIOSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DIOSim", "args": [{"name": "input", "type": "wpilib.DigitalInput"}], "tooltip": "Constructs from a DigitalInput object.\n\n:param input: DigitalInput to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalInput"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDIOSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DIOSim", "args": [{"name": "output", "type": "wpilib.DigitalOutput"}], "tooltip": "Constructs from a DigitalOutput object.\n\n:param output: DigitalOutput to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDIOSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DIOSim", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructs from an digital I/O channel number.\n\n:param channel: Channel number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}], "tooltip": "Read the filter index.\n\n:returns: the filter index of this DIO port", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "getFilterIndex"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}], "tooltip": "Check whether this DIO has been initialized.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "getInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}], "tooltip": "Check whether this DIO port is currently an Input.\n\n:returns: true if Input", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "getIsInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}], "tooltip": "Read the pulse length.\n\n:returns: the pulse length of this DIO port", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "getPulseLength"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}], "tooltip": "Read the value of the DIO port.\n\n:returns: the DIO value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "getValue"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the filter index changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "registerFilterIndexCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when this DIO is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "registerInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever this DIO changes to be an input.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "registerIsInputCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the pulse length changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "registerPulseLengthCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the DIO value changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "registerValueCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}], "tooltip": "Reset all simulation data of this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}, {"name": "filterIndex", "type": "int"}], "tooltip": "Change the filter index of this DIO port.\n\n:param filterIndex: the new filter index", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "setFilterIndex"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}, {"name": "initialized", "type": "bool"}], "tooltip": "Define whether this DIO has been initialized.\n\n:param initialized: whether this object is initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "setInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}, {"name": "isInput", "type": "bool"}], "tooltip": "Define whether this DIO port is an Input.\n\n:param isInput: whether this DIO should be an Input", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "setIsInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}, {"name": "pulseLength", "type": "float"}], "tooltip": "Change the pulse length of this DIO port.\n\n:param pulseLength: the new pulse length", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "setPulseLength"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dIOSim", "type": "wpilib.simulation.DIOSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the DIO value.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DIOSim", "FUNC": "setValue"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDIOSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "DIOSim", - contents: contents, - className: "wpilib.simulation.DIOSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing.ts b/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing.ts deleted file mode 100644 index 9b537bf3..00000000 --- a/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing.ts +++ /dev/null @@ -1,41 +0,0 @@ -// This file was generated. Do not edit! - -import * as getPythonVariable from "../mrc_get_python_variable"; -import * as setPythonVariable from "../mrc_set_python_variable"; -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing - -export function initialize() { - getPythonVariable.initializeClassVariableGetter("wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "float", ["k10p71", "k12p75", "k5p95", "k7p31", "k8p45"], []); - setPythonVariable.initializeClassVariableSetter("wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "float", ["k10p71", "k12p75", "k5p95", "k7p31", "k8p45"], []); -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "varType": "float", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "VAR": "k10p71"}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "varType": "float", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "VAR": "k10p71"}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "varType": "float", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "VAR": "k12p75"}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "varType": "float", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "VAR": "k12p75"}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "varType": "float", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "VAR": "k5p95"}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "varType": "float", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "VAR": "k5p95"}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "varType": "float", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "VAR": "k7p31"}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "varType": "float", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "VAR": "k7p31"}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "varType": "float", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "VAR": "k8p45"}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "varType": "float", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "VAR": "k8p45"}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myKitbotGearing"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", "args": [], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing"}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "KitbotGearing", - contents: contents, - className: "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor.ts b/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor.ts deleted file mode 100644 index cc80e7ec..00000000 --- a/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor.ts +++ /dev/null @@ -1,47 +0,0 @@ -// This file was generated. Do not edit! - -import * as getPythonVariable from "../mrc_get_python_variable"; -import * as setPythonVariable from "../mrc_set_python_variable"; -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor - -export function initialize() { - getPythonVariable.initializeClassVariableGetter("wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "wpimath.system.plant.DCMotor", ["DualCIMPerSide", "DualFalcon500PerSide", "DualMiniCIMPerSide", "DualNEOPerSide", "SingleCIMPerSide", "SingleFalcon500PerSide", "SingleMiniCIMPerSide", "SingleNEOPerSide"], []); - setPythonVariable.initializeClassVariableSetter("wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "wpimath.system.plant.DCMotor", ["DualCIMPerSide", "DualFalcon500PerSide", "DualMiniCIMPerSide", "DualNEOPerSide", "SingleCIMPerSide", "SingleFalcon500PerSide", "SingleMiniCIMPerSide", "SingleNEOPerSide"], []); -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 17 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "DualCIMPerSide"}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "DualCIMPerSide"}, "inputs": {"VALUE": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "DualFalcon500PerSide"}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "DualFalcon500PerSide"}, "inputs": {"VALUE": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "DualMiniCIMPerSide"}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "DualMiniCIMPerSide"}, "inputs": {"VALUE": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "DualNEOPerSide"}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "DualNEOPerSide"}, "inputs": {"VALUE": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "SingleCIMPerSide"}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "SingleCIMPerSide"}, "inputs": {"VALUE": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "SingleFalcon500PerSide"}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "SingleFalcon500PerSide"}, "inputs": {"VALUE": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "SingleMiniCIMPerSide"}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "SingleMiniCIMPerSide"}, "inputs": {"VALUE": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "SingleNEOPerSide"}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "varType": "wpimath.system.plant.DCMotor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "VAR": "SingleNEOPerSide"}, "inputs": {"VALUE": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myKitbotMotor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", "args": [], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor"}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "KitbotMotor", - contents: contents, - className: "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize.ts b/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize.ts deleted file mode 100644 index 2642772a..00000000 --- a/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize.ts +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated. Do not edit! - -import * as getPythonVariable from "../mrc_get_python_variable"; -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize - -export function initialize() { - getPythonVariable.initializeClassVariableGetter("wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize", "float", ["kEightInch", "kSixInch", "kTenInch"], []); -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 4 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize", "varType": "float", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize", "VAR": "kEightInch"}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize", "varType": "float", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize", "VAR": "kSixInch"}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize", "varType": "float", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize", "VAR": "kTenInch"}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myKitbotWheelSize"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize", "args": [], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize"}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "KitbotWheelSize", - contents: contents, - className: "wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.State.ts b/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.State.ts deleted file mode 100644 index 5fc4ded5..00000000 --- a/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.State.ts +++ /dev/null @@ -1,36 +0,0 @@ -// This file was generated. Do not edit! - -import * as getPythonVariable from "../mrc_get_python_variable"; -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.DifferentialDrivetrainSim.State - -export function initialize() { - getPythonVariable.initializeClassVariableGetter("wpilib.simulation.DifferentialDrivetrainSim.State", "int", ["kHeading", "kLeftPosition", "kLeftVelocity", "kRightPosition", "kRightVelocity", "kX", "kY"], []); -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 8 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.State", "varType": "int", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.State", "VAR": "kHeading"}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.State", "varType": "int", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.State", "VAR": "kLeftPosition"}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.State", "varType": "int", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.State", "VAR": "kLeftVelocity"}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.State", "varType": "int", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.State", "VAR": "kRightPosition"}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.State", "varType": "int", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.State", "VAR": "kRightVelocity"}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.State", "varType": "int", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.State", "VAR": "kX"}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "class", "moduleOrClassName": "wpilib.simulation.DifferentialDrivetrainSim.State", "varType": "int", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.State", "VAR": "kY"}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myState"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DifferentialDrivetrainSim.State", "args": [], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim.State"}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "State", - contents: contents, - className: "wpilib.simulation.DifferentialDrivetrainSim.State", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.ts b/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.ts deleted file mode 100644 index 7770e22c..00000000 --- a/src/blocks/generated/class_wpilib.simulation.DifferentialDrivetrainSim.ts +++ /dev/null @@ -1,53 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.DifferentialDrivetrainSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 27 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DifferentialDrivetrainSim", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_2_2_2"}, {"name": "trackWidth", "type": "wpimath.units.meters"}, {"name": "driveMotor", "type": "wpimath.system.plant.DCMotor"}, {"name": "gearingRatio", "type": "float"}, {"name": "wheelRadius", "type": "wpimath.units.meters"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(7)]"}], "tooltip": "Creates a simulated differential drivetrain.\n\n:param plant: The LinearSystem representing the robot's drivetrain. This\n system can be created with\n LinearSystemId::DrivetrainVelocitySystem() or\n LinearSystemId::IdentifyDrivetrainSystem().\n:param trackWidth: The robot's track width.\n:param driveMotor: A DCMotor representing the left side of the drivetrain.\n:param gearingRatio: The gearingRatio ratio of the left side, as output over\n input. This must be the same ratio as the ratio used to\n identify or create the plant.\n:param wheelRadius: The radius of the wheels on the drivetrain, in meters.\n:param measurementStdDevs: Standard deviations for measurements, in the form\n [x, y, heading, left velocity, right velocity,\n left distance, right distance]\u1d40. Can be omitted\n if no noise is desired. Gyro standard deviations\n of 0.0001 radians, velocity standard deviations\n of 0.05 m/s, and position measurement standard\n deviations of 0.005 meters are a reasonable\n starting point.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_2"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DifferentialDrivetrainSim", "args": [{"name": "driveMotor", "type": "wpimath.system.plant.DCMotor"}, {"name": "gearing", "type": "float"}, {"name": "J", "type": "wpimath.units.kilogram_square_meters"}, {"name": "mass", "type": "wpimath.units.kilograms"}, {"name": "wheelRadius", "type": "wpimath.units.meters"}, {"name": "trackWidth", "type": "wpimath.units.meters"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(7)]"}], "tooltip": "Creates a simulated differential drivetrain.\n\n:param driveMotor: A DCMotor representing the left side of the drivetrain.\n:param gearing: The gearing on the drive between motor and wheel, as\n output over input. This must be the same ratio as the\n ratio used to identify or create the plant.\n:param J: The moment of inertia of the drivetrain about its\n center.\n:param mass: The mass of the drivebase.\n:param wheelRadius: The radius of the wheels on the drivetrain.\n:param trackWidth: The robot's track width, or distance between left and\n right wheels.\n:param measurementStdDevs: Standard deviations for measurements, in the form\n [x, y, heading, left velocity, right velocity,\n left distance, right distance]\u1d40. Can be omitted\n if no noise is desired. Gyro standard deviations\n of 0.0001 radians, velocity standard deviations\n of 0.05 m/s, and position measurement standard\n deviations of 0.005 meters are a reasonable\n starting point.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Clamp the input vector such that no element exceeds the battery voltage.\nIf any does, the relative magnitudes of the input will be maintained.\n\n:param u: The input vector.\n\n:returns: The normalized input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "clampInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.DifferentialDrivetrainSim", "args": [{"name": "motor", "type": "wpimath.system.plant.DCMotor"}, {"name": "gearing", "type": "float"}, {"name": "wheelSize", "type": "wpimath.units.meters"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(7)]"}], "tooltip": "Create a sim for the standard FRC kitbot.\n\n:param motor: The motors installed in the bot.\n:param gearing: The gearing reduction used.\n:param wheelSize: The wheel size.\n:param measurementStdDevs: Standard deviations for measurements, in the form\n [x, y, heading, left velocity, right velocity, left distance, right\n distance]\u1d40. Can be omitted if no noise is desired. Gyro standard\n deviations of 0.0001 radians, velocity standard deviations of 0.05 m/s, and\n position measurement standard deviations of 0.005 meters are a reasonable\n starting point.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "createKitbotSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.DifferentialDrivetrainSim", "args": [{"name": "motor", "type": "wpimath.system.plant.DCMotor"}, {"name": "gearing", "type": "float"}, {"name": "wheelSize", "type": "wpimath.units.meters"}, {"name": "J", "type": "wpimath.units.kilogram_square_meters"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(7)]"}], "tooltip": "Create a sim for the standard FRC kitbot.\n\n:param motor: The motors installed in the bot.\n:param gearing: The gearing reduction used.\n:param wheelSize: The wheel size.\n:param J: The moment of inertia of the drivebase. This can be\n calculated using SysId.\n:param measurementStdDevs: Standard deviations for measurements, in the form\n [x, y, heading, left velocity, right velocity, left distance, right\n distance]\u1d40. Can be omitted if no noise is desired. Gyro standard\n deviations of 0.0001 radians, velocity standard deviations of 0.05 m/s, and\n position measurement standard deviations of 0.005 meters are a reasonable\n starting point.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "createKitbotSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[7, 1]]", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}, {"name": "x", "type": "numpy.ndarray[numpy.float64[7, 1]]"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "The differential drive dynamics function.\n\n:param x: The state.\n:param u: The input.\n\n:returns: The state derivative with respect to time.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "dynamics"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.amperes", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "Returns the currently drawn current.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getCurrentDraw"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "Returns the current gearing reduction of the drivetrain, as output over\ninput.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getGearing"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myRotation2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Rotation2d", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "Returns the direction the robot is pointing.\n\nNote that this angle is counterclockwise-positive, while most gyros are\nclockwise positive.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getHeading"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.amperes", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "Returns the currently drawn current for the left side.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getLeftCurrentDraw"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "Get the left encoder position in meters.\n\n:returns: The encoder position.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getLeftPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.feet", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getLeftPositionFeet"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.inches", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getLeftPositionInches"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "Get the left encoder velocity in meters per second.\n\n:returns: The encoder velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getLeftVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.feet_per_second", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getLeftVelocityFps"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "Returns the current pose.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.amperes", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "Returns the currently drawn current for the right side.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getRightCurrentDraw"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "Get the right encoder position in meters.\n\n:returns: The encoder position.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getRightPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.feet", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getRightPositionFeet"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.inches", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getRightPositionInches"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "Get the right encoder velocity in meters per second.\n\n:returns: The encoder velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getRightVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.feet_per_second", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "getRightVelocityFps"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}, {"name": "newGearing", "type": "float"}], "tooltip": "Sets the gearing reduction on the drivetrain. This is commonly used for\nshifting drivetrains.\n\n:param newGearing: The new gear ratio, as output over input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "setGearing"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}, {"name": "leftVoltage", "type": "wpimath.units.volts"}, {"name": "rightVoltage", "type": "wpimath.units.volts"}], "tooltip": "Sets the applied voltage to the drivetrain. Note that positive voltage must\nmake that side of the drivetrain travel forward (+X).\n\n:param leftVoltage: The left voltage.\n:param rightVoltage: The right voltage.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "setInputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Sets the system pose.\n\n:param pose: The pose.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "setPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}, {"name": "state", "type": "numpy.ndarray[numpy.float64[7, 1]]"}], "tooltip": "Sets the system state.\n\n:param state: The state.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "setState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivetrainSim", "type": "wpilib.simulation.DifferentialDrivetrainSim"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Updates the simulation.\n\n:param dt: The time that's passed since the last Update(units::second_t)\n call.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DifferentialDrivetrainSim", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivetrainSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "DifferentialDrivetrainSim", - contents: contents, - className: "wpilib.simulation.DifferentialDrivetrainSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.DigitalPWMSim.ts b/src/blocks/generated/class_wpilib.simulation.DigitalPWMSim.ts deleted file mode 100644 index b9d607c5..00000000 --- a/src/blocks/generated/class_wpilib.simulation.DigitalPWMSim.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.DigitalPWMSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDigitalPWMSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DigitalPWMSim", "args": [{"name": "digitalOutput", "type": "wpilib.DigitalOutput"}], "tooltip": "Constructs from a DigitalOutput object.\n\n:param digitalOutput: DigitalOutput to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DigitalPWMSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalOutput"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDigitalPWMSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.DigitalPWMSim", "args": [{"name": "channel", "type": "int"}], "tooltip": "Creates an DigitalPWMSim for a digital I/O channel.\n\n:param channel: DIO channel\n\n:returns: Simulated object\n @throws std::out_of_range if no Digital PWM is configured for that channel", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DigitalPWMSim", "FUNC": "createForChannel"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDigitalPWMSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.DigitalPWMSim", "args": [{"name": "index", "type": "int"}], "tooltip": "Creates an DigitalPWMSim for a simulated index.\nThe index is incremented for each simulated DigitalPWM.\n\n:param index: simulator index\n\n:returns: Simulated object", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DigitalPWMSim", "FUNC": "createForIndex"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "digitalPWMSim", "type": "wpilib.simulation.DigitalPWMSim"}], "tooltip": "Read the duty cycle value.\n\n:returns: the duty cycle value of this PWM output", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DigitalPWMSim", "FUNC": "getDutyCycle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "digitalPWMSim", "type": "wpilib.simulation.DigitalPWMSim"}], "tooltip": "Check whether this PWM output has been initialized.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DigitalPWMSim", "FUNC": "getInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "digitalPWMSim", "type": "wpilib.simulation.DigitalPWMSim"}], "tooltip": "Check the pin number.\n\n:returns: the pin number", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DigitalPWMSim", "FUNC": "getPin"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalPWMSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "digitalPWMSim", "type": "wpilib.simulation.DigitalPWMSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the duty cycle value changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DigitalPWMSim", "FUNC": "registerDutyCycleCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalPWMSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "digitalPWMSim", "type": "wpilib.simulation.DigitalPWMSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when this PWM output is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DigitalPWMSim", "FUNC": "registerInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalPWMSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "digitalPWMSim", "type": "wpilib.simulation.DigitalPWMSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the pin changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DigitalPWMSim", "FUNC": "registerPinCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalPWMSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalPWMSim", "type": "wpilib.simulation.DigitalPWMSim"}], "tooltip": "Reset all simulation data.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DigitalPWMSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalPWMSim", "type": "wpilib.simulation.DigitalPWMSim"}, {"name": "dutyCycle", "type": "float"}], "tooltip": "Set the duty cycle value of this PWM output.\n\n:param dutyCycle: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DigitalPWMSim", "FUNC": "setDutyCycle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalPWMSim", "type": "wpilib.simulation.DigitalPWMSim"}, {"name": "initialized", "type": "bool"}], "tooltip": "Define whether this PWM output has been initialized.\n\n:param initialized: whether this object is initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DigitalPWMSim", "FUNC": "setInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "digitalPWMSim", "type": "wpilib.simulation.DigitalPWMSim"}, {"name": "pin", "type": "int"}], "tooltip": "Change the pin number.\n\n:param pin: the new pin number", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DigitalPWMSim", "FUNC": "setPin"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDigitalPWMSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "DigitalPWMSim", - contents: contents, - className: "wpilib.simulation.DigitalPWMSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.DoubleSolenoidSim.ts b/src/blocks/generated/class_wpilib.simulation.DoubleSolenoidSim.ts deleted file mode 100644 index 074bd1cf..00000000 --- a/src/blocks/generated/class_wpilib.simulation.DoubleSolenoidSim.ts +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.DoubleSolenoidSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 6 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDoubleSolenoidSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DoubleSolenoidSim", "args": [{"name": "moduleSim", "type": "wpilib.simulation.PneumaticsBaseSim"}, {"name": "fwd", "type": "int"}, {"name": "rev", "type": "int"}], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DoubleSolenoidSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDoubleSolenoidSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DoubleSolenoidSim", "args": [{"name": "module", "type": "int"}, {"name": "type", "type": "wpilib.PneumaticsModuleType"}, {"name": "fwd", "type": "int"}, {"name": "rev", "type": "int"}], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DoubleSolenoidSim"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDoubleSolenoidSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DoubleSolenoidSim", "args": [{"name": "type", "type": "wpilib.PneumaticsModuleType"}, {"name": "fwd", "type": "int"}, {"name": "rev", "type": "int"}], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DoubleSolenoidSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myValue"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.DoubleSolenoid.Value", "args": [{"name": "doubleSolenoidSim", "type": "wpilib.simulation.DoubleSolenoidSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DoubleSolenoidSim", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDoubleSolenoidSim"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.PneumaticsBaseSim", "args": [{"name": "doubleSolenoidSim", "type": "wpilib.simulation.DoubleSolenoidSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DoubleSolenoidSim", "FUNC": "getModuleSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDoubleSolenoidSim"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "doubleSolenoidSim", "type": "wpilib.simulation.DoubleSolenoidSim"}, {"name": "output", "type": "wpilib.DoubleSolenoid.Value"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DoubleSolenoidSim", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDoubleSolenoidSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myValue"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "DoubleSolenoidSim", - contents: contents, - className: "wpilib.simulation.DoubleSolenoidSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.DriverStationSim.ts b/src/blocks/generated/class_wpilib.simulation.DriverStationSim.ts deleted file mode 100644 index 7948c6cc..00000000 --- a/src/blocks/generated/class_wpilib.simulation.DriverStationSim.ts +++ /dev/null @@ -1,73 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.DriverStationSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 47 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDriverStationSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DriverStationSim", "args": [], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myAllianceStationID"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "hal.AllianceStationID", "args": [], "tooltip": "Get the alliance station ID (color + number).\n\n:returns: the alliance station color and number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "getAllianceStationId"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the DS is in autonomous.\n\n:returns: true if autonomous", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "getAutonomous"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the DS is attached.\n\n:returns: true if attached", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "getDsAttached"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if eStop has been activated.\n\n:returns: true if eStopped", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "getEStop"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the DS is enabled.\n\n:returns: true if enabled", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "getEnabled"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the FMS is connected.\n\n:returns: true if FMS is connected", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "getFmsAttached"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [{"name": "stick", "type": "int"}], "tooltip": "Gets the joystick outputs.\n\n:param stick: The joystick number\n\n:returns: The joystick outputs", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "getJoystickOutputs"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [{"name": "stick", "type": "int"}, {"name": "rumbleNum", "type": "int"}], "tooltip": "Gets the joystick rumble.\n\n:param stick: The joystick number\n:param rumbleNum: Rumble to get (0=left, 1=right)\n\n:returns: The joystick rumble value", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "getJoystickRumble"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "float", "args": [], "tooltip": "Get the current value of the match timer.\n\n:returns: the current match time", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "getMatchTime"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Check if the DS is in test.\n\n:returns: true if test", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "getTest"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Updates DriverStation data so that new values are visible to the user\nprogram.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "notifyNewData"}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the alliance station ID.\n\n:param callback: the callback that will be called whenever the alliance\n station changes\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "registerAllianceStationIdCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on whether the DS is in autonomous mode.\n\n:param callback: the callback that will be called on autonomous mode\n entrance/exit\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "registerAutonomousCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on whether the DS is connected.\n\n:param callback: the callback that will be called whenever the DS\n connection changes\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "registerDsAttachedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the eStop state.\n\n:param callback: the callback that will be called whenever the eStop state\n changes\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "registerEStopCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on whether the DS is enabled.\n\n:param callback: the callback that will be called whenever the enabled\n state is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "registerEnabledCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on whether the FMS is connected.\n\n:param callback: the callback that will be called whenever the FMS\n connection changes\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "registerFmsAttachedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on match time.\n\n:param callback: the callback that will be called whenever match time\n changes\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "registerMatchTimeCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on whether the DS is in test mode.\n\n:param callback: the callback that will be called whenever the test mode\n is entered or left\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "registerTestCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Reset all simulation data for the Driver Station.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "resetData"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "allianceStationId", "type": "hal.AllianceStationID"}], "tooltip": "Change the alliance station.\n\n:param allianceStationId: the new alliance station", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setAllianceStationId"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myAllianceStationID"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "autonomous", "type": "bool"}], "tooltip": "Change whether the DS is in autonomous.\n\n:param autonomous: the new value", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setAutonomous"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "dsAttached", "type": "bool"}], "tooltip": "Change whether the DS is attached.\n\n:param dsAttached: the new value", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setDsAttached"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "eStop", "type": "bool"}], "tooltip": "Set whether eStop is active.\n\n:param eStop: true to activate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setEStop"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "enabled", "type": "bool"}], "tooltip": "Change whether the DS is enabled.\n\n:param enabled: the new value", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setEnabled"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "name", "type": "str"}], "tooltip": "Sets the event name.\n\n:param name: the event name", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setEventName"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "fmsAttached", "type": "bool"}], "tooltip": "Change whether the FMS is connected.\n\n:param fmsAttached: the new value", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setFmsAttached"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "message", "type": "str"}], "tooltip": "Sets the game specific message.\n\n:param message: the game specific message", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setGameSpecificMessage"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "stick", "type": "int"}, {"name": "axis", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Gets the value of the axis on a joystick.\n\n:param stick: The joystick number\n:param axis: The analog axis number\n:param value: The value of the axis on the joystick", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setJoystickAxis"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "stick", "type": "int"}, {"name": "count", "type": "int"}], "tooltip": "Sets the number of axes for a joystick.\n\n:param stick: The joystick number\n:param count: The number of axes on the indicated joystick", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setJoystickAxisCount"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "stick", "type": "int"}, {"name": "axis", "type": "int"}, {"name": "type", "type": "int"}], "tooltip": "Sets the types of Axes for a joystick.\n\n:param stick: The joystick number\n:param axis: The target axis\n:param type: The type of axis", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setJoystickAxisType"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "stick", "type": "int"}, {"name": "button", "type": "int"}, {"name": "state", "type": "bool"}], "tooltip": "Sets the state of one joystick button. %Button indexes begin at 1.\n\n:param stick: The joystick number\n:param button: The button index, beginning at 1\n:param state: The state of the joystick button", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setJoystickButton"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "stick", "type": "int"}, {"name": "count", "type": "int"}], "tooltip": "Sets the number of buttons for a joystick.\n\n:param stick: The joystick number\n:param count: The number of buttons on the indicated joystick", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setJoystickButtonCount"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "stick", "type": "int"}, {"name": "buttons", "type": "int"}], "tooltip": "Sets the state of all the buttons on a joystick.\n\n:param stick: The joystick number\n:param buttons: The bitmap state of the buttons on the joystick", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setJoystickButtons"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "stick", "type": "int"}, {"name": "isXbox", "type": "bool"}], "tooltip": "Sets the value of isXbox for a joystick.\n\n:param stick: The joystick number\n:param isXbox: The value of isXbox", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setJoystickIsXbox"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "stick", "type": "int"}, {"name": "name", "type": "str"}], "tooltip": "Sets the name of a joystick.\n\n:param stick: The joystick number\n:param name: The value of name", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setJoystickName"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "stick", "type": "int"}, {"name": "pov", "type": "int"}, {"name": "value", "type": "int"}], "tooltip": "Gets the state of a POV on a joystick.\n\n:param stick: The joystick number\n:param pov: The POV number\n:param value: the angle of the POV in degrees, or -1 for not pressed", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setJoystickPOV"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "stick", "type": "int"}, {"name": "count", "type": "int"}], "tooltip": "Sets the number of POVs for a joystick.\n\n:param stick: The joystick number\n:param count: The number of POVs on the indicated joystick", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setJoystickPOVCount"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "stick", "type": "int"}, {"name": "type", "type": "int"}], "tooltip": "Sets the value of type for a joystick.\n\n:param stick: The joystick number\n:param type: The value of type", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setJoystickType"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "matchNumber", "type": "int"}], "tooltip": "Sets the match number.\n\n:param matchNumber: the match number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setMatchNumber"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "matchTime", "type": "float"}], "tooltip": "Sets the match timer.\n\n:param matchTime: the new match time", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setMatchTime"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "type", "type": "wpilib.DriverStation.MatchType"}], "tooltip": "Sets the match type.\n\n:param type: the match type", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setMatchType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMatchType"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "replayNumber", "type": "int"}], "tooltip": "Sets the replay number.\n\n:param replayNumber: the replay number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setReplayNumber"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "shouldSend", "type": "bool"}], "tooltip": "Sets suppression of DriverStation::SendConsoleLine messages.\n\n:param shouldSend: If false then messages will be suppressed.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setSendConsoleLine"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "shouldSend", "type": "bool"}], "tooltip": "Sets suppression of DriverStation::ReportError and ReportWarning messages.\n\n:param shouldSend: If false then messages will be suppressed.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setSendError"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "test", "type": "bool"}], "tooltip": "Change whether the DS is in test.\n\n:param test: the new value", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DriverStationSim", "FUNC": "setTest"}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "DriverStationSim", - contents: contents, - className: "wpilib.simulation.DriverStationSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.DutyCycleEncoderSim.ts b/src/blocks/generated/class_wpilib.simulation.DutyCycleEncoderSim.ts deleted file mode 100644 index ed9674a5..00000000 --- a/src/blocks/generated/class_wpilib.simulation.DutyCycleEncoderSim.ts +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.DutyCycleEncoderSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 6 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDutyCycleEncoderSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DutyCycleEncoderSim", "args": [{"name": "encoder", "type": "wpilib.DutyCycleEncoder"}], "tooltip": "Constructs from a DutyCycleEncoder object.\n\n:param encoder: DutyCycleEncoder to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleEncoderSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoder"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDutyCycleEncoderSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DutyCycleEncoderSim", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructs from a digital input channel.\n\n:param channel: digital input channel", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleEncoderSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "dutyCycleEncoderSim", "type": "wpilib.simulation.DutyCycleEncoderSim"}], "tooltip": "Get the position.\n\n:returns: The position.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleEncoderSim", "FUNC": "get"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dutyCycleEncoderSim", "type": "wpilib.simulation.DutyCycleEncoderSim"}], "tooltip": "Get if the encoder is connected.\n\n:returns: true if the encoder is connected.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleEncoderSim", "FUNC": "isConnected"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dutyCycleEncoderSim", "type": "wpilib.simulation.DutyCycleEncoderSim"}, {"name": "value", "type": "float"}], "tooltip": "Set the position.\n\n:param value: The position.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleEncoderSim", "FUNC": "set"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dutyCycleEncoderSim", "type": "wpilib.simulation.DutyCycleEncoderSim"}, {"name": "isConnected", "type": "bool"}], "tooltip": "Set if the encoder is connected.\n\n:param isConnected: Whether or not the sensor is connected.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleEncoderSim", "FUNC": "setConnected"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleEncoderSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "DutyCycleEncoderSim", - contents: contents, - className: "wpilib.simulation.DutyCycleEncoderSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.DutyCycleSim.ts b/src/blocks/generated/class_wpilib.simulation.DutyCycleSim.ts deleted file mode 100644 index e40cc0c6..00000000 --- a/src/blocks/generated/class_wpilib.simulation.DutyCycleSim.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.DutyCycleSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDutyCycleSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.DutyCycleSim", "args": [{"name": "dutyCycle", "type": "wpilib.DutyCycle"}], "tooltip": "Constructs from a DutyCycle object.\n\n:param dutyCycle: DutyCycle to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycle"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDutyCycleSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.DutyCycleSim", "args": [{"name": "channel", "type": "int"}], "tooltip": "Creates a DutyCycleSim for a digital input channel.\n\n:param channel: digital input channel\n\n:returns: Simulated object\n @throws std::out_of_range if no DutyCycle is configured for that channel", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleSim", "FUNC": "createForChannel"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDutyCycleSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.DutyCycleSim", "args": [{"name": "index", "type": "int"}], "tooltip": "Creates a DutyCycleSim for a simulated index.\nThe index is incremented for each simulated DutyCycle.\n\n:param index: simulator index\n\n:returns: Simulated object", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleSim", "FUNC": "createForIndex"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "dutyCycleSim", "type": "wpilib.simulation.DutyCycleSim"}], "tooltip": "Measure the frequency.\n\n:returns: the duty cycle frequency", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleSim", "FUNC": "getFrequency"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "dutyCycleSim", "type": "wpilib.simulation.DutyCycleSim"}], "tooltip": "Check whether this duty cycle input has been initialized.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleSim", "FUNC": "getInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "dutyCycleSim", "type": "wpilib.simulation.DutyCycleSim"}], "tooltip": "Measure the output from this duty cycle port.\n\n:returns: the output value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleSim", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "dutyCycleSim", "type": "wpilib.simulation.DutyCycleSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the frequency changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleSim", "FUNC": "registerFrequencyCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "dutyCycleSim", "type": "wpilib.simulation.DutyCycleSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when this duty cycle input is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleSim", "FUNC": "registerInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "dutyCycleSim", "type": "wpilib.simulation.DutyCycleSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the output changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleSim", "FUNC": "registerOutputCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dutyCycleSim", "type": "wpilib.simulation.DutyCycleSim"}], "tooltip": "Reset all simulation data for the duty cycle output.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dutyCycleSim", "type": "wpilib.simulation.DutyCycleSim"}, {"name": "frequency", "type": "int"}], "tooltip": "Change the duty cycle frequency.\n\n:param frequency: the new frequency", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleSim", "FUNC": "setFrequency"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dutyCycleSim", "type": "wpilib.simulation.DutyCycleSim"}, {"name": "initialized", "type": "bool"}], "tooltip": "Define whether this duty cycle input has been initialized.\n\n:param initialized: whether this object is initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleSim", "FUNC": "setInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "dutyCycleSim", "type": "wpilib.simulation.DutyCycleSim"}, {"name": "output", "type": "float"}], "tooltip": "Change the duty cycle output.\n\n:param output: the new output value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.DutyCycleSim", "FUNC": "setOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDutyCycleSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "DutyCycleSim", - contents: contents, - className: "wpilib.simulation.DutyCycleSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.ElevatorSim.ts b/src/blocks/generated/class_wpilib.simulation.ElevatorSim.ts deleted file mode 100644 index ee0fdf11..00000000 --- a/src/blocks/generated/class_wpilib.simulation.ElevatorSim.ts +++ /dev/null @@ -1,47 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.ElevatorSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 21 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myElevatorSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.ElevatorSim", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_2_1_2"}, {"name": "gearbox", "type": "wpimath.system.plant.DCMotor"}, {"name": "minHeight", "type": "wpimath.units.meters"}, {"name": "maxHeight", "type": "wpimath.units.meters"}, {"name": "simulateGravity", "type": "bool"}, {"name": "startingHeight", "type": "wpimath.units.meters"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(2)]"}], "tooltip": "Constructs a simulated elevator mechanism.\n\n:param plant: The linear system that represents the elevator.\n This system can be created with\n LinearSystemId::ElevatorSystem().\n:param gearbox: The type of and number of motors in your\n elevator gearbox.\n:param minHeight: The minimum allowed height of the elevator.\n:param maxHeight: The maximum allowed height of the elevator.\n:param simulateGravity: Whether gravity should be simulated or not.\n:param startingHeight: The starting height of the elevator.\n:param measurementStdDevs: The standard deviation of the measurements.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ElevatorSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myElevatorSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.ElevatorSim", "args": [{"name": "gearbox", "type": "wpimath.system.plant.DCMotor"}, {"name": "gearing", "type": "float"}, {"name": "carriageMass", "type": "wpimath.units.kilograms"}, {"name": "drumRadius", "type": "wpimath.units.meters"}, {"name": "minHeight", "type": "wpimath.units.meters"}, {"name": "maxHeight", "type": "wpimath.units.meters"}, {"name": "simulateGravity", "type": "bool"}, {"name": "startingHeight", "type": "wpimath.units.meters"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(2)]"}], "tooltip": "Constructs a simulated elevator mechanism.\n\n:param gearbox: The type of and number of motors in your\n elevator gearbox.\n:param gearing: The gearing of the elevator (numbers greater\n than 1 represent reductions).\n:param carriageMass: The mass of the elevator carriage.\n:param drumRadius: The radius of the drum that your cable is\n wrapped around.\n:param minHeight: The minimum allowed height of the elevator.\n:param maxHeight: The maximum allowed height of the elevator.\n:param simulateGravity: Whether gravity should be simulated or not.\n:param startingHeight: The starting height of the elevator.\n:param measurementStdDevs: The standard deviation of the measurements.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ElevatorSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.amperes", "args": [{"name": "elevatorSim", "type": "wpilib.simulation.ElevatorSim"}], "tooltip": "Returns the elevator current draw.\n\n:returns: The elevator current draw.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ElevatorSim", "FUNC": "getCurrentDraw"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}], "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}], "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters", "args": [{"name": "elevatorSim", "type": "wpilib.simulation.ElevatorSim"}], "tooltip": "Returns the position of the elevator.\n\n:returns: The position of the elevator.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ElevatorSim", "FUNC": "getPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.feet", "args": [{"name": "elevatorSim", "type": "wpilib.simulation.ElevatorSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ElevatorSim", "FUNC": "getPositionFeet"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.inches", "args": [{"name": "elevatorSim", "type": "wpilib.simulation.ElevatorSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ElevatorSim", "FUNC": "getPositionInches"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second", "args": [{"name": "elevatorSim", "type": "wpilib.simulation.ElevatorSim"}], "tooltip": "Returns the velocity of the elevator.\n\n:returns: The velocity of the elevator.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ElevatorSim", "FUNC": "getVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.feet_per_second", "args": [{"name": "elevatorSim", "type": "wpilib.simulation.ElevatorSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ElevatorSim", "FUNC": "getVelocityFps"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "elevatorSim", "type": "wpilib.simulation.ElevatorSim"}], "tooltip": "Returns whether the elevator has hit the lower limit.\n\n:returns: Whether the elevator has hit the lower limit.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ElevatorSim", "FUNC": "hasHitLowerLimit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "elevatorSim", "type": "wpilib.simulation.ElevatorSim"}], "tooltip": "Returns whether the elevator has hit the upper limit.\n\n:returns: Whether the elevator has hit the upper limit.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ElevatorSim", "FUNC": "hasHitUpperLimit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "row", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "elevatorSim", "type": "wpilib.simulation.ElevatorSim"}, {"name": "voltage", "type": "wpimath.units.volts"}], "tooltip": "Sets the input voltage for the elevator.\n\n:param voltage: The input voltage.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ElevatorSim", "FUNC": "setInputVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "elevatorSim", "type": "wpilib.simulation.ElevatorSim"}, {"name": "position", "type": "wpimath.units.meters"}, {"name": "velocity", "type": "wpimath.units.meters_per_second"}], "tooltip": "Sets the elevator's state. The new position will be limited between the\nminimum and maximum allowed heights.\n\n:param position: The new position\n:param velocity: The new velocity", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ElevatorSim", "FUNC": "setState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Updates the simulation.\n\n:param dt: The time between updates.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "elevatorSim", "type": "wpilib.simulation.ElevatorSim"}, {"name": "elevatorHeight", "type": "wpimath.units.meters"}], "tooltip": "Returns whether the elevator would hit the lower limit.\n\n:param elevatorHeight: The elevator height.\n\n:returns: Whether the elevator would hit the lower limit.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ElevatorSim", "FUNC": "wouldHitLowerLimit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "elevatorSim", "type": "wpilib.simulation.ElevatorSim"}, {"name": "elevatorHeight", "type": "wpimath.units.meters"}], "tooltip": "Returns whether the elevator would hit the upper limit.\n\n:param elevatorHeight: The elevator height.\n\n:returns: Whether the elevator would hit the upper limit.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.ElevatorSim", "FUNC": "wouldHitUpperLimit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ElevatorSim", - contents: contents, - className: "wpilib.simulation.ElevatorSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.EncoderSim.ts b/src/blocks/generated/class_wpilib.simulation.EncoderSim.ts deleted file mode 100644 index cc99e68b..00000000 --- a/src/blocks/generated/class_wpilib.simulation.EncoderSim.ts +++ /dev/null @@ -1,61 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.EncoderSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 35 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myEncoderSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.EncoderSim", "args": [{"name": "encoder", "type": "wpilib.Encoder"}], "tooltip": "Constructs from an Encoder object.\n\n:param encoder: Encoder to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoder"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myEncoderSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.EncoderSim", "args": [{"name": "channel", "type": "int"}], "tooltip": "Creates an EncoderSim for a digital input channel. Encoders take two\nchannels, so either one may be specified.\n\n:param channel: digital input channel\n\n:returns: Simulated object\n @throws NoSuchElementException if no Encoder is configured for that channel", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "createForChannel"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myEncoderSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.EncoderSim", "args": [{"name": "index", "type": "int"}], "tooltip": "Creates an EncoderSim for a simulated index.\nThe index is incremented for each simulated Encoder.\n\n:param index: simulator index\n\n:returns: Simulated object", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "createForIndex"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}], "tooltip": "Read the count of the encoder.\n\n:returns: the count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "getCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}], "tooltip": "Get the direction of the encoder.\n\n:returns: the direction of the encoder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "getDirection"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}], "tooltip": "Read the distance of the encoder.\n\n:returns: the encoder distance", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "getDistance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}], "tooltip": "Read the distance per pulse of the encoder.\n\n:returns: the encoder distance per pulse", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "getDistancePerPulse"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}], "tooltip": "Read the Initialized value of the encoder.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "getInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}], "tooltip": "Get the max period of the encoder.\n\n:returns: the max period of the encoder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "getMaxPeriod"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}], "tooltip": "Read the period of the encoder.\n\n:returns: the encoder period", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "getPeriod"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}], "tooltip": "Get the rate of the encoder.\n\n:returns: the rate of change", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "getRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}], "tooltip": "Check if the encoder has been reset.\n\n:returns: true if reset", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "getReset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}], "tooltip": "Get the reverse direction of the encoder.\n\n:returns: the reverse direction of the encoder", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "getReverseDirection"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}], "tooltip": "Get the samples-to-average value.\n\n:returns: the samples-to-average value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "getSamplesToAverage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the count property of the encoder.\n\n:param callback: the callback that will be called whenever the count\n property is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "registerCountCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the direction of the encoder.\n\n:param callback: the callback that will be called whenever the direction\n is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "registerDirectionCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the distance per pulse value of this encoder.\n\n:param callback: the callback that will be called whenever the\n distance per pulse is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "registerDistancePerPulseCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the Initialized property of the encoder.\n\n:param callback: the callback that will be called whenever the Initialized\n property is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "registerInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the max period of the encoder is\nchanged.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "registerMaxPeriodCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the period of the encoder.\n\n:param callback: the callback that will be called whenever the period is\n changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "registerPeriodCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be called whenever the encoder is reset.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "registerResetCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the reverse direction.\n\n:param callback: the callback that will be called whenever the reverse\n direction is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "registerReverseDirectionCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback on the samples-to-average value of this encoder.\n\n:param callback: the callback that will be called whenever the\n samples-to-average is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "registerSamplesToAverageCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}], "tooltip": "Resets all simulation data for this encoder.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "count", "type": "int"}], "tooltip": "Change the count of the encoder.\n\n:param count: the new count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "setCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "direction", "type": "bool"}], "tooltip": "Set the direction of the encoder.\n\n:param direction: the new direction", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "setDirection"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "distance", "type": "float"}], "tooltip": "Change the encoder distance.\n\n:param distance: the new distance", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "setDistance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "distancePerPulse", "type": "float"}], "tooltip": "Change the encoder distance per pulse.\n\n:param distancePerPulse: the new distance per pulse", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "setDistancePerPulse"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "initialized", "type": "bool"}], "tooltip": "Change the Initialized value of the encoder.\n\n:param initialized: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "setInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "maxPeriod", "type": "float"}], "tooltip": "Change the max period of the encoder.\n\n:param maxPeriod: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "setMaxPeriod"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "period", "type": "float"}], "tooltip": "Change the encoder period.\n\n:param period: the new period", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "setPeriod"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "rate", "type": "float"}], "tooltip": "Change the rate of the encoder.\n\n:param rate: the new rate", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "setRate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "reset", "type": "bool"}], "tooltip": "Change the reset property of the encoder.\n\n:param reset: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "setReset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "reverseDirection", "type": "bool"}], "tooltip": "Set the reverse direction.\n\n:param reverseDirection: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "setReverseDirection"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "encoderSim", "type": "wpilib.simulation.EncoderSim"}, {"name": "samplesToAverage", "type": "int"}], "tooltip": "Set the samples-to-average value.\n\n:param samplesToAverage: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.EncoderSim", "FUNC": "setSamplesToAverage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myEncoderSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "EncoderSim", - contents: contents, - className: "wpilib.simulation.EncoderSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.FlywheelSim.ts b/src/blocks/generated/class_wpilib.simulation.FlywheelSim.ts deleted file mode 100644 index d421f262..00000000 --- a/src/blocks/generated/class_wpilib.simulation.FlywheelSim.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.FlywheelSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 19 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myFlywheelSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.FlywheelSim", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_1_1_1"}, {"name": "gearbox", "type": "wpimath.system.plant.DCMotor"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(1)]"}], "tooltip": "Creates a simulated flywheel mechanism.\n\n:param plant: The linear system representing the flywheel. This\n system can be created with\n LinearSystemId::FlywheelSystem() or\n LinearSystemId::IdentifyVelocitySystem().\n:param gearbox: The type of and number of motors in the flywheel\n gearbox.\n:param measurementStdDevs: The standard deviation of the measurement noise.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.FlywheelSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_1"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.kilogram_square_meters", "args": [{"name": "flywheelSim", "type": "wpilib.simulation.FlywheelSim"}], "tooltip": "Returns the moment of inertia", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.FlywheelSim", "FUNC": "J"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFlywheelSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDCMotor"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.system.plant.DCMotor", "args": [{"name": "flywheelSim", "type": "wpilib.simulation.FlywheelSim"}], "tooltip": "Returns the gearbox.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.FlywheelSim", "FUNC": "gearbox"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFlywheelSim"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "flywheelSim", "type": "wpilib.simulation.FlywheelSim"}], "tooltip": "Returns the gearing;", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.FlywheelSim", "FUNC": "gearing"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFlywheelSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians_per_second_squared", "args": [{"name": "flywheelSim", "type": "wpilib.simulation.FlywheelSim"}], "tooltip": "Returns the flywheel's acceleration.\n\n:returns: The flywheel's acceleration", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.FlywheelSim", "FUNC": "getAngularAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFlywheelSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians_per_second", "args": [{"name": "flywheelSim", "type": "wpilib.simulation.FlywheelSim"}], "tooltip": "Returns the flywheel's velocity.\n\n:returns: The flywheel's velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.FlywheelSim", "FUNC": "getAngularVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFlywheelSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.amperes", "args": [{"name": "flywheelSim", "type": "wpilib.simulation.FlywheelSim"}], "tooltip": "Returns the flywheel's current draw.\n\n:returns: The flywheel's current draw.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.FlywheelSim", "FUNC": "getCurrentDraw"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFlywheelSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}], "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "flywheelSim", "type": "wpilib.simulation.FlywheelSim"}], "tooltip": "Gets the input voltage for the flywheel.\n\n:returns: The flywheel input voltage.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.FlywheelSim", "FUNC": "getInputVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFlywheelSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}], "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.newton_meters", "args": [{"name": "flywheelSim", "type": "wpilib.simulation.FlywheelSim"}], "tooltip": "Returns the flywheel's torque.\n\n:returns: The flywheel's torque", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.FlywheelSim", "FUNC": "getTorque"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFlywheelSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}, {"name": "row", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "flywheelSim", "type": "wpilib.simulation.FlywheelSim"}, {"name": "voltage", "type": "wpimath.units.volts"}], "tooltip": "Sets the input voltage for the flywheel.\n\n:param voltage: The input voltage.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.FlywheelSim", "FUNC": "setInputVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFlywheelSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}, {"name": "state", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Sets the system state.\n\n:param state: The new state.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "setState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "flywheelSim", "type": "wpilib.simulation.FlywheelSim"}, {"name": "velocity", "type": "wpimath.units.radians_per_second"}], "tooltip": "Sets the flywheel's angular velocity.\n\n:param velocity: The new velocity", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.FlywheelSim", "FUNC": "setVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myFlywheelSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Updates the simulation.\n\n:param dt: The time between updates.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "FlywheelSim", - contents: contents, - className: "wpilib.simulation.FlywheelSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.GenericHIDSim.ts b/src/blocks/generated/class_wpilib.simulation.GenericHIDSim.ts deleted file mode 100644 index e4d26231..00000000 --- a/src/blocks/generated/class_wpilib.simulation.GenericHIDSim.ts +++ /dev/null @@ -1,42 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.GenericHIDSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 16 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myGenericHIDSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.GenericHIDSim", "args": [{"name": "joystick", "type": "wpilib.interfaces.GenericHID"}], "tooltip": "Constructs from a GenericHID object.\n\n:param joystick: joystick to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHID"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myGenericHIDSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.GenericHIDSim", "args": [{"name": "port", "type": "int"}], "tooltip": "Constructs from a joystick port number.\n\n:param port: port number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "outputNumber", "type": "int"}], "tooltip": "Read the output of a button.\n\n:param outputNumber: the button number\n\n:returns: the value of the button (true = pressed)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}], "tooltip": "Get the encoded 16-bit integer that passes button values.\n\n:returns: the button values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.RumbleType"}], "tooltip": "Get the joystick rumble.\n\n:param type: the rumble to read\n\n:returns: the rumble value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getRumble"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRumbleType"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}], "tooltip": "Updates joystick data so that new values are visible to the user program.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "notifyNewData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the axis count of this device.\n\n:param count: the new axis count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setAxisCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "axis", "type": "int"}, {"name": "type", "type": "int"}], "tooltip": "Set the type of an axis.\n\n:param axis: the axis\n:param type: the type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setAxisType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the button count of this device.\n\n:param count: the new button count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setButtonCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "name", "type": "str"}], "tooltip": "Set the name of this device.\n\n:param name: the new device name", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "pov", "type": "int"}, {"name": "value", "type": "int"}], "tooltip": "Set the value of a given POV.\n\n:param pov: the POV to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "value", "type": "int"}], "tooltip": "Set the value of the default POV (port 0).\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the POV count of this device.\n\n:param count: the new POV count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOVCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "axis", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Set the value of a given axis.\n\n:param axis: the axis to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setRawAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "button", "type": "int"}, {"name": "value", "type": "bool"}], "tooltip": "Set the value of a given button.\n\n:param button: the button to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setRawButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.HIDType"}], "tooltip": "Set the type of this device.\n\n:param type: the new device type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myHIDType"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "GenericHIDSim", - contents: contents, - className: "wpilib.simulation.GenericHIDSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.JoystickSim.ts b/src/blocks/generated/class_wpilib.simulation.JoystickSim.ts deleted file mode 100644 index fc0bb11c..00000000 --- a/src/blocks/generated/class_wpilib.simulation.JoystickSim.ts +++ /dev/null @@ -1,49 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.JoystickSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 23 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myJoystickSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.JoystickSim", "args": [{"name": "joystick", "type": "wpilib.Joystick"}], "tooltip": "Constructs from a Joystick object.\n\n:param joystick: joystick to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.JoystickSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystick"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myJoystickSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.JoystickSim", "args": [{"name": "port", "type": "int"}], "tooltip": "Constructs from a joystick port number.\n\n:param port: port number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.JoystickSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "outputNumber", "type": "int"}], "tooltip": "Read the output of a button.\n\n:param outputNumber: the button number\n\n:returns: the value of the button (true = pressed)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}], "tooltip": "Get the encoded 16-bit integer that passes button values.\n\n:returns: the button values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.RumbleType"}], "tooltip": "Get the joystick rumble.\n\n:param type: the rumble to read\n\n:returns: the rumble value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getRumble"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRumbleType"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}], "tooltip": "Updates joystick data so that new values are visible to the user program.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "notifyNewData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the axis count of this device.\n\n:param count: the new axis count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setAxisCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "axis", "type": "int"}, {"name": "type", "type": "int"}], "tooltip": "Set the type of an axis.\n\n:param axis: the axis\n:param type: the type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setAxisType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the button count of this device.\n\n:param count: the new button count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setButtonCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "name", "type": "str"}], "tooltip": "Set the name of this device.\n\n:param name: the new device name", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "pov", "type": "int"}, {"name": "value", "type": "int"}], "tooltip": "Set the value of a given POV.\n\n:param pov: the POV to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "value", "type": "int"}], "tooltip": "Set the value of the default POV (port 0).\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the POV count of this device.\n\n:param count: the new POV count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOVCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "axis", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Set the value of a given axis.\n\n:param axis: the axis to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setRawAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "button", "type": "int"}, {"name": "value", "type": "bool"}], "tooltip": "Set the value of a given button.\n\n:param button: the button to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setRawButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "joystickSim", "type": "wpilib.simulation.JoystickSim"}, {"name": "value", "type": "float"}], "tooltip": "Set the throttle value of the joystick.\n\n:param value: the new throttle value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.JoystickSim", "FUNC": "setThrottle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "joystickSim", "type": "wpilib.simulation.JoystickSim"}, {"name": "state", "type": "bool"}], "tooltip": "Set the top state of the joystick.\n\n:param state: the new state", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.JoystickSim", "FUNC": "setTop"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "joystickSim", "type": "wpilib.simulation.JoystickSim"}, {"name": "state", "type": "bool"}], "tooltip": "Set the trigger value of the joystick.\n\n:param state: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.JoystickSim", "FUNC": "setTrigger"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "joystickSim", "type": "wpilib.simulation.JoystickSim"}, {"name": "value", "type": "float"}], "tooltip": "Set the twist value of the joystick.\n\n:param value: the new twist value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.JoystickSim", "FUNC": "setTwist"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.HIDType"}], "tooltip": "Set the type of this device.\n\n:param type: the new device type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myHIDType"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "joystickSim", "type": "wpilib.simulation.JoystickSim"}, {"name": "value", "type": "float"}], "tooltip": "Set the X value of the joystick.\n\n:param value: the new X value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.JoystickSim", "FUNC": "setX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "joystickSim", "type": "wpilib.simulation.JoystickSim"}, {"name": "value", "type": "float"}], "tooltip": "Set the Y value of the joystick.\n\n:param value: the new Y value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.JoystickSim", "FUNC": "setY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "joystickSim", "type": "wpilib.simulation.JoystickSim"}, {"name": "value", "type": "float"}], "tooltip": "Set the Z value of the joystick.\n\n:param value: the new Z value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.JoystickSim", "FUNC": "setZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myJoystickSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "JoystickSim", - contents: contents, - className: "wpilib.simulation.JoystickSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_1_1_1.ts b/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_1_1_1.ts deleted file mode 100644 index 18e9c4f6..00000000 --- a/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_1_1_1.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.LinearSystemSim_1_1_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 9 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.LinearSystemSim_1_1_1", "args": [{"name": "system", "type": "wpimath.system.LinearSystem_1_1_1"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(1)]"}], "tooltip": "Creates a simulated generic linear system.\n\n:param system: The system to simulate.\n:param measurementStdDevs: The standard deviations of the measurements.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_1"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}], "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}], "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}, {"name": "row", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}, {"name": "state", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Sets the system state.\n\n:param state: The new state.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "setState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_1_1_1", "type": "wpilib.simulation.LinearSystemSim_1_1_1"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Updates the simulation.\n\n:param dt: The time between updates.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_1", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LinearSystemSim_1_1_1", - contents: contents, - className: "wpilib.simulation.LinearSystemSim_1_1_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_1_1_2.ts b/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_1_1_2.ts deleted file mode 100644 index f5abb5dd..00000000 --- a/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_1_1_2.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.LinearSystemSim_1_1_2 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 9 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.LinearSystemSim_1_1_2", "args": [{"name": "system", "type": "wpimath.system.LinearSystem_1_1_2"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(2)]"}], "tooltip": "Creates a simulated generic linear system.\n\n:param system: The system to simulate.\n:param measurementStdDevs: The standard deviations of the measurements.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_2"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearSystemSim_1_1_2", "type": "wpilib.simulation.LinearSystemSim_1_1_2"}], "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_2", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_1_1_2", "type": "wpilib.simulation.LinearSystemSim_1_1_2"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_2", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearSystemSim_1_1_2", "type": "wpilib.simulation.LinearSystemSim_1_1_2"}], "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_2", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_1_1_2", "type": "wpilib.simulation.LinearSystemSim_1_1_2"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_2", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_1_1_2", "type": "wpilib.simulation.LinearSystemSim_1_1_2"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_2", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_1_1_2", "type": "wpilib.simulation.LinearSystemSim_1_1_2"}, {"name": "row", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_2", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_1_1_2", "type": "wpilib.simulation.LinearSystemSim_1_1_2"}, {"name": "state", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Sets the system state.\n\n:param state: The new state.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_2", "FUNC": "setState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_1_1_2", "type": "wpilib.simulation.LinearSystemSim_1_1_2"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Updates the simulation.\n\n:param dt: The time between updates.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_1_1_2", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_1_1_2"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LinearSystemSim_1_1_2", - contents: contents, - className: "wpilib.simulation.LinearSystemSim_1_1_2", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_2_1_1.ts b/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_2_1_1.ts deleted file mode 100644 index 9609b81c..00000000 --- a/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_2_1_1.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.LinearSystemSim_2_1_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 9 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.LinearSystemSim_2_1_1", "args": [{"name": "system", "type": "wpimath.system.LinearSystem_2_1_1"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(1)]"}], "tooltip": "Creates a simulated generic linear system.\n\n:param system: The system to simulate.\n:param measurementStdDevs: The standard deviations of the measurements.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_1"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearSystemSim_2_1_1", "type": "wpilib.simulation.LinearSystemSim_2_1_1"}], "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_1", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_2_1_1", "type": "wpilib.simulation.LinearSystemSim_2_1_1"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_1", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearSystemSim_2_1_1", "type": "wpilib.simulation.LinearSystemSim_2_1_1"}], "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_1", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_2_1_1", "type": "wpilib.simulation.LinearSystemSim_2_1_1"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_1", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_1", "type": "wpilib.simulation.LinearSystemSim_2_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_1", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_1", "type": "wpilib.simulation.LinearSystemSim_2_1_1"}, {"name": "row", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_1", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_1", "type": "wpilib.simulation.LinearSystemSim_2_1_1"}, {"name": "state", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Sets the system state.\n\n:param state: The new state.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_1", "FUNC": "setState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_1", "type": "wpilib.simulation.LinearSystemSim_2_1_1"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Updates the simulation.\n\n:param dt: The time between updates.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_1", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LinearSystemSim_2_1_1", - contents: contents, - className: "wpilib.simulation.LinearSystemSim_2_1_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_2_1_2.ts b/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_2_1_2.ts deleted file mode 100644 index 62da8cdb..00000000 --- a/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_2_1_2.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.LinearSystemSim_2_1_2 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 9 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.LinearSystemSim_2_1_2", "args": [{"name": "system", "type": "wpimath.system.LinearSystem_2_1_2"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(2)]"}], "tooltip": "Creates a simulated generic linear system.\n\n:param system: The system to simulate.\n:param measurementStdDevs: The standard deviations of the measurements.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_2"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}], "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}], "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "row", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "state", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Sets the system state.\n\n:param state: The new state.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "setState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Updates the simulation.\n\n:param dt: The time between updates.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LinearSystemSim_2_1_2", - contents: contents, - className: "wpilib.simulation.LinearSystemSim_2_1_2", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_2_2_1.ts b/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_2_2_1.ts deleted file mode 100644 index 00494370..00000000 --- a/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_2_2_1.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.LinearSystemSim_2_2_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 9 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.LinearSystemSim_2_2_1", "args": [{"name": "system", "type": "wpimath.system.LinearSystem_2_2_1"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(1)]"}], "tooltip": "Creates a simulated generic linear system.\n\n:param system: The system to simulate.\n:param measurementStdDevs: The standard deviations of the measurements.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_1"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearSystemSim_2_2_1", "type": "wpilib.simulation.LinearSystemSim_2_2_1"}], "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_1", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_2_2_1", "type": "wpilib.simulation.LinearSystemSim_2_2_1"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_1", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearSystemSim_2_2_1", "type": "wpilib.simulation.LinearSystemSim_2_2_1"}], "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_1", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_2_2_1", "type": "wpilib.simulation.LinearSystemSim_2_2_1"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_1", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_2_1", "type": "wpilib.simulation.LinearSystemSim_2_2_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_1", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_2_1", "type": "wpilib.simulation.LinearSystemSim_2_2_1"}, {"name": "row", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_1", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_2_1", "type": "wpilib.simulation.LinearSystemSim_2_2_1"}, {"name": "state", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Sets the system state.\n\n:param state: The new state.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_1", "FUNC": "setState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_2_1", "type": "wpilib.simulation.LinearSystemSim_2_2_1"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Updates the simulation.\n\n:param dt: The time between updates.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_1", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LinearSystemSim_2_2_1", - contents: contents, - className: "wpilib.simulation.LinearSystemSim_2_2_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_2_2_2.ts b/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_2_2_2.ts deleted file mode 100644 index cd7ea412..00000000 --- a/src/blocks/generated/class_wpilib.simulation.LinearSystemSim_2_2_2.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.LinearSystemSim_2_2_2 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 9 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.LinearSystemSim_2_2_2", "args": [{"name": "system", "type": "wpimath.system.LinearSystem_2_2_2"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(2)]"}], "tooltip": "Creates a simulated generic linear system.\n\n:param system: The system to simulate.\n:param measurementStdDevs: The standard deviations of the measurements.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_2"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearSystemSim_2_2_2", "type": "wpilib.simulation.LinearSystemSim_2_2_2"}], "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_2", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_2_2_2", "type": "wpilib.simulation.LinearSystemSim_2_2_2"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_2", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearSystemSim_2_2_2", "type": "wpilib.simulation.LinearSystemSim_2_2_2"}], "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_2", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_2_2_2", "type": "wpilib.simulation.LinearSystemSim_2_2_2"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_2", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_2_2", "type": "wpilib.simulation.LinearSystemSim_2_2_2"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_2", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_2_2", "type": "wpilib.simulation.LinearSystemSim_2_2_2"}, {"name": "row", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_2", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_2_2", "type": "wpilib.simulation.LinearSystemSim_2_2_2"}, {"name": "state", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Sets the system state.\n\n:param state: The new state.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_2", "FUNC": "setState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_2_2", "type": "wpilib.simulation.LinearSystemSim_2_2_2"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Updates the simulation.\n\n:param dt: The time between updates.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_2_2", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_2_2"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LinearSystemSim_2_2_2", - contents: contents, - className: "wpilib.simulation.LinearSystemSim_2_2_2", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.PS4ControllerSim.ts b/src/blocks/generated/class_wpilib.simulation.PS4ControllerSim.ts deleted file mode 100644 index 7d850157..00000000 --- a/src/blocks/generated/class_wpilib.simulation.PS4ControllerSim.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.PS4ControllerSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 36 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPS4ControllerSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.PS4ControllerSim", "args": [{"name": "joystick", "type": "wpilib.PS4Controller"}], "tooltip": "Constructs from a PS4Controller object.\n\n:param joystick: controller to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4Controller"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPS4ControllerSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.PS4ControllerSim", "args": [{"name": "port", "type": "int"}], "tooltip": "Constructs from a joystick port number.\n\n:param port: port number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "outputNumber", "type": "int"}], "tooltip": "Read the output of a button.\n\n:param outputNumber: the button number\n\n:returns: the value of the button (true = pressed)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}], "tooltip": "Get the encoded 16-bit integer that passes button values.\n\n:returns: the button values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.RumbleType"}], "tooltip": "Get the joystick rumble.\n\n:param type: the rumble to read\n\n:returns: the rumble value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getRumble"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRumbleType"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}], "tooltip": "Updates joystick data so that new values are visible to the user program.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "notifyNewData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the axis count of this device.\n\n:param count: the new axis count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setAxisCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "axis", "type": "int"}, {"name": "type", "type": "int"}], "tooltip": "Set the type of an axis.\n\n:param axis: the axis\n:param type: the type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setAxisType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the button count of this device.\n\n:param count: the new button count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setButtonCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the circle button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setCircleButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the cross button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setCrossButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the left trigger 1 button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setL1Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the value of the left trigger 2 axis on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setL2Axis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the left trigger 2 button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setL2Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the L3 (left stick) button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setL3Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the left X value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setLeftX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the left Y value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setLeftY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "name", "type": "str"}], "tooltip": "Set the name of this device.\n\n:param name: the new device name", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the options button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setOptionsButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "pov", "type": "int"}, {"name": "value", "type": "int"}], "tooltip": "Set the value of a given POV.\n\n:param pov: the POV to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "value", "type": "int"}], "tooltip": "Set the value of the default POV (port 0).\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the POV count of this device.\n\n:param count: the new POV count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOVCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the PlayStation button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setPSButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the right trigger 1 button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setR1Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the value of the right trigger 2 axis on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setR2Axis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the right trigger 2 button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setR2Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the R3 (right stick) button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setR3Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "axis", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Set the value of a given axis.\n\n:param axis: the axis to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setRawAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "button", "type": "int"}, {"name": "value", "type": "bool"}], "tooltip": "Set the value of a given button.\n\n:param button: the button to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setRawButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the right X value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setRightX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the right Y value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setRightY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the share button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setShareButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the square button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setSquareButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the touchpad button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setTouchpadButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS4ControllerSim", "type": "wpilib.simulation.PS4ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the triangle button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS4ControllerSim", "FUNC": "setTriangleButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS4ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.HIDType"}], "tooltip": "Set the type of this device.\n\n:param type: the new device type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myHIDType"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "PS4ControllerSim", - contents: contents, - className: "wpilib.simulation.PS4ControllerSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.PS5ControllerSim.ts b/src/blocks/generated/class_wpilib.simulation.PS5ControllerSim.ts deleted file mode 100644 index 39c537d5..00000000 --- a/src/blocks/generated/class_wpilib.simulation.PS5ControllerSim.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.PS5ControllerSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 36 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPS5ControllerSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.PS5ControllerSim", "args": [{"name": "joystick", "type": "wpilib.PS5Controller"}], "tooltip": "Constructs from a PS5Controller object.\n\n:param joystick: controller to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5Controller"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPS5ControllerSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.PS5ControllerSim", "args": [{"name": "port", "type": "int"}], "tooltip": "Constructs from a joystick port number.\n\n:param port: port number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "outputNumber", "type": "int"}], "tooltip": "Read the output of a button.\n\n:param outputNumber: the button number\n\n:returns: the value of the button (true = pressed)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}], "tooltip": "Get the encoded 16-bit integer that passes button values.\n\n:returns: the button values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.RumbleType"}], "tooltip": "Get the joystick rumble.\n\n:param type: the rumble to read\n\n:returns: the rumble value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getRumble"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRumbleType"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}], "tooltip": "Updates joystick data so that new values are visible to the user program.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "notifyNewData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the axis count of this device.\n\n:param count: the new axis count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setAxisCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "axis", "type": "int"}, {"name": "type", "type": "int"}], "tooltip": "Set the type of an axis.\n\n:param axis: the axis\n:param type: the type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setAxisType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the button count of this device.\n\n:param count: the new button count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setButtonCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the circle button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setCircleButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the create button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setCreateButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the cross button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setCrossButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the left trigger 1 button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setL1Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the value of the left trigger 2 axis on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setL2Axis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the left trigger 2 button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setL2Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the L3 (left stick) button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setL3Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the left X value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setLeftX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the left Y value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setLeftY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "name", "type": "str"}], "tooltip": "Set the name of this device.\n\n:param name: the new device name", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the options button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setOptionsButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "pov", "type": "int"}, {"name": "value", "type": "int"}], "tooltip": "Set the value of a given POV.\n\n:param pov: the POV to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "value", "type": "int"}], "tooltip": "Set the value of the default POV (port 0).\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the POV count of this device.\n\n:param count: the new POV count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOVCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the PlayStation button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setPSButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the right trigger 1 button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setR1Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the value of the right trigger 2 axis on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setR2Axis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the right trigger 2 button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setR2Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the R3 (right stick) button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setR3Button"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "axis", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Set the value of a given axis.\n\n:param axis: the axis to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setRawAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "button", "type": "int"}, {"name": "value", "type": "bool"}], "tooltip": "Set the value of a given button.\n\n:param button: the button to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setRawButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the right X value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setRightX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the right Y value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setRightY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the square button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setSquareButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the touchpad button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setTouchpadButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pS5ControllerSim", "type": "wpilib.simulation.PS5ControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the triangle button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PS5ControllerSim", "FUNC": "setTriangleButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPS5ControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.HIDType"}], "tooltip": "Set the type of this device.\n\n:param type: the new device type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myHIDType"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "PS5ControllerSim", - contents: contents, - className: "wpilib.simulation.PS5ControllerSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.PWMSim.ts b/src/blocks/generated/class_wpilib.simulation.PWMSim.ts deleted file mode 100644 index 163e5080..00000000 --- a/src/blocks/generated/class_wpilib.simulation.PWMSim.ts +++ /dev/null @@ -1,48 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.PWMSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 22 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPWMSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.PWMSim", "args": [{"name": "pwm", "type": "wpilib.PWM"}], "tooltip": "Constructs from a PWM object.\n\n:param pwm: PWM to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWM"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPWMSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.PWMSim", "args": [{"name": "motorctrl", "type": "wpilib.PWMMotorController"}], "tooltip": "Constructs from a PWMMotorController object.\n\n:param motorctrl: PWMMotorController to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMMotorController"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPWMSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.PWMSim", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructs from a PWM channel number.\n\n:param channel: Channel number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}], "tooltip": "Check whether the PWM has been initialized.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "getInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}], "tooltip": "Get the PWM period scale.\n\n:returns: the PWM period scale", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "getPeriodScale"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}], "tooltip": "Get the PWM position.\n\n:returns: the PWM position (0.0 to 1.0)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "getPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}], "tooltip": "Get the PWM pulse microsecond value.\n\n:returns: the PWM pulse microsecond value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "getPulseMicrosecond"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}], "tooltip": "Get the PWM speed.\n\n:returns: the PWM speed (-1.0 to 1.0)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "getSpeed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}], "tooltip": "Check whether the PWM is zero latched.\n\n:returns: true if zero latched", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "getZeroLatch"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the PWM is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "registerInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the PWM period scale changes.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "registerPeriodScaleCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the PWM position changes.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "registerPositionCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the PWM pulse microsecond value changes.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "registerPulseMicrosecondCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the PWM speed changes.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "registerSpeedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the PWM zero latch state changes.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "registerZeroLatchCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}], "tooltip": "Reset all simulation data.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}, {"name": "initialized", "type": "bool"}], "tooltip": "Define whether the PWM has been initialized.\n\n:param initialized: whether this object is initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "setInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}, {"name": "periodScale", "type": "int"}], "tooltip": "Set the PWM period scale.\n\n:param periodScale: the PWM period scale", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "setPeriodScale"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}, {"name": "position", "type": "float"}], "tooltip": "Set the PWM position.\n\n:param position: the PWM position (0.0 to 1.0)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "setPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}, {"name": "microsecondPulseTime", "type": "int"}], "tooltip": "Set the PWM pulse microsecond value.\n\n:param microsecondPulseTime: the PWM pulse microsecond value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "setPulseMicrosecond"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}, {"name": "speed", "type": "float"}], "tooltip": "Set the PWM speed.\n\n:param speed: the PWM speed (-1.0 to 1.0)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "setSpeed"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pWMSim", "type": "wpilib.simulation.PWMSim"}, {"name": "zeroLatch", "type": "bool"}], "tooltip": "Define whether the PWM has been zero latched.\n\n:param zeroLatch: true to indicate zero latched", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PWMSim", "FUNC": "setZeroLatch"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPWMSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "PWMSim", - contents: contents, - className: "wpilib.simulation.PWMSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.PneumaticsBaseSim.ts b/src/blocks/generated/class_wpilib.simulation.PneumaticsBaseSim.ts deleted file mode 100644 index 6112049d..00000000 --- a/src/blocks/generated/class_wpilib.simulation.PneumaticsBaseSim.ts +++ /dev/null @@ -1,47 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.PneumaticsBaseSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 21 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.PneumaticsBaseSim", "args": [{"name": "index", "type": "int"}], "tooltip": "Constructs a PneumaticsBaseSim with the given index.\n\n:param index: The index.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.PneumaticsBaseSim", "args": [{"name": "module", "type": "wpilib.PneumaticsBase"}], "tooltip": "Constructs a PneumaticsBaseSim for the given module.\n\n:param module: The module.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}], "tooltip": "Get the current value of all solenoid outputs.\n\n:returns: the solenoid outputs (1 bit per output)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "getAllSolenoidOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}], "tooltip": "Read the compressor current.\n\n:returns: the current of the compressor connected to this module", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "getCompressorCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}], "tooltip": "Check if the compressor is on.\n\n:returns: true if the compressor is active", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "getCompressorOn"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.PneumaticsBaseSim", "args": [{"name": "module", "type": "int"}, {"name": "type", "type": "wpilib.PneumaticsModuleType"}], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "getForType"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}], "tooltip": "Check whether the PCM/PH has been initialized.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "getInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}], "tooltip": "Check the value of the pressure switch.\n\n:returns: the pressure switch value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "getPressureSwitch"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}, {"name": "channel", "type": "int"}], "tooltip": "Check the solenoid output on a specific channel.\n\n:param channel: the channel to check\n\n:returns: the solenoid output", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "getSolenoidOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the compressor current changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the :class:`.CallbackStore` object associated with this callback.\n Save a reference to this object; it being deconstructed cancels the\n callback.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "registerCompressorCurrentCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the compressor activates.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the :class:`.CallbackStore` object associated with this callback.\n Save a reference to this object; it being deconstructed cancels the\n callback.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "registerCompressorOnCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the PCM/PH is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the :class:`.CallbackStore` object associated with this callback.\n Save a reference to this object; it being deconstructed cancels the\n callback.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "registerInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the pressure switch value changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the initial\n value\n\n:returns: the :class:`.CallbackStore` object associated with this callback.\n Save a reference to this object; it being deconstructed cancels the\n callback.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "registerPressureSwitchCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}, {"name": "channel", "type": "int"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the solenoid output on a channel\nchanges.\n\n:param channel: the channel to monitor\n:param callback: the callback\n:param initialNotify: should the callback be run with the initial value\n\n:returns: the :class:`.CallbackStore` object associated with this callback.\n Save a reference to this object; it being deconstructed cancels the\n callback.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "registerSolenoidOutputCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}], "tooltip": "Reset all simulation data for this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}, {"name": "outputs", "type": "int"}], "tooltip": "Change all of the solenoid outputs.\n\n:param outputs: the new solenoid outputs (1 bit per output)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "setAllSolenoidOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}, {"name": "compressorCurrent", "type": "float"}], "tooltip": "Set the compressor current.\n\n:param compressorCurrent: the new compressor current", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "setCompressorCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}, {"name": "compressorOn", "type": "bool"}], "tooltip": "Set whether the compressor is active.\n\n:param compressorOn: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "setCompressorOn"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}, {"name": "initialized", "type": "bool"}], "tooltip": "Define whether the PCM/PH has been initialized.\n\n:param initialized: true for initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "setInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}, {"name": "pressureSwitch", "type": "bool"}], "tooltip": "Set the value of the pressure switch.\n\n:param pressureSwitch: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "setPressureSwitch"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pneumaticsBaseSim", "type": "wpilib.simulation.PneumaticsBaseSim"}, {"name": "channel", "type": "int"}, {"name": "solenoidOutput", "type": "bool"}], "tooltip": "Change the solenoid output on a specific channel.\n\n:param channel: the channel to check\n:param solenoidOutput: the new solenoid output", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PneumaticsBaseSim", "FUNC": "setSolenoidOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "PneumaticsBaseSim", - contents: contents, - className: "wpilib.simulation.PneumaticsBaseSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.PowerDistributionSim.ts b/src/blocks/generated/class_wpilib.simulation.PowerDistributionSim.ts deleted file mode 100644 index d800614d..00000000 --- a/src/blocks/generated/class_wpilib.simulation.PowerDistributionSim.ts +++ /dev/null @@ -1,43 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.PowerDistributionSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 17 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPowerDistributionSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.PowerDistributionSim", "args": [{"name": "module", "type": "int"}], "tooltip": "Constructs from a PowerDistribution module number (CAN ID).\n\n:param module: module number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim"}, "inputs": {"ARG0": {"shadow": {"type": "math_number", "fields": {"NUM": 0.0}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPowerDistributionSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.PowerDistributionSim", "args": [{"name": "pdp", "type": "wpilib.PowerDistribution"}], "tooltip": "Constructs from a PowerDistribution object.\n\n:param pdp: PowerDistribution to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistribution"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}, {"name": "length", "type": "int"}], "tooltip": "Read the current of all of the PowerDistribution channels.\n\n:param currents: output array; set to the current in each channel. The\n array must be big enough to hold all the PowerDistribution\n channels\n:param length: length of output array", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "getAllCurrents"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}, {"name": "channel", "type": "int"}], "tooltip": "Read the current in one of the PowerDistribution channels.\n\n:param channel: the channel to check\n\n:returns: the current in the given channel", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "getCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}], "tooltip": "Check whether the PowerDistribution has been initialized.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "getInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}], "tooltip": "Check the temperature of the PowerDistribution.\n\n:returns: the PowerDistribution temperature", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "getTemperature"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}], "tooltip": "Check the PowerDistribution voltage.\n\n:returns: the PowerDistribution voltage.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "getVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}, {"name": "channel", "type": "int"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the current of a specific channel\nchanges.\n\n:param channel: the channel\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "registerCurrentCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the PowerDistribution is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "registerInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the PowerDistribution temperature\nchanges.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "registerTemperatureCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the PowerDistribution voltage\nchanges.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "registerVoltageCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}], "tooltip": "Reset all PowerDistribution simulation data.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}, {"name": "currents", "type": "float"}, {"name": "length", "type": "int"}], "tooltip": "Change the current in all of the PowerDistribution channels.\n\n:param currents: array containing the current values for each channel. The\n array must be big enough to hold all the PowerDistribution\n channels\n:param length: length of array", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "setAllCurrents"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}, {"name": "channel", "type": "int"}, {"name": "current", "type": "float"}], "tooltip": "Change the current in the given channel.\n\n:param channel: the channel to edit\n:param current: the new current for the channel", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "setCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}, {"name": "initialized", "type": "bool"}], "tooltip": "Define whether the PowerDistribution has been initialized.\n\n:param initialized: whether this object is initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "setInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}, {"name": "temperature", "type": "float"}], "tooltip": "Define the PowerDistribution temperature.\n\n:param temperature: the new PowerDistribution temperature", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "setTemperature"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "powerDistributionSim", "type": "wpilib.simulation.PowerDistributionSim"}, {"name": "voltage", "type": "float"}], "tooltip": "Set the PowerDistribution voltage.\n\n:param voltage: the new PowerDistribution voltage", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.PowerDistributionSim", "FUNC": "setVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPowerDistributionSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "PowerDistributionSim", - contents: contents, - className: "wpilib.simulation.PowerDistributionSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.REVPHSim.ts b/src/blocks/generated/class_wpilib.simulation.REVPHSim.ts deleted file mode 100644 index f6fba27f..00000000 --- a/src/blocks/generated/class_wpilib.simulation.REVPHSim.ts +++ /dev/null @@ -1,51 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.REVPHSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 25 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myREVPHSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.REVPHSim", "args": [], "tooltip": "Constructs with the default PCM module number (CAN ID).", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myREVPHSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.REVPHSim", "args": [{"name": "module", "type": "int"}], "tooltip": "Constructs from a PCM module number (CAN ID).\n\n:param module: module number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myREVPHSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.REVPHSim", "args": [{"name": "pneumatics", "type": "wpilib.PneumaticsBase"}], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "getAllSolenoidOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}], "tooltip": "Check whether the closed loop compressor control is active.\n\n:returns: compressor config type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "getCompressorConfigType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "getCompressorCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}], "tooltip": "Check if the compressor is on.\n\n:returns: true if the compressor is active", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "getCompressorOn"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.PneumaticsBaseSim", "args": [{"name": "module", "type": "int"}, {"name": "type", "type": "wpilib.PneumaticsModuleType"}], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "getForType"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "getInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "getPressureSwitch"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}, {"name": "channel", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "getSolenoidOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the closed loop state changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "registerCompressorConfigTypeCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "registerCompressorCurrentCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "registerCompressorOnCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "registerInitializedCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "registerPressureSwitchCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}, {"name": "channel", "type": "int"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "registerSolenoidOutputCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}, {"name": "outputs", "type": "int"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "setAllSolenoidOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}, {"name": "compressorConfigType", "type": "int"}], "tooltip": "Turn on/off the closed loop control of the compressor.\n\n:param compressorConfigType: compressor config type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "setCompressorConfigType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}, {"name": "compressorCurrent", "type": "float"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "setCompressorCurrent"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}, {"name": "compressorOn", "type": "bool"}], "tooltip": "Set whether the compressor is active.\n\n:param compressorOn: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "setCompressorOn"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}, {"name": "solenoidInitialized", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "setInitialized"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}, {"name": "pressureSwitch", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "setPressureSwitch"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "rEVPHSim", "type": "wpilib.simulation.REVPHSim"}, {"name": "channel", "type": "int"}, {"name": "solenoidOutput", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.REVPHSim", "FUNC": "setSolenoidOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myREVPHSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "REVPHSim", - contents: contents, - className: "wpilib.simulation.REVPHSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.RelaySim.ts b/src/blocks/generated/class_wpilib.simulation.RelaySim.ts deleted file mode 100644 index ec4a3dd9..00000000 --- a/src/blocks/generated/class_wpilib.simulation.RelaySim.ts +++ /dev/null @@ -1,41 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.RelaySim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 15 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myRelaySim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.RelaySim", "args": [{"name": "relay", "type": "wpilib.Relay"}], "tooltip": "Constructs from a Relay object.\n\n:param relay: Relay to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelay"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myRelaySim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.RelaySim", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructs from a relay channel number.\n\n:param channel: Channel number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "relaySim", "type": "wpilib.simulation.RelaySim"}], "tooltip": "Check whether the forward direction is active.\n\n:returns: true if active", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim", "FUNC": "getForward"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelaySim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "relaySim", "type": "wpilib.simulation.RelaySim"}], "tooltip": "Check whether the forward direction has been initialized.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim", "FUNC": "getInitializedForward"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelaySim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "relaySim", "type": "wpilib.simulation.RelaySim"}], "tooltip": "Check whether the reverse direction has been initialized.\n\n:returns: true if initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim", "FUNC": "getInitializedReverse"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelaySim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "relaySim", "type": "wpilib.simulation.RelaySim"}], "tooltip": "Check whether the reverse direction is active.\n\n:returns: true if active", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim", "FUNC": "getReverse"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelaySim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "relaySim", "type": "wpilib.simulation.RelaySim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the forward direction changes state.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim", "FUNC": "registerForwardCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelaySim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "relaySim", "type": "wpilib.simulation.RelaySim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the forward direction is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim", "FUNC": "registerInitializedForwardCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelaySim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "relaySim", "type": "wpilib.simulation.RelaySim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the reverse direction is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim", "FUNC": "registerInitializedReverseCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelaySim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "relaySim", "type": "wpilib.simulation.RelaySim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the reverse direction changes state.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim", "FUNC": "registerReverseCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelaySim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "relaySim", "type": "wpilib.simulation.RelaySim"}], "tooltip": "Reset all simulation data.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelaySim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "relaySim", "type": "wpilib.simulation.RelaySim"}, {"name": "forward", "type": "bool"}], "tooltip": "Set whether the forward direction is active.\n\n:param forward: true to make active", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim", "FUNC": "setForward"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelaySim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "relaySim", "type": "wpilib.simulation.RelaySim"}, {"name": "initializedForward", "type": "bool"}], "tooltip": "Define whether the forward direction has been initialized.\n\n:param initializedForward: whether this object is initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim", "FUNC": "setInitializedForward"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelaySim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "relaySim", "type": "wpilib.simulation.RelaySim"}, {"name": "initializedReverse", "type": "bool"}], "tooltip": "Define whether the reverse direction has been initialized.\n\n:param initializedReverse: whether this object is initialized", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim", "FUNC": "setInitializedReverse"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelaySim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "relaySim", "type": "wpilib.simulation.RelaySim"}, {"name": "reverse", "type": "bool"}], "tooltip": "Set whether the reverse direction is active.\n\n:param reverse: true to make active", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RelaySim", "FUNC": "setReverse"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRelaySim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "RelaySim", - contents: contents, - className: "wpilib.simulation.RelaySim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.RoboRioSim.ts b/src/blocks/generated/class_wpilib.simulation.RoboRioSim.ts deleted file mode 100644 index 7bd4b3bb..00000000 --- a/src/blocks/generated/class_wpilib.simulation.RoboRioSim.ts +++ /dev/null @@ -1,89 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.RoboRioSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 63 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myRoboRioSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.RoboRioSim", "args": [], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.volts", "args": [], "tooltip": "Measure the brownout voltage.\n\n:returns: the brownout voltage", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getBrownoutVoltage"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.celsius", "args": [], "tooltip": "Get the cpu temp.\n\n:returns: the cpu temp.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getCPUTemp"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "str", "args": [], "tooltip": "Get the comments.\n\n:returns: The comments.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getComments"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Query the state of the FPGA button.\n\n:returns: the FPGA button state", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getFPGAButton"}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myRadioLEDState"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.RadioLEDState", "args": [], "tooltip": "Get the state of the radio led.\n\n:returns: The state of the radio led.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getRadioLEDState"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "str", "args": [], "tooltip": "Get the serial number.\n\n:returns: The serial number.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getSerialNumber"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Get the team number.\n\n:returns: the team number.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getTeamNumber"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Get the 3.3V rail active state.\n\n:returns: true if the 3.3V rail is active", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getUserActive3V3"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Get the 5V rail active state.\n\n:returns: true if the 5V rail is active", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getUserActive5V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "bool", "args": [], "tooltip": "Get the 6V rail active state.\n\n:returns: true if the 6V rail is active", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getUserActive6V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.amperes", "args": [], "tooltip": "Measure the 3.3V rail current.\n\n:returns: the 3.3V rail current", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getUserCurrent3V3"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.amperes", "args": [], "tooltip": "Measure the 5V rail current.\n\n:returns: the 5V rail current", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getUserCurrent5V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.amperes", "args": [], "tooltip": "Measure the 6V rail current.\n\n:returns: the 6V rail current", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getUserCurrent6V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Get the 3.3V rail number of faults.\n\n:returns: number of faults", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getUserFaults3V3"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Get the 5V rail number of faults.\n\n:returns: number of faults", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getUserFaults5V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "int", "args": [], "tooltip": "Get the 6V rail number of faults.\n\n:returns: number of faults", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getUserFaults6V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.volts", "args": [], "tooltip": "Measure the 3.3V rail voltage.\n\n:returns: the 3.3V rail voltage", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getUserVoltage3V3"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.volts", "args": [], "tooltip": "Measure the 5V rail voltage.\n\n:returns: the 5V rail voltage", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getUserVoltage5V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.volts", "args": [], "tooltip": "Measure the 6V rail voltage.\n\n:returns: the 6V rail voltage", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getUserVoltage6V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.amperes", "args": [], "tooltip": "Measure the Vin current.\n\n:returns: the Vin current", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getVInCurrent"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.volts", "args": [], "tooltip": "Measure the Vin voltage.\n\n:returns: the Vin voltage", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "getVInVoltage"}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the brownout voltage changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerBrownoutVoltageCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the cpu temp changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerCPUTempCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the FPGA button state changes.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerFPGAButtonCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the Radio led state changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerRadioLEDStateCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the team number changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerTeamNumberCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the 3.3V rail active state changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerUserActive3V3Callback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the 5V rail active state changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerUserActive5VCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the 6V rail active state changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerUserActive6VCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the 3.3V rail current changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerUserCurrent3V3Callback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the 5V rail current changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerUserCurrent5VCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the 6V rail current changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerUserCurrent6VCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the 3.3V rail number of faults\nchanges.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerUserFaults3V3Callback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the 5V rail number of faults\nchanges.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerUserFaults5VCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the 6V rail number of faults\nchanges.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerUserFaults6VCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the 3.3V rail voltage changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerUserVoltage3V3Callback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the 5V rail voltage changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerUserVoltage5VCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the 6V rail voltage changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerUserVoltage6VCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the Vin current changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerVInCurrentCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the Vin voltage changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "registerVInVoltageCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Reset all simulation data.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "resetData"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "brownoutVoltage", "type": "wpimath.units.volts"}], "tooltip": "Define the brownout voltage.\n\n:param brownoutVoltage: the new voltage", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setBrownoutVoltage"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "cpuTemp", "type": "wpimath.units.celsius"}], "tooltip": "Define the cpu temp.\n\n:param cpuTemp: the new cpu temp.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setCPUTemp"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "comments", "type": "str"}], "tooltip": "Set the comments.\n\n:param comments: The comments.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setComments"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "fPGAButton", "type": "bool"}], "tooltip": "Define the state of the FPGA button.\n\n:param fPGAButton: the new state", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setFPGAButton"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "state", "type": "wpilib.RadioLEDState"}], "tooltip": "Set the state of the radio led.\n\n:param state: The state of the radio led.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setRadioLEDState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRadioLEDState"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "serialNumber", "type": "str"}], "tooltip": "Set the serial number.\n\n:param serialNumber: The serial number.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setSerialNumber"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "teamNumber", "type": "int"}], "tooltip": "Set the team number.\n\n:param teamNumber: the new team number.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setTeamNumber"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "userActive3V3", "type": "bool"}], "tooltip": "Set the 3.3V rail active state.\n\n:param userActive3V3: true to make rail active", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setUserActive3V3"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "userActive5V", "type": "bool"}], "tooltip": "Set the 5V rail active state.\n\n:param userActive5V: true to make rail active", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setUserActive5V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "userActive6V", "type": "bool"}], "tooltip": "Set the 6V rail active state.\n\n:param userActive6V: true to make rail active", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setUserActive6V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "userCurrent3V3", "type": "wpimath.units.amperes"}], "tooltip": "Define the 3.3V rail current.\n\n:param userCurrent3V3: the new current", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setUserCurrent3V3"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "userCurrent5V", "type": "wpimath.units.amperes"}], "tooltip": "Define the 5V rail current.\n\n:param userCurrent5V: the new current", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setUserCurrent5V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "userCurrent6V", "type": "wpimath.units.amperes"}], "tooltip": "Define the 6V rail current.\n\n:param userCurrent6V: the new current", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setUserCurrent6V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "userFaults3V3", "type": "int"}], "tooltip": "Set the 3.3V rail number of faults.\n\n:param userFaults3V3: number of faults", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setUserFaults3V3"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "userFaults5V", "type": "int"}], "tooltip": "Set the 5V rail number of faults.\n\n:param userFaults5V: number of faults", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setUserFaults5V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "userFaults6V", "type": "int"}], "tooltip": "Set the 6V rail number of faults.\n\n:param userFaults6V: number of faults", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setUserFaults6V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "userVoltage3V3", "type": "wpimath.units.volts"}], "tooltip": "Define the 3.3V rail voltage.\n\n:param userVoltage3V3: the new voltage", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setUserVoltage3V3"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "userVoltage5V", "type": "wpimath.units.volts"}], "tooltip": "Define the 5V rail voltage.\n\n:param userVoltage5V: the new voltage", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setUserVoltage5V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "userVoltage6V", "type": "wpimath.units.volts"}], "tooltip": "Define the 6V rail voltage.\n\n:param userVoltage6V: the new voltage", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setUserVoltage6V"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "vInCurrent", "type": "wpimath.units.amperes"}], "tooltip": "Define the Vin current.\n\n:param vInCurrent: the new current", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setVInCurrent"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [{"name": "vInVoltage", "type": "wpimath.units.volts"}], "tooltip": "Define the Vin voltage.\n\n:param vInVoltage: the new voltage", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.RoboRioSim", "FUNC": "setVInVoltage"}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "RoboRioSim", - contents: contents, - className: "wpilib.simulation.RoboRioSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.SPIAccelerometerSim.ts b/src/blocks/generated/class_wpilib.simulation.SPIAccelerometerSim.ts deleted file mode 100644 index 7afa41b2..00000000 --- a/src/blocks/generated/class_wpilib.simulation.SPIAccelerometerSim.ts +++ /dev/null @@ -1,43 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.SPIAccelerometerSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 17 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.SPIAccelerometerSim", "args": [{"name": "index", "type": "int"}], "tooltip": "Construct a new simulation object.\n\n:param index: the HAL index of the accelerometer", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}], "tooltip": "Check whether the accelerometer is active.\n\n:returns: true if active", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "getActive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}], "tooltip": "Check the range of this accelerometer.\n\n:returns: the accelerometer range", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "getRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}], "tooltip": "Measure the X axis value.\n\n:returns: the X axis measurement", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "getX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}], "tooltip": "Measure the Y axis value.\n\n:returns: the Y axis measurement", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "getY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}], "tooltip": "Measure the Z axis value.\n\n:returns: the Z axis measurement", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "getZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when this accelerometer activates.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "registerActiveCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the range changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "registerRangeCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the X axis value changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "registerXCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the Y axis value changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "registerYCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run whenever the Z axis value changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "registerZCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}], "tooltip": "Reset all simulation data of this object.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "resetData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}, {"name": "active", "type": "bool"}], "tooltip": "Define whether this accelerometer is active.\n\n:param active: the new state", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "setActive"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}, {"name": "range", "type": "int"}], "tooltip": "Change the range of this accelerometer.\n\n:param range: the new accelerometer range", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "setRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}, {"name": "x", "type": "float"}], "tooltip": "Change the X axis value of the accelerometer.\n\n:param x: the new reading of the X axis", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "setX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}, {"name": "y", "type": "float"}], "tooltip": "Change the Y axis value of the accelerometer.\n\n:param y: the new reading of the Y axis", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "setY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sPIAccelerometerSim", "type": "wpilib.simulation.SPIAccelerometerSim"}, {"name": "z", "type": "float"}], "tooltip": "Change the Z axis value of the accelerometer.\n\n:param z: the new reading of the Z axis", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SPIAccelerometerSim", "FUNC": "setZ"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySPIAccelerometerSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SPIAccelerometerSim", - contents: contents, - className: "wpilib.simulation.SPIAccelerometerSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.SendableChooserSim.ts b/src/blocks/generated/class_wpilib.simulation.SendableChooserSim.ts deleted file mode 100644 index f5eb475e..00000000 --- a/src/blocks/generated/class_wpilib.simulation.SendableChooserSim.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.SendableChooserSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 3 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySendableChooserSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.SendableChooserSim", "args": [{"name": "path", "type": "str"}], "tooltip": "Constructs a SendableChooserSim.\n\n:param path: The path where the SendableChooser is published.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SendableChooserSim"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySendableChooserSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.SendableChooserSim", "args": [{"name": "inst", "type": "ntcore.NetworkTableInstance"}, {"name": "path", "type": "str"}], "tooltip": "Constructs a SendableChooserSim.\n\n:param inst: The NetworkTables instance.\n:param path: The path where the SendableChooser is published.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SendableChooserSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myNetworkTableInstance"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sendableChooserSim", "type": "wpilib.simulation.SendableChooserSim"}, {"name": "option", "type": "str"}], "tooltip": "Set the selected option.\n\n:param option: The option.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SendableChooserSim", "FUNC": "setSelected"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableChooserSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SendableChooserSim", - contents: contents, - className: "wpilib.simulation.SendableChooserSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.SharpIRSim.ts b/src/blocks/generated/class_wpilib.simulation.SharpIRSim.ts deleted file mode 100644 index 182e30a5..00000000 --- a/src/blocks/generated/class_wpilib.simulation.SharpIRSim.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.SharpIRSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 3 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySharpIRSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.SharpIRSim", "args": [{"name": "sharpIR", "type": "wpilib.SharpIR"}], "tooltip": "Constructor.\n\n:param sharpIR: The real sensor to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SharpIRSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySharpIR"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySharpIRSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.SharpIRSim", "args": [{"name": "channel", "type": "int"}], "tooltip": "Constructor.\n\n:param channel: Analog channel for this sensor", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SharpIRSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sharpIRSim", "type": "wpilib.simulation.SharpIRSim"}, {"name": "rng", "type": "wpimath.units.centimeters"}], "tooltip": "Set the range returned by the distance sensor.\n\n:param rng: range of the target returned by the sensor", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SharpIRSim", "FUNC": "setRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySharpIRSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SharpIRSim", - contents: contents, - className: "wpilib.simulation.SharpIRSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.SimDeviceSim.ts b/src/blocks/generated/class_wpilib.simulation.SimDeviceSim.ts deleted file mode 100644 index 32446566..00000000 --- a/src/blocks/generated/class_wpilib.simulation.SimDeviceSim.ts +++ /dev/null @@ -1,41 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.SimDeviceSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 15 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimDeviceSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.SimDeviceSim", "args": [{"name": "name", "type": "str"}], "tooltip": "Constructs a SimDeviceSim.\n\n:param name: name of the SimDevice", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimDeviceSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.SimDeviceSim", "args": [{"name": "name", "type": "str"}, {"name": "index", "type": "int"}], "tooltip": "Constructs a SimDeviceSim.\n\n:param name: name of the SimDevice\n:param index: device index number to append to name", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimDeviceSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.SimDeviceSim", "args": [{"name": "name", "type": "str"}, {"name": "index", "type": "int"}, {"name": "channel", "type": "int"}], "tooltip": "Constructs a SimDeviceSim.\n\n:param name: name of the SimDevice\n:param index: device index number to append to name\n:param channel: device channel number to append to name", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimDeviceSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.SimDeviceSim", "args": [{"name": "handle", "type": "int"}], "tooltip": "Constructs a SimDeviceSim.\n\n:param handle: the low level handle for the corresponding SimDevice.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myList"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "list[str]", "args": [{"name": "prefix", "type": "str"}], "tooltip": "Returns a list of available device names", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim", "FUNC": "enumerateDevices"}, "inputs": {"ARG0": {"shadow": {"type": "text", "fields": {"TEXT": ""}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myList"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "list[tuple[str, bool]]", "args": [{"name": "simDeviceSim", "type": "wpilib.simulation.SimDeviceSim"}], "tooltip": "Returns a list of (name, readonly) tuples of available values for this device", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim", "FUNC": "enumerateValues"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDeviceSim"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimBoolean"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "hal.SimBoolean", "args": [{"name": "simDeviceSim", "type": "wpilib.simulation.SimDeviceSim"}, {"name": "name", "type": "str"}], "tooltip": "Retrieves an object that allows you to interact with simulated values\nrepresented as a boolean.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim", "FUNC": "getBoolean"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDeviceSim"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimDouble"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "hal.SimDouble", "args": [{"name": "simDeviceSim", "type": "wpilib.simulation.SimDeviceSim"}, {"name": "name", "type": "str"}], "tooltip": "Retrieves an object that allows you to interact with simulated values\nrepresented as a double.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim", "FUNC": "getDouble"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDeviceSim"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimEnum"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "hal.SimEnum", "args": [{"name": "simDeviceSim", "type": "wpilib.simulation.SimDeviceSim"}, {"name": "name", "type": "str"}], "tooltip": "Get the property object with the given name.\n\n:param name: the property name\n\n:returns: the property object", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim", "FUNC": "getEnum"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDeviceSim"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myList"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "list[str]", "args": [{"name": "val", "type": "hal.SimEnum"}], "tooltip": "Get all options for the given enum.\n\n:param val: the enum\n\n:returns: names of the different values for that enum", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim", "FUNC": "getEnumOptions"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimEnum"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimInt"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "hal.SimInt", "args": [{"name": "simDeviceSim", "type": "wpilib.simulation.SimDeviceSim"}, {"name": "name", "type": "str"}], "tooltip": "Retrieves an object that allows you to interact with simulated values\nrepresented as an integer.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim", "FUNC": "getInt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDeviceSim"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimLong"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "hal.SimLong", "args": [{"name": "simDeviceSim", "type": "wpilib.simulation.SimDeviceSim"}, {"name": "name", "type": "str"}], "tooltip": "Retrieves an object that allows you to interact with simulated values\nrepresented as a long.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim", "FUNC": "getLong"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDeviceSim"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "str", "args": [{"name": "simDeviceSim", "type": "wpilib.simulation.SimDeviceSim"}], "tooltip": "Get the name of this object.\n\n:returns: name", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim", "FUNC": "getName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDeviceSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimValue"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "hal.SimValue", "args": [{"name": "simDeviceSim", "type": "wpilib.simulation.SimDeviceSim"}, {"name": "name", "type": "str"}], "tooltip": "Provides a readonly mechanism to retrieve all types of device values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim", "FUNC": "getValue"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimDeviceSim"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "None", "args": [], "tooltip": "Reset all SimDevice data.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SimDeviceSim", "FUNC": "resetData"}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SimDeviceSim", - contents: contents, - className: "wpilib.simulation.SimDeviceSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.SingleJointedArmSim.ts b/src/blocks/generated/class_wpilib.simulation.SingleJointedArmSim.ts deleted file mode 100644 index ceec5706..00000000 --- a/src/blocks/generated/class_wpilib.simulation.SingleJointedArmSim.ts +++ /dev/null @@ -1,47 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.SingleJointedArmSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 21 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySingleJointedArmSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.SingleJointedArmSim", "args": [{"name": "system", "type": "wpimath.system.LinearSystem_2_1_2"}, {"name": "gearbox", "type": "wpimath.system.plant.DCMotor"}, {"name": "gearing", "type": "float"}, {"name": "armLength", "type": "wpimath.units.meters"}, {"name": "minAngle", "type": "wpimath.units.radians"}, {"name": "maxAngle", "type": "wpimath.units.radians"}, {"name": "simulateGravity", "type": "bool"}, {"name": "startingAngle", "type": "wpimath.units.radians"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(2)]"}], "tooltip": "Creates a simulated arm mechanism.\n\n:param system: The system representing this arm. This system can\n be created with\n LinearSystemId::SingleJointedArmSystem().\n:param gearbox: The type and number of motors on the arm gearbox.\n:param gearing: The gear ratio of the arm (numbers greater than 1\n represent reductions).\n:param armLength: The length of the arm.\n:param minAngle: The minimum angle that the arm is capable of.\n:param maxAngle: The maximum angle that the arm is capable of.\n:param simulateGravity: Whether gravity should be simulated or not.\n:param startingAngle: The initial position of the arm.\n:param measurementStdDevs: The standard deviations of the measurements.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SingleJointedArmSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySingleJointedArmSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.SingleJointedArmSim", "args": [{"name": "gearbox", "type": "wpimath.system.plant.DCMotor"}, {"name": "gearing", "type": "float"}, {"name": "moi", "type": "wpimath.units.kilogram_square_meters"}, {"name": "armLength", "type": "wpimath.units.meters"}, {"name": "minAngle", "type": "wpimath.units.radians"}, {"name": "maxAngle", "type": "wpimath.units.radians"}, {"name": "simulateGravity", "type": "bool"}, {"name": "startingAngle", "type": "wpimath.units.radians"}, {"name": "measurementStdDevs", "type": "Annotated[list[float], FixedSize(2)]"}], "tooltip": "Creates a simulated arm mechanism.\n\n:param gearbox: The type and number of motors on the arm gearbox.\n:param gearing: The gear ratio of the arm (numbers greater than 1\n represent reductions).\n:param moi: The moment of inertia of the arm. This can be\n calculated from CAD software.\n:param armLength: The length of the arm.\n:param minAngle: The minimum angle that the arm is capable of.\n:param maxAngle: The maximum angle that the arm is capable of.\n:param simulateGravity: Whether gravity should be simulated or not.\n:param startingAngle: The initial position of the arm.\n:param measurementStdDevs: The standard deviation of the measurement noise.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SingleJointedArmSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDCMotor"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.units.kilogram_square_meters", "args": [{"name": "length", "type": "wpimath.units.meters"}, {"name": "mass", "type": "wpimath.units.kilograms"}], "tooltip": "Calculates a rough estimate of the moment of inertia of an arm given its\nlength and mass.\n\n:param length: The length of the arm.\n:param mass: The mass of the arm.\n\n:returns: The calculated moment of inertia.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SingleJointedArmSim", "FUNC": "estimateMOI"}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians", "args": [{"name": "singleJointedArmSim", "type": "wpilib.simulation.SingleJointedArmSim"}], "tooltip": "Returns the current arm angle.\n\n:returns: The current arm angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SingleJointedArmSim", "FUNC": "getAngle"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySingleJointedArmSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees", "args": [{"name": "singleJointedArmSim", "type": "wpilib.simulation.SingleJointedArmSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SingleJointedArmSim", "FUNC": "getAngleDegrees"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySingleJointedArmSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.amperes", "args": [{"name": "singleJointedArmSim", "type": "wpilib.simulation.SingleJointedArmSim"}], "tooltip": "Returns the arm current draw.\n\n:returns: The arm current draw.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SingleJointedArmSim", "FUNC": "getCurrentDraw"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySingleJointedArmSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}], "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}], "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "row", "type": "int"}], "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians_per_second", "args": [{"name": "singleJointedArmSim", "type": "wpilib.simulation.SingleJointedArmSim"}], "tooltip": "Returns the current arm velocity.\n\n:returns: The current arm velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SingleJointedArmSim", "FUNC": "getVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySingleJointedArmSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.degrees_per_second", "args": [{"name": "singleJointedArmSim", "type": "wpilib.simulation.SingleJointedArmSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SingleJointedArmSim", "FUNC": "getVelocityDps"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySingleJointedArmSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "singleJointedArmSim", "type": "wpilib.simulation.SingleJointedArmSim"}], "tooltip": "Returns whether the arm has hit the lower limit.\n\n:returns: Whether the arm has hit the lower limit.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SingleJointedArmSim", "FUNC": "hasHitLowerLimit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySingleJointedArmSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "singleJointedArmSim", "type": "wpilib.simulation.SingleJointedArmSim"}], "tooltip": "Returns whether the arm has hit the upper limit.\n\n:returns: Whether the arm has hit the upper limit.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SingleJointedArmSim", "FUNC": "hasHitUpperLimit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySingleJointedArmSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "row", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "setInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "singleJointedArmSim", "type": "wpilib.simulation.SingleJointedArmSim"}, {"name": "voltage", "type": "wpimath.units.volts"}], "tooltip": "Sets the input voltage for the arm.\n\n:param voltage: The input voltage.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SingleJointedArmSim", "FUNC": "setInputVoltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySingleJointedArmSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "singleJointedArmSim", "type": "wpilib.simulation.SingleJointedArmSim"}, {"name": "angle", "type": "wpimath.units.radians"}, {"name": "velocity", "type": "wpimath.units.radians_per_second"}], "tooltip": "Sets the arm's state. The new angle will be limited between the minimum and\nmaximum allowed limits.\n\n:param angle: The new angle.\n:param velocity: The new angular velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SingleJointedArmSim", "FUNC": "setState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySingleJointedArmSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearSystemSim_2_1_2", "type": "wpilib.simulation.LinearSystemSim_2_1_2"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Updates the simulation.\n\n:param dt: The time between updates.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.LinearSystemSim_2_1_2", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystemSim_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "singleJointedArmSim", "type": "wpilib.simulation.SingleJointedArmSim"}, {"name": "armAngle", "type": "wpimath.units.radians"}], "tooltip": "Returns whether the arm would hit the lower limit.\n\n:param armAngle: The arm height.\n\n:returns: Whether the arm would hit the lower limit.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SingleJointedArmSim", "FUNC": "wouldHitLowerLimit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySingleJointedArmSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "singleJointedArmSim", "type": "wpilib.simulation.SingleJointedArmSim"}, {"name": "armAngle", "type": "wpimath.units.radians"}], "tooltip": "Returns whether the arm would hit the upper limit.\n\n:param armAngle: The arm height.\n\n:returns: Whether the arm would hit the upper limit.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SingleJointedArmSim", "FUNC": "wouldHitUpperLimit"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySingleJointedArmSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SingleJointedArmSim", - contents: contents, - className: "wpilib.simulation.SingleJointedArmSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.SolenoidSim.ts b/src/blocks/generated/class_wpilib.simulation.SolenoidSim.ts deleted file mode 100644 index 093f55b9..00000000 --- a/src/blocks/generated/class_wpilib.simulation.SolenoidSim.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.SolenoidSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 7 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySolenoidSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.SolenoidSim", "args": [{"name": "moduleSim", "type": "wpilib.simulation.PneumaticsBaseSim"}, {"name": "channel", "type": "int"}], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SolenoidSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySolenoidSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.SolenoidSim", "args": [{"name": "module", "type": "int"}, {"name": "type", "type": "wpilib.PneumaticsModuleType"}, {"name": "channel", "type": "int"}], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SolenoidSim"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySolenoidSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.SolenoidSim", "args": [{"name": "type", "type": "wpilib.PneumaticsModuleType"}, {"name": "channel", "type": "int"}], "tooltip": "", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SolenoidSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPneumaticsModuleType"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPneumaticsBaseSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.PneumaticsBaseSim", "args": [{"name": "solenoidSim", "type": "wpilib.simulation.SolenoidSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SolenoidSim", "FUNC": "getModuleSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySolenoidSim"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "solenoidSim", "type": "wpilib.simulation.SolenoidSim"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SolenoidSim", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySolenoidSim"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myCallbackStore"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.simulation.CallbackStore", "args": [{"name": "solenoidSim", "type": "wpilib.simulation.SolenoidSim"}, {"name": "callback", "type": "Callable[[str, hal._wpiHal.Value], None]"}, {"name": "initialNotify", "type": "bool"}], "tooltip": "Register a callback to be run when the output of this solenoid has changed.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the :class:`.CallbackStore` object associated with this callback.\n Save a reference to this object; it being deconstructed cancels the\n callback.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SolenoidSim", "FUNC": "registerOutputCallback"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySolenoidSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "solenoidSim", "type": "wpilib.simulation.SolenoidSim"}, {"name": "output", "type": "bool"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.SolenoidSim", "FUNC": "setOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySolenoidSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SolenoidSim", - contents: contents, - className: "wpilib.simulation.SolenoidSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.StadiaControllerSim.ts b/src/blocks/generated/class_wpilib.simulation.StadiaControllerSim.ts deleted file mode 100644 index 07dc2f37..00000000 --- a/src/blocks/generated/class_wpilib.simulation.StadiaControllerSim.ts +++ /dev/null @@ -1,61 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.StadiaControllerSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 35 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myStadiaControllerSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.StadiaControllerSim", "args": [{"name": "joystick", "type": "wpilib.StadiaController"}], "tooltip": "Constructs from a StadiaController object.\n\n:param joystick: controller to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaController"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myStadiaControllerSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.StadiaControllerSim", "args": [{"name": "port", "type": "int"}], "tooltip": "Constructs from a joystick port number.\n\n:param port: port number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "outputNumber", "type": "int"}], "tooltip": "Read the output of a button.\n\n:param outputNumber: the button number\n\n:returns: the value of the button (true = pressed)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}], "tooltip": "Get the encoded 16-bit integer that passes button values.\n\n:returns: the button values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.RumbleType"}], "tooltip": "Get the joystick rumble.\n\n:param type: the rumble to read\n\n:returns: the rumble value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getRumble"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRumbleType"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}], "tooltip": "Updates joystick data so that new values are visible to the user program.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "notifyNewData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the A button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setAButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the axis count of this device.\n\n:param count: the new axis count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setAxisCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "axis", "type": "int"}, {"name": "type", "type": "int"}], "tooltip": "Set the type of an axis.\n\n:param axis: the axis\n:param type: the type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setAxisType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the B button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setBButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the button count of this device.\n\n:param count: the new button count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setButtonCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the ellipses button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setEllipsesButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the frame button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setFrameButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the google button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setGoogleButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the hamburger button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setHamburgerButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the left bumper button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setLeftBumperButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the left stick button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setLeftStickButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the left trigger button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setLeftTriggerButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the left X value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setLeftX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the left Y value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setLeftY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "name", "type": "str"}], "tooltip": "Set the name of this device.\n\n:param name: the new device name", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "pov", "type": "int"}, {"name": "value", "type": "int"}], "tooltip": "Set the value of a given POV.\n\n:param pov: the POV to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "value", "type": "int"}], "tooltip": "Set the value of the default POV (port 0).\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the POV count of this device.\n\n:param count: the new POV count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOVCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "axis", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Set the value of a given axis.\n\n:param axis: the axis to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setRawAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "button", "type": "int"}, {"name": "value", "type": "bool"}], "tooltip": "Set the value of a given button.\n\n:param button: the button to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setRawButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the right bumper button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setRightBumperButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the right stick button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setRightStickButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the right trigger button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setRightTriggerButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the right X value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setRightX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the right Y value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setRightY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the stadia button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setStadiaButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.HIDType"}], "tooltip": "Set the type of this device.\n\n:param type: the new device type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myHIDType"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the X button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setXButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "stadiaControllerSim", "type": "wpilib.simulation.StadiaControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the Y button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.StadiaControllerSim", "FUNC": "setYButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myStadiaControllerSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "StadiaControllerSim", - contents: contents, - className: "wpilib.simulation.StadiaControllerSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.UltrasonicSim.ts b/src/blocks/generated/class_wpilib.simulation.UltrasonicSim.ts deleted file mode 100644 index 70fc59a2..00000000 --- a/src/blocks/generated/class_wpilib.simulation.UltrasonicSim.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.UltrasonicSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 4 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myUltrasonicSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.UltrasonicSim", "args": [{"name": "ultrasonic", "type": "wpilib.Ultrasonic"}], "tooltip": "Constructor.\n\n:param ultrasonic: The real ultrasonic to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.UltrasonicSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myUltrasonic"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myUltrasonicSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.UltrasonicSim", "args": [{"name": "ping", "type": "int"}, {"name": "echo", "type": "int"}], "tooltip": "Constructor.\n\n:param ping: unused.\n:param echo: the ultrasonic's echo channel.", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.UltrasonicSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "ultrasonicSim", "type": "wpilib.simulation.UltrasonicSim"}, {"name": "range", "type": "wpimath.units.inches"}], "tooltip": "Sets the range measurement.\n\n:param range: The range.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.UltrasonicSim", "FUNC": "setRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myUltrasonicSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "ultrasonicSim", "type": "wpilib.simulation.UltrasonicSim"}, {"name": "valid", "type": "bool"}], "tooltip": "Sets if the range measurement is valid.\n\n:param valid: True if valid", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.UltrasonicSim", "FUNC": "setRangeValid"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myUltrasonicSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "UltrasonicSim", - contents: contents, - className: "wpilib.simulation.UltrasonicSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.simulation.XboxControllerSim.ts b/src/blocks/generated/class_wpilib.simulation.XboxControllerSim.ts deleted file mode 100644 index e5e45ebd..00000000 --- a/src/blocks/generated/class_wpilib.simulation.XboxControllerSim.ts +++ /dev/null @@ -1,58 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.simulation.XboxControllerSim - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 32 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myXboxControllerSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.XboxControllerSim", "args": [{"name": "joystick", "type": "wpilib.XboxController"}], "tooltip": "Constructs from a XboxController object.\n\n:param joystick: controller to simulate", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxController"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myXboxControllerSim"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.simulation.XboxControllerSim", "args": [{"name": "port", "type": "int"}], "tooltip": "Constructs from a joystick port number.\n\n:param port: port number", "importModule": "wpilib.simulation"}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "outputNumber", "type": "int"}], "tooltip": "Read the output of a button.\n\n:param outputNumber: the button number\n\n:returns: the value of the button (true = pressed)", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getOutput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "int", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}], "tooltip": "Get the encoded 16-bit integer that passes button values.\n\n:returns: the button values", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getOutputs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.RumbleType"}], "tooltip": "Get the joystick rumble.\n\n:param type: the rumble to read\n\n:returns: the rumble value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "getRumble"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRumbleType"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}], "tooltip": "Updates joystick data so that new values are visible to the user program.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "notifyNewData"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the A button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setAButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the axis count of this device.\n\n:param count: the new axis count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setAxisCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "axis", "type": "int"}, {"name": "type", "type": "int"}], "tooltip": "Set the type of an axis.\n\n:param axis: the axis\n:param type: the type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setAxisType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the B button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setBButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the back button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setBackButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the button count of this device.\n\n:param count: the new button count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setButtonCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the left bumper button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setLeftBumperButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the left stick button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setLeftStickButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the value of the left trigger axis on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setLeftTriggerAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the left X value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setLeftX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the left Y value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setLeftY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "name", "type": "str"}], "tooltip": "Set the name of this device.\n\n:param name: the new device name", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setName"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "pov", "type": "int"}, {"name": "value", "type": "int"}], "tooltip": "Set the value of a given POV.\n\n:param pov: the POV to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "value", "type": "int"}], "tooltip": "Set the value of the default POV (port 0).\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOV"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "count", "type": "int"}], "tooltip": "Set the POV count of this device.\n\n:param count: the new POV count", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setPOVCount"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "axis", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Set the value of a given axis.\n\n:param axis: the axis to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setRawAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "button", "type": "int"}, {"name": "value", "type": "bool"}], "tooltip": "Set the value of a given button.\n\n:param button: the button to set\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setRawButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the right bumper button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setRightBumperButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the right stick button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setRightStickButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the value of the right trigger axis on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setRightTriggerAxis"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the right X value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setRightX"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "float"}], "tooltip": "Change the right Y value of the controller's joystick.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setRightY"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the start button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setStartButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "genericHIDSim", "type": "wpilib.simulation.GenericHIDSim"}, {"name": "type", "type": "wpilib.interfaces.GenericHID.HIDType"}], "tooltip": "Set the type of this device.\n\n:param type: the new device type", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.GenericHIDSim", "FUNC": "setType"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myGenericHIDSim"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myHIDType"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the X button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setXButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "xboxControllerSim", "type": "wpilib.simulation.XboxControllerSim"}, {"name": "value", "type": "bool"}], "tooltip": "Change the value of the Y button on the controller.\n\n:param value: the new value", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.simulation.XboxControllerSim", "FUNC": "setYButton"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myXboxControllerSim"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "XboxControllerSim", - contents: contents, - className: "wpilib.simulation.XboxControllerSim", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.sysid.SysIdRoutineLog.MotorLog.ts b/src/blocks/generated/class_wpilib.sysid.SysIdRoutineLog.MotorLog.ts deleted file mode 100644 index d952bcda..00000000 --- a/src/blocks/generated/class_wpilib.sysid.SysIdRoutineLog.MotorLog.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.sysid.SysIdRoutineLog.MotorLog - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 9 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMotorLog"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", "args": [{"name": "motorLog", "type": "wpilib.sysid.SysIdRoutineLog.MotorLog"}, {"name": "acceleration", "type": "wpimath.units.meters_per_second_squared"}], "tooltip": "Log the linear acceleration of the motor.\n\nThis is optional; SysId can perform an accurate fit without it.\n\n:param acceleration: The linear acceleration to record.\n\n:returns: The motor log (for call chaining).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.sysid.SysIdRoutineLog.MotorLog", "FUNC": "acceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorLog"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMotorLog"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", "args": [{"name": "motorLog", "type": "wpilib.sysid.SysIdRoutineLog.MotorLog"}, {"name": "acceleration", "type": "wpimath.units.turns_per_second_squared"}], "tooltip": "Log the angular acceleration of the motor.\n\nThis is optional; SysId can perform an accurate fit without it.\n\n:param acceleration: The angular acceleration to record.\n\n:returns: The motor log (for call chaining).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.sysid.SysIdRoutineLog.MotorLog", "FUNC": "angularAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorLog"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMotorLog"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", "args": [{"name": "motorLog", "type": "wpilib.sysid.SysIdRoutineLog.MotorLog"}, {"name": "position", "type": "wpimath.units.turns"}], "tooltip": "Log the angular position of the motor.\n\n:param position: The angular position to record.\n\n:returns: The motor log (for call chaining).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.sysid.SysIdRoutineLog.MotorLog", "FUNC": "angularPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorLog"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMotorLog"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", "args": [{"name": "motorLog", "type": "wpilib.sysid.SysIdRoutineLog.MotorLog"}, {"name": "velocity", "type": "wpimath.units.turns_per_second"}], "tooltip": "Log the angular velocity of the motor.\n\n:param velocity: The angular velocity to record.\n\n:returns: The motor log (for call chaining).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.sysid.SysIdRoutineLog.MotorLog", "FUNC": "angularVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorLog"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMotorLog"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", "args": [{"name": "motorLog", "type": "wpilib.sysid.SysIdRoutineLog.MotorLog"}, {"name": "current", "type": "wpimath.units.amperes"}], "tooltip": "Log the current applied to the motor.\n\nThis is optional; SysId can perform an accurate fit without it.\n\n:param current: The current to record.\n\n:returns: The motor log (for call chaining).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.sysid.SysIdRoutineLog.MotorLog", "FUNC": "current"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorLog"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMotorLog"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", "args": [{"name": "motorLog", "type": "wpilib.sysid.SysIdRoutineLog.MotorLog"}, {"name": "position", "type": "wpimath.units.meters"}], "tooltip": "Log the linear position of the motor.\n\n:param position: The linear position to record.\n\n:returns: The motor log (for call chaining).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.sysid.SysIdRoutineLog.MotorLog", "FUNC": "position"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorLog"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMotorLog"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", "args": [{"name": "motorLog", "type": "wpilib.sysid.SysIdRoutineLog.MotorLog"}, {"name": "name", "type": "str"}, {"name": "value", "type": "float"}, {"name": "unit", "type": "str"}], "tooltip": "Log a generic data value from the motor.\n\n:param name: The name of the data field being recorded.\n:param value: The numeric value of the data field.\n:param unit: The unit string of the data field.\n\n:returns: The motor log (for call chaining).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.sysid.SysIdRoutineLog.MotorLog", "FUNC": "value"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorLog"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMotorLog"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", "args": [{"name": "motorLog", "type": "wpilib.sysid.SysIdRoutineLog.MotorLog"}, {"name": "velocity", "type": "wpimath.units.meters_per_second"}], "tooltip": "Log the linear velocity of the motor.\n\n:param velocity: The linear velocity to record.\n\n:returns: The motor log (for call chaining).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.sysid.SysIdRoutineLog.MotorLog", "FUNC": "velocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorLog"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMotorLog"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", "args": [{"name": "motorLog", "type": "wpilib.sysid.SysIdRoutineLog.MotorLog"}, {"name": "voltage", "type": "wpimath.units.volts"}], "tooltip": "Log the voltage applied to the motor.\n\n:param voltage: The voltage to record.\n\n:returns: The motor log (for call chaining).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.sysid.SysIdRoutineLog.MotorLog", "FUNC": "voltage"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMotorLog"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "MotorLog", - contents: contents, - className: "wpilib.sysid.SysIdRoutineLog.MotorLog", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpilib.sysid.SysIdRoutineLog.ts b/src/blocks/generated/class_wpilib.sysid.SysIdRoutineLog.ts deleted file mode 100644 index 0641d533..00000000 --- a/src/blocks/generated/class_wpilib.sysid.SysIdRoutineLog.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpilib.sysid.SysIdRoutineLog - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 4 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySysIdRoutineLog"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpilib.sysid.SysIdRoutineLog", "args": [{"name": "logName", "type": "str"}], "tooltip": "Create a new logging utility for a SysId test routine.\n\n:param logName: The name for the test routine in the log. Should be unique\n between complete test routines (quasistatic and dynamic, forward and\n reverse). The current state of this test (e.g. \"quasistatic-forward\")\n will appear in WPILog under the \"sysid-test-state-logName\" entry.", "importModule": "wpilib.sysid"}, "fields": {"MODULE_OR_CLASS": "wpilib.sysid.SysIdRoutineLog"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMotorLog"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", "args": [{"name": "sysIdRoutineLog", "type": "wpilib.sysid.SysIdRoutineLog"}, {"name": "motorName", "type": "str"}], "tooltip": "Log data from a motor during a SysId routine.\n\n:param motorName: The name of the motor.\n\n:returns: Handle with chainable callbacks to log individual data fields.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.sysid.SysIdRoutineLog", "FUNC": "motor"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySysIdRoutineLog"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "sysIdRoutineLog", "type": "wpilib.sysid.SysIdRoutineLog"}, {"name": "state", "type": "wpilib.sysid.State"}], "tooltip": "Records the current state of the SysId test routine. Should be called once\nper iteration during tests with the type of the current test, and once upon\ntest end with state `none`.\n\n:param state: The current state of the SysId test routine.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpilib.sysid.SysIdRoutineLog", "FUNC": "recordState"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySysIdRoutineLog"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myState"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "str", "args": [{"name": "state", "type": "wpilib.sysid.State"}], "tooltip": "", "importModule": "wpilib.sysid"}, "fields": {"MODULE_OR_CLASS": "wpilib.sysid.SysIdRoutineLog", "FUNC": "stateEnumToString"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myState"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SysIdRoutineLog", - contents: contents, - className: "wpilib.sysid.SysIdRoutineLog", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.ArmFeedforward.ts b/src/blocks/generated/class_wpimath.controller.ArmFeedforward.ts deleted file mode 100644 index 798a8c82..00000000 --- a/src/blocks/generated/class_wpimath.controller.ArmFeedforward.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.ArmFeedforward - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myArmFeedforward"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ArmFeedforward", "args": [{"name": "kS", "type": "wpimath.units.volts"}, {"name": "kG", "type": "wpimath.units.volts"}, {"name": "kV", "type": "wpimath.units.volt_seconds_per_radian"}, {"name": "kA", "type": "wpimath.units.volt_seconds_squared_per_radian"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Creates a new ArmFeedforward with the specified gains.\n\n:param kS: The static gain, in volts.\n:param kG: The gravity gain, in volts.\n:param kV: The velocity gain, in volt seconds per radian.\n:param kA: The acceleration gain, in volt seconds\u00b2 per radian.\n:param dt: The period in seconds.\n @throws IllegalArgumentException for kv < zero.\n @throws IllegalArgumentException for ka < zero.\n @throws IllegalArgumentException for period ≤ zero.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ArmFeedforward"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "armFeedforward", "type": "wpimath.controller.ArmFeedforward"}, {"name": "currentAngle", "type": "wpimath.units.radians"}, {"name": "currentVelocity", "type": "wpimath.units.radians_per_second"}], "tooltip": "Calculates the feedforward from the gains and setpoint assuming discrete\ncontrol. Use this method when the velocity does not change.\n\n:param currentAngle: The current angle. This angle should be measured from\n the horizontal (i.e. if the provided angle is 0, the arm should be parallel\n to the floor). If your encoder does not follow this convention, an offset\n should be added.\n:param currentVelocity: The current velocity.\n\n:returns: The computed feedforward in volts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ArmFeedforward", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myArmFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "armFeedforward", "type": "wpimath.controller.ArmFeedforward"}, {"name": "currentAngle", "type": "wpimath.units.radians"}, {"name": "currentVelocity", "type": "wpimath.units.radians_per_second"}, {"name": "nextVelocity", "type": "wpimath.units.radians_per_second"}], "tooltip": "Calculates the feedforward from the gains and setpoints assuming discrete\ncontrol.\n\n:param currentAngle: The current angle. This angle should be measured from\n the horizontal (i.e. if the provided angle is 0, the arm should be parallel\n to the floor). If your encoder does not follow this convention, an offset\n should be added.\n:param currentVelocity: The current velocity.\n:param nextVelocity: The next velocity.\n\n:returns: The computed feedforward in volts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ArmFeedforward", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myArmFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volt_seconds_squared_per_radian", "args": [{"name": "armFeedforward", "type": "wpimath.controller.ArmFeedforward"}], "tooltip": "Returns the acceleration gain.\n\n:returns: The acceleration gain.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ArmFeedforward", "FUNC": "getKa"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myArmFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "armFeedforward", "type": "wpimath.controller.ArmFeedforward"}], "tooltip": "Returns the gravity gain.\n\n:returns: The gravity gain.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ArmFeedforward", "FUNC": "getKg"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myArmFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "armFeedforward", "type": "wpimath.controller.ArmFeedforward"}], "tooltip": "Returns the static gain.\n\n:returns: The static gain.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ArmFeedforward", "FUNC": "getKs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myArmFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volt_seconds_per_radian", "args": [{"name": "armFeedforward", "type": "wpimath.controller.ArmFeedforward"}], "tooltip": "Returns the velocity gain.\n\n:returns: The velocity gain.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ArmFeedforward", "FUNC": "getKv"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myArmFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians_per_second_squared", "args": [{"name": "armFeedforward", "type": "wpimath.controller.ArmFeedforward"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "angle", "type": "wpimath.units.radians"}, {"name": "velocity", "type": "wpimath.units.radians_per_second"}], "tooltip": "Calculates the maximum achievable acceleration given a maximum voltage\nsupply, a position, and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the arm.\n:param angle: The angle of the arm. This angle should be measured\n from the horizontal (i.e. if the provided angle is 0,\n the arm should be parallel to the floor). If your\n encoder does not follow this convention, an offset\n should be added.\n:param velocity: The velocity of the arm.\n\n:returns: The maximum possible acceleration at the given velocity and angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ArmFeedforward", "FUNC": "maxAchievableAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myArmFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians_per_second", "args": [{"name": "armFeedforward", "type": "wpimath.controller.ArmFeedforward"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "angle", "type": "wpimath.units.radians"}, {"name": "acceleration", "type": "wpimath.units.radians_per_second_squared"}], "tooltip": "Calculates the maximum achievable velocity given a maximum voltage supply,\na position, and an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the arm.\n:param angle: The angle of the arm. This angle should be measured\n from the horizontal (i.e. if the provided angle is 0,\n the arm should be parallel to the floor). If your\n encoder does not follow this convention, an offset\n should be added.\n:param acceleration: The acceleration of the arm.\n\n:returns: The maximum possible velocity at the given acceleration and angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ArmFeedforward", "FUNC": "maxAchievableVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myArmFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians_per_second_squared", "args": [{"name": "armFeedforward", "type": "wpimath.controller.ArmFeedforward"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "angle", "type": "wpimath.units.radians"}, {"name": "velocity", "type": "wpimath.units.radians_per_second"}], "tooltip": "Calculates the minimum achievable acceleration given a maximum voltage\nsupply, a position, and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the arm.\n:param angle: The angle of the arm. This angle should be measured\n from the horizontal (i.e. if the provided angle is 0,\n the arm should be parallel to the floor). If your\n encoder does not follow this convention, an offset\n should be added.\n:param velocity: The velocity of the arm.\n\n:returns: The minimum possible acceleration at the given velocity and angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ArmFeedforward", "FUNC": "minAchievableAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myArmFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians_per_second", "args": [{"name": "armFeedforward", "type": "wpimath.controller.ArmFeedforward"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "angle", "type": "wpimath.units.radians"}, {"name": "acceleration", "type": "wpimath.units.radians_per_second_squared"}], "tooltip": "Calculates the minimum achievable velocity given a maximum voltage supply,\na position, and an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the arm.\n:param angle: The angle of the arm. This angle should be measured\n from the horizontal (i.e. if the provided angle is 0,\n the arm should be parallel to the floor). If your\n encoder does not follow this convention, an offset\n should be added.\n:param acceleration: The acceleration of the arm.\n\n:returns: The minimum possible velocity at the given acceleration and angle.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ArmFeedforward", "FUNC": "minAchievableVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myArmFeedforward"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ArmFeedforward", - contents: contents, - className: "wpimath.controller.ArmFeedforward", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.BangBangController.ts b/src/blocks/generated/class_wpimath.controller.BangBangController.ts deleted file mode 100644 index 33e0aa5e..00000000 --- a/src/blocks/generated/class_wpimath.controller.BangBangController.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.BangBangController - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myBangBangController"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.BangBangController", "args": [{"name": "tolerance", "type": "float"}], "tooltip": "Creates a new bang-bang controller.\n\nAlways ensure that your motor controllers are set to \"coast\" before\nattempting to control them with a bang-bang controller.\n\n:param tolerance: Tolerance for atSetpoint.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.BangBangController"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "bangBangController", "type": "wpimath.controller.BangBangController"}], "tooltip": "Returns true if the error is within the tolerance of the setpoint.\n\n:returns: Whether the error is within the acceptable bounds.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.BangBangController", "FUNC": "atSetpoint"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBangBangController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "bangBangController", "type": "wpimath.controller.BangBangController"}, {"name": "measurement", "type": "float"}, {"name": "setpoint", "type": "float"}], "tooltip": "Returns the calculated control output.\n\nAlways ensure that your motor controllers are set to \"coast\" before\nattempting to control them with a bang-bang controller.\n\n:param measurement: The most recent measurement of the process variable.\n:param setpoint: The setpoint for the process variable.\n\n:returns: The calculated motor output (0 or 1).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.BangBangController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBangBangController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "bangBangController", "type": "wpimath.controller.BangBangController"}, {"name": "measurement", "type": "float"}], "tooltip": "Returns the calculated control output.\n\n:param measurement: The most recent measurement of the process variable.\n\n:returns: The calculated motor output (0 or 1).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.BangBangController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBangBangController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "bangBangController", "type": "wpimath.controller.BangBangController"}], "tooltip": "Returns the current error.\n\n:returns: The current error.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.BangBangController", "FUNC": "getError"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBangBangController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "bangBangController", "type": "wpimath.controller.BangBangController"}], "tooltip": "Returns the current measurement of the process variable.\n\n:returns: The current measurement of the process variable.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.BangBangController", "FUNC": "getMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBangBangController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "bangBangController", "type": "wpimath.controller.BangBangController"}], "tooltip": "Returns the current setpoint of the bang-bang controller.\n\n:returns: The current setpoint.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.BangBangController", "FUNC": "getSetpoint"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBangBangController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "bangBangController", "type": "wpimath.controller.BangBangController"}], "tooltip": "Returns the current tolerance of the controller.\n\n:returns: The current tolerance.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.BangBangController", "FUNC": "getTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBangBangController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "bangBangController", "type": "wpimath.controller.BangBangController"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.BangBangController", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBangBangController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "bangBangController", "type": "wpimath.controller.BangBangController"}, {"name": "setpoint", "type": "float"}], "tooltip": "Sets the setpoint for the bang-bang controller.\n\n:param setpoint: The desired setpoint.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.BangBangController", "FUNC": "setSetpoint"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBangBangController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "bangBangController", "type": "wpimath.controller.BangBangController"}, {"name": "tolerance", "type": "float"}], "tooltip": "Sets the error within which AtSetpoint will return true.\n\n:param tolerance: Position error which is tolerable.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.BangBangController", "FUNC": "setTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myBangBangController"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "BangBangController", - contents: contents, - className: "wpimath.controller.BangBangController", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.ControlAffinePlantInversionFeedforward_1_1.ts b/src/blocks/generated/class_wpimath.controller.ControlAffinePlantInversionFeedforward_1_1.ts deleted file mode 100644 index 8683741e..00000000 --- a/src/blocks/generated/class_wpimath.controller.ControlAffinePlantInversionFeedforward_1_1.ts +++ /dev/null @@ -1,36 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.ControlAffinePlantInversionFeedforward_1_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 10 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", "args": [{"name": "f", "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a feedforward with given model dynamics as a function\nof state and input.\n\n:param f: A vector-valued function of x, the state, and\n u, the input, that returns the derivative of\n the state vector. HAS to be control-affine\n (of the form f(x) + Bu).\n:param dt: The timestep between calls of calculate().", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", "args": [{"name": "f", "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a feedforward with given model dynamics as a function of state,\nand the plant's B matrix(continuous input matrix).\n\n:param f: A vector-valued function of x, the state,\n that returns the derivative of the state vector.\n:param B: Continuous input matrix of the plant being controlled.\n:param dt: The timestep between calls of calculate().", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "controlAffinePlantInversionFeedforward_1_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1"}], "tooltip": "Returns the current reference vector r.\n\n:returns: The current reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "controlAffinePlantInversionFeedforward_1_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the current reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "controlAffinePlantInversionFeedforward_1_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Calculate the feedforward with only the desired\nfuture reference. This uses the internally stored \"current\"\nreference.\n\nIf this method is used the initial state of the system is the one set using\nReset(const StateVector&). If the initial state is not\nset it defaults to a zero vector.\n\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "controlAffinePlantInversionFeedforward_1_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1"}, {"name": "r", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Calculate the feedforward with current and future reference vectors.\n\n:param r: The reference state of the current timestep (k).\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "controlAffinePlantInversionFeedforward_1_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1"}, {"name": "initialState", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Resets the feedforward with a specified initial state vector.\n\n:param initialState: The initial state vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "controlAffinePlantInversionFeedforward_1_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1"}], "tooltip": "Resets the feedforward with a zero initial state vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "controlAffinePlantInversionFeedforward_1_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1"}], "tooltip": "Returns the previously calculated feedforward as an input vector.\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", "FUNC": "uff"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "controlAffinePlantInversionFeedforward_1_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the previously calculated feedforward.\n\n:param i: Row of uff.\n\n:returns: The row of the calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", "FUNC": "uff"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_1_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ControlAffinePlantInversionFeedforward_1_1", - contents: contents, - className: "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.ControlAffinePlantInversionFeedforward_2_1.ts b/src/blocks/generated/class_wpimath.controller.ControlAffinePlantInversionFeedforward_2_1.ts deleted file mode 100644 index b7e88ac8..00000000 --- a/src/blocks/generated/class_wpimath.controller.ControlAffinePlantInversionFeedforward_2_1.ts +++ /dev/null @@ -1,36 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.ControlAffinePlantInversionFeedforward_2_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 10 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", "args": [{"name": "f", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[2, 1]]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a feedforward with given model dynamics as a function\nof state and input.\n\n:param f: A vector-valued function of x, the state, and\n u, the input, that returns the derivative of\n the state vector. HAS to be control-affine\n (of the form f(x) + Bu).\n:param dt: The timestep between calls of calculate().", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", "args": [{"name": "f", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a feedforward with given model dynamics as a function of state,\nand the plant's B matrix(continuous input matrix).\n\n:param f: A vector-valued function of x, the state,\n that returns the derivative of the state vector.\n:param B: Continuous input matrix of the plant being controlled.\n:param dt: The timestep between calls of calculate().", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "controlAffinePlantInversionFeedforward_2_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1"}], "tooltip": "Returns the current reference vector r.\n\n:returns: The current reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "controlAffinePlantInversionFeedforward_2_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the current reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "controlAffinePlantInversionFeedforward_2_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Calculate the feedforward with only the desired\nfuture reference. This uses the internally stored \"current\"\nreference.\n\nIf this method is used the initial state of the system is the one set using\nReset(const StateVector&). If the initial state is not\nset it defaults to a zero vector.\n\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "controlAffinePlantInversionFeedforward_2_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1"}, {"name": "r", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Calculate the feedforward with current and future reference vectors.\n\n:param r: The reference state of the current timestep (k).\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "controlAffinePlantInversionFeedforward_2_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1"}, {"name": "initialState", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Resets the feedforward with a specified initial state vector.\n\n:param initialState: The initial state vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "controlAffinePlantInversionFeedforward_2_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1"}], "tooltip": "Resets the feedforward with a zero initial state vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "controlAffinePlantInversionFeedforward_2_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1"}], "tooltip": "Returns the previously calculated feedforward as an input vector.\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", "FUNC": "uff"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "controlAffinePlantInversionFeedforward_2_1", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the previously calculated feedforward.\n\n:param i: Row of uff.\n\n:returns: The row of the calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", "FUNC": "uff"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ControlAffinePlantInversionFeedforward_2_1", - contents: contents, - className: "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.ControlAffinePlantInversionFeedforward_2_2.ts b/src/blocks/generated/class_wpimath.controller.ControlAffinePlantInversionFeedforward_2_2.ts deleted file mode 100644 index 23fd2369..00000000 --- a/src/blocks/generated/class_wpimath.controller.ControlAffinePlantInversionFeedforward_2_2.ts +++ /dev/null @@ -1,36 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.ControlAffinePlantInversionFeedforward_2_2 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 10 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", "args": [{"name": "f", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a feedforward with given model dynamics as a function\nof state and input.\n\n:param f: A vector-valued function of x, the state, and\n u, the input, that returns the derivative of\n the state vector. HAS to be control-affine\n (of the form f(x) + Bu).\n:param dt: The timestep between calls of calculate().", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", "args": [{"name": "f", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a feedforward with given model dynamics as a function of state,\nand the plant's B matrix(continuous input matrix).\n\n:param f: A vector-valued function of x, the state,\n that returns the derivative of the state vector.\n:param B: Continuous input matrix of the plant being controlled.\n:param dt: The timestep between calls of calculate().", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "controlAffinePlantInversionFeedforward_2_2", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2"}], "tooltip": "Returns the current reference vector r.\n\n:returns: The current reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "controlAffinePlantInversionFeedforward_2_2", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the current reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "controlAffinePlantInversionFeedforward_2_2", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Calculate the feedforward with only the desired\nfuture reference. This uses the internally stored \"current\"\nreference.\n\nIf this method is used the initial state of the system is the one set using\nReset(const StateVector&). If the initial state is not\nset it defaults to a zero vector.\n\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "controlAffinePlantInversionFeedforward_2_2", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2"}, {"name": "r", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Calculate the feedforward with current and future reference vectors.\n\n:param r: The reference state of the current timestep (k).\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "controlAffinePlantInversionFeedforward_2_2", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2"}, {"name": "initialState", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Resets the feedforward with a specified initial state vector.\n\n:param initialState: The initial state vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "controlAffinePlantInversionFeedforward_2_2", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2"}], "tooltip": "Resets the feedforward with a zero initial state vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "controlAffinePlantInversionFeedforward_2_2", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2"}], "tooltip": "Returns the previously calculated feedforward as an input vector.\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", "FUNC": "uff"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "controlAffinePlantInversionFeedforward_2_2", "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the previously calculated feedforward.\n\n:param i: Row of uff.\n\n:returns: The row of the calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", "FUNC": "uff"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myControlAffinePlantInversionFeedforward_2_2"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ControlAffinePlantInversionFeedforward_2_2", - contents: contents, - className: "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.DifferentialDriveAccelerationLimiter.ts b/src/blocks/generated/class_wpimath.controller.DifferentialDriveAccelerationLimiter.ts deleted file mode 100644 index ce4260fa..00000000 --- a/src/blocks/generated/class_wpimath.controller.DifferentialDriveAccelerationLimiter.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.DifferentialDriveAccelerationLimiter - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 3 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDriveAccelerationLimiter"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.DifferentialDriveAccelerationLimiter", "args": [{"name": "system", "type": "wpimath.system.LinearSystem_2_2_2"}, {"name": "trackwidth", "type": "wpimath.units.meters"}, {"name": "maxLinearAccel", "type": "wpimath.units.meters_per_second_squared"}, {"name": "maxAngularAccel", "type": "wpimath.units.radians_per_second_squared"}], "tooltip": "Constructs a DifferentialDriveAccelerationLimiter.\n\n:param system: The differential drive dynamics.\n:param trackwidth: The distance between the differential drive's left and\n right wheels.\n:param maxLinearAccel: The maximum linear acceleration.\n:param maxAngularAccel: The maximum angular acceleration.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.DifferentialDriveAccelerationLimiter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_2"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDriveAccelerationLimiter"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.DifferentialDriveAccelerationLimiter", "args": [{"name": "system", "type": "wpimath.system.LinearSystem_2_2_2"}, {"name": "trackwidth", "type": "wpimath.units.meters"}, {"name": "minLinearAccel", "type": "wpimath.units.meters_per_second_squared"}, {"name": "maxLinearAccel", "type": "wpimath.units.meters_per_second_squared"}, {"name": "maxAngularAccel", "type": "wpimath.units.radians_per_second_squared"}], "tooltip": "Constructs a DifferentialDriveAccelerationLimiter.\n\n:param system: The differential drive dynamics.\n:param trackwidth: The distance between the differential drive's left and\n right wheels.\n:param minLinearAccel: The minimum (most negative) linear acceleration.\n:param maxLinearAccel: The maximum (most positive) linear acceleration.\n:param maxAngularAccel: The maximum angular acceleration.\n @throws std::invalid_argument if minimum linear acceleration is greater\n than maximum linear acceleration", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.DifferentialDriveAccelerationLimiter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_2"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDriveWheelVoltages"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.controller.DifferentialDriveWheelVoltages", "args": [{"name": "differentialDriveAccelerationLimiter", "type": "wpimath.controller.DifferentialDriveAccelerationLimiter"}, {"name": "leftVelocity", "type": "wpimath.units.meters_per_second"}, {"name": "rightVelocity", "type": "wpimath.units.meters_per_second"}, {"name": "leftVoltage", "type": "wpimath.units.volts"}, {"name": "rightVoltage", "type": "wpimath.units.volts"}], "tooltip": "Returns the next voltage pair subject to acceleration constraints.\n\n:param leftVelocity: The left wheel velocity.\n:param rightVelocity: The right wheel velocity.\n:param leftVoltage: The unconstrained left motor voltage.\n:param rightVoltage: The unconstrained right motor voltage.\n\n:returns: The constrained wheel voltages.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.DifferentialDriveAccelerationLimiter", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveAccelerationLimiter"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "DifferentialDriveAccelerationLimiter", - contents: contents, - className: "wpimath.controller.DifferentialDriveAccelerationLimiter", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.DifferentialDriveWheelVoltages.ts b/src/blocks/generated/class_wpimath.controller.DifferentialDriveWheelVoltages.ts deleted file mode 100644 index eace084e..00000000 --- a/src/blocks/generated/class_wpimath.controller.DifferentialDriveWheelVoltages.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated. Do not edit! - -import * as getPythonVariable from "../mrc_get_python_variable"; -import * as setPythonVariable from "../mrc_set_python_variable"; -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.DifferentialDriveWheelVoltages - -export function initialize() { - getPythonVariable.initializeInstanceVariableGetter("wpimath.controller.DifferentialDriveWheelVoltages", "wpimath.units.volts", ["left", "right"], ["Left wheel voltage.", "Right wheel voltage."]); - setPythonVariable.initializeInstanceVariableSetter("wpimath.controller.DifferentialDriveWheelVoltages", "wpimath.units.volts", ["left", "right"], ["Left wheel voltage.", "Right wheel voltage."]); -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 5 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpimath.controller.DifferentialDriveWheelVoltages", "varType": "wpimath.units.volts", "importModule": "", "selfLabel": "differentialDriveWheelVoltages", "selfType": "wpimath.controller.DifferentialDriveWheelVoltages"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.DifferentialDriveWheelVoltages", "VAR": "left"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveWheelVoltages"}}}}}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpimath.controller.DifferentialDriveWheelVoltages", "varType": "wpimath.units.volts", "importModule": "", "selfLabel": "differentialDriveWheelVoltages", "selfType": "wpimath.controller.DifferentialDriveWheelVoltages"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.DifferentialDriveWheelVoltages", "VAR": "left"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveWheelVoltages"}}}}}}, - {"kind": "block", "type": "mrc_get_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpimath.controller.DifferentialDriveWheelVoltages", "varType": "wpimath.units.volts", "importModule": "", "selfLabel": "differentialDriveWheelVoltages", "selfType": "wpimath.controller.DifferentialDriveWheelVoltages"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.DifferentialDriveWheelVoltages", "VAR": "right"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveWheelVoltages"}}}}}}, - {"kind": "block", "type": "mrc_set_python_variable", "extraState": {"varKind": "instance", "moduleOrClassName": "wpimath.controller.DifferentialDriveWheelVoltages", "varType": "wpimath.units.volts", "importModule": "", "selfLabel": "differentialDriveWheelVoltages", "selfType": "wpimath.controller.DifferentialDriveWheelVoltages"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.DifferentialDriveWheelVoltages", "VAR": "right"}, "inputs": {"SELF": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveWheelVoltages"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDriveWheelVoltages"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.DifferentialDriveWheelVoltages", "args": [{"name": "left", "type": "wpimath.units.volts"}, {"name": "right", "type": "wpimath.units.volts"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.DifferentialDriveWheelVoltages"}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "DifferentialDriveWheelVoltages", - contents: contents, - className: "wpimath.controller.DifferentialDriveWheelVoltages", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.ElevatorFeedforward.ts b/src/blocks/generated/class_wpimath.controller.ElevatorFeedforward.ts deleted file mode 100644 index 96a99f1d..00000000 --- a/src/blocks/generated/class_wpimath.controller.ElevatorFeedforward.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.ElevatorFeedforward - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myElevatorFeedforward"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ElevatorFeedforward", "args": [{"name": "kS", "type": "wpimath.units.volts"}, {"name": "kG", "type": "wpimath.units.volts"}, {"name": "kV", "type": "wpimath.units.volt_seconds_per_meter"}, {"name": "kA", "type": "wpimath.units.volt_seconds_squared_per_meter"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Creates a new ElevatorFeedforward with the specified gains.\n\n:param kS: The static gain, in volts.\n:param kG: The gravity gain, in volts.\n:param kV: The velocity gain, in volt seconds per distance.\n:param kA: The acceleration gain, in volt seconds\u00b2 per distance.\n:param dt: The period in seconds.\n @throws IllegalArgumentException for kv < zero.\n @throws IllegalArgumentException for ka < zero.\n @throws IllegalArgumentException for period ≤ zero.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ElevatorFeedforward"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "elevatorFeedforward", "type": "wpimath.controller.ElevatorFeedforward"}, {"name": "currentVelocity", "type": "wpimath.units.meters_per_second"}], "tooltip": "Calculates the feedforward from the gains and setpoint assuming discrete\ncontrol. Use this method when the setpoint does not change.\n\n:param currentVelocity: The velocity setpoint.\n\n:returns: The computed feedforward, in volts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ElevatorFeedforward", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "elevatorFeedforward", "type": "wpimath.controller.ElevatorFeedforward"}, {"name": "currentVelocity", "type": "wpimath.units.meters_per_second"}, {"name": "nextVelocity", "type": "wpimath.units.meters_per_second"}], "tooltip": "Calculates the feedforward from the gains and setpoints assuming discrete\ncontrol.\n\nNote this method is inaccurate when the velocity crosses 0.\n\n:param currentVelocity: The current velocity setpoint.\n:param nextVelocity: The next velocity setpoint.\n\n:returns: The computed feedforward, in volts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ElevatorFeedforward", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volt_seconds_squared_per_meter", "args": [{"name": "elevatorFeedforward", "type": "wpimath.controller.ElevatorFeedforward"}], "tooltip": "Returns the acceleration gain.\n\n:returns: The acceleration gain.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ElevatorFeedforward", "FUNC": "getKa"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "elevatorFeedforward", "type": "wpimath.controller.ElevatorFeedforward"}], "tooltip": "Returns the gravity gain.\n\n:returns: The gravity gain.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ElevatorFeedforward", "FUNC": "getKg"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "elevatorFeedforward", "type": "wpimath.controller.ElevatorFeedforward"}], "tooltip": "Returns the static gain.\n\n:returns: The static gain.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ElevatorFeedforward", "FUNC": "getKs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volt_seconds_per_meter", "args": [{"name": "elevatorFeedforward", "type": "wpimath.controller.ElevatorFeedforward"}], "tooltip": "Returns the velocity gain.\n\n:returns: The velocity gain.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ElevatorFeedforward", "FUNC": "getKv"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second_squared", "args": [{"name": "elevatorFeedforward", "type": "wpimath.controller.ElevatorFeedforward"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "velocity", "type": "wpimath.units.meters_per_second"}], "tooltip": "Calculates the maximum achievable acceleration given a maximum voltage\nsupply and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the elevator.\n:param velocity: The velocity of the elevator.\n\n:returns: The maximum possible acceleration at the given velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ElevatorFeedforward", "FUNC": "maxAchievableAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second", "args": [{"name": "elevatorFeedforward", "type": "wpimath.controller.ElevatorFeedforward"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "acceleration", "type": "wpimath.units.meters_per_second_squared"}], "tooltip": "Calculates the maximum achievable velocity given a maximum voltage supply\nand an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the elevator.\n:param acceleration: The acceleration of the elevator.\n\n:returns: The maximum possible velocity at the given acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ElevatorFeedforward", "FUNC": "maxAchievableVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second_squared", "args": [{"name": "elevatorFeedforward", "type": "wpimath.controller.ElevatorFeedforward"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "velocity", "type": "wpimath.units.meters_per_second"}], "tooltip": "Calculates the minimum achievable acceleration given a maximum voltage\nsupply and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the elevator.\n:param velocity: The velocity of the elevator.\n\n:returns: The minimum possible acceleration at the given velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ElevatorFeedforward", "FUNC": "minAchievableAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorFeedforward"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second", "args": [{"name": "elevatorFeedforward", "type": "wpimath.controller.ElevatorFeedforward"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "acceleration", "type": "wpimath.units.meters_per_second_squared"}], "tooltip": "Calculates the minimum achievable velocity given a maximum voltage supply\nand an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the elevator.\n:param acceleration: The acceleration of the elevator.\n\n:returns: The minimum possible velocity at the given acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ElevatorFeedforward", "FUNC": "minAchievableVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myElevatorFeedforward"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ElevatorFeedforward", - contents: contents, - className: "wpimath.controller.ElevatorFeedforward", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.HolonomicDriveController.ts b/src/blocks/generated/class_wpimath.controller.HolonomicDriveController.ts deleted file mode 100644 index af13e1de..00000000 --- a/src/blocks/generated/class_wpimath.controller.HolonomicDriveController.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.HolonomicDriveController - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 9 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myHolonomicDriveController"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.HolonomicDriveController", "args": [{"name": "xController", "type": "wpimath.controller.PIDController"}, {"name": "yController", "type": "wpimath.controller.PIDController"}, {"name": "thetaController", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Constructs a holonomic drive controller.\n\n:param xController: A PID Controller to respond to error in the\n field-relative x direction.\n:param yController: A PID Controller to respond to error in the\n field-relative y direction.\n:param thetaController: A profiled PID controller to respond to error in\n angle.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.HolonomicDriveController"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "holonomicDriveController", "type": "wpimath.controller.HolonomicDriveController"}], "tooltip": "Returns true if the pose error is within tolerance of the reference.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.HolonomicDriveController", "FUNC": "atReference"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myHolonomicDriveController"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myChassisSpeeds"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.kinematics.ChassisSpeeds", "args": [{"name": "holonomicDriveController", "type": "wpimath.controller.HolonomicDriveController"}, {"name": "currentPose", "type": "wpimath.geometry.Pose2d"}, {"name": "trajectoryPose", "type": "wpimath.geometry.Pose2d"}, {"name": "desiredLinearVelocity", "type": "wpimath.units.meters_per_second"}, {"name": "desiredHeading", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Returns the next output of the holonomic drive controller.\n\n:param currentPose: The current pose, as measured by odometry or pose\n estimator.\n:param trajectoryPose: The desired trajectory pose, as sampled for the\n current timestep.\n:param desiredLinearVelocity: The desired linear velocity.\n:param desiredHeading: The desired heading.\n\n:returns: The next output of the holonomic drive controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.HolonomicDriveController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myHolonomicDriveController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myChassisSpeeds"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.kinematics.ChassisSpeeds", "args": [{"name": "holonomicDriveController", "type": "wpimath.controller.HolonomicDriveController"}, {"name": "currentPose", "type": "wpimath.geometry.Pose2d"}, {"name": "desiredState", "type": "wpimath.trajectory.Trajectory.State"}, {"name": "desiredHeading", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Returns the next output of the holonomic drive controller.\n\n:param currentPose: The current pose, as measured by odometry or pose\n estimator.\n:param desiredState: The desired trajectory pose, as sampled for the current\n timestep.\n:param desiredHeading: The desired heading.\n\n:returns: The next output of the holonomic drive controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.HolonomicDriveController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myHolonomicDriveController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myState"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.controller.ProfiledPIDControllerRadians", "args": [{"name": "holonomicDriveController", "type": "wpimath.controller.HolonomicDriveController"}], "tooltip": "Returns the rotation ProfiledPIDController", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.HolonomicDriveController", "FUNC": "getThetaController"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myHolonomicDriveController"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPIDController"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.controller.PIDController", "args": [{"name": "holonomicDriveController", "type": "wpimath.controller.HolonomicDriveController"}], "tooltip": "Returns the X PIDController", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.HolonomicDriveController", "FUNC": "getXController"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myHolonomicDriveController"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPIDController"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.controller.PIDController", "args": [{"name": "holonomicDriveController", "type": "wpimath.controller.HolonomicDriveController"}], "tooltip": "Returns the Y PIDController", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.HolonomicDriveController", "FUNC": "getYController"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myHolonomicDriveController"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "holonomicDriveController", "type": "wpimath.controller.HolonomicDriveController"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enables and disables the controller for troubleshooting purposes. When\nCalculate() is called on a disabled controller, only feedforward values\nare returned.\n\n:param enabled: If the controller is enabled or not.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.HolonomicDriveController", "FUNC": "setEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myHolonomicDriveController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "holonomicDriveController", "type": "wpimath.controller.HolonomicDriveController"}, {"name": "tolerance", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Sets the pose error which is considered tolerable for use with\nAtReference().\n\n:param tolerance: Pose error which is tolerable.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.HolonomicDriveController", "FUNC": "setTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myHolonomicDriveController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "HolonomicDriveController", - contents: contents, - className: "wpimath.controller.HolonomicDriveController", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.ImplicitModelFollower_1_1.ts b/src/blocks/generated/class_wpimath.controller.ImplicitModelFollower_1_1.ts deleted file mode 100644 index 776a421c..00000000 --- a/src/blocks/generated/class_wpimath.controller.ImplicitModelFollower_1_1.ts +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.ImplicitModelFollower_1_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 8 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myImplicitModelFollower_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ImplicitModelFollower_1_1", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "Aref", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "Bref", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Aref: Continuous system matrix whose dynamics should be followed.\n:param Bref: Continuous input matrix whose dynamics should be followed.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_1_1"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myImplicitModelFollower_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ImplicitModelFollower_1_1", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_1_1_1"}, {"name": "plantRef", "type": "wpimath.system.LinearSystem_1_1_1"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_1"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_1"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myImplicitModelFollower_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ImplicitModelFollower_1_1", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_1_1_2"}, {"name": "plantRef", "type": "wpimath.system.LinearSystem_1_1_2"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_2"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myImplicitModelFollower_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ImplicitModelFollower_1_1", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_1_1_3"}, {"name": "plantRef", "type": "wpimath.system.LinearSystem_1_1_3"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_3"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_3"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "implicitModelFollower_1_1", "type": "wpimath.controller.ImplicitModelFollower_1_1"}], "tooltip": "Returns the control input vector u.\n\n:returns: The control input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_1_1", "FUNC": "U"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myImplicitModelFollower_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "implicitModelFollower_1_1", "type": "wpimath.controller.ImplicitModelFollower_1_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the control input vector u.\n\n:param i: Row of u.\n\n:returns: The row of the control input vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_1_1", "FUNC": "U"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myImplicitModelFollower_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "implicitModelFollower_1_1", "type": "wpimath.controller.ImplicitModelFollower_1_1"}, {"name": "x", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.\n:param u: The current input for the original model.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_1_1", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myImplicitModelFollower_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "implicitModelFollower_1_1", "type": "wpimath.controller.ImplicitModelFollower_1_1"}], "tooltip": "Resets the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_1_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myImplicitModelFollower_1_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ImplicitModelFollower_1_1", - contents: contents, - className: "wpimath.controller.ImplicitModelFollower_1_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.ImplicitModelFollower_2_1.ts b/src/blocks/generated/class_wpimath.controller.ImplicitModelFollower_2_1.ts deleted file mode 100644 index 92e9bc69..00000000 --- a/src/blocks/generated/class_wpimath.controller.ImplicitModelFollower_2_1.ts +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.ImplicitModelFollower_2_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 8 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myImplicitModelFollower_2_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ImplicitModelFollower_2_1", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "Aref", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "Bref", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Aref: Continuous system matrix whose dynamics should be followed.\n:param Bref: Continuous input matrix whose dynamics should be followed.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_1"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myImplicitModelFollower_2_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ImplicitModelFollower_2_1", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_2_1_1"}, {"name": "plantRef", "type": "wpimath.system.LinearSystem_2_1_1"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_1"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_1"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myImplicitModelFollower_2_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ImplicitModelFollower_2_1", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_2_1_2"}, {"name": "plantRef", "type": "wpimath.system.LinearSystem_2_1_2"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_2"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myImplicitModelFollower_2_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ImplicitModelFollower_2_1", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_2_1_3"}, {"name": "plantRef", "type": "wpimath.system.LinearSystem_2_1_3"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_3"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_3"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "implicitModelFollower_2_1", "type": "wpimath.controller.ImplicitModelFollower_2_1"}], "tooltip": "Returns the control input vector u.\n\n:returns: The control input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_1", "FUNC": "U"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myImplicitModelFollower_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "implicitModelFollower_2_1", "type": "wpimath.controller.ImplicitModelFollower_2_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the control input vector u.\n\n:param i: Row of u.\n\n:returns: The row of the control input vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_1", "FUNC": "U"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myImplicitModelFollower_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "implicitModelFollower_2_1", "type": "wpimath.controller.ImplicitModelFollower_2_1"}, {"name": "x", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.\n:param u: The current input for the original model.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_1", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myImplicitModelFollower_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "implicitModelFollower_2_1", "type": "wpimath.controller.ImplicitModelFollower_2_1"}], "tooltip": "Resets the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myImplicitModelFollower_2_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ImplicitModelFollower_2_1", - contents: contents, - className: "wpimath.controller.ImplicitModelFollower_2_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.ImplicitModelFollower_2_2.ts b/src/blocks/generated/class_wpimath.controller.ImplicitModelFollower_2_2.ts deleted file mode 100644 index ddeb0017..00000000 --- a/src/blocks/generated/class_wpimath.controller.ImplicitModelFollower_2_2.ts +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.ImplicitModelFollower_2_2 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 8 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myImplicitModelFollower_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ImplicitModelFollower_2_2", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "Aref", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "Bref", "type": "numpy.ndarray[numpy.float64[2, 2]]"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Aref: Continuous system matrix whose dynamics should be followed.\n:param Bref: Continuous input matrix whose dynamics should be followed.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_2"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myImplicitModelFollower_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ImplicitModelFollower_2_2", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_2_2_1"}, {"name": "plantRef", "type": "wpimath.system.LinearSystem_2_2_1"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_1"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_1"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myImplicitModelFollower_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ImplicitModelFollower_2_2", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_2_2_2"}, {"name": "plantRef", "type": "wpimath.system.LinearSystem_2_2_2"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_2"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myImplicitModelFollower_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ImplicitModelFollower_2_2", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_2_2_3"}, {"name": "plantRef", "type": "wpimath.system.LinearSystem_2_2_3"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_3"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_3"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "implicitModelFollower_2_2", "type": "wpimath.controller.ImplicitModelFollower_2_2"}], "tooltip": "Returns the control input vector u.\n\n:returns: The control input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_2", "FUNC": "U"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myImplicitModelFollower_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "implicitModelFollower_2_2", "type": "wpimath.controller.ImplicitModelFollower_2_2"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the control input vector u.\n\n:param i: Row of u.\n\n:returns: The row of the control input vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_2", "FUNC": "U"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myImplicitModelFollower_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "implicitModelFollower_2_2", "type": "wpimath.controller.ImplicitModelFollower_2_2"}, {"name": "x", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.\n:param u: The current input for the original model.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_2", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myImplicitModelFollower_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "implicitModelFollower_2_2", "type": "wpimath.controller.ImplicitModelFollower_2_2"}], "tooltip": "Resets the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ImplicitModelFollower_2_2", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myImplicitModelFollower_2_2"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ImplicitModelFollower_2_2", - contents: contents, - className: "wpimath.controller.ImplicitModelFollower_2_2", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.LTVDifferentialDriveController.ts b/src/blocks/generated/class_wpimath.controller.LTVDifferentialDriveController.ts deleted file mode 100644 index 4e187b27..00000000 --- a/src/blocks/generated/class_wpimath.controller.LTVDifferentialDriveController.ts +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.LTVDifferentialDriveController - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 5 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLTVDifferentialDriveController"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LTVDifferentialDriveController", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_2_2_2"}, {"name": "trackwidth", "type": "wpimath.units.meters"}, {"name": "Qelems", "type": "Tuple[float, float, float, float, float]"}, {"name": "Relems", "type": "Tuple[float, float]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a linear time-varying differential drive controller.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning\nfor how to select the tolerances.\n\n:param plant: The differential drive velocity plant.\n:param trackwidth: The distance between the differential drive's left and\n right wheels.\n:param Qelems: The maximum desired error tolerance for each state.\n:param Relems: The maximum desired control effort for each input.\n:param dt: Discretization timestep.\n @throws std::domain_error if max velocity of plant with 12 V input <= 0 m/s\n or >= 15 m/s.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LTVDifferentialDriveController"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_2"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "lTVDifferentialDriveController", "type": "wpimath.controller.LTVDifferentialDriveController"}], "tooltip": "Returns true if the pose error is within tolerance of the reference.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LTVDifferentialDriveController", "FUNC": "atReference"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLTVDifferentialDriveController"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDriveWheelVoltages"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.controller.DifferentialDriveWheelVoltages", "args": [{"name": "lTVDifferentialDriveController", "type": "wpimath.controller.LTVDifferentialDriveController"}, {"name": "currentPose", "type": "wpimath.geometry.Pose2d"}, {"name": "leftVelocity", "type": "wpimath.units.meters_per_second"}, {"name": "rightVelocity", "type": "wpimath.units.meters_per_second"}, {"name": "poseRef", "type": "wpimath.geometry.Pose2d"}, {"name": "leftVelocityRef", "type": "wpimath.units.meters_per_second"}, {"name": "rightVelocityRef", "type": "wpimath.units.meters_per_second"}], "tooltip": "Returns the left and right output voltages of the LTV controller.\n\nThe reference pose, linear velocity, and angular velocity should come from\na drivetrain trajectory.\n\n:param currentPose: The current pose.\n:param leftVelocity: The current left velocity.\n:param rightVelocity: The current right velocity.\n:param poseRef: The desired pose.\n:param leftVelocityRef: The desired left velocity.\n:param rightVelocityRef: The desired right velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LTVDifferentialDriveController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLTVDifferentialDriveController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDriveWheelVoltages"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.controller.DifferentialDriveWheelVoltages", "args": [{"name": "lTVDifferentialDriveController", "type": "wpimath.controller.LTVDifferentialDriveController"}, {"name": "currentPose", "type": "wpimath.geometry.Pose2d"}, {"name": "leftVelocity", "type": "wpimath.units.meters_per_second"}, {"name": "rightVelocity", "type": "wpimath.units.meters_per_second"}, {"name": "desiredState", "type": "wpimath.trajectory.Trajectory.State"}], "tooltip": "Returns the left and right output voltages of the LTV controller.\n\nThe reference pose, linear velocity, and angular velocity should come from\na drivetrain trajectory.\n\n:param currentPose: The current pose.\n:param leftVelocity: The left velocity.\n:param rightVelocity: The right velocity.\n:param desiredState: The desired pose, linear velocity, and angular velocity\n from a trajectory.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LTVDifferentialDriveController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLTVDifferentialDriveController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myState"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "lTVDifferentialDriveController", "type": "wpimath.controller.LTVDifferentialDriveController"}, {"name": "poseTolerance", "type": "wpimath.geometry.Pose2d"}, {"name": "leftVelocityTolerance", "type": "wpimath.units.meters_per_second"}, {"name": "rightVelocityTolerance", "type": "wpimath.units.meters_per_second"}], "tooltip": "Sets the pose error which is considered tolerable for use with\nAtReference().\n\n:param poseTolerance: Pose error which is tolerable.\n:param leftVelocityTolerance: Left velocity error which is tolerable.\n:param rightVelocityTolerance: Right velocity error which is tolerable.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LTVDifferentialDriveController", "FUNC": "setTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLTVDifferentialDriveController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LTVDifferentialDriveController", - contents: contents, - className: "wpimath.controller.LTVDifferentialDriveController", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.LTVUnicycleController.ts b/src/blocks/generated/class_wpimath.controller.LTVUnicycleController.ts deleted file mode 100644 index 5e16f6d5..00000000 --- a/src/blocks/generated/class_wpimath.controller.LTVUnicycleController.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.LTVUnicycleController - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 7 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLTVUnicycleController"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LTVUnicycleController", "args": [{"name": "dt", "type": "wpimath.units.seconds"}, {"name": "maxVelocity", "type": "wpimath.units.meters_per_second"}], "tooltip": "Constructs a linear time-varying unicycle controller with default maximum\ndesired error tolerances of (x = 0.0625 m, y = 0.125 m, heading = 2 rad)\nand default maximum desired control effort of (linear velocity = 1 m/s,\nangular velocity = 2 rad/s).\n\n:param dt: Discretization timestep.\n:param maxVelocity: The maximum velocity for the controller gain lookup\n table.\n @throws std::domain_error if maxVelocity <= 0 m/s or >= 15 m/s.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LTVUnicycleController"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLTVUnicycleController"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LTVUnicycleController", "args": [{"name": "Qelems", "type": "Tuple[float, float, float]"}, {"name": "Relems", "type": "Tuple[float, float]"}, {"name": "dt", "type": "wpimath.units.seconds"}, {"name": "maxVelocity", "type": "wpimath.units.meters_per_second"}], "tooltip": "Constructs a linear time-varying unicycle controller.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning\nfor how to select the tolerances.\n\n:param Qelems: The maximum desired error tolerance for each state (x, y,\n heading).\n:param Relems: The maximum desired control effort for each input (linear\n velocity, angular velocity).\n:param dt: Discretization timestep.\n:param maxVelocity: The maximum velocity for the controller gain lookup\n table.\n @throws std::domain_error if maxVelocity <= 0 m/s or >= 15 m/s.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LTVUnicycleController"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "lTVUnicycleController", "type": "wpimath.controller.LTVUnicycleController"}], "tooltip": "Returns true if the pose error is within tolerance of the reference.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LTVUnicycleController", "FUNC": "atReference"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLTVUnicycleController"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myChassisSpeeds"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.kinematics.ChassisSpeeds", "args": [{"name": "lTVUnicycleController", "type": "wpimath.controller.LTVUnicycleController"}, {"name": "currentPose", "type": "wpimath.geometry.Pose2d"}, {"name": "poseRef", "type": "wpimath.geometry.Pose2d"}, {"name": "linearVelocityRef", "type": "wpimath.units.meters_per_second"}, {"name": "angularVelocityRef", "type": "wpimath.units.radians_per_second"}], "tooltip": "Returns the linear and angular velocity outputs of the LTV controller.\n\nThe reference pose, linear velocity, and angular velocity should come from\na drivetrain trajectory.\n\n:param currentPose: The current pose.\n:param poseRef: The desired pose.\n:param linearVelocityRef: The desired linear velocity.\n:param angularVelocityRef: The desired angular velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LTVUnicycleController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLTVUnicycleController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myChassisSpeeds"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.kinematics.ChassisSpeeds", "args": [{"name": "lTVUnicycleController", "type": "wpimath.controller.LTVUnicycleController"}, {"name": "currentPose", "type": "wpimath.geometry.Pose2d"}, {"name": "desiredState", "type": "wpimath.trajectory.Trajectory.State"}], "tooltip": "Returns the linear and angular velocity outputs of the LTV controller.\n\nThe reference pose, linear velocity, and angular velocity should come from\na drivetrain trajectory.\n\n:param currentPose: The current pose.\n:param desiredState: The desired pose, linear velocity, and angular velocity\n from a trajectory.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LTVUnicycleController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLTVUnicycleController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myState"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "lTVUnicycleController", "type": "wpimath.controller.LTVUnicycleController"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enables and disables the controller for troubleshooting purposes.\n\n:param enabled: If the controller is enabled or not.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LTVUnicycleController", "FUNC": "setEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLTVUnicycleController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "lTVUnicycleController", "type": "wpimath.controller.LTVUnicycleController"}, {"name": "poseTolerance", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Sets the pose error which is considered tolerable for use with\nAtReference().\n\n:param poseTolerance: Pose error which is tolerable.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LTVUnicycleController", "FUNC": "setTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLTVUnicycleController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LTVUnicycleController", - contents: contents, - className: "wpimath.controller.LTVUnicycleController", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.LinearPlantInversionFeedforward_1_1.ts b/src/blocks/generated/class_wpimath.controller.LinearPlantInversionFeedforward_1_1.ts deleted file mode 100644 index 328f87c9..00000000 --- a/src/blocks/generated/class_wpimath.controller.LinearPlantInversionFeedforward_1_1.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.LinearPlantInversionFeedforward_1_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 9 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearPlantInversionFeedforward_1_1", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a feedforward with the given coefficients.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param dt: Discretization timestep.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_1_1"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearPlantInversionFeedforward_1_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1"}], "tooltip": "Returns the current reference vector r.\n\n:returns: The current reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_1_1", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearPlantInversionFeedforward_1_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the current reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_1_1", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearPlantInversionFeedforward_1_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Calculate the feedforward with only the desired\nfuture reference. This uses the internally stored \"current\"\nreference.\n\nIf this method is used the initial state of the system is the one set using\nReset(const StateVector&). If the initial state is not\nset it defaults to a zero vector.\n\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_1_1", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearPlantInversionFeedforward_1_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1"}, {"name": "r", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Calculate the feedforward with current and future reference vectors.\n\n:param r: The reference state of the current timestep (k).\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_1_1", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearPlantInversionFeedforward_1_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1"}, {"name": "initialState", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Resets the feedforward with a specified initial state vector.\n\n:param initialState: The initial state vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_1_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearPlantInversionFeedforward_1_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1"}], "tooltip": "Resets the feedforward with a zero initial state vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_1_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearPlantInversionFeedforward_1_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1"}], "tooltip": "Returns the previously calculated feedforward as an input vector.\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_1_1", "FUNC": "uff"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearPlantInversionFeedforward_1_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the previously calculated feedforward.\n\n:param i: Row of uff.\n\n:returns: The row of the calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_1_1", "FUNC": "uff"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_1_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LinearPlantInversionFeedforward_1_1", - contents: contents, - className: "wpimath.controller.LinearPlantInversionFeedforward_1_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.LinearPlantInversionFeedforward_2_1.ts b/src/blocks/generated/class_wpimath.controller.LinearPlantInversionFeedforward_2_1.ts deleted file mode 100644 index c108d5c9..00000000 --- a/src/blocks/generated/class_wpimath.controller.LinearPlantInversionFeedforward_2_1.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.LinearPlantInversionFeedforward_2_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 9 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearPlantInversionFeedforward_2_1", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a feedforward with the given coefficients.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param dt: Discretization timestep.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_1"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearPlantInversionFeedforward_2_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1"}], "tooltip": "Returns the current reference vector r.\n\n:returns: The current reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_1", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearPlantInversionFeedforward_2_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the current reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_1", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearPlantInversionFeedforward_2_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Calculate the feedforward with only the desired\nfuture reference. This uses the internally stored \"current\"\nreference.\n\nIf this method is used the initial state of the system is the one set using\nReset(const StateVector&). If the initial state is not\nset it defaults to a zero vector.\n\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_1", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearPlantInversionFeedforward_2_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1"}, {"name": "r", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Calculate the feedforward with current and future reference vectors.\n\n:param r: The reference state of the current timestep (k).\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_1", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearPlantInversionFeedforward_2_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1"}, {"name": "initialState", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Resets the feedforward with a specified initial state vector.\n\n:param initialState: The initial state vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearPlantInversionFeedforward_2_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1"}], "tooltip": "Resets the feedforward with a zero initial state vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearPlantInversionFeedforward_2_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1"}], "tooltip": "Returns the previously calculated feedforward as an input vector.\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_1", "FUNC": "uff"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearPlantInversionFeedforward_2_1", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the previously calculated feedforward.\n\n:param i: Row of uff.\n\n:returns: The row of the calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_1", "FUNC": "uff"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LinearPlantInversionFeedforward_2_1", - contents: contents, - className: "wpimath.controller.LinearPlantInversionFeedforward_2_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.LinearPlantInversionFeedforward_2_2.ts b/src/blocks/generated/class_wpimath.controller.LinearPlantInversionFeedforward_2_2.ts deleted file mode 100644 index f7bb6e83..00000000 --- a/src/blocks/generated/class_wpimath.controller.LinearPlantInversionFeedforward_2_2.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.LinearPlantInversionFeedforward_2_2 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 9 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearPlantInversionFeedforward_2_2", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a feedforward with the given coefficients.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param dt: Discretization timestep.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_2"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearPlantInversionFeedforward_2_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2"}], "tooltip": "Returns the current reference vector r.\n\n:returns: The current reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_2", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearPlantInversionFeedforward_2_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the current reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_2", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearPlantInversionFeedforward_2_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Calculate the feedforward with only the desired\nfuture reference. This uses the internally stored \"current\"\nreference.\n\nIf this method is used the initial state of the system is the one set using\nReset(const StateVector&). If the initial state is not\nset it defaults to a zero vector.\n\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_2", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearPlantInversionFeedforward_2_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2"}, {"name": "r", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Calculate the feedforward with current and future reference vectors.\n\n:param r: The reference state of the current timestep (k).\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_2", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearPlantInversionFeedforward_2_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2"}, {"name": "initialState", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Resets the feedforward with a specified initial state vector.\n\n:param initialState: The initial state vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_2", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearPlantInversionFeedforward_2_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2"}], "tooltip": "Resets the feedforward with a zero initial state vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_2", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearPlantInversionFeedforward_2_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2"}], "tooltip": "Returns the previously calculated feedforward as an input vector.\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_2", "FUNC": "uff"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearPlantInversionFeedforward_2_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the previously calculated feedforward.\n\n:param i: Row of uff.\n\n:returns: The row of the calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_2_2", "FUNC": "uff"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_2_2"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LinearPlantInversionFeedforward_2_2", - contents: contents, - className: "wpimath.controller.LinearPlantInversionFeedforward_2_2", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.LinearPlantInversionFeedforward_3_2.ts b/src/blocks/generated/class_wpimath.controller.LinearPlantInversionFeedforward_3_2.ts deleted file mode 100644 index 5a875cd4..00000000 --- a/src/blocks/generated/class_wpimath.controller.LinearPlantInversionFeedforward_3_2.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.LinearPlantInversionFeedforward_3_2 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 9 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_3_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearPlantInversionFeedforward_3_2", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[3, 3]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[3, 2]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a feedforward with the given coefficients.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param dt: Discretization timestep.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_3_2"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[3, 1]]", "args": [{"name": "linearPlantInversionFeedforward_3_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2"}], "tooltip": "Returns the current reference vector r.\n\n:returns: The current reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_3_2", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearPlantInversionFeedforward_3_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the current reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_3_2", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearPlantInversionFeedforward_3_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[3, 1]]"}], "tooltip": "Calculate the feedforward with only the desired\nfuture reference. This uses the internally stored \"current\"\nreference.\n\nIf this method is used the initial state of the system is the one set using\nReset(const StateVector&). If the initial state is not\nset it defaults to a zero vector.\n\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_3_2", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearPlantInversionFeedforward_3_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2"}, {"name": "r", "type": "numpy.ndarray[numpy.float64[3, 1]]"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[3, 1]]"}], "tooltip": "Calculate the feedforward with current and future reference vectors.\n\n:param r: The reference state of the current timestep (k).\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_3_2", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearPlantInversionFeedforward_3_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2"}, {"name": "initialState", "type": "numpy.ndarray[numpy.float64[3, 1]]"}], "tooltip": "Resets the feedforward with a specified initial state vector.\n\n:param initialState: The initial state vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_3_2", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearPlantInversionFeedforward_3_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2"}], "tooltip": "Resets the feedforward with a zero initial state vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_3_2", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearPlantInversionFeedforward_3_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2"}], "tooltip": "Returns the previously calculated feedforward as an input vector.\n\n:returns: The calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_3_2", "FUNC": "uff"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearPlantInversionFeedforward_3_2", "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the previously calculated feedforward.\n\n:param i: Row of uff.\n\n:returns: The row of the calculated feedforward.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearPlantInversionFeedforward_3_2", "FUNC": "uff"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearPlantInversionFeedforward_3_2"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LinearPlantInversionFeedforward_3_2", - contents: contents, - className: "wpimath.controller.LinearPlantInversionFeedforward_3_2", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.LinearQuadraticRegulator_1_1.ts b/src/blocks/generated/class_wpimath.controller.LinearQuadraticRegulator_1_1.ts deleted file mode 100644 index 1b2410da..00000000 --- a/src/blocks/generated/class_wpimath.controller.LinearQuadraticRegulator_1_1.ts +++ /dev/null @@ -1,43 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.LinearQuadraticRegulator_1_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 17 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_1_1", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "Qelems", "type": "Tuple[float]"}, {"name": "Relems", "type": "Tuple[float]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning\nfor how to select the tolerances.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Qelems: The maximum desired error tolerance for each state.\n:param Relems: The maximum desired control effort for each input.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1"}, "inputs": {"ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_1_1", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "Q", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_1_1", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "Q", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "N", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param N: The state-input cross-term cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_1_1", "args": [{"name": "arg0", "type": "wpimath.system.LinearSystem_1_1_1"}, {"name": "arg1", "type": "Tuple[float]"}, {"name": "arg2", "type": "Tuple[float]"}, {"name": "arg3", "type": "wpimath.units.seconds"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_1"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_1_1", "args": [{"name": "arg0", "type": "wpimath.system.LinearSystem_1_1_2"}, {"name": "arg1", "type": "Tuple[float]"}, {"name": "arg2", "type": "Tuple[float]"}, {"name": "arg3", "type": "wpimath.units.seconds"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_1_1", "args": [{"name": "arg0", "type": "wpimath.system.LinearSystem_1_1_3"}, {"name": "arg1", "type": "Tuple[float]"}, {"name": "arg2", "type": "Tuple[float]"}, {"name": "arg3", "type": "wpimath.units.seconds"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_3"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearQuadraticRegulator_1_1", "type": "wpimath.controller.LinearQuadraticRegulator_1_1"}], "tooltip": "Returns the controller matrix K.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1", "FUNC": "K"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearQuadraticRegulator_1_1", "type": "wpimath.controller.LinearQuadraticRegulator_1_1"}, {"name": "i", "type": "int"}, {"name": "j", "type": "int"}], "tooltip": "Returns an element of the controller matrix K.\n\n:param i: Row of K.\n:param j: Column of K.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1", "FUNC": "K"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearQuadraticRegulator_1_1", "type": "wpimath.controller.LinearQuadraticRegulator_1_1"}], "tooltip": "Returns the reference vector r.\n\n:returns: The reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearQuadraticRegulator_1_1", "type": "wpimath.controller.LinearQuadraticRegulator_1_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearQuadraticRegulator_1_1", "type": "wpimath.controller.LinearQuadraticRegulator_1_1"}], "tooltip": "Returns the control input vector u.\n\n:returns: The control input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1", "FUNC": "U"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearQuadraticRegulator_1_1", "type": "wpimath.controller.LinearQuadraticRegulator_1_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the control input vector u.\n\n:param i: Row of u.\n\n:returns: The row of the control input vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1", "FUNC": "U"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearQuadraticRegulator_1_1", "type": "wpimath.controller.LinearQuadraticRegulator_1_1"}, {"name": "x", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearQuadraticRegulator_1_1", "type": "wpimath.controller.LinearQuadraticRegulator_1_1"}, {"name": "x", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.\n:param nextR: The next reference vector r.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearQuadraticRegulator_1_1", "type": "wpimath.controller.LinearQuadraticRegulator_1_1"}, {"name": "plant", "type": "wpimath.system.LinearSystem_1_1_1"}, {"name": "dt", "type": "wpimath.units.seconds"}, {"name": "inputDelay", "type": "wpimath.units.seconds"}], "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1", "FUNC": "latencyCompensate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearQuadraticRegulator_1_1", "type": "wpimath.controller.LinearQuadraticRegulator_1_1"}, {"name": "plant", "type": "wpimath.system.LinearSystem_1_1_2"}, {"name": "dt", "type": "wpimath.units.seconds"}, {"name": "inputDelay", "type": "wpimath.units.seconds"}], "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1", "FUNC": "latencyCompensate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearQuadraticRegulator_1_1", "type": "wpimath.controller.LinearQuadraticRegulator_1_1"}], "tooltip": "Resets the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_1_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_1_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LinearQuadraticRegulator_1_1", - contents: contents, - className: "wpimath.controller.LinearQuadraticRegulator_1_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.LinearQuadraticRegulator_2_1.ts b/src/blocks/generated/class_wpimath.controller.LinearQuadraticRegulator_2_1.ts deleted file mode 100644 index 093aa3cd..00000000 --- a/src/blocks/generated/class_wpimath.controller.LinearQuadraticRegulator_2_1.ts +++ /dev/null @@ -1,43 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.LinearQuadraticRegulator_2_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 17 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_2_1", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "Qelems", "type": "Tuple[float, float]"}, {"name": "Relems", "type": "Tuple[float]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning\nfor how to select the tolerances.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Qelems: The maximum desired error tolerance for each state.\n:param Relems: The maximum desired control effort for each input.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1"}, "inputs": {"ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_2_1", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "Q", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_2_1", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "Q", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "N", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param N: The state-input cross-term cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_2_1", "args": [{"name": "arg0", "type": "wpimath.system.LinearSystem_2_1_1"}, {"name": "arg1", "type": "Tuple[float, float]"}, {"name": "arg2", "type": "Tuple[float]"}, {"name": "arg3", "type": "wpimath.units.seconds"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_1"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_2_1", "args": [{"name": "arg0", "type": "wpimath.system.LinearSystem_2_1_2"}, {"name": "arg1", "type": "Tuple[float, float]"}, {"name": "arg2", "type": "Tuple[float]"}, {"name": "arg3", "type": "wpimath.units.seconds"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_2_1", "args": [{"name": "arg0", "type": "wpimath.system.LinearSystem_2_1_3"}, {"name": "arg1", "type": "Tuple[float, float]"}, {"name": "arg2", "type": "Tuple[float]"}, {"name": "arg3", "type": "wpimath.units.seconds"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_3"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 2]]", "args": [{"name": "linearQuadraticRegulator_2_1", "type": "wpimath.controller.LinearQuadraticRegulator_2_1"}], "tooltip": "Returns the controller matrix K.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1", "FUNC": "K"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearQuadraticRegulator_2_1", "type": "wpimath.controller.LinearQuadraticRegulator_2_1"}, {"name": "i", "type": "int"}, {"name": "j", "type": "int"}], "tooltip": "Returns an element of the controller matrix K.\n\n:param i: Row of K.\n:param j: Column of K.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1", "FUNC": "K"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearQuadraticRegulator_2_1", "type": "wpimath.controller.LinearQuadraticRegulator_2_1"}], "tooltip": "Returns the reference vector r.\n\n:returns: The reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearQuadraticRegulator_2_1", "type": "wpimath.controller.LinearQuadraticRegulator_2_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearQuadraticRegulator_2_1", "type": "wpimath.controller.LinearQuadraticRegulator_2_1"}], "tooltip": "Returns the control input vector u.\n\n:returns: The control input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1", "FUNC": "U"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearQuadraticRegulator_2_1", "type": "wpimath.controller.LinearQuadraticRegulator_2_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the control input vector u.\n\n:param i: Row of u.\n\n:returns: The row of the control input vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1", "FUNC": "U"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearQuadraticRegulator_2_1", "type": "wpimath.controller.LinearQuadraticRegulator_2_1"}, {"name": "x", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "linearQuadraticRegulator_2_1", "type": "wpimath.controller.LinearQuadraticRegulator_2_1"}, {"name": "x", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.\n:param nextR: The next reference vector r.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearQuadraticRegulator_2_1", "type": "wpimath.controller.LinearQuadraticRegulator_2_1"}, {"name": "plant", "type": "wpimath.system.LinearSystem_2_1_1"}, {"name": "dt", "type": "wpimath.units.seconds"}, {"name": "inputDelay", "type": "wpimath.units.seconds"}], "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1", "FUNC": "latencyCompensate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearQuadraticRegulator_2_1", "type": "wpimath.controller.LinearQuadraticRegulator_2_1"}, {"name": "plant", "type": "wpimath.system.LinearSystem_2_1_2"}, {"name": "dt", "type": "wpimath.units.seconds"}, {"name": "inputDelay", "type": "wpimath.units.seconds"}], "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1", "FUNC": "latencyCompensate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearQuadraticRegulator_2_1", "type": "wpimath.controller.LinearQuadraticRegulator_2_1"}], "tooltip": "Resets the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LinearQuadraticRegulator_2_1", - contents: contents, - className: "wpimath.controller.LinearQuadraticRegulator_2_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.LinearQuadraticRegulator_2_2.ts b/src/blocks/generated/class_wpimath.controller.LinearQuadraticRegulator_2_2.ts deleted file mode 100644 index 87a0d5d4..00000000 --- a/src/blocks/generated/class_wpimath.controller.LinearQuadraticRegulator_2_2.ts +++ /dev/null @@ -1,43 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.LinearQuadraticRegulator_2_2 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 17 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_2_2", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "Qelems", "type": "Tuple[float, float]"}, {"name": "Relems", "type": "Tuple[float, float]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning\nfor how to select the tolerances.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Qelems: The maximum desired error tolerance for each state.\n:param Relems: The maximum desired control effort for each input.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2"}, "inputs": {"ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_2_2", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "Q", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_2_2", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "Q", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "N", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param N: The state-input cross-term cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_2_2", "args": [{"name": "arg0", "type": "wpimath.system.LinearSystem_2_2_1"}, {"name": "arg1", "type": "Tuple[float, float]"}, {"name": "arg2", "type": "Tuple[float, float]"}, {"name": "arg3", "type": "wpimath.units.seconds"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_1"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_2_2", "args": [{"name": "arg0", "type": "wpimath.system.LinearSystem_2_2_2"}, {"name": "arg1", "type": "Tuple[float, float]"}, {"name": "arg2", "type": "Tuple[float, float]"}, {"name": "arg3", "type": "wpimath.units.seconds"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_2_2", "args": [{"name": "arg0", "type": "wpimath.system.LinearSystem_2_2_3"}, {"name": "arg1", "type": "Tuple[float, float]"}, {"name": "arg2", "type": "Tuple[float, float]"}, {"name": "arg3", "type": "wpimath.units.seconds"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_3"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 2]]", "args": [{"name": "linearQuadraticRegulator_2_2", "type": "wpimath.controller.LinearQuadraticRegulator_2_2"}], "tooltip": "Returns the controller matrix K.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2", "FUNC": "K"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearQuadraticRegulator_2_2", "type": "wpimath.controller.LinearQuadraticRegulator_2_2"}, {"name": "i", "type": "int"}, {"name": "j", "type": "int"}], "tooltip": "Returns an element of the controller matrix K.\n\n:param i: Row of K.\n:param j: Column of K.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2", "FUNC": "K"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearQuadraticRegulator_2_2", "type": "wpimath.controller.LinearQuadraticRegulator_2_2"}], "tooltip": "Returns the reference vector r.\n\n:returns: The reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearQuadraticRegulator_2_2", "type": "wpimath.controller.LinearQuadraticRegulator_2_2"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearQuadraticRegulator_2_2", "type": "wpimath.controller.LinearQuadraticRegulator_2_2"}], "tooltip": "Returns the control input vector u.\n\n:returns: The control input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2", "FUNC": "U"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearQuadraticRegulator_2_2", "type": "wpimath.controller.LinearQuadraticRegulator_2_2"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the control input vector u.\n\n:param i: Row of u.\n\n:returns: The row of the control input vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2", "FUNC": "U"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearQuadraticRegulator_2_2", "type": "wpimath.controller.LinearQuadraticRegulator_2_2"}, {"name": "x", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearQuadraticRegulator_2_2", "type": "wpimath.controller.LinearQuadraticRegulator_2_2"}, {"name": "x", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.\n:param nextR: The next reference vector r.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearQuadraticRegulator_2_2", "type": "wpimath.controller.LinearQuadraticRegulator_2_2"}, {"name": "plant", "type": "wpimath.system.LinearSystem_2_2_1"}, {"name": "dt", "type": "wpimath.units.seconds"}, {"name": "inputDelay", "type": "wpimath.units.seconds"}], "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2", "FUNC": "latencyCompensate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearQuadraticRegulator_2_2", "type": "wpimath.controller.LinearQuadraticRegulator_2_2"}, {"name": "plant", "type": "wpimath.system.LinearSystem_2_2_2"}, {"name": "dt", "type": "wpimath.units.seconds"}, {"name": "inputDelay", "type": "wpimath.units.seconds"}], "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2", "FUNC": "latencyCompensate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearQuadraticRegulator_2_2", "type": "wpimath.controller.LinearQuadraticRegulator_2_2"}], "tooltip": "Resets the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_2_2", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_2_2"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LinearQuadraticRegulator_2_2", - contents: contents, - className: "wpimath.controller.LinearQuadraticRegulator_2_2", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.LinearQuadraticRegulator_3_2.ts b/src/blocks/generated/class_wpimath.controller.LinearQuadraticRegulator_3_2.ts deleted file mode 100644 index f9e88e8c..00000000 --- a/src/blocks/generated/class_wpimath.controller.LinearQuadraticRegulator_3_2.ts +++ /dev/null @@ -1,43 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.LinearQuadraticRegulator_3_2 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 17 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_3_2", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[3, 3]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[3, 2]]"}, {"name": "Qelems", "type": "Tuple[float, float, float]"}, {"name": "Relems", "type": "Tuple[float, float]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning\nfor how to select the tolerances.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Qelems: The maximum desired error tolerance for each state.\n:param Relems: The maximum desired control effort for each input.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2"}, "inputs": {"ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_3_2", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[3, 3]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[3, 2]]"}, {"name": "Q", "type": "numpy.ndarray[numpy.float64[3, 3]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_3_2", "args": [{"name": "A", "type": "numpy.ndarray[numpy.float64[3, 3]]"}, {"name": "B", "type": "numpy.ndarray[numpy.float64[3, 2]]"}, {"name": "Q", "type": "numpy.ndarray[numpy.float64[3, 3]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[2, 2]]"}, {"name": "N", "type": "numpy.ndarray[numpy.float64[3, 2]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param N: The state-input cross-term cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_3_2", "args": [{"name": "arg0", "type": "wpimath.system.LinearSystem_3_2_1"}, {"name": "arg1", "type": "Tuple[float, float, float]"}, {"name": "arg2", "type": "Tuple[float, float]"}, {"name": "arg3", "type": "wpimath.units.seconds"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_3_2_1"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_3_2", "args": [{"name": "arg0", "type": "wpimath.system.LinearSystem_3_2_2"}, {"name": "arg1", "type": "Tuple[float, float, float]"}, {"name": "arg2", "type": "Tuple[float, float]"}, {"name": "arg3", "type": "wpimath.units.seconds"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_3_2_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.LinearQuadraticRegulator_3_2", "args": [{"name": "arg0", "type": "wpimath.system.LinearSystem_3_2_3"}, {"name": "arg1", "type": "Tuple[float, float, float]"}, {"name": "arg2", "type": "Tuple[float, float]"}, {"name": "arg3", "type": "wpimath.units.seconds"}], "tooltip": "", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_3_2_3"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 3]]", "args": [{"name": "linearQuadraticRegulator_3_2", "type": "wpimath.controller.LinearQuadraticRegulator_3_2"}], "tooltip": "Returns the controller matrix K.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2", "FUNC": "K"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearQuadraticRegulator_3_2", "type": "wpimath.controller.LinearQuadraticRegulator_3_2"}, {"name": "i", "type": "int"}, {"name": "j", "type": "int"}], "tooltip": "Returns an element of the controller matrix K.\n\n:param i: Row of K.\n:param j: Column of K.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2", "FUNC": "K"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[3, 1]]", "args": [{"name": "linearQuadraticRegulator_3_2", "type": "wpimath.controller.LinearQuadraticRegulator_3_2"}], "tooltip": "Returns the reference vector r.\n\n:returns: The reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearQuadraticRegulator_3_2", "type": "wpimath.controller.LinearQuadraticRegulator_3_2"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the reference vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2", "FUNC": "R"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearQuadraticRegulator_3_2", "type": "wpimath.controller.LinearQuadraticRegulator_3_2"}], "tooltip": "Returns the control input vector u.\n\n:returns: The control input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2", "FUNC": "U"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearQuadraticRegulator_3_2", "type": "wpimath.controller.LinearQuadraticRegulator_3_2"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the control input vector u.\n\n:param i: Row of u.\n\n:returns: The row of the control input vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2", "FUNC": "U"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearQuadraticRegulator_3_2", "type": "wpimath.controller.LinearQuadraticRegulator_3_2"}, {"name": "x", "type": "numpy.ndarray[numpy.float64[3, 1]]"}], "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "linearQuadraticRegulator_3_2", "type": "wpimath.controller.LinearQuadraticRegulator_3_2"}, {"name": "x", "type": "numpy.ndarray[numpy.float64[3, 1]]"}, {"name": "nextR", "type": "numpy.ndarray[numpy.float64[3, 1]]"}], "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.\n:param nextR: The next reference vector r.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearQuadraticRegulator_3_2", "type": "wpimath.controller.LinearQuadraticRegulator_3_2"}, {"name": "plant", "type": "wpimath.system.LinearSystem_3_2_1"}, {"name": "dt", "type": "wpimath.units.seconds"}, {"name": "inputDelay", "type": "wpimath.units.seconds"}], "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2", "FUNC": "latencyCompensate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_3_2_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearQuadraticRegulator_3_2", "type": "wpimath.controller.LinearQuadraticRegulator_3_2"}, {"name": "plant", "type": "wpimath.system.LinearSystem_3_2_2"}, {"name": "dt", "type": "wpimath.units.seconds"}, {"name": "inputDelay", "type": "wpimath.units.seconds"}], "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2", "FUNC": "latencyCompensate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_3_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearQuadraticRegulator_3_2", "type": "wpimath.controller.LinearQuadraticRegulator_3_2"}], "tooltip": "Resets the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.LinearQuadraticRegulator_3_2", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearQuadraticRegulator_3_2"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "LinearQuadraticRegulator_3_2", - contents: contents, - className: "wpimath.controller.LinearQuadraticRegulator_3_2", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.PIDController.ts b/src/blocks/generated/class_wpimath.controller.PIDController.ts deleted file mode 100644 index a695f9dc..00000000 --- a/src/blocks/generated/class_wpimath.controller.PIDController.ts +++ /dev/null @@ -1,58 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.PIDController - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 32 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPIDController"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.PIDController", "args": [{"name": "Kp", "type": "float"}, {"name": "Ki", "type": "float"}, {"name": "Kd", "type": "float"}, {"name": "period", "type": "wpimath.units.seconds"}], "tooltip": "Allocates a PIDController with the given constants for Kp, Ki, and Kd.\n\n:param Kp: The proportional coefficient. Must be >= 0.\n:param Ki: The integral coefficient. Must be >= 0.\n:param Kd: The derivative coefficient. Must be >= 0.\n:param period: The period between controller updates in seconds. The\n default is 20 milliseconds. Must be positive.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Returns true if the error is within the tolerance of the setpoint.\nThe error tolerance defauls to 0.05, and the error derivative tolerance\ndefaults to \u221e.\n\nThis will return false until at least one input value has been computed.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "atSetpoint"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}, {"name": "measurement", "type": "float"}], "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}, {"name": "measurement", "type": "float"}, {"name": "setpoint", "type": "float"}], "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.\n:param setpoint: The new setpoint of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Disables continuous input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "disableContinuousInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}, {"name": "minimumInput", "type": "float"}, {"name": "maximumInput", "type": "float"}], "tooltip": "Enables continuous input.\n\nRather then using the max and min input range as constraints, it considers\nthem to be the same point and automatically calculates the shortest route\nto the setpoint.\n\n:param minimumInput: The minimum value expected from the input.\n:param maximumInput: The maximum value expected from the input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "enableContinuousInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Gets the accumulated error used in the integral calculation of this\ncontroller.\n\n:returns: The accumulated error of this controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getAccumulatedError"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Gets the differential coefficient.\n\n:returns: differential coefficient", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getD"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Returns the difference between the setpoint and the measurement.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getError"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Returns the error derivative.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getErrorDerivative"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Gets the error derivative tolerance of this controller. Defaults to \u221e.\n\n:returns: The error derivative tolerance of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getErrorDerivativeTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Gets the error tolerance of this controller. Defaults to 0.05.\n\n:returns: The error tolerance of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getErrorTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Gets the integral coefficient.\n\n:returns: integral coefficient", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getI"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Get the IZone range.\n\n:returns: Maximum magnitude of error to allow integral control.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getIZone"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Gets the proportional coefficient.\n\n:returns: proportional coefficient", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getP"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Gets the period of this controller.\n\n:returns: The period of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getPeriod"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Returns the difference between the setpoint and the measurement.\n\n:deprecated: Use GetError() instead.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getPositionError"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Gets the position tolerance of this controller.\n\n:deprecated: Use GetErrorTolerance() instead.\n\n:returns: The position tolerance of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getPositionTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Returns the current setpoint of the PIDController.\n\n:returns: The current setpoint.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getSetpoint"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Returns the velocity error.\n\n:deprecated: Use GetErrorDerivative() instead.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getVelocityError"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Gets the velocity tolerance of this controller.\n\n:deprecated: Use GetErrorDerivativeTolerance() instead.\n\n:returns: The velocity tolerance of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "getVelocityTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Returns true if continuous input is enabled.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "isContinuousInputEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}], "tooltip": "Reset the previous error, the integral term, and disable the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}, {"name": "Kd", "type": "float"}], "tooltip": "Sets the differential coefficient of the PID controller gain.\n\n:param Kd: The differential coefficient. Must be >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "setD"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}, {"name": "Ki", "type": "float"}], "tooltip": "Sets the integral coefficient of the PID controller gain.\n\n:param Ki: The integral coefficient. Must be >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "setI"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}, {"name": "iZone", "type": "float"}], "tooltip": "Sets the IZone range. When the absolute value of the position error is\ngreater than IZone, the total accumulated error will reset to zero,\ndisabling integral gain until the absolute value of the position error is\nless than IZone. This is used to prevent integral windup. Must be\nnon-negative. Passing a value of zero will effectively disable integral\ngain. Passing a value of infinity disables IZone functionality.\n\n:param iZone: Maximum magnitude of error to allow integral control. Must be\n >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "setIZone"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}, {"name": "minimumIntegral", "type": "float"}, {"name": "maximumIntegral", "type": "float"}], "tooltip": "Sets the minimum and maximum contributions of the integral term.\n\nThe internal integrator is clamped so that the integral term's contribution\nto the output stays between minimumIntegral and maximumIntegral. This\nprevents integral windup.\n\n:param minimumIntegral: The minimum contribution of the integral term.\n:param maximumIntegral: The maximum contribution of the integral term.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "setIntegratorRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}, {"name": "Kp", "type": "float"}], "tooltip": "Sets the proportional coefficient of the PID controller gain.\n\n:param Kp: The proportional coefficient. Must be >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "setP"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}, {"name": "Kp", "type": "float"}, {"name": "Ki", "type": "float"}, {"name": "Kd", "type": "float"}], "tooltip": "Sets the PID Controller gain parameters.\n\nSets the proportional, integral, and differential coefficients.\n\n:param Kp: The proportional coefficient. Must be >= 0.\n:param Ki: The integral coefficient. Must be >= 0.\n:param Kd: The differential coefficient. Must be >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "setPID"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}, {"name": "setpoint", "type": "float"}], "tooltip": "Sets the setpoint for the PIDController.\n\n:param setpoint: The desired setpoint.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "setSetpoint"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "pIDController", "type": "wpimath.controller.PIDController"}, {"name": "errorTolerance", "type": "float"}, {"name": "errorDerivativeTolerance", "type": "float"}], "tooltip": "Sets the error which is considered tolerable for use with AtSetpoint().\n\n:param errorTolerance: error which is tolerable.\n:param errorDerivativeTolerance: error derivative which is tolerable.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.PIDController", "FUNC": "setTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPIDController"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "PIDController", - contents: contents, - className: "wpimath.controller.PIDController", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.ProfiledPIDController.ts b/src/blocks/generated/class_wpimath.controller.ProfiledPIDController.ts deleted file mode 100644 index ed13fecc..00000000 --- a/src/blocks/generated/class_wpimath.controller.ProfiledPIDController.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.ProfiledPIDController - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 36 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myProfiledPIDController"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ProfiledPIDController", "args": [{"name": "Kp", "type": "float"}, {"name": "Ki", "type": "float"}, {"name": "Kd", "type": "float"}, {"name": "constraints", "type": "wpimath.trajectory.TrapezoidProfile.Constraints"}, {"name": "period", "type": "wpimath.units.seconds"}], "tooltip": "Allocates a ProfiledPIDController with the given constants for Kp, Ki, and\nKd. Users should call reset() when they first start running the controller\nto avoid unwanted behavior.\n\n:param Kp: The proportional coefficient. Must be >= 0.\n:param Ki: The integral coefficient. Must be >= 0.\n:param Kd: The derivative coefficient. Must be >= 0.\n:param constraints: Velocity and acceleration constraints for goal.\n:param period: The period between controller updates in seconds. The\n default is 20 milliseconds. Must be positive.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController"}, "inputs": {"ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myConstraints"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Returns true if the error is within the tolerance of the error.\n\nThis will return false until at least one input value has been computed.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "atGoal"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Returns true if the error is within the tolerance of the error.\n\nCurrently this just reports on target as the actual value passes through\nthe setpoint. Ideally it should be based on being within the tolerance for\nsome period of time.\n\nThis will return false until at least one input value has been computed.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "atSetpoint"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "measurement", "type": "float"}], "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "measurement", "type": "float"}, {"name": "goal", "type": "wpimath.trajectory.TrapezoidProfile.State"}], "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.\n:param goal: The new goal of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myState"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "measurement", "type": "float"}, {"name": "goal", "type": "float"}], "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.\n:param goal: The new goal of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "measurement", "type": "float"}, {"name": "goal", "type": "float"}, {"name": "constraints", "type": "wpimath.trajectory.TrapezoidProfile.Constraints"}], "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.\n:param goal: The new goal of the controller.\n:param constraints: Velocity and acceleration constraints for goal.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myConstraints"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Disables continuous input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "disableContinuousInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "minimumInput", "type": "float"}, {"name": "maximumInput", "type": "float"}], "tooltip": "Enables continuous input.\n\nRather then using the max and min input range as constraints, it considers\nthem to be the same point and automatically calculates the shortest route\nto the setpoint.\n\n:param minimumInput: The minimum value expected from the input.\n:param maximumInput: The maximum value expected from the input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "enableContinuousInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Gets the accumulated error used in the integral calculation of this\ncontroller.\n\n:returns: The accumulated error of this controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "getAccumulatedError"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myConstraints"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.trajectory.TrapezoidProfile.Constraints", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Get the velocity and acceleration constraints for this controller.\n\n:returns: Velocity and acceleration constraints.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "getConstraints"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Gets the differential coefficient.\n\n:returns: differential coefficient", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "getD"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myState"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.trajectory.TrapezoidProfile.State", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Gets the goal for the ProfiledPIDController.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "getGoal"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Gets the integral coefficient.\n\n:returns: integral coefficient", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "getI"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Get the IZone range.\n\n:returns: Maximum magnitude of error to allow integral control.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "getIZone"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Gets the proportional coefficient.\n\n:returns: proportional coefficient", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "getP"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Gets the period of this controller.\n\n:returns: The period of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "getPeriod"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Returns the difference between the setpoint and the measurement.\n\n:returns: The error.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "getPositionError"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Gets the position tolerance of this controller.\n\n:returns: The position tolerance of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "getPositionTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myState"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.trajectory.TrapezoidProfile.State", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Returns the current setpoint of the ProfiledPIDController.\n\n:returns: The current setpoint.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "getSetpoint"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.units_per_second", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Returns the change in error per second.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "getVelocityError"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}], "tooltip": "Gets the velocity tolerance of this controller.\n\n:returns: The velocity tolerance of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "getVelocityTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "measurement", "type": "wpimath.trajectory.TrapezoidProfile.State"}], "tooltip": "Reset the previous error and the integral term.\n\n:param measurement: The current measured State of the system.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myState"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "measuredPosition", "type": "float"}, {"name": "measuredVelocity", "type": "wpimath.units.units_per_second"}], "tooltip": "Reset the previous error and the integral term.\n\n:param measuredPosition: The current measured position of the system.\n:param measuredVelocity: The current measured velocity of the system.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "measuredPosition", "type": "float"}], "tooltip": "Reset the previous error and the integral term.\n\n:param measuredPosition: The current measured position of the system. The\n velocity is assumed to be zero.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "constraints", "type": "wpimath.trajectory.TrapezoidProfile.Constraints"}], "tooltip": "Set velocity and acceleration constraints for goal.\n\n:param constraints: Velocity and acceleration constraints for goal.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "setConstraints"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myConstraints"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "Kd", "type": "float"}], "tooltip": "Sets the differential coefficient of the PID controller gain.\n\n:param Kd: The differential coefficient. Must be >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "setD"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "goal", "type": "wpimath.trajectory.TrapezoidProfile.State"}], "tooltip": "Sets the goal for the ProfiledPIDController.\n\n:param goal: The desired unprofiled setpoint.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "setGoal"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myState"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "goal", "type": "float"}], "tooltip": "Sets the goal for the ProfiledPIDController.\n\n:param goal: The desired unprofiled setpoint.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "setGoal"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "Ki", "type": "float"}], "tooltip": "Sets the integral coefficient of the PID controller gain.\n\n:param Ki: The integral coefficient. Must be >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "setI"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "iZone", "type": "float"}], "tooltip": "Sets the IZone range. When the absolute value of the position error is\ngreater than IZone, the total accumulated error will reset to zero,\ndisabling integral gain until the absolute value of the position error is\nless than IZone. This is used to prevent integral windup. Must be\nnon-negative. Passing a value of zero will effectively disable integral\ngain. Passing a value of infinity disables IZone functionality.\n\n:param iZone: Maximum magnitude of error to allow integral control. Must be\n >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "setIZone"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "minimumIntegral", "type": "float"}, {"name": "maximumIntegral", "type": "float"}], "tooltip": "Sets the minimum and maximum contributions of the integral term.\n\nThe internal integrator is clamped so that the integral term's contribution\nto the output stays between minimumIntegral and maximumIntegral. This\nprevents integral windup.\n\n:param minimumIntegral: The minimum contribution of the integral term.\n:param maximumIntegral: The maximum contribution of the integral term.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "setIntegratorRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "Kp", "type": "float"}], "tooltip": "Sets the proportional coefficient of the PID controller gain.\n\n:param Kp: The proportional coefficient. Must be >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "setP"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "Kp", "type": "float"}, {"name": "Ki", "type": "float"}, {"name": "Kd", "type": "float"}], "tooltip": "Sets the PID Controller gain parameters.\n\nSets the proportional, integral, and differential coefficients.\n\n:param Kp: The proportional coefficient. Must be >= 0.\n:param Ki: The integral coefficient. Must be >= 0.\n:param Kd: The differential coefficient. Must be >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "setPID"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDController", "type": "wpimath.controller.ProfiledPIDController"}, {"name": "positionTolerance", "type": "float"}, {"name": "velocityTolerance", "type": "wpimath.units.units_per_second"}], "tooltip": "Sets the error which is considered tolerable for use with\nAtSetpoint().\n\n:param positionTolerance: Position error which is tolerable.\n:param velocityTolerance: Velocity error which is tolerable.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDController", "FUNC": "setTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDController"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ProfiledPIDController", - contents: contents, - className: "wpimath.controller.ProfiledPIDController", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.ProfiledPIDControllerRadians.ts b/src/blocks/generated/class_wpimath.controller.ProfiledPIDControllerRadians.ts deleted file mode 100644 index 7ee40342..00000000 --- a/src/blocks/generated/class_wpimath.controller.ProfiledPIDControllerRadians.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.ProfiledPIDControllerRadians - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 36 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.ProfiledPIDControllerRadians", "args": [{"name": "Kp", "type": "float"}, {"name": "Ki", "type": "float"}, {"name": "Kd", "type": "float"}, {"name": "constraints", "type": "wpimath.trajectory.TrapezoidProfileRadians.Constraints"}, {"name": "period", "type": "wpimath.units.seconds"}], "tooltip": "Allocates a ProfiledPIDController with the given constants for Kp, Ki, and\nKd. Users should call reset() when they first start running the controller\nto avoid unwanted behavior.\n\n:param Kp: The proportional coefficient. Must be >= 0.\n:param Ki: The integral coefficient. Must be >= 0.\n:param Kd: The derivative coefficient. Must be >= 0.\n:param constraints: Velocity and acceleration constraints for goal.\n:param period: The period between controller updates in seconds. The\n default is 20 milliseconds. Must be positive.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians"}, "inputs": {"ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myConstraints"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Returns true if the error is within the tolerance of the error.\n\nThis will return false until at least one input value has been computed.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "atGoal"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Returns true if the error is within the tolerance of the error.\n\nCurrently this just reports on target as the actual value passes through\nthe setpoint. Ideally it should be based on being within the tolerance for\nsome period of time.\n\nThis will return false until at least one input value has been computed.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "atSetpoint"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "measurement", "type": "wpimath.units.radians"}], "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "measurement", "type": "wpimath.units.radians"}, {"name": "goal", "type": "wpimath.trajectory.TrapezoidProfileRadians.State"}], "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.\n:param goal: The new goal of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myState"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "measurement", "type": "wpimath.units.radians"}, {"name": "goal", "type": "wpimath.units.radians"}], "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.\n:param goal: The new goal of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "measurement", "type": "wpimath.units.radians"}, {"name": "goal", "type": "wpimath.units.radians"}, {"name": "constraints", "type": "wpimath.trajectory.TrapezoidProfileRadians.Constraints"}], "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.\n:param goal: The new goal of the controller.\n:param constraints: Velocity and acceleration constraints for goal.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myConstraints"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Disables continuous input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "disableContinuousInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "minimumInput", "type": "wpimath.units.radians"}, {"name": "maximumInput", "type": "wpimath.units.radians"}], "tooltip": "Enables continuous input.\n\nRather then using the max and min input range as constraints, it considers\nthem to be the same point and automatically calculates the shortest route\nto the setpoint.\n\n:param minimumInput: The minimum value expected from the input.\n:param maximumInput: The maximum value expected from the input.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "enableContinuousInput"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Gets the accumulated error used in the integral calculation of this\ncontroller.\n\n:returns: The accumulated error of this controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "getAccumulatedError"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myConstraints"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.trajectory.TrapezoidProfileRadians.Constraints", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Get the velocity and acceleration constraints for this controller.\n\n:returns: Velocity and acceleration constraints.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "getConstraints"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Gets the differential coefficient.\n\n:returns: differential coefficient", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "getD"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myState"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.trajectory.TrapezoidProfileRadians.State", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Gets the goal for the ProfiledPIDController.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "getGoal"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Gets the integral coefficient.\n\n:returns: integral coefficient", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "getI"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Get the IZone range.\n\n:returns: Maximum magnitude of error to allow integral control.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "getIZone"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Gets the proportional coefficient.\n\n:returns: proportional coefficient", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "getP"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Gets the period of this controller.\n\n:returns: The period of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "getPeriod"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Returns the difference between the setpoint and the measurement.\n\n:returns: The error.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "getPositionError"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Gets the position tolerance of this controller.\n\n:returns: The position tolerance of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "getPositionTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myState"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.trajectory.TrapezoidProfileRadians.State", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Returns the current setpoint of the ProfiledPIDController.\n\n:returns: The current setpoint.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "getSetpoint"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians_per_second", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Returns the change in error per second.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "getVelocityError"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}], "tooltip": "Gets the velocity tolerance of this controller.\n\n:returns: The velocity tolerance of the controller.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "getVelocityTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "builder", "type": "wpiutil.SendableBuilder"}], "tooltip": "", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "initSendable"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySendableBuilder"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "measurement", "type": "wpimath.trajectory.TrapezoidProfileRadians.State"}], "tooltip": "Reset the previous error and the integral term.\n\n:param measurement: The current measured State of the system.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myState"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "measuredPosition", "type": "wpimath.units.radians"}, {"name": "measuredVelocity", "type": "wpimath.units.radians_per_second"}], "tooltip": "Reset the previous error and the integral term.\n\n:param measuredPosition: The current measured position of the system.\n:param measuredVelocity: The current measured velocity of the system.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "measuredPosition", "type": "wpimath.units.radians"}], "tooltip": "Reset the previous error and the integral term.\n\n:param measuredPosition: The current measured position of the system. The\n velocity is assumed to be zero.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "constraints", "type": "wpimath.trajectory.TrapezoidProfileRadians.Constraints"}], "tooltip": "Set velocity and acceleration constraints for goal.\n\n:param constraints: Velocity and acceleration constraints for goal.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "setConstraints"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myConstraints"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "Kd", "type": "float"}], "tooltip": "Sets the differential coefficient of the PID controller gain.\n\n:param Kd: The differential coefficient. Must be >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "setD"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "goal", "type": "wpimath.trajectory.TrapezoidProfileRadians.State"}], "tooltip": "Sets the goal for the ProfiledPIDController.\n\n:param goal: The desired unprofiled setpoint.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "setGoal"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myState"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "goal", "type": "wpimath.units.radians"}], "tooltip": "Sets the goal for the ProfiledPIDController.\n\n:param goal: The desired unprofiled setpoint.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "setGoal"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "Ki", "type": "float"}], "tooltip": "Sets the integral coefficient of the PID controller gain.\n\n:param Ki: The integral coefficient. Must be >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "setI"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "iZone", "type": "float"}], "tooltip": "Sets the IZone range. When the absolute value of the position error is\ngreater than IZone, the total accumulated error will reset to zero,\ndisabling integral gain until the absolute value of the position error is\nless than IZone. This is used to prevent integral windup. Must be\nnon-negative. Passing a value of zero will effectively disable integral\ngain. Passing a value of infinity disables IZone functionality.\n\n:param iZone: Maximum magnitude of error to allow integral control. Must be\n >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "setIZone"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "minimumIntegral", "type": "float"}, {"name": "maximumIntegral", "type": "float"}], "tooltip": "Sets the minimum and maximum contributions of the integral term.\n\nThe internal integrator is clamped so that the integral term's contribution\nto the output stays between minimumIntegral and maximumIntegral. This\nprevents integral windup.\n\n:param minimumIntegral: The minimum contribution of the integral term.\n:param maximumIntegral: The maximum contribution of the integral term.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "setIntegratorRange"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "Kp", "type": "float"}], "tooltip": "Sets the proportional coefficient of the PID controller gain.\n\n:param Kp: The proportional coefficient. Must be >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "setP"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "Kp", "type": "float"}, {"name": "Ki", "type": "float"}, {"name": "Kd", "type": "float"}], "tooltip": "Sets the PID Controller gain parameters.\n\nSets the proportional, integral, and differential coefficients.\n\n:param Kp: The proportional coefficient. Must be >= 0.\n:param Ki: The integral coefficient. Must be >= 0.\n:param Kd: The differential coefficient. Must be >= 0.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "setPID"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "profiledPIDControllerRadians", "type": "wpimath.controller.ProfiledPIDControllerRadians"}, {"name": "positionTolerance", "type": "wpimath.units.radians"}, {"name": "velocityTolerance", "type": "wpimath.units.radians_per_second"}], "tooltip": "Sets the error which is considered tolerable for use with\nAtSetpoint().\n\n:param positionTolerance: Position error which is tolerable.\n:param velocityTolerance: Velocity error which is tolerable.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.ProfiledPIDControllerRadians", "FUNC": "setTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myProfiledPIDControllerRadians"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ProfiledPIDControllerRadians", - contents: contents, - className: "wpimath.controller.ProfiledPIDControllerRadians", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.RamseteController.ts b/src/blocks/generated/class_wpimath.controller.RamseteController.ts deleted file mode 100644 index d8056291..00000000 --- a/src/blocks/generated/class_wpimath.controller.RamseteController.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.RamseteController - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 7 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myRamseteController"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.RamseteController", "args": [{"name": "b", "type": "float"}, {"name": "zeta", "type": "float"}], "tooltip": "Construct a Ramsete unicycle controller.\n\n:deprecated: Use LTVUnicycleController instead.\n\n:param b: Tuning parameter (b > 0 rad\u00b2/m\u00b2) for which larger values make\n convergence more aggressive like a proportional term.\n:param zeta: Tuning parameter (0 rad\u207b\u00b9 < zeta < 1 rad\u207b\u00b9) for which larger\n values provide more damping in response.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.RamseteController"}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myRamseteController"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.RamseteController", "args": [], "tooltip": "Construct a Ramsete unicycle controller. The default arguments for\nb and zeta of 2.0 rad\u00b2/m\u00b2 and 0.7 rad\u207b\u00b9 have been well-tested to produce\ndesirable results.\n\n:deprecated: Use LTVUnicycleController instead.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.RamseteController"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "ramseteController", "type": "wpimath.controller.RamseteController"}], "tooltip": "Returns true if the pose error is within tolerance of the reference.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.RamseteController", "FUNC": "atReference"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRamseteController"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myChassisSpeeds"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.kinematics.ChassisSpeeds", "args": [{"name": "ramseteController", "type": "wpimath.controller.RamseteController"}, {"name": "currentPose", "type": "wpimath.geometry.Pose2d"}, {"name": "poseRef", "type": "wpimath.geometry.Pose2d"}, {"name": "linearVelocityRef", "type": "wpimath.units.meters_per_second"}, {"name": "angularVelocityRef", "type": "wpimath.units.radians_per_second"}], "tooltip": "Returns the next output of the Ramsete controller.\n\nThe reference pose, linear velocity, and angular velocity should come from\na drivetrain trajectory.\n\n:param currentPose: The current pose.\n:param poseRef: The desired pose.\n:param linearVelocityRef: The desired linear velocity.\n:param angularVelocityRef: The desired angular velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.RamseteController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRamseteController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myChassisSpeeds"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.kinematics.ChassisSpeeds", "args": [{"name": "ramseteController", "type": "wpimath.controller.RamseteController"}, {"name": "currentPose", "type": "wpimath.geometry.Pose2d"}, {"name": "desiredState", "type": "wpimath.trajectory.Trajectory.State"}], "tooltip": "Returns the next output of the Ramsete controller.\n\nThe reference pose, linear velocity, and angular velocity should come from\na drivetrain trajectory.\n\n:param currentPose: The current pose.\n:param desiredState: The desired pose, linear velocity, and angular velocity\n from a trajectory.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.RamseteController", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRamseteController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myState"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "ramseteController", "type": "wpimath.controller.RamseteController"}, {"name": "enabled", "type": "bool"}], "tooltip": "Enables and disables the controller for troubleshooting purposes.\n\n:param enabled: If the controller is enabled or not.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.RamseteController", "FUNC": "setEnabled"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRamseteController"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "ramseteController", "type": "wpimath.controller.RamseteController"}, {"name": "poseTolerance", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Sets the pose error which is considered tolerable for use with\nAtReference().\n\n:param poseTolerance: Pose error which is tolerable.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.RamseteController", "FUNC": "setTolerance"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRamseteController"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "RamseteController", - contents: contents, - className: "wpimath.controller.RamseteController", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.SimpleMotorFeedforwardMeters.ts b/src/blocks/generated/class_wpimath.controller.SimpleMotorFeedforwardMeters.ts deleted file mode 100644 index 19afb1ff..00000000 --- a/src/blocks/generated/class_wpimath.controller.SimpleMotorFeedforwardMeters.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.SimpleMotorFeedforwardMeters - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardMeters"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.SimpleMotorFeedforwardMeters", "args": [{"name": "kS", "type": "wpimath.units.volts"}, {"name": "kV", "type": "wpimath.units.volt_seconds_per_meter"}, {"name": "kA", "type": "wpimath.units.volt_seconds_squared_per_meter"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Creates a new SimpleMotorFeedforward with the specified gains.\n\n:param kS: The static gain, in volts.\n:param kV: The velocity gain, in volt seconds per distance.\n:param kA: The acceleration gain, in volt seconds\u00b2 per distance.\n:param dt: The period in seconds.\n @throws IllegalArgumentException for kv < zero.\n @throws IllegalArgumentException for ka < zero.\n @throws IllegalArgumentException for period ≤ zero.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardMeters"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "simpleMotorFeedforwardMeters", "type": "wpimath.controller.SimpleMotorFeedforwardMeters"}, {"name": "velocity", "type": "wpimath.units.meters_per_second"}], "tooltip": "Calculates the feedforward from the gains and velocity setpoint assuming\ndiscrete control. Use this method when the velocity setpoint does not\nchange.\n\n:param velocity: The velocity setpoint.\n\n:returns: The computed feedforward, in volts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardMeters", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardMeters"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "simpleMotorFeedforwardMeters", "type": "wpimath.controller.SimpleMotorFeedforwardMeters"}, {"name": "currentVelocity", "type": "wpimath.units.meters_per_second"}, {"name": "nextVelocity", "type": "wpimath.units.meters_per_second"}], "tooltip": "Calculates the feedforward from the gains and setpoints assuming discrete\ncontrol.\n\nNote this method is inaccurate when the velocity crosses 0.\n\n:param currentVelocity: The current velocity setpoint.\n:param nextVelocity: The next velocity setpoint.\n\n:returns: The computed feedforward, in volts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardMeters", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardMeters"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "simpleMotorFeedforwardMeters", "type": "wpimath.controller.SimpleMotorFeedforwardMeters"}], "tooltip": "Returns the period.\n\n:returns: The period.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardMeters", "FUNC": "getDt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardMeters"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volt_seconds_squared_per_meter", "args": [{"name": "simpleMotorFeedforwardMeters", "type": "wpimath.controller.SimpleMotorFeedforwardMeters"}], "tooltip": "Returns the acceleration gain.\n\n:returns: The acceleration gain.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardMeters", "FUNC": "getKa"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardMeters"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "simpleMotorFeedforwardMeters", "type": "wpimath.controller.SimpleMotorFeedforwardMeters"}], "tooltip": "Returns the static gain.\n\n:returns: The static gain.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardMeters", "FUNC": "getKs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardMeters"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volt_seconds_per_meter", "args": [{"name": "simpleMotorFeedforwardMeters", "type": "wpimath.controller.SimpleMotorFeedforwardMeters"}], "tooltip": "Returns the velocity gain.\n\n:returns: The velocity gain.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardMeters", "FUNC": "getKv"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardMeters"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second_squared", "args": [{"name": "simpleMotorFeedforwardMeters", "type": "wpimath.controller.SimpleMotorFeedforwardMeters"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "velocity", "type": "wpimath.units.meters_per_second"}], "tooltip": "Calculates the maximum achievable acceleration given a maximum voltage\nsupply and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param velocity: The velocity of the motor.\n\n:returns: The maximum possible acceleration at the given velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardMeters", "FUNC": "maxAchievableAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardMeters"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second", "args": [{"name": "simpleMotorFeedforwardMeters", "type": "wpimath.controller.SimpleMotorFeedforwardMeters"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "acceleration", "type": "wpimath.units.meters_per_second_squared"}], "tooltip": "Calculates the maximum achievable velocity given a maximum voltage supply\nand an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param acceleration: The acceleration of the motor.\n\n:returns: The maximum possible velocity at the given acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardMeters", "FUNC": "maxAchievableVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardMeters"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second_squared", "args": [{"name": "simpleMotorFeedforwardMeters", "type": "wpimath.controller.SimpleMotorFeedforwardMeters"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "velocity", "type": "wpimath.units.meters_per_second"}], "tooltip": "Calculates the minimum achievable acceleration given a maximum voltage\nsupply and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param velocity: The velocity of the motor.\n\n:returns: The minimum possible acceleration at the given velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardMeters", "FUNC": "minAchievableAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardMeters"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.meters_per_second", "args": [{"name": "simpleMotorFeedforwardMeters", "type": "wpimath.controller.SimpleMotorFeedforwardMeters"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "acceleration", "type": "wpimath.units.meters_per_second_squared"}], "tooltip": "Calculates the minimum achievable velocity given a maximum voltage supply\nand an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param acceleration: The acceleration of the motor.\n\n:returns: The minimum possible velocity at the given acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardMeters", "FUNC": "minAchievableVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardMeters"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SimpleMotorFeedforwardMeters", - contents: contents, - className: "wpimath.controller.SimpleMotorFeedforwardMeters", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.controller.SimpleMotorFeedforwardRadians.ts b/src/blocks/generated/class_wpimath.controller.SimpleMotorFeedforwardRadians.ts deleted file mode 100644 index 9d1088e3..00000000 --- a/src/blocks/generated/class_wpimath.controller.SimpleMotorFeedforwardRadians.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.controller.SimpleMotorFeedforwardRadians - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 11 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardRadians"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.controller.SimpleMotorFeedforwardRadians", "args": [{"name": "kS", "type": "wpimath.units.volts"}, {"name": "kV", "type": "wpimath.units.volt_seconds_per_radian"}, {"name": "kA", "type": "wpimath.units.volt_seconds_squared_per_radian"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Creates a new SimpleMotorFeedforward with the specified gains.\n\n:param kS: The static gain, in volts.\n:param kV: The velocity gain, in volt seconds per distance.\n:param kA: The acceleration gain, in volt seconds\u00b2 per distance.\n:param dt: The period in seconds.\n @throws IllegalArgumentException for kv < zero.\n @throws IllegalArgumentException for ka < zero.\n @throws IllegalArgumentException for period ≤ zero.", "importModule": "wpimath.controller"}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardRadians"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "simpleMotorFeedforwardRadians", "type": "wpimath.controller.SimpleMotorFeedforwardRadians"}, {"name": "velocity", "type": "wpimath.units.radians_per_second"}], "tooltip": "Calculates the feedforward from the gains and velocity setpoint assuming\ndiscrete control. Use this method when the velocity setpoint does not\nchange.\n\n:param velocity: The velocity setpoint.\n\n:returns: The computed feedforward, in volts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardRadians", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "simpleMotorFeedforwardRadians", "type": "wpimath.controller.SimpleMotorFeedforwardRadians"}, {"name": "currentVelocity", "type": "wpimath.units.radians_per_second"}, {"name": "nextVelocity", "type": "wpimath.units.radians_per_second"}], "tooltip": "Calculates the feedforward from the gains and setpoints assuming discrete\ncontrol.\n\nNote this method is inaccurate when the velocity crosses 0.\n\n:param currentVelocity: The current velocity setpoint.\n:param nextVelocity: The next velocity setpoint.\n\n:returns: The computed feedforward, in volts.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardRadians", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.seconds", "args": [{"name": "simpleMotorFeedforwardRadians", "type": "wpimath.controller.SimpleMotorFeedforwardRadians"}], "tooltip": "Returns the period.\n\n:returns: The period.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardRadians", "FUNC": "getDt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volt_seconds_squared_per_radian", "args": [{"name": "simpleMotorFeedforwardRadians", "type": "wpimath.controller.SimpleMotorFeedforwardRadians"}], "tooltip": "Returns the acceleration gain.\n\n:returns: The acceleration gain.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardRadians", "FUNC": "getKa"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volts", "args": [{"name": "simpleMotorFeedforwardRadians", "type": "wpimath.controller.SimpleMotorFeedforwardRadians"}], "tooltip": "Returns the static gain.\n\n:returns: The static gain.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardRadians", "FUNC": "getKs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.volt_seconds_per_radian", "args": [{"name": "simpleMotorFeedforwardRadians", "type": "wpimath.controller.SimpleMotorFeedforwardRadians"}], "tooltip": "Returns the velocity gain.\n\n:returns: The velocity gain.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardRadians", "FUNC": "getKv"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians_per_second_squared", "args": [{"name": "simpleMotorFeedforwardRadians", "type": "wpimath.controller.SimpleMotorFeedforwardRadians"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "velocity", "type": "wpimath.units.radians_per_second"}], "tooltip": "Calculates the maximum achievable acceleration given a maximum voltage\nsupply and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param velocity: The velocity of the motor.\n\n:returns: The maximum possible acceleration at the given velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardRadians", "FUNC": "maxAchievableAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians_per_second", "args": [{"name": "simpleMotorFeedforwardRadians", "type": "wpimath.controller.SimpleMotorFeedforwardRadians"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "acceleration", "type": "wpimath.units.radians_per_second_squared"}], "tooltip": "Calculates the maximum achievable velocity given a maximum voltage supply\nand an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param acceleration: The acceleration of the motor.\n\n:returns: The maximum possible velocity at the given acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardRadians", "FUNC": "maxAchievableVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians_per_second_squared", "args": [{"name": "simpleMotorFeedforwardRadians", "type": "wpimath.controller.SimpleMotorFeedforwardRadians"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "velocity", "type": "wpimath.units.radians_per_second"}], "tooltip": "Calculates the minimum achievable acceleration given a maximum voltage\nsupply and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param velocity: The velocity of the motor.\n\n:returns: The minimum possible acceleration at the given velocity.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardRadians", "FUNC": "minAchievableAcceleration"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardRadians"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.units.radians_per_second", "args": [{"name": "simpleMotorFeedforwardRadians", "type": "wpimath.controller.SimpleMotorFeedforwardRadians"}, {"name": "maxVoltage", "type": "wpimath.units.volts"}, {"name": "acceleration", "type": "wpimath.units.radians_per_second_squared"}], "tooltip": "Calculates the minimum achievable velocity given a maximum voltage supply\nand an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param acceleration: The acceleration of the motor.\n\n:returns: The minimum possible velocity at the given acceleration.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.controller.SimpleMotorFeedforwardRadians", "FUNC": "minAchievableVelocity"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySimpleMotorFeedforwardRadians"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SimpleMotorFeedforwardRadians", - contents: contents, - className: "wpimath.controller.SimpleMotorFeedforwardRadians", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.DifferentialDrivePoseEstimator.ts b/src/blocks/generated/class_wpimath.estimator.DifferentialDrivePoseEstimator.ts deleted file mode 100644 index 2ba74efb..00000000 --- a/src/blocks/generated/class_wpimath.estimator.DifferentialDrivePoseEstimator.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.DifferentialDrivePoseEstimator - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.DifferentialDrivePoseEstimator", "args": [{"name": "kinematics", "type": "wpimath.kinematics.DifferentialDriveKinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "leftDistance", "type": "wpimath.units.meters"}, {"name": "rightDistance", "type": "wpimath.units.meters"}, {"name": "initialPose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Constructs a DifferentialDrivePoseEstimator with default standard\ndeviations for the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.02 meters for x, 0.02 meters for y, and 0.01 radians for heading.\nThe default standard deviations of the vision measurements are\n0.1 meters for x, 0.1 meters for y, and 0.1 radians for heading.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The gyro angle of the robot.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n:param initialPose: The estimated initial pose.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveKinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.DifferentialDrivePoseEstimator", "args": [{"name": "kinematics", "type": "wpimath.kinematics.DifferentialDriveKinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "leftDistance", "type": "wpimath.units.meters"}, {"name": "rightDistance", "type": "wpimath.units.meters"}, {"name": "initialPose", "type": "wpimath.geometry.Pose2d"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Constructs a DifferentialDrivePoseEstimator.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The gyro angle of the robot.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n:param initialPose: The estimated initial pose.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveKinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG6": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator", "type": "wpimath.estimator.DifferentialDrivePoseEstimator"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "leftDistance", "type": "wpimath.units.meters"}, {"name": "rightDistance", "type": "wpimath.units.meters"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's position on the field.\n\n:param gyroAngle: The current gyro angle.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "translation", "type": "wpimath.geometry.Translation2d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose2d]", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "differentialDrivePoseEstimator", "type": "wpimath.estimator.DifferentialDrivePoseEstimator"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "leftDistance", "type": "wpimath.units.meters"}, {"name": "rightDistance", "type": "wpimath.units.meters"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n\n:returns: The estimated pose of the robot.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "differentialDrivePoseEstimator", "type": "wpimath.estimator.DifferentialDrivePoseEstimator"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "leftDistance", "type": "wpimath.units.meters"}, {"name": "rightDistance", "type": "wpimath.units.meters"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n\n:returns: The estimated pose of the robot.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "DifferentialDrivePoseEstimator", - contents: contents, - className: "wpimath.estimator.DifferentialDrivePoseEstimator", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.DifferentialDrivePoseEstimator3d.ts b/src/blocks/generated/class_wpimath.estimator.DifferentialDrivePoseEstimator3d.ts deleted file mode 100644 index 7d982a4a..00000000 --- a/src/blocks/generated/class_wpimath.estimator.DifferentialDrivePoseEstimator3d.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.DifferentialDrivePoseEstimator3d - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.DifferentialDrivePoseEstimator3d", "args": [{"name": "kinematics", "type": "wpimath.kinematics.DifferentialDriveKinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "leftDistance", "type": "wpimath.units.meters"}, {"name": "rightDistance", "type": "wpimath.units.meters"}, {"name": "initialPose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Constructs a DifferentialDrivePoseEstimator3d with default standard\ndeviations for the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.02 meters for x, 0.02 meters for y, 0.02 meters for z, and 0.01 radians\nfor angle. The default standard deviations of the vision measurements are\n0.1 meters for x, 0.1 meters for y, 0.1 meters for z, and 0.1 radians for\nangle.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The gyro angle of the robot.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n:param initialPose: The estimated initial pose.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3d"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveKinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.DifferentialDrivePoseEstimator3d", "args": [{"name": "kinematics", "type": "wpimath.kinematics.DifferentialDriveKinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "leftDistance", "type": "wpimath.units.meters"}, {"name": "rightDistance", "type": "wpimath.units.meters"}, {"name": "initialPose", "type": "wpimath.geometry.Pose3d"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Constructs a DifferentialDrivePoseEstimator3d.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The gyro angle of the robot.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n:param initialPose: The estimated initial pose.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, z position in meters, and angle in\n radians). Increase these numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, z position in\n meters, and angle in radians). Increase these numbers to trust the vision\n pose measurement less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3d"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveKinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG6": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator3d", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3d"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "leftDistance", "type": "wpimath.units.meters"}, {"name": "rightDistance", "type": "wpimath.units.meters"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's position on the field.\n\n:param gyroAngle: The current gyro angle.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3d", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3d"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation3d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "translation", "type": "wpimath.geometry.Translation3d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose3d]", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "differentialDrivePoseEstimator3d", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3d"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "leftDistance", "type": "wpimath.units.meters"}, {"name": "rightDistance", "type": "wpimath.units.meters"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n\n:returns: The estimated pose of the robot.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3d", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3d"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "differentialDrivePoseEstimator3d", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3d"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "leftDistance", "type": "wpimath.units.meters"}, {"name": "rightDistance", "type": "wpimath.units.meters"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n\n:returns: The estimated pose of the robot.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3d", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "DifferentialDrivePoseEstimator3d", - contents: contents, - className: "wpimath.estimator.DifferentialDrivePoseEstimator3d", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.DifferentialDrivePoseEstimator3dBase.ts b/src/blocks/generated/class_wpimath.estimator.DifferentialDrivePoseEstimator3dBase.ts deleted file mode 100644 index dfe39396..00000000 --- a/src/blocks/generated/class_wpimath.estimator.DifferentialDrivePoseEstimator3dBase.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.DifferentialDrivePoseEstimator3dBase - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "args": [{"name": "kinematics", "type": "wpimath.kinematics.DifferentialDriveKinematicsBase"}, {"name": "odometry", "type": "wpimath.kinematics.DifferentialDriveOdometry3dBase"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Constructs a PoseEstimator3d.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and z position\n in meters, and angle in radians). Increase these numbers to trust the\n vision pose measurement less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveKinematicsBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveOdometry3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.DifferentialDriveWheelPositions"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveWheelPositions"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation3d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "translation", "type": "wpimath.geometry.Translation3d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose3d]", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.DifferentialDriveWheelPositions"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveWheelPositions"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "differentialDrivePoseEstimator3dBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.DifferentialDriveWheelPositions"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimator3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveWheelPositions"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "DifferentialDrivePoseEstimator3dBase", - contents: contents, - className: "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.DifferentialDrivePoseEstimatorBase.ts b/src/blocks/generated/class_wpimath.estimator.DifferentialDrivePoseEstimatorBase.ts deleted file mode 100644 index 131353f7..00000000 --- a/src/blocks/generated/class_wpimath.estimator.DifferentialDrivePoseEstimatorBase.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.DifferentialDrivePoseEstimatorBase - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "args": [{"name": "kinematics", "type": "wpimath.kinematics.DifferentialDriveKinematicsBase"}, {"name": "odometry", "type": "wpimath.kinematics.DifferentialDriveOdometryBase"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Constructs a PoseEstimator.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveKinematicsBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveOdometryBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.DifferentialDriveWheelPositions"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveWheelPositions"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "translation", "type": "wpimath.geometry.Translation2d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose2d]", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.DifferentialDriveWheelPositions"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveWheelPositions"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "differentialDrivePoseEstimatorBase", "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.DifferentialDriveWheelPositions"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDrivePoseEstimatorBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDifferentialDriveWheelPositions"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "DifferentialDrivePoseEstimatorBase", - contents: contents, - className: "wpimath.estimator.DifferentialDrivePoseEstimatorBase", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.ExtendedKalmanFilter_1_1_1.ts b/src/blocks/generated/class_wpimath.estimator.ExtendedKalmanFilter_1_1_1.ts deleted file mode 100644 index 2bd12d1c..00000000 --- a/src/blocks/generated/class_wpimath.estimator.ExtendedKalmanFilter_1_1_1.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.ExtendedKalmanFilter_1_1_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myExtendedKalmanFilter_1_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", "args": [{"name": "f", "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]"}, {"name": "h", "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]"}, {"name": "stateStdDevs", "type": "Tuple[float]"}, {"name": "measurementStdDevs", "type": "Tuple[float]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs an extended Kalman filter.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param f: A vector-valued function of x and u that returns\n the derivative of the state vector.\n:param h: A vector-valued function of x and u that returns\n the measurement vector.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param dt: Nominal discretization timestep.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_1_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myExtendedKalmanFilter_1_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", "args": [{"name": "f", "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]"}, {"name": "h", "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]"}, {"name": "stateStdDevs", "type": "Tuple[float]"}, {"name": "measurementStdDevs", "type": "Tuple[float]"}, {"name": "residualFuncY", "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]"}, {"name": "addFuncX", "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs an extended Kalman filter.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param f: A vector-valued function of x and u that returns\n the derivative of the state vector.\n:param h: A vector-valued function of x and u that returns\n the measurement vector.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param residualFuncY: A function that computes the residual of two\n measurement vectors (i.e. it subtracts them.)\n:param addFuncX: A function that adds two state vectors.\n:param dt: Nominal discretization timestep.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_1_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "extendedKalmanFilter_1_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1"}], "tooltip": "Returns the error covariance matrix P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", "FUNC": "P"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "extendedKalmanFilter_1_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1"}, {"name": "i", "type": "int"}, {"name": "j", "type": "int"}], "tooltip": "Returns an element of the error covariance matrix P.\n\n:param i: Row of P.\n:param j: Column of P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", "FUNC": "P"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_1_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "y", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", "FUNC": "correct"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_1_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "y", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\nThis is useful for when the measurement noise covariances vary.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.\n:param R: Continuous measurement noise covariance matrix.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", "FUNC": "correct"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_1_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Project the model into the future with a new control input u.\n\n:param u: New control input from controller.\n:param dt: Timestep for prediction.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", "FUNC": "predict"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_1_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1"}], "tooltip": "Resets the observer.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_1_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1"}, {"name": "P", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Set the current error covariance matrix P.\n\n:param P: The error covariance matrix P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", "FUNC": "setP"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_1_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1"}, {"name": "xHat", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Set initial state estimate x-hat.\n\n:param xHat: The state estimate x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", "FUNC": "setXhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_1_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1"}, {"name": "i", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Set an element of the initial state estimate x-hat.\n\n:param i: Row of x-hat.\n:param value: Value for element of x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", "FUNC": "setXhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "extendedKalmanFilter_1_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1"}], "tooltip": "Returns the state estimate x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", "FUNC": "xhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "extendedKalmanFilter_1_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the state estimate x-hat.\n\n:param i: Row of x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", "FUNC": "xhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_1_1_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ExtendedKalmanFilter_1_1_1", - contents: contents, - className: "wpimath.estimator.ExtendedKalmanFilter_1_1_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.ExtendedKalmanFilter_2_1_1.ts b/src/blocks/generated/class_wpimath.estimator.ExtendedKalmanFilter_2_1_1.ts deleted file mode 100644 index ff91e432..00000000 --- a/src/blocks/generated/class_wpimath.estimator.ExtendedKalmanFilter_2_1_1.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.ExtendedKalmanFilter_2_1_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", "args": [{"name": "f", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[2, 1]]]"}, {"name": "h", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]"}, {"name": "stateStdDevs", "type": "Tuple[float, float]"}, {"name": "measurementStdDevs", "type": "Tuple[float]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs an extended Kalman filter.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param f: A vector-valued function of x and u that returns\n the derivative of the state vector.\n:param h: A vector-valued function of x and u that returns\n the measurement vector.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param dt: Nominal discretization timestep.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", "args": [{"name": "f", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[2, 1]]]"}, {"name": "h", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]"}, {"name": "stateStdDevs", "type": "Tuple[float, float]"}, {"name": "measurementStdDevs", "type": "Tuple[float]"}, {"name": "residualFuncY", "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]"}, {"name": "addFuncX", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs an extended Kalman filter.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param f: A vector-valued function of x and u that returns\n the derivative of the state vector.\n:param h: A vector-valued function of x and u that returns\n the measurement vector.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param residualFuncY: A function that computes the residual of two\n measurement vectors (i.e. it subtracts them.)\n:param addFuncX: A function that adds two state vectors.\n:param dt: Nominal discretization timestep.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 2]]", "args": [{"name": "extendedKalmanFilter_2_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1"}], "tooltip": "Returns the error covariance matrix P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", "FUNC": "P"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "extendedKalmanFilter_2_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1"}, {"name": "i", "type": "int"}, {"name": "j", "type": "int"}], "tooltip": "Returns an element of the error covariance matrix P.\n\n:param i: Row of P.\n:param j: Column of P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", "FUNC": "P"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_2_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "y", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", "FUNC": "correct"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_2_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "y", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\nThis is useful for when the measurement noise covariances vary.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.\n:param R: Continuous measurement noise covariance matrix.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", "FUNC": "correct"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_2_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Project the model into the future with a new control input u.\n\n:param u: New control input from controller.\n:param dt: Timestep for prediction.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", "FUNC": "predict"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_2_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1"}], "tooltip": "Resets the observer.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_2_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1"}, {"name": "P", "type": "numpy.ndarray[numpy.float64[2, 2]]"}], "tooltip": "Set the current error covariance matrix P.\n\n:param P: The error covariance matrix P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", "FUNC": "setP"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_2_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1"}, {"name": "xHat", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Set initial state estimate x-hat.\n\n:param xHat: The state estimate x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", "FUNC": "setXhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_2_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1"}, {"name": "i", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Set an element of the initial state estimate x-hat.\n\n:param i: Row of x-hat.\n:param value: Value for element of x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", "FUNC": "setXhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "extendedKalmanFilter_2_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1"}], "tooltip": "Returns the state estimate x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", "FUNC": "xhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "extendedKalmanFilter_2_1_1", "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the state estimate x-hat.\n\n:param i: Row of x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", "FUNC": "xhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_1_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ExtendedKalmanFilter_2_1_1", - contents: contents, - className: "wpimath.estimator.ExtendedKalmanFilter_2_1_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.ExtendedKalmanFilter_2_2_2.ts b/src/blocks/generated/class_wpimath.estimator.ExtendedKalmanFilter_2_2_2.ts deleted file mode 100644 index 1953e706..00000000 --- a/src/blocks/generated/class_wpimath.estimator.ExtendedKalmanFilter_2_2_2.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.ExtendedKalmanFilter_2_2_2 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", "args": [{"name": "f", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]"}, {"name": "h", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]"}, {"name": "stateStdDevs", "type": "Tuple[float, float]"}, {"name": "measurementStdDevs", "type": "Tuple[float, float]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs an extended Kalman filter.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param f: A vector-valued function of x and u that returns\n the derivative of the state vector.\n:param h: A vector-valued function of x and u that returns\n the measurement vector.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param dt: Nominal discretization timestep.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_2_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", "args": [{"name": "f", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]"}, {"name": "h", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]"}, {"name": "stateStdDevs", "type": "Tuple[float, float]"}, {"name": "measurementStdDevs", "type": "Tuple[float, float]"}, {"name": "residualFuncY", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]"}, {"name": "addFuncX", "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs an extended Kalman filter.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param f: A vector-valued function of x and u that returns\n the derivative of the state vector.\n:param h: A vector-valued function of x and u that returns\n the measurement vector.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param residualFuncY: A function that computes the residual of two\n measurement vectors (i.e. it subtracts them.)\n:param addFuncX: A function that adds two state vectors.\n:param dt: Nominal discretization timestep.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_2_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myCallable"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 2]]", "args": [{"name": "extendedKalmanFilter_2_2_2", "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2"}], "tooltip": "Returns the error covariance matrix P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", "FUNC": "P"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "extendedKalmanFilter_2_2_2", "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2"}, {"name": "i", "type": "int"}, {"name": "j", "type": "int"}], "tooltip": "Returns an element of the error covariance matrix P.\n\n:param i: Row of P.\n:param j: Column of P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", "FUNC": "P"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_2_2_2", "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "y", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", "FUNC": "correct"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_2_2_2", "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "y", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[2, 2]]"}], "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\nThis is useful for when the measurement noise covariances vary.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.\n:param R: Continuous measurement noise covariance matrix.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", "FUNC": "correct"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_2_2_2", "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Project the model into the future with a new control input u.\n\n:param u: New control input from controller.\n:param dt: Timestep for prediction.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", "FUNC": "predict"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_2_2_2", "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2"}], "tooltip": "Resets the observer.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_2_2_2", "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2"}, {"name": "P", "type": "numpy.ndarray[numpy.float64[2, 2]]"}], "tooltip": "Set the current error covariance matrix P.\n\n:param P: The error covariance matrix P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", "FUNC": "setP"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_2_2_2", "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2"}, {"name": "xHat", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Set initial state estimate x-hat.\n\n:param xHat: The state estimate x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", "FUNC": "setXhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "extendedKalmanFilter_2_2_2", "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2"}, {"name": "i", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Set an element of the initial state estimate x-hat.\n\n:param i: Row of x-hat.\n:param value: Value for element of x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", "FUNC": "setXhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "extendedKalmanFilter_2_2_2", "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2"}], "tooltip": "Returns the state estimate x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", "FUNC": "xhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "extendedKalmanFilter_2_2_2", "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the state estimate x-hat.\n\n:param i: Row of x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", "FUNC": "xhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myExtendedKalmanFilter_2_2_2"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "ExtendedKalmanFilter_2_2_2", - contents: contents, - className: "wpimath.estimator.ExtendedKalmanFilter_2_2_2", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.KalmanFilter_1_1_1.ts b/src/blocks/generated/class_wpimath.estimator.KalmanFilter_1_1_1.ts deleted file mode 100644 index 372f36cb..00000000 --- a/src/blocks/generated/class_wpimath.estimator.KalmanFilter_1_1_1.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.KalmanFilter_1_1_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myKalmanFilter_1_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.KalmanFilter_1_1_1", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_1_1_1"}, {"name": "stateStdDevs", "type": "Tuple[float]"}, {"name": "measurementStdDevs", "type": "Tuple[float]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a Kalman filter with the given plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param plant: The plant used for the prediction step.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param dt: Nominal discretization timestep.\n @throws std::invalid_argument If the system is undetectable.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_1_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_1_1_1"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "kalmanFilter_1_1_1", "type": "wpimath.estimator.KalmanFilter_1_1_1"}], "tooltip": "Returns the error covariance matrix P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_1_1_1", "FUNC": "P"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "kalmanFilter_1_1_1", "type": "wpimath.estimator.KalmanFilter_1_1_1"}, {"name": "i", "type": "int"}, {"name": "j", "type": "int"}], "tooltip": "Returns an element of the error covariance matrix P.\n\n:param i: Row of P.\n:param j: Column of P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_1_1_1", "FUNC": "P"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_1_1_1", "type": "wpimath.estimator.KalmanFilter_1_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "y", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_1_1_1", "FUNC": "correct"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_1_1_1", "type": "wpimath.estimator.KalmanFilter_1_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "y", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\nThis is useful for when the measurement noise covariances vary.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.\n:param R: Continuous measurement noise covariance matrix.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_1_1_1", "FUNC": "correct"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_1_1_1", "type": "wpimath.estimator.KalmanFilter_1_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Project the model into the future with a new control input u.\n\n:param u: New control input from controller.\n:param dt: Timestep for prediction.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_1_1_1", "FUNC": "predict"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_1_1_1", "type": "wpimath.estimator.KalmanFilter_1_1_1"}], "tooltip": "Resets the observer.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_1_1_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_1_1_1", "type": "wpimath.estimator.KalmanFilter_1_1_1"}, {"name": "P", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Set the current error covariance matrix P.\n\n:param P: The error covariance matrix P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_1_1_1", "FUNC": "setP"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_1_1_1", "type": "wpimath.estimator.KalmanFilter_1_1_1"}, {"name": "xHat", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Set initial state estimate x-hat.\n\n:param xHat: The state estimate x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_1_1_1", "FUNC": "setXhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_1_1_1", "type": "wpimath.estimator.KalmanFilter_1_1_1"}, {"name": "i", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Set an element of the initial state estimate x-hat.\n\n:param i: Row of x-hat.\n:param value: Value for element of x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_1_1_1", "FUNC": "setXhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[1, 1]]", "args": [{"name": "kalmanFilter_1_1_1", "type": "wpimath.estimator.KalmanFilter_1_1_1"}], "tooltip": "Returns the state estimate x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_1_1_1", "FUNC": "xhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_1_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "kalmanFilter_1_1_1", "type": "wpimath.estimator.KalmanFilter_1_1_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the state estimate x-hat.\n\n:param i: Row of x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_1_1_1", "FUNC": "xhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_1_1_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "KalmanFilter_1_1_1", - contents: contents, - className: "wpimath.estimator.KalmanFilter_1_1_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.KalmanFilter_2_1_1.ts b/src/blocks/generated/class_wpimath.estimator.KalmanFilter_2_1_1.ts deleted file mode 100644 index ad6ba626..00000000 --- a/src/blocks/generated/class_wpimath.estimator.KalmanFilter_2_1_1.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.KalmanFilter_2_1_1 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myKalmanFilter_2_1_1"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.KalmanFilter_2_1_1", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_2_1_1"}, {"name": "stateStdDevs", "type": "Tuple[float, float]"}, {"name": "measurementStdDevs", "type": "Tuple[float]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a Kalman filter with the given plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param plant: The plant used for the prediction step.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param dt: Nominal discretization timestep.\n @throws std::invalid_argument If the system is undetectable.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_1_1"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_1_1"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 2]]", "args": [{"name": "kalmanFilter_2_1_1", "type": "wpimath.estimator.KalmanFilter_2_1_1"}], "tooltip": "Returns the error covariance matrix P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_1_1", "FUNC": "P"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "kalmanFilter_2_1_1", "type": "wpimath.estimator.KalmanFilter_2_1_1"}, {"name": "i", "type": "int"}, {"name": "j", "type": "int"}], "tooltip": "Returns an element of the error covariance matrix P.\n\n:param i: Row of P.\n:param j: Column of P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_1_1", "FUNC": "P"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_2_1_1", "type": "wpimath.estimator.KalmanFilter_2_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "y", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_1_1", "FUNC": "correct"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_2_1_1", "type": "wpimath.estimator.KalmanFilter_2_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "y", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[1, 1]]"}], "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\nThis is useful for when the measurement noise covariances vary.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.\n:param R: Continuous measurement noise covariance matrix.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_1_1", "FUNC": "correct"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_2_1_1", "type": "wpimath.estimator.KalmanFilter_2_1_1"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[1, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Project the model into the future with a new control input u.\n\n:param u: New control input from controller.\n:param dt: Timestep for prediction.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_1_1", "FUNC": "predict"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_2_1_1", "type": "wpimath.estimator.KalmanFilter_2_1_1"}], "tooltip": "Resets the observer.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_1_1", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_2_1_1", "type": "wpimath.estimator.KalmanFilter_2_1_1"}, {"name": "P", "type": "numpy.ndarray[numpy.float64[2, 2]]"}], "tooltip": "Set the current error covariance matrix P.\n\n:param P: The error covariance matrix P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_1_1", "FUNC": "setP"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_2_1_1", "type": "wpimath.estimator.KalmanFilter_2_1_1"}, {"name": "xHat", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Set initial state estimate x-hat.\n\n:param xHat: The state estimate x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_1_1", "FUNC": "setXhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_2_1_1", "type": "wpimath.estimator.KalmanFilter_2_1_1"}, {"name": "i", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Set an element of the initial state estimate x-hat.\n\n:param i: Row of x-hat.\n:param value: Value for element of x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_1_1", "FUNC": "setXhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "kalmanFilter_2_1_1", "type": "wpimath.estimator.KalmanFilter_2_1_1"}], "tooltip": "Returns the state estimate x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_1_1", "FUNC": "xhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_1_1"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "kalmanFilter_2_1_1", "type": "wpimath.estimator.KalmanFilter_2_1_1"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the state estimate x-hat.\n\n:param i: Row of x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_1_1", "FUNC": "xhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_1_1"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "KalmanFilter_2_1_1", - contents: contents, - className: "wpimath.estimator.KalmanFilter_2_1_1", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.KalmanFilter_2_2_2.ts b/src/blocks/generated/class_wpimath.estimator.KalmanFilter_2_2_2.ts deleted file mode 100644 index f5f0309f..00000000 --- a/src/blocks/generated/class_wpimath.estimator.KalmanFilter_2_2_2.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.KalmanFilter_2_2_2 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myKalmanFilter_2_2_2"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.KalmanFilter_2_2_2", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_2_2_2"}, {"name": "stateStdDevs", "type": "Tuple[float, float]"}, {"name": "measurementStdDevs", "type": "Tuple[float, float]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a Kalman filter with the given plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param plant: The plant used for the prediction step.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param dt: Nominal discretization timestep.\n @throws std::invalid_argument If the system is undetectable.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_2_2"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_2_2_2"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 2]]", "args": [{"name": "kalmanFilter_2_2_2", "type": "wpimath.estimator.KalmanFilter_2_2_2"}], "tooltip": "Returns the error covariance matrix P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_2_2", "FUNC": "P"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "kalmanFilter_2_2_2", "type": "wpimath.estimator.KalmanFilter_2_2_2"}, {"name": "i", "type": "int"}, {"name": "j", "type": "int"}], "tooltip": "Returns an element of the error covariance matrix P.\n\n:param i: Row of P.\n:param j: Column of P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_2_2", "FUNC": "P"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_2_2_2", "type": "wpimath.estimator.KalmanFilter_2_2_2"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "y", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_2_2", "FUNC": "correct"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_2_2_2", "type": "wpimath.estimator.KalmanFilter_2_2_2"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "y", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[2, 2]]"}], "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\nThis is useful for when the measurement noise covariances vary.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.\n:param R: Continuous measurement noise covariance matrix.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_2_2", "FUNC": "correct"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_2_2_2", "type": "wpimath.estimator.KalmanFilter_2_2_2"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Project the model into the future with a new control input u.\n\n:param u: New control input from controller.\n:param dt: Timestep for prediction.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_2_2", "FUNC": "predict"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_2_2_2", "type": "wpimath.estimator.KalmanFilter_2_2_2"}], "tooltip": "Resets the observer.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_2_2", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_2_2_2", "type": "wpimath.estimator.KalmanFilter_2_2_2"}, {"name": "P", "type": "numpy.ndarray[numpy.float64[2, 2]]"}], "tooltip": "Set the current error covariance matrix P.\n\n:param P: The error covariance matrix P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_2_2", "FUNC": "setP"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_2_2_2", "type": "wpimath.estimator.KalmanFilter_2_2_2"}, {"name": "xHat", "type": "numpy.ndarray[numpy.float64[2, 1]]"}], "tooltip": "Set initial state estimate x-hat.\n\n:param xHat: The state estimate x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_2_2", "FUNC": "setXhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_2_2_2", "type": "wpimath.estimator.KalmanFilter_2_2_2"}, {"name": "i", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Set an element of the initial state estimate x-hat.\n\n:param i: Row of x-hat.\n:param value: Value for element of x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_2_2", "FUNC": "setXhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[2, 1]]", "args": [{"name": "kalmanFilter_2_2_2", "type": "wpimath.estimator.KalmanFilter_2_2_2"}], "tooltip": "Returns the state estimate x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_2_2", "FUNC": "xhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_2_2"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "kalmanFilter_2_2_2", "type": "wpimath.estimator.KalmanFilter_2_2_2"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the state estimate x-hat.\n\n:param i: Row of x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_2_2_2", "FUNC": "xhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_2_2_2"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "KalmanFilter_2_2_2", - contents: contents, - className: "wpimath.estimator.KalmanFilter_2_2_2", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.KalmanFilter_3_2_3.ts b/src/blocks/generated/class_wpimath.estimator.KalmanFilter_3_2_3.ts deleted file mode 100644 index abb9d9a5..00000000 --- a/src/blocks/generated/class_wpimath.estimator.KalmanFilter_3_2_3.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.KalmanFilter_3_2_3 - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myKalmanFilter_3_2_3"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.KalmanFilter_3_2_3", "args": [{"name": "plant", "type": "wpimath.system.LinearSystem_3_2_3"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float]"}, {"name": "measurementStdDevs", "type": "Tuple[float, float, float]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Constructs a Kalman filter with the given plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param plant: The plant used for the prediction step.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param dt: Nominal discretization timestep.\n @throws std::invalid_argument If the system is undetectable.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_3_2_3"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearSystem_3_2_3"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[3, 3]]", "args": [{"name": "kalmanFilter_3_2_3", "type": "wpimath.estimator.KalmanFilter_3_2_3"}], "tooltip": "Returns the error covariance matrix P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_3_2_3", "FUNC": "P"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_3_2_3"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "kalmanFilter_3_2_3", "type": "wpimath.estimator.KalmanFilter_3_2_3"}, {"name": "i", "type": "int"}, {"name": "j", "type": "int"}], "tooltip": "Returns an element of the error covariance matrix P.\n\n:param i: Row of P.\n:param j: Column of P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_3_2_3", "FUNC": "P"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_3_2_3"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_3_2_3", "type": "wpimath.estimator.KalmanFilter_3_2_3"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "y", "type": "numpy.ndarray[numpy.float64[3, 1]]"}], "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_3_2_3", "FUNC": "correct"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_3_2_3"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_3_2_3", "type": "wpimath.estimator.KalmanFilter_3_2_3"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "y", "type": "numpy.ndarray[numpy.float64[3, 1]]"}, {"name": "R", "type": "numpy.ndarray[numpy.float64[3, 3]]"}], "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\nThis is useful for when the measurement noise covariances vary.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.\n:param R: Continuous measurement noise covariance matrix.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_3_2_3", "FUNC": "correct"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_3_2_3"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_3_2_3", "type": "wpimath.estimator.KalmanFilter_3_2_3"}, {"name": "u", "type": "numpy.ndarray[numpy.float64[2, 1]]"}, {"name": "dt", "type": "wpimath.units.seconds"}], "tooltip": "Project the model into the future with a new control input u.\n\n:param u: New control input from controller.\n:param dt: Timestep for prediction.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_3_2_3", "FUNC": "predict"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_3_2_3"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_3_2_3", "type": "wpimath.estimator.KalmanFilter_3_2_3"}], "tooltip": "Resets the observer.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_3_2_3", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_3_2_3"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_3_2_3", "type": "wpimath.estimator.KalmanFilter_3_2_3"}, {"name": "P", "type": "numpy.ndarray[numpy.float64[3, 3]]"}], "tooltip": "Set the current error covariance matrix P.\n\n:param P: The error covariance matrix P.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_3_2_3", "FUNC": "setP"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_3_2_3"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_3_2_3", "type": "wpimath.estimator.KalmanFilter_3_2_3"}, {"name": "xHat", "type": "numpy.ndarray[numpy.float64[3, 1]]"}], "tooltip": "Set initial state estimate x-hat.\n\n:param xHat: The state estimate x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_3_2_3", "FUNC": "setXhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_3_2_3"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "kalmanFilter_3_2_3", "type": "wpimath.estimator.KalmanFilter_3_2_3"}, {"name": "i", "type": "int"}, {"name": "value", "type": "float"}], "tooltip": "Set an element of the initial state estimate x-hat.\n\n:param i: Row of x-hat.\n:param value: Value for element of x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_3_2_3", "FUNC": "setXhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_3_2_3"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "numpy.ndarray[numpy.float64[3, 1]]", "args": [{"name": "kalmanFilter_3_2_3", "type": "wpimath.estimator.KalmanFilter_3_2_3"}], "tooltip": "Returns the state estimate x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_3_2_3", "FUNC": "xhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_3_2_3"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "kalmanFilter_3_2_3", "type": "wpimath.estimator.KalmanFilter_3_2_3"}, {"name": "i", "type": "int"}], "tooltip": "Returns an element of the state estimate x-hat.\n\n:param i: Row of x-hat.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.KalmanFilter_3_2_3", "FUNC": "xhat"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myKalmanFilter_3_2_3"}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "KalmanFilter_3_2_3", - contents: contents, - className: "wpimath.estimator.KalmanFilter_3_2_3", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.MecanumDrivePoseEstimator.ts b/src/blocks/generated/class_wpimath.estimator.MecanumDrivePoseEstimator.ts deleted file mode 100644 index 047b6b44..00000000 --- a/src/blocks/generated/class_wpimath.estimator.MecanumDrivePoseEstimator.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.MecanumDrivePoseEstimator - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.MecanumDrivePoseEstimator", "args": [{"name": "kinematics", "type": "wpimath.kinematics.MecanumDriveKinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}, {"name": "initialPose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Constructs a MecanumDrivePoseEstimator with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, and 0.1 radians for heading.\nThe default standard deviations of the vision measurements are\n0.45 meters for x, 0.45 meters for y, and 0.45 radians for heading.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distance measured by each wheel.\n:param initialPose: The starting pose estimate.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveKinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.MecanumDrivePoseEstimator", "args": [{"name": "kinematics", "type": "wpimath.kinematics.MecanumDriveKinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}, {"name": "initialPose", "type": "wpimath.geometry.Pose2d"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Constructs a MecanumDrivePoseEstimator.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distance measured by each wheel.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveKinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "translation", "type": "wpimath.geometry.Translation2d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose2d]", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "MecanumDrivePoseEstimator", - contents: contents, - className: "wpimath.estimator.MecanumDrivePoseEstimator", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.MecanumDrivePoseEstimator3d.ts b/src/blocks/generated/class_wpimath.estimator.MecanumDrivePoseEstimator3d.ts deleted file mode 100644 index 32a61238..00000000 --- a/src/blocks/generated/class_wpimath.estimator.MecanumDrivePoseEstimator3d.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.MecanumDrivePoseEstimator3d - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.MecanumDrivePoseEstimator3d", "args": [{"name": "kinematics", "type": "wpimath.kinematics.MecanumDriveKinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}, {"name": "initialPose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Constructs a MecanumDrivePoseEstimator3d with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, 0.1 meters for z, and 0.1 radians for\nangle. The default standard deviations of the vision measurements are 0.45\nmeters for x, 0.45 meters for y, 0.45 meters for z, and 0.45 radians for\nangle.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distance measured by each wheel.\n:param initialPose: The starting pose estimate.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3d"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveKinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.MecanumDrivePoseEstimator3d", "args": [{"name": "kinematics", "type": "wpimath.kinematics.MecanumDriveKinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}, {"name": "initialPose", "type": "wpimath.geometry.Pose3d"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Constructs a MecanumDrivePoseEstimator3d.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distance measured by each wheel.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, z position in meters, and angle in\n radians). Increase these numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, z position in\n meters, and angle in radians). Increase these numbers to trust the vision\n pose measurement less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3d"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveKinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation3d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "translation", "type": "wpimath.geometry.Translation3d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose3d]", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "MecanumDrivePoseEstimator3d", - contents: contents, - className: "wpimath.estimator.MecanumDrivePoseEstimator3d", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.MecanumDrivePoseEstimator3dBase.ts b/src/blocks/generated/class_wpimath.estimator.MecanumDrivePoseEstimator3dBase.ts deleted file mode 100644 index 46c9f513..00000000 --- a/src/blocks/generated/class_wpimath.estimator.MecanumDrivePoseEstimator3dBase.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.MecanumDrivePoseEstimator3dBase - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "args": [{"name": "kinematics", "type": "wpimath.kinematics.MecanumDriveKinematicsBase"}, {"name": "odometry", "type": "wpimath.kinematics.MecanumDriveOdometry3dBase"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Constructs a PoseEstimator3d.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and z position\n in meters, and angle in radians). Increase these numbers to trust the\n vision pose measurement less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveKinematicsBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveOdometry3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation3d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "translation", "type": "wpimath.geometry.Translation3d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose3d]", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "mecanumDrivePoseEstimator3dBase", "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimator3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "MecanumDrivePoseEstimator3dBase", - contents: contents, - className: "wpimath.estimator.MecanumDrivePoseEstimator3dBase", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.MecanumDrivePoseEstimatorBase.ts b/src/blocks/generated/class_wpimath.estimator.MecanumDrivePoseEstimatorBase.ts deleted file mode 100644 index 6373f4c3..00000000 --- a/src/blocks/generated/class_wpimath.estimator.MecanumDrivePoseEstimatorBase.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.MecanumDrivePoseEstimatorBase - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "args": [{"name": "kinematics", "type": "wpimath.kinematics.MecanumDriveKinematicsBase"}, {"name": "odometry", "type": "wpimath.kinematics.MecanumDriveOdometryBase"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Constructs a PoseEstimator.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveKinematicsBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveOdometryBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "translation", "type": "wpimath.geometry.Translation2d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose2d]", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "mecanumDrivePoseEstimatorBase", "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "wpimath.kinematics.MecanumDriveWheelPositions"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.MecanumDrivePoseEstimatorBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDrivePoseEstimatorBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myMecanumDriveWheelPositions"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "MecanumDrivePoseEstimatorBase", - contents: contents, - className: "wpimath.estimator.MecanumDrivePoseEstimatorBase", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive2PoseEstimator.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive2PoseEstimator.ts deleted file mode 100644 index a1b1e11a..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive2PoseEstimator.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive2PoseEstimator - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive2PoseEstimator", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive2Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Constructs a SwerveDrivePoseEstimator with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, and 0.1 radians for heading.\nThe default standard deviations of the vision measurements are\n0.9 meters for x, 0.9 meters for y, and 0.9 radians for heading.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive2PoseEstimator", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive2Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose2d"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Constructs a SwerveDrivePoseEstimator.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "translation", "type": "wpimath.geometry.Translation2d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose2d]", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive2PoseEstimator", - contents: contents, - className: "wpimath.estimator.SwerveDrive2PoseEstimator", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive2PoseEstimator3d.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive2PoseEstimator3d.ts deleted file mode 100644 index ddb29be2..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive2PoseEstimator3d.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive2PoseEstimator3d - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive2PoseEstimator3d", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive2Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Constructs a SwerveDrivePoseEstimator3d with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, 0.1 meters for z, and 0.1 radians for\nangle. The default standard deviations of the vision measurements are 0.9\nmeters for x, 0.9 meters for y, 0.9 meters for z, and 0.9 radians for\nangle.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3d"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive2PoseEstimator3d", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive2Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose3d"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Constructs a SwerveDrivePoseEstimator3d.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3d"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation3d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "translation", "type": "wpimath.geometry.Translation3d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose3d]", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive2PoseEstimator3d", - contents: contents, - className: "wpimath.estimator.SwerveDrive2PoseEstimator3d", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive2PoseEstimator3dBase.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive2PoseEstimator3dBase.ts deleted file mode 100644 index 39005841..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive2PoseEstimator3dBase.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive2PoseEstimator3dBase - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive2KinematicsBase"}, {"name": "odometry", "type": "wpimath.kinematics.SwerveDrive2Odometry3dBase"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Constructs a PoseEstimator3d.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and z position\n in meters, and angle in radians). Increase these numbers to trust the\n vision pose measurement less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2KinematicsBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2Odometry3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation3d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "translation", "type": "wpimath.geometry.Translation3d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose3d]", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive2PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimator3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive2PoseEstimator3dBase", - contents: contents, - className: "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive2PoseEstimatorBase.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive2PoseEstimatorBase.ts deleted file mode 100644 index a9fefe28..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive2PoseEstimatorBase.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive2PoseEstimatorBase - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive2KinematicsBase"}, {"name": "odometry", "type": "wpimath.kinematics.SwerveDrive2OdometryBase"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Constructs a PoseEstimator.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2KinematicsBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2OdometryBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "translation", "type": "wpimath.geometry.Translation2d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose2d]", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive2PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive2PoseEstimatorBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive2PoseEstimatorBase", - contents: contents, - className: "wpimath.estimator.SwerveDrive2PoseEstimatorBase", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive3PoseEstimator.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive3PoseEstimator.ts deleted file mode 100644 index c9c25adc..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive3PoseEstimator.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive3PoseEstimator - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive3PoseEstimator", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive3Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Constructs a SwerveDrivePoseEstimator with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, and 0.1 radians for heading.\nThe default standard deviations of the vision measurements are\n0.9 meters for x, 0.9 meters for y, and 0.9 radians for heading.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive3PoseEstimator", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive3Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose2d"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Constructs a SwerveDrivePoseEstimator.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "translation", "type": "wpimath.geometry.Translation2d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose2d]", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive3PoseEstimator", - contents: contents, - className: "wpimath.estimator.SwerveDrive3PoseEstimator", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive3PoseEstimator3d.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive3PoseEstimator3d.ts deleted file mode 100644 index ccd5970b..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive3PoseEstimator3d.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive3PoseEstimator3d - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive3PoseEstimator3d", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive3Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Constructs a SwerveDrivePoseEstimator3d with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, 0.1 meters for z, and 0.1 radians for\nangle. The default standard deviations of the vision measurements are 0.9\nmeters for x, 0.9 meters for y, 0.9 meters for z, and 0.9 radians for\nangle.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3d"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive3PoseEstimator3d", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive3Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose3d"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Constructs a SwerveDrivePoseEstimator3d.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3d"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation3d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "translation", "type": "wpimath.geometry.Translation3d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose3d]", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive3PoseEstimator3d", - contents: contents, - className: "wpimath.estimator.SwerveDrive3PoseEstimator3d", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive3PoseEstimator3dBase.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive3PoseEstimator3dBase.ts deleted file mode 100644 index a10fe26c..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive3PoseEstimator3dBase.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive3PoseEstimator3dBase - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive3KinematicsBase"}, {"name": "odometry", "type": "wpimath.kinematics.SwerveDrive3Odometry3dBase"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Constructs a PoseEstimator3d.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and z position\n in meters, and angle in radians). Increase these numbers to trust the\n vision pose measurement less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3KinematicsBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3Odometry3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation3d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "translation", "type": "wpimath.geometry.Translation3d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose3d]", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive3PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimator3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive3PoseEstimator3dBase", - contents: contents, - className: "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive3PoseEstimatorBase.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive3PoseEstimatorBase.ts deleted file mode 100644 index 7ac6518f..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive3PoseEstimatorBase.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive3PoseEstimatorBase - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive3KinematicsBase"}, {"name": "odometry", "type": "wpimath.kinematics.SwerveDrive3OdometryBase"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Constructs a PoseEstimator.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3KinematicsBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3OdometryBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "translation", "type": "wpimath.geometry.Translation2d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose2d]", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive3PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive3PoseEstimatorBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive3PoseEstimatorBase", - contents: contents, - className: "wpimath.estimator.SwerveDrive3PoseEstimatorBase", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive4PoseEstimator.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive4PoseEstimator.ts deleted file mode 100644 index f53c8047..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive4PoseEstimator.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive4PoseEstimator - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive4PoseEstimator", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive4Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Constructs a SwerveDrivePoseEstimator with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, and 0.1 radians for heading.\nThe default standard deviations of the vision measurements are\n0.9 meters for x, 0.9 meters for y, and 0.9 radians for heading.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive4PoseEstimator", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive4Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose2d"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Constructs a SwerveDrivePoseEstimator.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "translation", "type": "wpimath.geometry.Translation2d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose2d]", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive4PoseEstimator", - contents: contents, - className: "wpimath.estimator.SwerveDrive4PoseEstimator", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive4PoseEstimator3d.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive4PoseEstimator3d.ts deleted file mode 100644 index 93fae5da..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive4PoseEstimator3d.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive4PoseEstimator3d - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive4PoseEstimator3d", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive4Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Constructs a SwerveDrivePoseEstimator3d with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, 0.1 meters for z, and 0.1 radians for\nangle. The default standard deviations of the vision measurements are 0.9\nmeters for x, 0.9 meters for y, 0.9 meters for z, and 0.9 radians for\nangle.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3d"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive4PoseEstimator3d", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive4Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose3d"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Constructs a SwerveDrivePoseEstimator3d.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3d"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation3d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "translation", "type": "wpimath.geometry.Translation3d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose3d]", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive4PoseEstimator3d", - contents: contents, - className: "wpimath.estimator.SwerveDrive4PoseEstimator3d", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive4PoseEstimator3dBase.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive4PoseEstimator3dBase.ts deleted file mode 100644 index b6974e27..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive4PoseEstimator3dBase.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive4PoseEstimator3dBase - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive4KinematicsBase"}, {"name": "odometry", "type": "wpimath.kinematics.SwerveDrive4Odometry3dBase"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Constructs a PoseEstimator3d.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and z position\n in meters, and angle in radians). Increase these numbers to trust the\n vision pose measurement less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4KinematicsBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4Odometry3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation3d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "translation", "type": "wpimath.geometry.Translation3d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose3d]", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive4PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimator3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive4PoseEstimator3dBase", - contents: contents, - className: "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive4PoseEstimatorBase.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive4PoseEstimatorBase.ts deleted file mode 100644 index 68d74a11..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive4PoseEstimatorBase.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive4PoseEstimatorBase - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive4KinematicsBase"}, {"name": "odometry", "type": "wpimath.kinematics.SwerveDrive4OdometryBase"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Constructs a PoseEstimator.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4KinematicsBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4OdometryBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "translation", "type": "wpimath.geometry.Translation2d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose2d]", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive4PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive4PoseEstimatorBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive4PoseEstimatorBase", - contents: contents, - className: "wpimath.estimator.SwerveDrive4PoseEstimatorBase", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive6PoseEstimator.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive6PoseEstimator.ts deleted file mode 100644 index 98d57b1b..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive6PoseEstimator.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive6PoseEstimator - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive6PoseEstimator", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive6Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Constructs a SwerveDrivePoseEstimator with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, and 0.1 radians for heading.\nThe default standard deviations of the vision measurements are\n0.9 meters for x, 0.9 meters for y, and 0.9 radians for heading.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive6PoseEstimator", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive6Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose2d"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Constructs a SwerveDrivePoseEstimator.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "translation", "type": "wpimath.geometry.Translation2d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose2d]", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive6PoseEstimator", - contents: contents, - className: "wpimath.estimator.SwerveDrive6PoseEstimator", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive6PoseEstimator3d.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive6PoseEstimator3d.ts deleted file mode 100644 index 05b0e434..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive6PoseEstimator3d.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive6PoseEstimator3d - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 13 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive6PoseEstimator3d", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive6Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Constructs a SwerveDrivePoseEstimator3d with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, 0.1 meters for z, and 0.1 radians for\nangle. The default standard deviations of the vision measurements are 0.9\nmeters for x, 0.9 meters for y, 0.9 meters for z, and 0.9 radians for\nangle.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3d"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive6PoseEstimator3d", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive6Kinematics"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "modulePositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "initialPose", "type": "wpimath.geometry.Pose3d"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Constructs a SwerveDrivePoseEstimator3d.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3d"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6Kinematics"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG4": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG5": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation3d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "translation", "type": "wpimath.geometry.Translation3d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose3d]", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive6PoseEstimator3d", - contents: contents, - className: "wpimath.estimator.SwerveDrive6PoseEstimator3d", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive6PoseEstimator3dBase.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive6PoseEstimator3dBase.ts deleted file mode 100644 index 289fe302..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive6PoseEstimator3dBase.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive6PoseEstimator3dBase - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive6KinematicsBase"}, {"name": "odometry", "type": "wpimath.kinematics.SwerveDrive6Odometry3dBase"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Constructs a PoseEstimator3d.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and z position\n in meters, and angle in radians). Increase these numbers to trust the\n vision pose measurement less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6KinematicsBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6Odometry3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose3d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose3d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation3d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "translation", "type": "wpimath.geometry.Translation3d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation3d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose3d]", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose3d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose3d", "args": [{"name": "swerveDrive6PoseEstimator3dBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation3d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimator3dBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation3d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive6PoseEstimator3dBase", - contents: contents, - className: "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.estimator.SwerveDrive6PoseEstimatorBase.ts b/src/blocks/generated/class_wpimath.estimator.SwerveDrive6PoseEstimatorBase.ts deleted file mode 100644 index 1302b08b..00000000 --- a/src/blocks/generated/class_wpimath.estimator.SwerveDrive6PoseEstimatorBase.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.estimator.SwerveDrive6PoseEstimatorBase - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 12 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "args": [{"name": "kinematics", "type": "wpimath.kinematics.SwerveDrive6KinematicsBase"}, {"name": "odometry", "type": "wpimath.kinematics.SwerveDrive6OdometryBase"}, {"name": "stateStdDevs", "type": "Tuple[float, float, float]"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Constructs a PoseEstimator.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": "wpimath.estimator"}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6KinematicsBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6OdometryBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "visionRobotPose", "type": "wpimath.geometry.Pose2d"}, {"name": "timestamp", "type": "wpimath.units.seconds"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "addVisionMeasurement"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}], "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "getEstimatedPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "resetPose"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}, {"name": "pose", "type": "wpimath.geometry.Pose2d"}], "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "resetPosition"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myPose2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "rotation", "type": "wpimath.geometry.Rotation2d"}], "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "resetRotation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "translation", "type": "wpimath.geometry.Translation2d"}], "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "resetTranslation"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTranslation2d"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "Optional[wpimath.geometry._geometry.Pose2d]", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "timestamp", "type": "wpimath.units.seconds"}], "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty).", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "sampleAt"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "visionMeasurementStdDevs", "type": "Tuple[float, float, float]"}], "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "setVisionMeasurementStdDevs"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "update"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myPose2d"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "wpimath.geometry.Pose2d", "args": [{"name": "swerveDrive6PoseEstimatorBase", "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase"}, {"name": "currentTime", "type": "wpimath.units.seconds"}, {"name": "gyroAngle", "type": "wpimath.geometry.Rotation2d"}, {"name": "wheelPositions", "type": "Tuple[wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition, wpimath.kinematics._kinematics.SwerveModulePosition]"}], "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", "FUNC": "updateWithTime"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "mySwerveDrive6PoseEstimatorBase"}}}}, "ARG2": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myRotation2d"}}}}, "ARG3": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myTuple"}}}}}}}}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "SwerveDrive6PoseEstimatorBase", - contents: contents, - className: "wpimath.estimator.SwerveDrive6PoseEstimatorBase", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.filter.Debouncer.ts b/src/blocks/generated/class_wpimath.filter.Debouncer.ts deleted file mode 100644 index 88eab7bd..00000000 --- a/src/blocks/generated/class_wpimath.filter.Debouncer.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated. Do not edit! - -import * as pythonEnum from "../mrc_get_python_enum_value"; -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.filter.Debouncer - -export function initialize() { - pythonEnum.initializeEnum("wpimath.filter.Debouncer.DebounceType", ["kBoth", "kFalling", "kRising"], "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."); -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 5 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myDebouncer"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.filter.Debouncer", "args": [{"name": "debounceTime", "type": "wpimath.units.seconds"}, {"name": "type", "type": "wpimath.filter.Debouncer.DebounceType"}], "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.", "importModule": "wpimath.filter"}, "fields": {"MODULE_OR_CLASS": "wpimath.filter.Debouncer"}, "inputs": {"ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDebounceType"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "bool", "args": [{"name": "debouncer", "type": "wpimath.filter.Debouncer"}, {"name": "input", "type": "bool"}], "tooltip": "Applies the debouncer to the input stream.\n\n:param input: The current value of the input stream.\n\n:returns: The debounced value of the input stream.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.filter.Debouncer", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myDebouncer"}}}}}}, - {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpimath.filter.Debouncer.DebounceType", "importModule": "wpimath.filter"}, "fields": {"ENUM_TYPE": "wpimath.filter.Debouncer.DebounceType", "ENUM_VALUE": "kBoth"}}, - {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpimath.filter.Debouncer.DebounceType", "importModule": "wpimath.filter"}, "fields": {"ENUM_TYPE": "wpimath.filter.Debouncer.DebounceType", "ENUM_VALUE": "kFalling"}}, - {"kind": "block", "type": "mrc_get_python_enum_value", "extraState": {"enumType": "wpimath.filter.Debouncer.DebounceType", "importModule": "wpimath.filter"}, "fields": {"ENUM_TYPE": "wpimath.filter.Debouncer.DebounceType", "ENUM_VALUE": "kRising"}}, - ]; - - contents.push(...subcategories); - - const category: toolboxItems.PythonClassCategory = { - kind: "category", - name: "Debouncer", - contents: contents, - className: "wpimath.filter.Debouncer", - }; - - return category; -} diff --git a/src/blocks/generated/class_wpimath.filter.LinearFilter.ts b/src/blocks/generated/class_wpimath.filter.LinearFilter.ts deleted file mode 100644 index dc1134fe..00000000 --- a/src/blocks/generated/class_wpimath.filter.LinearFilter.ts +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated. Do not edit! - -import * as toolboxItems from "../../toolbox/items"; - -// Blocks for class wpimath.filter.LinearFilter - -export function initialize() { -} - -export function getToolboxCategory(subcategories: toolboxItems.Category[] = []): toolboxItems.Category { - - // There are 8 blocks. - const contents: toolboxItems.ContentsType[] = [ - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearFilter"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "constructor", "returnType": "wpimath.filter.LinearFilter", "args": [{"name": "ffGains", "type": "List[float]"}, {"name": "fbGains", "type": "List[float]"}], "tooltip": "Create a linear FIR or IIR filter.\n\n:param ffGains: The \"feedforward\" or FIR gains.\n:param fbGains: The \"feedback\" or IIR gains.", "importModule": "wpimath.filter"}, "fields": {"MODULE_OR_CLASS": "wpimath.filter.LinearFilter"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}, "ARG1": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myList"}}}}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearFilter", "type": "wpimath.filter.LinearFilter"}, {"name": "input", "type": "float"}], "tooltip": "Calculates the next value of the filter.\n\n:param input: Current input value.\n\n:returns: The filtered value at this step", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.filter.LinearFilter", "FUNC": "calculate"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearFilter"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearFilter"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.filter.LinearFilter", "args": [{"name": "timeConstant", "type": "float"}, {"name": "period", "type": "wpimath.units.seconds"}], "tooltip": "Creates a first-order high-pass filter of the form:\ny[n] = gain x[n] + (-gain) x[n-1] + gain y[n-1]\nwhere gain = e:sup:`-dt / T`, T is the time constant in seconds\n\nNote: T = 1 / (2\u03c0f) where f is the cutoff frequency in Hz, the frequency\nbelow which the input starts to attenuate.\n\nThis filter is stable for time constants greater than zero.\n\n:param timeConstant: The discrete-time time constant in seconds.\n:param period: The period in seconds between samples taken by the\n user.", "importModule": "wpimath.filter"}, "fields": {"MODULE_OR_CLASS": "wpimath.filter.LinearFilter", "FUNC": "highPass"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "float", "args": [{"name": "linearFilter", "type": "wpimath.filter.LinearFilter"}], "tooltip": "Returns the last value calculated by the LinearFilter.\n\n:returns: The last value.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.filter.LinearFilter", "FUNC": "lastValue"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearFilter"}}}}}}, - {"kind": "block", "type": "variables_set", "fields": {"VAR": {"name": "myLinearFilter"}}, "inputs": {"VALUE": {"block": {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "static", "returnType": "wpimath.filter.LinearFilter", "args": [{"name": "taps", "type": "int"}], "tooltip": "Creates a K-tap FIR moving average filter of the form:\ny[n] = 1/k (x[k] + x[k-1] + \u2026 + x[0])\n\nThis filter is always stable.\n\n:param taps: The number of samples to average over. Higher = smoother but\n slower\n @throws std::runtime_error if number of taps is less than 1.", "importModule": "wpimath.filter"}, "fields": {"MODULE_OR_CLASS": "wpimath.filter.LinearFilter", "FUNC": "movingAverage"}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearFilter", "type": "wpimath.filter.LinearFilter"}], "tooltip": "Reset the filter state.", "importModule": ""}, "fields": {"MODULE_OR_CLASS": "wpimath.filter.LinearFilter", "FUNC": "reset"}, "inputs": {"ARG0": {"block": {"type": "variables_get", "fields": {"VAR": {"name": "myLinearFilter"}}}}}}, - {"kind": "block", "type": "mrc_call_python_function", "extraState": {"functionKind": "instance", "returnType": "None", "args": [{"name": "linearFilter", "type": "wpimath.filter.LinearFilter"}, {"name": "inputBuffer", "type": "List[float]"}, {"name": "outputBuffer", "type": "List[float]"}], "tooltip": "Resets the filter state, initializing internal buffers to the provided\nvalues.\n\nThese are the expected lengths of the buffers, depending on what type of\nlinear filter used:\n\n
Type | \nInput Buffer Size | \nOutput Buffer Size | \n
---|---|---|
Unspecified | \nsize of ``ffGains`` | \nsize of ``fbGains`` | \n
Single Pole IIR | \n1 | \n1 | \n
High-Pass | \n2 | \n1 | \n
Moving Average | \n``taps`` | \n0 | \n
Finite Difference | \nsize of ``stencil`` | \n0 | \n
Backward Finite Difference | \n``Samples`` | \n0 | \n
{@code\nShuffleboardLayout myList = Shuffleboard::GetTab(\"My Tab\")\n.GetLayout(BuiltinLayouts::kList, \"My List\");\n}\n\nMembers:\n\n kList : Groups components in a vertical list. New widgets added to the layout will\nbe placed at the bottom of the list. \nCustom properties:
Name | Type | Default Value | Notes |
---|---|---|---|
Label position | String | \"BOTTOM\" | \nThe position of component labels inside the grid. One of\n``[\"TOP\", \"LEFT\", \"BOTTOM\", \"RIGHT\", \"HIDDEN\"`` |
Name | Type | Default Value | Notes |
---|---|---|---|
Number of columns | Number | 3 | Must be in the\nrange [1,15] | \n
Number of rows | Number | 3 | Must be in the\nrange [1,15] |
Label position | String | \n\"BOTTOM\" | \nThe position of component labels inside the grid.\nOne of ``[\"TOP\", \"LEFT\", \"BOTTOM\", \"RIGHT\", \"HIDDEN\"`` | \n
{@code\nNetworkTableEntry example = Shuffleboard.getTab(\"My Tab\")\n.add(\"My Number\", 0)\n.withWidget(BuiltInWidgets.kNumberSlider)\n.getEntry();\n}\n\nEach value in this enum goes into detail on what data types that widget\ncan support, as well as the custom properties that widget uses.\n\nMembers:\n\n kTextView : Displays a value with a simple text field.\nSupported types:\n\n- String\n- Number\n- Boolean\n\nThis widget has no custom properties.\n\n kNumberSlider : Displays a number with a controllable slider.\nSupported types:\n\n- Number\n\nCustom properties:\n
Name | Type | Default Value | Notes |
---|---|---|---|
Min | Number | -1.0 | The minimum value of the\nslider |
Max | Number | 1.0 | The maximum\nvalue of the slider |
Block\nincrement | Number | 0.0625 | How much to move the\nslider by with the arrow keys |
Name | Type | Default Value | Notes |
---|---|---|---|
Min | Number | -1.0 | The minimum value of the\nbar |
Max | Number | 1.0 | The maximum\nvalue of the bar |
Center | Number | 0 | The center (\"zero\") value\nof the bar |
Name | Type | Default Value | Notes |
---|---|---|---|
Min | Number | 0 | The minimum value of the\ndial |
Max | Number | 100 | The maximum\nvalue of the dial |
Show\nvalue | Boolean | true | Whether or not to show the\nvalue as text |
Name | Type | Default Value | Notes |
---|---|---|---|
Visible time | Number | 30 | \nHow long, in seconds, should past data be visible for |
Name | Type | Default Value | Notes |
---|---|---|---|
Color when true | Color | \"green\" | \nCan be specified as a string (``\"#00FF00\"``) or a rgba integer\n(``0x00FF0000``)\n |
Color when false | Color | \"red\" | \nCan be specified as a string or a number |
Name | Type | Default Value | Notes |
---|---|---|---|
Min | Number | 0 | The minimum value of the\nbar |
Max | Number | 5 | The maximum\nvalue of the bar |
Center | Number | 0 | The center (\"zero\") value\nof the bar |
Orientation | String | \"HORIZONTAL\" | \nThe orientation of the bar. One of {@code [\"HORIZONTAL\",\n\"VERTICAL\"]} |
Number of tick\nmarks | Number | 5 | The number of discrete ticks on the\nbar |
Name | Type | Default Value | Notes |
---|---|---|---|
Show voltage and current values | Boolean | true | \nWhether or not to display the voltage and current draw |
Name | Type | Default Value | Notes |
---|---|---|---|
Orientation | String | \"HORIZONTAL\" | \nOne of ``[\"HORIZONTAL\", \"VERTICAL\"]`` |
Name | Type | Default Value | Notes |
---|---|---|---|
Min | Number | -1 | \nThe minimum acceleration value to display |
Max | Number | 1 | \nThe maximum acceleration value to display |
Show text | Boolean | true | \nShow or hide the acceleration values |
Precision | Number | 2 | \nHow many numbers to display after the decimal point |
Show tick marks | Boolean | false | \nShow or hide the tick marks on the number bars |
Name | Type | Default Value | Notes |
---|---|---|---|
Range | Range | k16G | The accelerometer\nrange |
Show value | Boolean | true | \nShow or hide the acceleration values |
Precision | Number | 2 | \nHow many numbers to display after the decimal point |
Show tick marks | Boolean | false | \nShow or hide the tick marks on the number bars |
Name | Type | Default Value | Notes |
---|---|---|---|
Major tick\nspacing | Number | 45 | Degrees |
Starting angle | Number | 180 | \nHow far to rotate the entire dial, in degrees |
Show tick mark ring | Boolean | true |
Name | Type | Default Value | Notes |
---|---|---|---|
Number of wheels | Number | 4 | Must be a\npositive even integer\n |
Wheel diameter | Number | 80 | Pixels |
Show velocity vectors | Boolean | true |
Name | Type | Default Value | Notes |
---|---|---|---|
Show velocity vectors | Boolean | true |
Name | Type | Default Value | Notes |
---|---|---|---|
Show crosshair | Boolean | true | \nShow or hide a crosshair on the image |
Crosshair color | Color | \"white\" | \nCan be a string or a rgba integer |
Show controls | Boolean | true | Show or hide the\nstream controls\n |
Rotation | String | \"NONE\" | \nRotates the displayed image. One of {@code [\"NONE\", \"QUARTER_CW\",\n\"QUARTER_CCW\", \"HALF\"]}\n |
{@code\nShuffleboard::GetTab(\"Example Tab\")->getLayout(\"My Layout\",\n&BuiltInLayouts.kList);\n\n// Later...\nShuffleboard::GetTab(\"Example Tab\")->GetLayout(\"My Layout\");\n}\n\n:param title: the title of the layout to get\n\n:returns: the layout with the given title\n @throws if no layout has yet been defined with the given title" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.ShuffleboardLayout", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "parent", + "type": "wpilib.shuffleboard.ShuffleboardContainer" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardLayout", + "functionName": "__init__", + "returnType": "wpilib.shuffleboard.ShuffleboardLayout", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardContainer" + }, + { + "defaultValue": null, + "name": "title", + "type": "str" + }, + { + "defaultValue": null, + "name": "defaultValue", + "type": "wpiutil.Sendable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardContainer", + "functionName": "add", + "returnType": "wpilib.shuffleboard.ComplexWidget", + "tooltip": "Adds a widget to this container to display the given sendable.\n\n:param title: the title of the widget\n:param defaultValue: the sendable to display\n\n:returns: a widget to display the sendable data\n @throws IllegalArgumentException if a widget already exists in this\n container with the given title" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardContainer" + }, + { + "defaultValue": null, + "name": "defaultValue", + "type": "wpiutil.Sendable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardContainer", + "functionName": "add", + "returnType": "wpilib.shuffleboard.ComplexWidget", + "tooltip": "Adds a widget to this container to display the given sendable.\n\n:param defaultValue: the sendable to display\n\n:returns: a widget to display the sendable data\n @throws IllegalArgumentException if a widget already exists in this\n container with the given title, or if the sendable's name has not been\n specified" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardContainer" + }, + { + "defaultValue": null, + "name": "title", + "type": "str" + }, + { + "defaultValue": null, + "name": "defaultValue", + "type": "ntcore.Value" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardContainer", + "functionName": "add", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Adds a widget to this container to display the given data.\n\n:param title: the title of the widget\n:param defaultValue: the default value of the widget\n\n:returns: a widget to display the sendable data\n @throws IllegalArgumentException if a widget already exists in this\n container with the given title\n @see AddPersistent(std::string_view, std::shared_ptr
{@code\nShuffleboard::GetTab(\"Example Tab\")->getLayout(\"My Layout\",\n&BuiltInLayouts.kList);\n\n// Later...\nShuffleboard::GetTab(\"Example Tab\")->GetLayout(\"My Layout\");\n}\n\n:param title: the title of the layout to get\n\n:returns: the layout with the given title\n @throws if no layout has yet been defined with the given title" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._LayoutComponent" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._LayoutComponent", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.ShuffleboardLayout", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._LayoutComponent" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._LayoutComponent", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.ShuffleboardLayout", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._LayoutComponent" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._LayoutComponent", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.ShuffleboardLayout", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.ShuffleboardTab", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "root", + "type": "wpilib.shuffleboard._ShuffleboardRoot" + }, + { + "defaultValue": null, + "name": "title", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardTab", + "functionName": "__init__", + "returnType": "wpilib.shuffleboard.ShuffleboardTab", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardContainer" + }, + { + "defaultValue": null, + "name": "title", + "type": "str" + }, + { + "defaultValue": null, + "name": "defaultValue", + "type": "wpiutil.Sendable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardContainer", + "functionName": "add", + "returnType": "wpilib.shuffleboard.ComplexWidget", + "tooltip": "Adds a widget to this container to display the given sendable.\n\n:param title: the title of the widget\n:param defaultValue: the sendable to display\n\n:returns: a widget to display the sendable data\n @throws IllegalArgumentException if a widget already exists in this\n container with the given title" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardContainer" + }, + { + "defaultValue": null, + "name": "defaultValue", + "type": "wpiutil.Sendable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardContainer", + "functionName": "add", + "returnType": "wpilib.shuffleboard.ComplexWidget", + "tooltip": "Adds a widget to this container to display the given sendable.\n\n:param defaultValue: the sendable to display\n\n:returns: a widget to display the sendable data\n @throws IllegalArgumentException if a widget already exists in this\n container with the given title, or if the sendable's name has not been\n specified" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardContainer" + }, + { + "defaultValue": null, + "name": "title", + "type": "str" + }, + { + "defaultValue": null, + "name": "defaultValue", + "type": "ntcore.Value" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardContainer", + "functionName": "add", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Adds a widget to this container to display the given data.\n\n:param title: the title of the widget\n:param defaultValue: the default value of the widget\n\n:returns: a widget to display the sendable data\n @throws IllegalArgumentException if a widget already exists in this\n container with the given title\n @see AddPersistent(std::string_view, std::shared_ptr
{@code\nShuffleboard::GetTab(\"Example Tab\")->getLayout(\"My Layout\",\n&BuiltInLayouts.kList);\n\n// Later...\nShuffleboard::GetTab(\"Example Tab\")->GetLayout(\"My Layout\");\n}\n\n:param title: the title of the layout to get\n\n:returns: the layout with the given title\n @throws if no layout has yet been defined with the given title" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardTab" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardTab", + "functionName": "getRoot", + "returnType": "wpilib.shuffleboard._ShuffleboardRoot", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.ShuffleboardValue", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.SimpleWidget", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "parent", + "type": "wpilib.shuffleboard.ShuffleboardContainer" + }, + { + "defaultValue": null, + "name": "title", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.SimpleWidget", + "functionName": "__init__", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.SimpleWidget" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.SimpleWidget", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.SimpleWidget" + } + ], + "declaringClassName": "wpilib.shuffleboard.SimpleWidget", + "functionName": "getEntry", + "returnType": "ntcore.GenericEntry", + "tooltip": "Gets the NetworkTable entry that contains the data for this widget.\nThe widget owns the entry; the returned pointer's lifetime is the same as\nthat of the widget." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.SimpleWidget" + }, + { + "defaultValue": null, + "name": "typeString", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.SimpleWidget", + "functionName": "getEntry", + "returnType": "ntcore.GenericEntry", + "tooltip": "Gets the NetworkTable entry that contains the data for this widget.\nThe widget owns the entry; the returned pointer's lifetime is the same as\nthat of the widget.\n\n:param typeString: NT type string" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleComponent" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleComponent", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleComponent" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleComponent", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleComponent" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleComponent", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleWidget" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleWidget", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleWidget" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleWidget", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleWidget" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleWidget", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.SuppliedBoolListValueWidget" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.SuppliedBoolValueWidget" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_bool" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_bool", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_bool" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_bool", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_bool" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_bool", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_bool" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_bool", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_bool" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_bool", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_bool" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_bool", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.SuppliedDoubleListValueWidget" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_double" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_double", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_double" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_double", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_double" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_double", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.SuppliedDoubleValueWidget" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_double" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_double", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_double" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_double", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_double" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_double", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_double" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_double", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_double" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_double", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_double" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_double", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.SuppliedFloatListValueWidget" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_float" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_float", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_float" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_float", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_float" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_float", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.SuppliedFloatValueWidget" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_float" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_float", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_float" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_float", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_float" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_float", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_float" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_float", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_float" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_float", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_float" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_float", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.SuppliedIntListValueWidget" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_int" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_int", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_int" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_int", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_int" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_int", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.SuppliedIntegerValueWidget" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_integer" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_integer", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_integer" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_integer", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_integer" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_integer", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_integer" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_integer", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_integer" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_integer", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_integer" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_integer", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.SuppliedRawValueWidget", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.SuppliedRawValueWidget" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.SuppliedRawValueWidget", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.SuppliedStringListValueWidget" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_string" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_string", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_string" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_string", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_string" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_string", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.SuppliedStringValueWidget", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.SuppliedStringValueWidget" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.SuppliedStringValueWidget", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_string" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_string", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_string" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_string", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_string" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_string", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_string" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_string", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_string" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_string", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_string" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_string", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard.WidgetType", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "widgetName", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.WidgetType", + "functionName": "__init__", + "returnType": "wpilib.shuffleboard.WidgetType", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard.WidgetType", + "functionName": "getWidgetName", + "returnType": "str", + "tooltip": "Gets the string type of the widget as defined by that widget in\nShuffleboard." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._ComplexComponent", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._ComplexComponent" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._ComplexComponent", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.ComplexWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._ComplexComponent" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._ComplexComponent", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.ComplexWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._ComplexComponent" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._ComplexComponent", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.ComplexWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._ComplexWidget", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._ComplexComponent" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._ComplexComponent", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.ComplexWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._ComplexComponent" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._ComplexComponent", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.ComplexWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._ComplexComponent" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._ComplexComponent", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.ComplexWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._ComplexWidget" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._ComplexWidget", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.ComplexWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._ComplexWidget" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._ComplexWidget", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.ComplexWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._ComplexWidget" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._ComplexWidget", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.ComplexWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._LayoutComponent", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._LayoutComponent" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._LayoutComponent", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.ShuffleboardLayout", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._LayoutComponent" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._LayoutComponent", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.ShuffleboardLayout", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._LayoutComponent" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._LayoutComponent", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.ShuffleboardLayout", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SimpleComponent", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleComponent" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleComponent", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleComponent" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleComponent", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleComponent" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleComponent", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SimpleWidget", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleComponent" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleComponent", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleComponent" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleComponent", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleComponent" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleComponent", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleWidget" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleWidget", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleWidget" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleWidget", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SimpleWidget" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SimpleWidget", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SimpleWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueComponent_bool", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_bool" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_bool", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_bool" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_bool", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_bool" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_bool", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueComponent_double", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_double" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_double", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_double" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_double", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_double" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_double", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueComponent_float", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_float" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_float", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_float" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_float", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_float" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_float", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueComponent_integer", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_integer" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_integer", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_integer" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_integer", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_integer" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_integer", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueComponent_string", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_string" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_string", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_string" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_string", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_string" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_string", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueWidget_bool", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_bool" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_bool", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_bool" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_bool", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_bool" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_bool", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_bool" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_bool", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_bool" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_bool", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_bool" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_bool", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedBoolValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueWidget_double", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_double" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_double", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_double" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_double", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_double" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_double", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_double" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_double", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_double" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_double", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_double" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_double", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedDoubleValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueWidget_float", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_float" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_float", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_float" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_float", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_float" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_float", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_float" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_float", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_float" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_float", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_float" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_float", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedFloatValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueWidget_integer", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_integer" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_integer", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_integer" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_integer", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_integer" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_integer", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_integer" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_integer", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_integer" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_integer", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_integer" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_integer", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedIntegerValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueWidget_string", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_string" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_string", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_string" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_string", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_string" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_string", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_string" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_string", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_string" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_string", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_string" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_string", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedStringValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_bool", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_bool", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedBoolListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueWidget_vector_double", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_double" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_double", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_double" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_double", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_double" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_double", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_double" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_double", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedDoubleListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueWidget_vector_float", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_float" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_float", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_float" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_float", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_float" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_float", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_float" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_float", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedFloatListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueWidget_vector_int", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_int" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_int", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_int" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_int", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_int" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_int", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_int" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_int", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedIntListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_raw", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_raw", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedRawValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.shuffleboard._SuppliedValueWidget_vector_string", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + }, + { + "defaultValue": null, + "name": "parentTable", + "type": "ntcore.NetworkTable" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "buildInto", + "returnType": "None", + "tooltip": "Builds the entries for this value.\n\n:param parentTable: The table containing all the data for the parent. Values\n that require a complex entry or table structure should\n call ``parentTable.getSubtable(getTitle())`` to get\n the table to put data into. Values that only use a\n single entry should call\n ``parentTable.getEntry(getTitle())`` to get that\n entry.\n:param metaTable: The table containing all the metadata for this value and\n its sub-values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "metaTable", + "type": "ntcore.NetworkTable" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "buildMetadata", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "disableIfActuator", + "returnType": "None", + "tooltip": "Disables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "enableIfActuator", + "returnType": "None", + "tooltip": "Enables user control of this widget in the Shuffleboard application.\n\nThis method is package-private to prevent users from enabling control\nthemselves. Has no effect if the sendable is not marked as an actuator with\nSendableBuilder::SetActuator()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getParent", + "returnType": "wpilib.shuffleboard.ShuffleboardContainer", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardValue" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardValue", + "functionName": "getTitle", + "returnType": "str", + "tooltip": "Gets the title of this Shuffleboard value." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "getType", + "returnType": "str", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard.ShuffleboardComponentBase" + }, + { + "defaultValue": null, + "name": "type", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard.ShuffleboardComponentBase", + "functionName": "setType", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string" + }, + { + "defaultValue": null, + "name": "columnIndex", + "type": "int" + }, + { + "defaultValue": null, + "name": "rowIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", + "functionName": "withPosition", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets the position of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\nIf the position of a single component is set, it is recommended to set the\npositions of *all* components inside a tab to prevent Shuffleboard\nfrom automatically placing another component there before the one with the\nspecific position is sent.\n\n:param columnIndex: the column in the tab to place this component\n:param rowIndex: the row in the tab to place this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string" + }, + { + "defaultValue": null, + "name": "properties", + "type": "dict[str, ntcore.Value]" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", + "functionName": "withProperties", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets custom properties for this component. Property names are\ncase-sensitive and whitespace-insensitive (capitalization and spaces do not\nmatter).\n\n:param properties: the properties for this component\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueComponent_vector_string" + }, + { + "defaultValue": null, + "name": "width", + "type": "int" + }, + { + "defaultValue": null, + "name": "height", + "type": "int" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueComponent_vector_string", + "functionName": "withSize", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets the size of this component in the tab. This has no effect if this\ncomponent is inside a layout.\n\n:param width: how many columns wide the component should be\n:param height: how many rows high the component should be\n\n:returns: this component" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_string" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.BuiltInWidgets" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_string", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object\n @see BuiltInWidgets" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_string" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "wpilib.shuffleboard.WidgetType" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_string", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.shuffleboard._SuppliedValueWidget_vector_string" + }, + { + "defaultValue": null, + "name": "widgetType", + "type": "str" + } + ], + "declaringClassName": "wpilib.shuffleboard._SuppliedValueWidget_vector_string", + "functionName": "withWidget", + "returnType": "wpilib.shuffleboard.SuppliedStringListValueWidget", + "tooltip": "Sets the type of widget used to display the data. If not set, the default\nwidget type will be used. This method should only be used to use a widget\nthat does not come built into Shuffleboard (i.e. one that comes with a\ncustom or third-party plugin). To use a widget that is built into\nShuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.\n\n:param widgetType: the type of the widget used to display the data\n\n:returns: this widget object" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.shuffleboard", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.ADIS16448_IMUSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "imu", + "type": "wpilib.ADIS16448_IMU" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16448_IMUSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.ADIS16448_IMUSim", + "tooltip": "Constructs from a ADIS16448_IMU object.\n\n:param imu: ADIS16448_IMU to simulate" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16448_IMUSim" + }, + { + "defaultValue": null, + "name": "accel", + "type": "wpimath.units.meters_per_second_squared" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16448_IMUSim", + "functionName": "setAccelX", + "returnType": "None", + "tooltip": "Sets the X axis acceleration.\n\n:param accel: The acceleration." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16448_IMUSim" + }, + { + "defaultValue": null, + "name": "accel", + "type": "wpimath.units.meters_per_second_squared" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16448_IMUSim", + "functionName": "setAccelY", + "returnType": "None", + "tooltip": "Sets the Y axis acceleration.\n\n:param accel: The acceleration." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16448_IMUSim" + }, + { + "defaultValue": null, + "name": "accel", + "type": "wpimath.units.meters_per_second_squared" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16448_IMUSim", + "functionName": "setAccelZ", + "returnType": "None", + "tooltip": "Sets the Z axis acceleration.\n\n:param accel: The acceleration." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16448_IMUSim" + }, + { + "defaultValue": null, + "name": "angle", + "type": "wpimath.units.degrees" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16448_IMUSim", + "functionName": "setGyroAngleX", + "returnType": "None", + "tooltip": "Sets the X axis angle (CCW positive).\n\n:param angle: The angle." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16448_IMUSim" + }, + { + "defaultValue": null, + "name": "angle", + "type": "wpimath.units.degrees" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16448_IMUSim", + "functionName": "setGyroAngleY", + "returnType": "None", + "tooltip": "Sets the Y axis angle (CCW positive).\n\n:param angle: The angle." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16448_IMUSim" + }, + { + "defaultValue": null, + "name": "angle", + "type": "wpimath.units.degrees" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16448_IMUSim", + "functionName": "setGyroAngleZ", + "returnType": "None", + "tooltip": "Sets the Z axis angle (CCW positive).\n\n:param angle: The angle." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16448_IMUSim" + }, + { + "defaultValue": null, + "name": "angularRate", + "type": "wpimath.units.degrees_per_second" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16448_IMUSim", + "functionName": "setGyroRateX", + "returnType": "None", + "tooltip": "Sets the X axis angular rate (CCW positive).\n\n:param angularRate: The angular rate." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16448_IMUSim" + }, + { + "defaultValue": null, + "name": "angularRate", + "type": "wpimath.units.degrees_per_second" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16448_IMUSim", + "functionName": "setGyroRateY", + "returnType": "None", + "tooltip": "Sets the Y axis angular rate (CCW positive).\n\n:param angularRate: The angular rate." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16448_IMUSim" + }, + { + "defaultValue": null, + "name": "angularRate", + "type": "wpimath.units.degrees_per_second" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16448_IMUSim", + "functionName": "setGyroRateZ", + "returnType": "None", + "tooltip": "Sets the Z axis angular rate (CCW positive).\n\n:param angularRate: The angular rate." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.ADIS16470_IMUSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "imu", + "type": "wpilib.ADIS16470_IMU" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16470_IMUSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.ADIS16470_IMUSim", + "tooltip": "Constructs from a ADIS16470_IMU object.\n\n:param imu: ADIS16470_IMU to simulate" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16470_IMUSim" + }, + { + "defaultValue": null, + "name": "accel", + "type": "wpimath.units.meters_per_second_squared" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16470_IMUSim", + "functionName": "setAccelX", + "returnType": "None", + "tooltip": "Sets the X axis acceleration.\n\n:param accel: The acceleration." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16470_IMUSim" + }, + { + "defaultValue": null, + "name": "accel", + "type": "wpimath.units.meters_per_second_squared" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16470_IMUSim", + "functionName": "setAccelY", + "returnType": "None", + "tooltip": "Sets the Y axis acceleration.\n\n:param accel: The acceleration." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16470_IMUSim" + }, + { + "defaultValue": null, + "name": "accel", + "type": "wpimath.units.meters_per_second_squared" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16470_IMUSim", + "functionName": "setAccelZ", + "returnType": "None", + "tooltip": "Sets the Z axis acceleration.\n\n:param accel: The acceleration." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16470_IMUSim" + }, + { + "defaultValue": null, + "name": "angle", + "type": "wpimath.units.degrees" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16470_IMUSim", + "functionName": "setGyroAngleX", + "returnType": "None", + "tooltip": "Sets the X axis angle (CCW positive).\n\n:param angle: The angle." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16470_IMUSim" + }, + { + "defaultValue": null, + "name": "angle", + "type": "wpimath.units.degrees" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16470_IMUSim", + "functionName": "setGyroAngleY", + "returnType": "None", + "tooltip": "Sets the Y axis angle (CCW positive).\n\n:param angle: The angle." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16470_IMUSim" + }, + { + "defaultValue": null, + "name": "angle", + "type": "wpimath.units.degrees" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16470_IMUSim", + "functionName": "setGyroAngleZ", + "returnType": "None", + "tooltip": "Sets the Z axis angle (CCW positive).\n\n:param angle: The angle." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16470_IMUSim" + }, + { + "defaultValue": null, + "name": "angularRate", + "type": "wpimath.units.degrees_per_second" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16470_IMUSim", + "functionName": "setGyroRateX", + "returnType": "None", + "tooltip": "Sets the X axis angular rate (CCW positive).\n\n:param angularRate: The angular rate." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16470_IMUSim" + }, + { + "defaultValue": null, + "name": "angularRate", + "type": "wpimath.units.degrees_per_second" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16470_IMUSim", + "functionName": "setGyroRateY", + "returnType": "None", + "tooltip": "Sets the Y axis angular rate (CCW positive).\n\n:param angularRate: The angular rate." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADIS16470_IMUSim" + }, + { + "defaultValue": null, + "name": "angularRate", + "type": "wpimath.units.degrees_per_second" + } + ], + "declaringClassName": "wpilib.simulation.ADIS16470_IMUSim", + "functionName": "setGyroRateZ", + "returnType": "None", + "tooltip": "Sets the Z axis angular rate (CCW positive).\n\n:param angularRate: The angular rate." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.ADXL345Sim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "accel", + "type": "wpilib.ADXL345_I2C" + } + ], + "declaringClassName": "wpilib.simulation.ADXL345Sim", + "functionName": "__init__", + "returnType": "wpilib.simulation.ADXL345Sim", + "tooltip": "Constructs from a ADXL345_I2C object.\n\n:param accel: ADXL345 accel to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "accel", + "type": "wpilib.ADXL345_SPI" + } + ], + "declaringClassName": "wpilib.simulation.ADXL345Sim", + "functionName": "__init__", + "returnType": "wpilib.simulation.ADXL345Sim", + "tooltip": "Constructs from a ADXL345_SPI object.\n\n:param accel: ADXL345 accel to simulate" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADXL345Sim" + }, + { + "defaultValue": null, + "name": "accel", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.ADXL345Sim", + "functionName": "setX", + "returnType": "None", + "tooltip": "Sets the X acceleration.\n\n:param accel: The X acceleration." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADXL345Sim" + }, + { + "defaultValue": null, + "name": "accel", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.ADXL345Sim", + "functionName": "setY", + "returnType": "None", + "tooltip": "Sets the Y acceleration.\n\n:param accel: The Y acceleration." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADXL345Sim" + }, + { + "defaultValue": null, + "name": "accel", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.ADXL345Sim", + "functionName": "setZ", + "returnType": "None", + "tooltip": "Sets the Z acceleration.\n\n:param accel: The Z acceleration." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.ADXL362Sim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "accel", + "type": "wpilib.ADXL362" + } + ], + "declaringClassName": "wpilib.simulation.ADXL362Sim", + "functionName": "__init__", + "returnType": "wpilib.simulation.ADXL362Sim", + "tooltip": "Constructs from a ADXL362 object.\n\n:param accel: ADXL362 accel to simulate" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADXL362Sim" + }, + { + "defaultValue": null, + "name": "accel", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.ADXL362Sim", + "functionName": "setX", + "returnType": "None", + "tooltip": "Sets the X acceleration.\n\n:param accel: The X acceleration." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADXL362Sim" + }, + { + "defaultValue": null, + "name": "accel", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.ADXL362Sim", + "functionName": "setY", + "returnType": "None", + "tooltip": "Sets the Y acceleration.\n\n:param accel: The Y acceleration." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADXL362Sim" + }, + { + "defaultValue": null, + "name": "accel", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.ADXL362Sim", + "functionName": "setZ", + "returnType": "None", + "tooltip": "Sets the Z acceleration.\n\n:param accel: The Z acceleration." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.ADXRS450_GyroSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "gyro", + "type": "wpilib.ADXRS450_Gyro" + } + ], + "declaringClassName": "wpilib.simulation.ADXRS450_GyroSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.ADXRS450_GyroSim", + "tooltip": "Constructs from a ADXRS450_Gyro object.\n\n:param gyro: ADXRS450_Gyro to simulate" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADXRS450_GyroSim" + }, + { + "defaultValue": null, + "name": "angle", + "type": "wpimath.units.degrees" + } + ], + "declaringClassName": "wpilib.simulation.ADXRS450_GyroSim", + "functionName": "setAngle", + "returnType": "None", + "tooltip": "Sets the angle.\n\n:param angle: The angle (clockwise positive)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ADXRS450_GyroSim" + }, + { + "defaultValue": null, + "name": "rate", + "type": "wpimath.units.degrees_per_second" + } + ], + "declaringClassName": "wpilib.simulation.ADXRS450_GyroSim", + "functionName": "setRate", + "returnType": "None", + "tooltip": "Sets the angular rate (clockwise positive).\n\n:param rate: The angular rate." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.AddressableLEDSim", + "classVariables": [], + "constructors": [ + { + "args": [], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.AddressableLEDSim", + "tooltip": "Constructs for the first addressable LED." + }, + { + "args": [ + { + "defaultValue": null, + "name": "addressableLED", + "type": "wpilib.AddressableLED" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.AddressableLEDSim", + "tooltip": "Constructs from an AddressableLED object.\n\n:param addressableLED: AddressableLED to simulate" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + }, + { + "defaultValue": null, + "name": "data", + "type": "hal.AddressableLEDData" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "getData", + "returnType": "int", + "tooltip": "Get the LED data.\n\n:param data: output parameter to fill with LED data\n\n:returns: the length of the LED data" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "getInitialized", + "returnType": "bool", + "tooltip": "Check if initialized.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "getLength", + "returnType": "int", + "tooltip": "Get the length of the LED strip.\n\n:returns: the length" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "getOutputPort", + "returnType": "int", + "tooltip": "Get the output port.\n\n:returns: the output port" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "getRunning", + "returnType": "int", + "tooltip": "Check if the LEDs are running.\n\n:returns: true if they are" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, int, int], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "registerDataCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the LED data.\n\n:param callback: the callback that will be called whenever the LED data is\n changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "registerInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the Initialized property.\n\n:param callback: the callback that will be called whenever the Initialized\n property is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object storing this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "registerLengthCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the length.\n\n:param callback: the callback that will be called whenever the length is\n changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "registerOutputPortCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the output port.\n\n:param callback: the callback that will be called whenever the output port\n is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "registerRunningCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on whether the LEDs are running.\n\n:param callback: the callback that will be called whenever the LED state is\n changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + }, + { + "defaultValue": null, + "name": "data", + "type": "hal.AddressableLEDData" + }, + { + "defaultValue": null, + "name": "length", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "setData", + "returnType": "None", + "tooltip": "Change the LED data.\n\n:param data: the new data\n:param length: the length of the LED data" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + }, + { + "defaultValue": null, + "name": "initialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "setInitialized", + "returnType": "None", + "tooltip": "Change the Initialized value of the LED strip.\n\n:param initialized: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + }, + { + "defaultValue": null, + "name": "length", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "setLength", + "returnType": "None", + "tooltip": "Change the length of the LED strip.\n\n:param length: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + }, + { + "defaultValue": null, + "name": "outputPort", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "setOutputPort", + "returnType": "None", + "tooltip": "Change the output port.\n\n:param outputPort: the new output port" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AddressableLEDSim" + }, + { + "defaultValue": null, + "name": "running", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "setRunning", + "returnType": "None", + "tooltip": "Change whether the LEDs are active.\n\n:param running: the new value" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "pwmChannel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "createForChannel", + "returnType": "wpilib.simulation.AddressableLEDSim", + "tooltip": "Creates an AddressableLEDSim for a PWM channel.\n\n:param pwmChannel: PWM channel\n\n:returns: Simulated object\n @throws std::out_of_range if no AddressableLED is configured for that\n channel" + }, + { + "args": [ + { + "defaultValue": null, + "name": "index", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AddressableLEDSim", + "functionName": "createForIndex", + "returnType": "wpilib.simulation.AddressableLEDSim", + "tooltip": "Creates an AddressableLEDSim for a simulated index.\nThe index is incremented for each simulated AddressableLED.\n\n:param index: simulator index\n\n:returns: Simulated object" + } + ] + }, + { + "className": "wpilib.simulation.AnalogEncoderSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "encoder", + "type": "wpilib.AnalogEncoder" + } + ], + "declaringClassName": "wpilib.simulation.AnalogEncoderSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.AnalogEncoderSim", + "tooltip": "Constructs from an AnalogEncoder object.\n\n:param encoder: AnalogEncoder to simulate" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogEncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogEncoderSim", + "functionName": "get", + "returnType": "float", + "tooltip": "Get the simulated position." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogEncoderSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.AnalogEncoderSim", + "functionName": "set", + "returnType": "None", + "tooltip": "Set the position.\n\n:param value: The position." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.AnalogGyroSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "gyro", + "type": "wpilib.AnalogGyro" + } + ], + "declaringClassName": "wpilib.simulation.AnalogGyroSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.AnalogGyroSim", + "tooltip": "Constructs from an AnalogGyro object.\n\n:param gyro: AnalogGyro to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AnalogGyroSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.AnalogGyroSim", + "tooltip": "Constructs from an analog input channel number.\n\n:param channel: Channel number" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogGyroSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogGyroSim", + "functionName": "getAngle", + "returnType": "float", + "tooltip": "Get the current angle of the gyro.\n\n:returns: the angle measured by the gyro" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogGyroSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogGyroSim", + "functionName": "getInitialized", + "returnType": "bool", + "tooltip": "Check if the gyro is initialized.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogGyroSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogGyroSim", + "functionName": "getRate", + "returnType": "float", + "tooltip": "Get the rate of angle change on this gyro.\n\n:returns: the rate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogGyroSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogGyroSim", + "functionName": "registerAngleCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the angle.\n\n:param callback: the callback that will be called whenever the angle changes\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogGyroSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogGyroSim", + "functionName": "registerInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on whether the gyro is initialized.\n\n:param callback: the callback that will be called whenever the gyro is\n initialized\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogGyroSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogGyroSim", + "functionName": "registerRateCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the rate.\n\n:param callback: the callback that will be called whenever the rate changes\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogGyroSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogGyroSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all simulation data for this object." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogGyroSim" + }, + { + "defaultValue": null, + "name": "angle", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.AnalogGyroSim", + "functionName": "setAngle", + "returnType": "None", + "tooltip": "Change the angle measured by the gyro.\n\n:param angle: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogGyroSim" + }, + { + "defaultValue": null, + "name": "initialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogGyroSim", + "functionName": "setInitialized", + "returnType": "None", + "tooltip": "Set whether this gyro is initialized.\n\n:param initialized: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogGyroSim" + }, + { + "defaultValue": null, + "name": "rate", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.AnalogGyroSim", + "functionName": "setRate", + "returnType": "None", + "tooltip": "Change the rate of the gyro.\n\n:param rate: the new rate" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.AnalogInputSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "analogInput", + "type": "wpilib.AnalogInput" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.AnalogInputSim", + "tooltip": "Constructs from an AnalogInput object.\n\n:param analogInput: AnalogInput to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.AnalogInputSim", + "tooltip": "Constructs from an analog input channel number.\n\n:param channel: Channel number" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "getAccumulatorCenter", + "returnType": "int", + "tooltip": "Get the accumulator center.\n\n:returns: the accumulator center" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "getAccumulatorCount", + "returnType": "int", + "tooltip": "Get the accumulator count.\n\n:returns: the accumulator count." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "getAccumulatorDeadband", + "returnType": "int", + "tooltip": "Get the accumulator deadband.\n\n:returns: the accumulator deadband" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "getAccumulatorInitialized", + "returnType": "bool", + "tooltip": "Check if the accumulator has been initialized.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "getAccumulatorValue", + "returnType": "int", + "tooltip": "Get the accumulator value.\n\n:returns: the accumulator value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "getAverageBits", + "returnType": "int", + "tooltip": "Get the number of average bits.\n\n:returns: the number of average bits" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "getInitialized", + "returnType": "bool", + "tooltip": "Check if this analog input has been initialized.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "getOversampleBits", + "returnType": "int", + "tooltip": "Get the amount of oversampling bits.\n\n:returns: the amount of oversampling bits" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "getVoltage", + "returnType": "float", + "tooltip": "Get the voltage.\n\n:returns: the voltage" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "registerAccumulatorCenterCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the accumulator center.\n\n:param callback: the callback that will be called whenever the accumulator\n center is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "registerAccumulatorCountCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the accumulator count.\n\n:param callback: the callback that will be called whenever the accumulator\n count is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "registerAccumulatorDeadbandCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the accumulator deadband.\n\n:param callback: the callback that will be called whenever the accumulator\n deadband is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "registerAccumulatorInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on whether the accumulator is initialized.\n\n:param callback: the callback that will be called whenever the accumulator\n is initialized\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "registerAccumulatorValueCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the accumulator value.\n\n:param callback: the callback that will be called whenever the accumulator\n value is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "registerAverageBitsCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the number of average bits.\n\n:param callback: the callback that will be called whenever the number of\n average bits is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "registerInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on whether the analog input is initialized.\n\n:param callback: the callback that will be called whenever the analog input\n is initialized\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "registerOversampleBitsCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the amount of oversampling bits.\n\n:param callback: the callback that will be called whenever the oversampling\n bits are changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "registerVoltageCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the voltage.\n\n:param callback: the callback that will be called whenever the voltage is\n changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all simulation data for this object." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "accumulatorCenter", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "setAccumulatorCenter", + "returnType": "None", + "tooltip": "Change the accumulator center.\n\n:param accumulatorCenter: the new center" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "accumulatorCount", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "setAccumulatorCount", + "returnType": "None", + "tooltip": "Change the accumulator count.\n\n:param accumulatorCount: the new count." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "accumulatorDeadband", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "setAccumulatorDeadband", + "returnType": "None", + "tooltip": "Change the accumulator deadband.\n\n:param accumulatorDeadband: the new deadband" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "accumulatorInitialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "setAccumulatorInitialized", + "returnType": "None", + "tooltip": "Change whether the accumulator has been initialized.\n\n:param accumulatorInitialized: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "accumulatorValue", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "setAccumulatorValue", + "returnType": "None", + "tooltip": "Change the accumulator value.\n\n:param accumulatorValue: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "averageBits", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "setAverageBits", + "returnType": "None", + "tooltip": "Change the number of average bits.\n\n:param averageBits: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "initialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "setInitialized", + "returnType": "None", + "tooltip": "Change whether this analog input has been initialized.\n\n:param initialized: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "oversampleBits", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "setOversampleBits", + "returnType": "None", + "tooltip": "Change the amount of oversampling bits.\n\n:param oversampleBits: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogInputSim" + }, + { + "defaultValue": null, + "name": "voltage", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.AnalogInputSim", + "functionName": "setVoltage", + "returnType": "None", + "tooltip": "Change the voltage.\n\n:param voltage: the new value" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.AnalogOutputSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "analogOutput", + "type": "wpilib.AnalogOutput" + } + ], + "declaringClassName": "wpilib.simulation.AnalogOutputSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.AnalogOutputSim", + "tooltip": "Constructs from an AnalogOutput object.\n\n:param analogOutput: AnalogOutput to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AnalogOutputSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.AnalogOutputSim", + "tooltip": "Constructs from an analog output channel number.\n\n:param channel: Channel number" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogOutputSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogOutputSim", + "functionName": "getInitialized", + "returnType": "bool", + "tooltip": "Check whether this analog output has been initialized.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogOutputSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogOutputSim", + "functionName": "getVoltage", + "returnType": "float", + "tooltip": "Read the analog output voltage.\n\n:returns: the voltage on this analog output" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogOutputSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogOutputSim", + "functionName": "registerInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when this analog output is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogOutputSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogOutputSim", + "functionName": "registerVoltageCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the voltage changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogOutputSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogOutputSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all simulation data on this object." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogOutputSim" + }, + { + "defaultValue": null, + "name": "initialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogOutputSim", + "functionName": "setInitialized", + "returnType": "None", + "tooltip": "Define whether this analog output has been initialized.\n\n:param initialized: whether this object is initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogOutputSim" + }, + { + "defaultValue": null, + "name": "voltage", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.AnalogOutputSim", + "functionName": "setVoltage", + "returnType": "None", + "tooltip": "Set the analog output voltage.\n\n:param voltage: the new voltage on this analog output" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.AnalogTriggerSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "analogTrigger", + "type": "wpilib.AnalogTrigger" + } + ], + "declaringClassName": "wpilib.simulation.AnalogTriggerSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.AnalogTriggerSim", + "tooltip": "Constructs from an AnalogTrigger object.\n\n:param analogTrigger: AnalogTrigger to simulate" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogTriggerSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogTriggerSim", + "functionName": "getInitialized", + "returnType": "bool", + "tooltip": "Check if this analog trigger has been initialized.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogTriggerSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogTriggerSim", + "functionName": "getTriggerLowerBound", + "returnType": "float", + "tooltip": "Get the lower bound.\n\n:returns: the lower bound" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogTriggerSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogTriggerSim", + "functionName": "getTriggerUpperBound", + "returnType": "float", + "tooltip": "Get the upper bound.\n\n:returns: the upper bound" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogTriggerSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogTriggerSim", + "functionName": "registerInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on whether the analog trigger is initialized.\n\n:param callback: the callback that will be called whenever the analog\n trigger is initialized\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogTriggerSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogTriggerSim", + "functionName": "registerTriggerLowerBoundCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the lower bound.\n\n:param callback: the callback that will be called whenever the lower bound\n is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogTriggerSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogTriggerSim", + "functionName": "registerTriggerUpperBoundCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the upper bound.\n\n:param callback: the callback that will be called whenever the upper bound\n is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogTriggerSim" + } + ], + "declaringClassName": "wpilib.simulation.AnalogTriggerSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all simulation data for this object." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogTriggerSim" + }, + { + "defaultValue": null, + "name": "initialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.AnalogTriggerSim", + "functionName": "setInitialized", + "returnType": "None", + "tooltip": "Change whether this analog trigger has been initialized.\n\n:param initialized: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogTriggerSim" + }, + { + "defaultValue": null, + "name": "triggerLowerBound", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.AnalogTriggerSim", + "functionName": "setTriggerLowerBound", + "returnType": "None", + "tooltip": "Change the lower bound.\n\n:param triggerLowerBound: the new lower bound" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.AnalogTriggerSim" + }, + { + "defaultValue": null, + "name": "triggerUpperBound", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.AnalogTriggerSim", + "functionName": "setTriggerUpperBound", + "returnType": "None", + "tooltip": "Change the upper bound.\n\n:param triggerUpperBound: the new upper bound" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AnalogTriggerSim", + "functionName": "createForChannel", + "returnType": "wpilib.simulation.AnalogTriggerSim", + "tooltip": "Creates an AnalogTriggerSim for an analog input channel.\n\n:param channel: analog input channel\n\n:returns: Simulated object\n @throws std::out_of_range if no AnalogTrigger is configured for that\n channel" + }, + { + "args": [ + { + "defaultValue": null, + "name": "index", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.AnalogTriggerSim", + "functionName": "createForIndex", + "returnType": "wpilib.simulation.AnalogTriggerSim", + "tooltip": "Creates an AnalogTriggerSim for a simulated index.\nThe index is incremented for each simulated AnalogTrigger.\n\n:param index: simulator index\n\n:returns: Simulated object" + } + ] + }, + { + "className": "wpilib.simulation.BatterySim", + "classVariables": [], + "constructors": [ + { + "args": [], + "declaringClassName": "wpilib.simulation.BatterySim", + "functionName": "__init__", + "returnType": "wpilib.simulation.BatterySim", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "nominalVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "resistance", + "type": "wpimath.units.ohms" + }, + { + "defaultValue": null, + "name": "currents", + "type": "List[wpimath.units.amperes]" + } + ], + "declaringClassName": "wpilib.simulation.BatterySim", + "functionName": "calculate", + "returnType": "wpimath.units.volts", + "tooltip": "Calculate the loaded battery voltage. Use this with\nRoboRioSim::SetVInVoltage(double) to set the simulated battery voltage,\nwhich can then be retrieved with the RobotController::GetBatteryVoltage()\nmethod.\n\n:param nominalVoltage: The nominal battery voltage. Usually 12v.\n:param resistance: The forward resistance of the battery. Most batteries\n are at or below 20 milliohms.\n:param currents: The currents drawn from the battery.\n\n:returns: The battery's voltage under load." + }, + { + "args": [ + { + "defaultValue": null, + "name": "currents", + "type": "List[wpimath.units.amperes]" + } + ], + "declaringClassName": "wpilib.simulation.BatterySim", + "functionName": "calculate", + "returnType": "wpimath.units.volts", + "tooltip": "Calculate the loaded battery voltage. Use this with\nRoboRioSimSetVInVoltage(double) to set the simulated battery voltage, which\ncan then be retrieved with the RobotController::GetBatteryVoltage() method.\nThis function assumes a nominal voltage of 12V and a resistance of 20\nmilliohms (0.020 ohms).\n\n:param currents: The currents drawn from the battery.\n\n:returns: The battery's voltage under load." + } + ] + }, + { + "className": "wpilib.simulation.BuiltInAccelerometerSim", + "classVariables": [], + "constructors": [ + { + "args": [], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.BuiltInAccelerometerSim", + "tooltip": "Constructs for the first built-in accelerometer." + }, + { + "args": [ + { + "defaultValue": null, + "name": "accel", + "type": "wpilib.BuiltInAccelerometer" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.BuiltInAccelerometerSim", + "tooltip": "Constructs from a BuiltInAccelerometer object.\n\n:param accel: BuiltInAccelerometer to simulate" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "getActive", + "returnType": "bool", + "tooltip": "Check whether the accelerometer is active.\n\n:returns: true if active" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "getRange", + "returnType": "hal.AccelerometerRange", + "tooltip": "Check the range of this accelerometer.\n\n:returns: the accelerometer range" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "getX", + "returnType": "float", + "tooltip": "Measure the X axis value.\n\n:returns: the X axis measurement" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "getY", + "returnType": "float", + "tooltip": "Measure the Y axis value.\n\n:returns: the Y axis measurement" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "getZ", + "returnType": "float", + "tooltip": "Measure the Z axis value.\n\n:returns: the Z axis measurement" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "registerActiveCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when this accelerometer activates.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "registerRangeCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the range changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "registerXCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the X axis value changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "registerYCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the Y axis value changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "registerZCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the Z axis value changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all simulation data of this object." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + }, + { + "defaultValue": null, + "name": "active", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "setActive", + "returnType": "None", + "tooltip": "Define whether this accelerometer is active.\n\n:param active: the new state" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + }, + { + "defaultValue": null, + "name": "range", + "type": "hal.AccelerometerRange" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "setRange", + "returnType": "None", + "tooltip": "Change the range of this accelerometer.\n\n:param range: the new accelerometer range" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + }, + { + "defaultValue": null, + "name": "x", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "setX", + "returnType": "None", + "tooltip": "Change the X axis value of the accelerometer.\n\n:param x: the new reading of the X axis" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + }, + { + "defaultValue": null, + "name": "y", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "setY", + "returnType": "None", + "tooltip": "Change the Y axis value of the accelerometer.\n\n:param y: the new reading of the Y axis" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.BuiltInAccelerometerSim" + }, + { + "defaultValue": null, + "name": "z", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.BuiltInAccelerometerSim", + "functionName": "setZ", + "returnType": "None", + "tooltip": "Change the Z axis value of the accelerometer.\n\n:param z: the new reading of the Z axis" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.CTREPCMSim", + "classVariables": [], + "constructors": [ + { + "args": [], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.CTREPCMSim", + "tooltip": "Constructs with the default PCM module number (CAN ID)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "module", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.CTREPCMSim", + "tooltip": "Constructs from a PCM module number (CAN ID).\n\n:param module: module number" + }, + { + "args": [ + { + "defaultValue": null, + "name": "pneumatics", + "type": "wpilib.PneumaticsBase" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.CTREPCMSim", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "getAllSolenoidOutputs", + "returnType": "int", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "getClosedLoopEnabled", + "returnType": "bool", + "tooltip": "Check whether the closed loop compressor control is active.\n\n:returns: true if active" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "getCompressorCurrent", + "returnType": "float", + "tooltip": "Read the compressor current.\n\n:returns: the current of the compressor connected to this module" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "getCompressorOn", + "returnType": "bool", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "getInitialized", + "returnType": "bool", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "getPressureSwitch", + "returnType": "bool", + "tooltip": "Check the value of the pressure switch.\n\n:returns: the pressure switch value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "getSolenoidOutput", + "returnType": "bool", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "registerClosedLoopEnabledCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the closed loop state changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "registerCompressorCurrentCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the compressor current changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "registerCompressorOnCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "registerInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "registerPressureSwitchCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the pressure switch value changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "registerSolenoidOutputCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + }, + { + "defaultValue": null, + "name": "outputs", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "setAllSolenoidOutputs", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + }, + { + "defaultValue": null, + "name": "closedLoopEnabled", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "setClosedLoopEnabled", + "returnType": "None", + "tooltip": "Turn on/off the closed loop control of the compressor.\n\n:param closedLoopEnabled: whether the control loop is active" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + }, + { + "defaultValue": null, + "name": "compressorCurrent", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "setCompressorCurrent", + "returnType": "None", + "tooltip": "Set the compressor current.\n\n:param compressorCurrent: the new compressor current" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + }, + { + "defaultValue": null, + "name": "compressorOn", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "setCompressorOn", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + }, + { + "defaultValue": null, + "name": "initialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "setInitialized", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + }, + { + "defaultValue": null, + "name": "pressureSwitch", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "setPressureSwitch", + "returnType": "None", + "tooltip": "Set the value of the pressure switch.\n\n:param pressureSwitch: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CTREPCMSim" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + }, + { + "defaultValue": null, + "name": "solenoidOutput", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "setSolenoidOutput", + "returnType": "None", + "tooltip": "" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "module", + "type": "int" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.PneumaticsModuleType" + } + ], + "declaringClassName": "wpilib.simulation.CTREPCMSim", + "functionName": "getForType", + "returnType": "wpilib.simulation.PneumaticsBaseSim", + "tooltip": "" + } + ] + }, + { + "className": "wpilib.simulation.CallbackStore", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.CallbackStore" + }, + { + "defaultValue": null, + "name": "uid", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.CallbackStore", + "functionName": "setUid", + "returnType": "None", + "tooltip": "" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.DCMotorSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_1_2" + }, + { + "defaultValue": null, + "name": "gearbox", + "type": "wpimath.system.plant.DCMotor" + }, + { + "defaultValue": "[0.0, 0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(2)]" + } + ], + "declaringClassName": "wpilib.simulation.DCMotorSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.DCMotorSim", + "tooltip": "Creates a simulated DC motor mechanism.\n\n:param plant: The linear system representing the DC motor. This\n system can be created with LinearSystemId::DCMotorSystem(). If\n LinearSystemId::DCMotorSystem(kV, kA) is used, the distance unit must be\n radians.\n:param gearbox: The type of and number of motors in the DC motor\n gearbox.\n:param measurementStdDevs: The standard deviation of the measurement noise." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DCMotorSim" + } + ], + "declaringClassName": "wpilib.simulation.DCMotorSim", + "functionName": "getAngularAcceleration", + "returnType": "wpimath.units.radians_per_second_squared", + "tooltip": "Returns the DC motor acceleration.\n\n:returns: The DC motor acceleration" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DCMotorSim" + } + ], + "declaringClassName": "wpilib.simulation.DCMotorSim", + "functionName": "getAngularPosition", + "returnType": "wpimath.units.radians", + "tooltip": "Returns the DC motor position.\n\n:returns: The DC motor position." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DCMotorSim" + } + ], + "declaringClassName": "wpilib.simulation.DCMotorSim", + "functionName": "getAngularVelocity", + "returnType": "wpimath.units.radians_per_second", + "tooltip": "Returns the DC motor velocity.\n\n:returns: The DC motor velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DCMotorSim" + } + ], + "declaringClassName": "wpilib.simulation.DCMotorSim", + "functionName": "getCurrentDraw", + "returnType": "wpimath.units.amperes", + "tooltip": "Returns the DC motor current draw.\n\n:returns: The DC motor current draw." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DCMotorSim" + } + ], + "declaringClassName": "wpilib.simulation.DCMotorSim", + "functionName": "getGearbox", + "returnType": "wpimath.system.plant.DCMotor", + "tooltip": "Returns the gearbox." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DCMotorSim" + } + ], + "declaringClassName": "wpilib.simulation.DCMotorSim", + "functionName": "getGearing", + "returnType": "float", + "tooltip": "Returns the gearing;" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getInput", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getInput", + "returnType": "float", + "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DCMotorSim" + } + ], + "declaringClassName": "wpilib.simulation.DCMotorSim", + "functionName": "getInputVoltage", + "returnType": "wpimath.units.volts", + "tooltip": "Gets the input voltage for the DC motor.\n\n:returns: The DC motor input voltage." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DCMotorSim" + } + ], + "declaringClassName": "wpilib.simulation.DCMotorSim", + "functionName": "getJ", + "returnType": "wpimath.units.kilogram_square_meters", + "tooltip": "Returns the moment of inertia" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getOutput", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getOutput", + "returnType": "float", + "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DCMotorSim" + } + ], + "declaringClassName": "wpilib.simulation.DCMotorSim", + "functionName": "getTorque", + "returnType": "wpimath.units.newton_meters", + "tooltip": "Returns the DC motor torque.\n\n:returns: The DC motor torque" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DCMotorSim" + }, + { + "defaultValue": null, + "name": "angularPosition", + "type": "wpimath.units.radians" + } + ], + "declaringClassName": "wpilib.simulation.DCMotorSim", + "functionName": "setAngle", + "returnType": "None", + "tooltip": "Sets the DC motor's angular position.\n\n:param angularPosition: The new position in radians." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DCMotorSim" + }, + { + "defaultValue": null, + "name": "angularVelocity", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpilib.simulation.DCMotorSim", + "functionName": "setAngularVelocity", + "returnType": "None", + "tooltip": "Sets the DC motor's angular velocity.\n\n:param angularVelocity: The new velocity in radians per second." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DCMotorSim" + }, + { + "defaultValue": null, + "name": "voltage", + "type": "wpimath.units.volts" + } + ], + "declaringClassName": "wpilib.simulation.DCMotorSim", + "functionName": "setInputVoltage", + "returnType": "None", + "tooltip": "Sets the input voltage for the DC motor.\n\n:param voltage: The input voltage." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DCMotorSim" + }, + { + "defaultValue": null, + "name": "angularPosition", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "angularVelocity", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpilib.simulation.DCMotorSim", + "functionName": "setState", + "returnType": "None", + "tooltip": "Sets the state of the DC motor.\n\n:param angularPosition: The new position\n:param angularVelocity: The new velocity" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "update", + "returnType": "None", + "tooltip": "Updates the simulation.\n\n:param dt: The time between updates." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.DIOSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "input", + "type": "wpilib.DigitalInput" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.DIOSim", + "tooltip": "Constructs from a DigitalInput object.\n\n:param input: DigitalInput to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "output", + "type": "wpilib.DigitalOutput" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.DIOSim", + "tooltip": "Constructs from a DigitalOutput object.\n\n:param output: DigitalOutput to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.DIOSim", + "tooltip": "Constructs from an digital I/O channel number.\n\n:param channel: Channel number" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "getFilterIndex", + "returnType": "int", + "tooltip": "Read the filter index.\n\n:returns: the filter index of this DIO port" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "getInitialized", + "returnType": "bool", + "tooltip": "Check whether this DIO has been initialized.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "getIsInput", + "returnType": "bool", + "tooltip": "Check whether this DIO port is currently an Input.\n\n:returns: true if Input" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "getPulseLength", + "returnType": "float", + "tooltip": "Read the pulse length.\n\n:returns: the pulse length of this DIO port" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "getValue", + "returnType": "bool", + "tooltip": "Read the value of the DIO port.\n\n:returns: the DIO value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "registerFilterIndexCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the filter index changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "registerInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when this DIO is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "registerIsInputCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever this DIO changes to be an input.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "registerPulseLengthCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the pulse length changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "registerValueCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the DIO value changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all simulation data of this object." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + }, + { + "defaultValue": null, + "name": "filterIndex", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "setFilterIndex", + "returnType": "None", + "tooltip": "Change the filter index of this DIO port.\n\n:param filterIndex: the new filter index" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + }, + { + "defaultValue": null, + "name": "initialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "setInitialized", + "returnType": "None", + "tooltip": "Define whether this DIO has been initialized.\n\n:param initialized: whether this object is initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + }, + { + "defaultValue": null, + "name": "isInput", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "setIsInput", + "returnType": "None", + "tooltip": "Define whether this DIO port is an Input.\n\n:param isInput: whether this DIO should be an Input" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + }, + { + "defaultValue": null, + "name": "pulseLength", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "setPulseLength", + "returnType": "None", + "tooltip": "Change the pulse length of this DIO port.\n\n:param pulseLength: the new pulse length" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DIOSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DIOSim", + "functionName": "setValue", + "returnType": "None", + "tooltip": "Change the DIO value.\n\n:param value: the new value" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.DifferentialDrivetrainSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_2_2" + }, + { + "defaultValue": null, + "name": "trackWidth", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "driveMotor", + "type": "wpimath.system.plant.DCMotor" + }, + { + "defaultValue": null, + "name": "gearingRatio", + "type": "float" + }, + { + "defaultValue": null, + "name": "wheelRadius", + "type": "wpimath.units.meters" + }, + { + "defaultValue": "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(7)]" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.DifferentialDrivetrainSim", + "tooltip": "Creates a simulated differential drivetrain.\n\n:param plant: The LinearSystem representing the robot's drivetrain. This\n system can be created with\n LinearSystemId::DrivetrainVelocitySystem() or\n LinearSystemId::IdentifyDrivetrainSystem().\n:param trackWidth: The robot's track width.\n:param driveMotor: A DCMotor representing the left side of the drivetrain.\n:param gearingRatio: The gearingRatio ratio of the left side, as output over\n input. This must be the same ratio as the ratio used to\n identify or create the plant.\n:param wheelRadius: The radius of the wheels on the drivetrain, in meters.\n:param measurementStdDevs: Standard deviations for measurements, in the form\n [x, y, heading, left velocity, right velocity,\n left distance, right distance]\u1d40. Can be omitted\n if no noise is desired. Gyro standard deviations\n of 0.0001 radians, velocity standard deviations\n of 0.05 m/s, and position measurement standard\n deviations of 0.005 meters are a reasonable\n starting point." + }, + { + "args": [ + { + "defaultValue": null, + "name": "driveMotor", + "type": "wpimath.system.plant.DCMotor" + }, + { + "defaultValue": null, + "name": "gearing", + "type": "float" + }, + { + "defaultValue": null, + "name": "J", + "type": "wpimath.units.kilogram_square_meters" + }, + { + "defaultValue": null, + "name": "mass", + "type": "wpimath.units.kilograms" + }, + { + "defaultValue": null, + "name": "wheelRadius", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "trackWidth", + "type": "wpimath.units.meters" + }, + { + "defaultValue": "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(7)]" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.DifferentialDrivetrainSim", + "tooltip": "Creates a simulated differential drivetrain.\n\n:param driveMotor: A DCMotor representing the left side of the drivetrain.\n:param gearing: The gearing on the drive between motor and wheel, as\n output over input. This must be the same ratio as the\n ratio used to identify or create the plant.\n:param J: The moment of inertia of the drivetrain about its\n center.\n:param mass: The mass of the drivebase.\n:param wheelRadius: The radius of the wheels on the drivetrain.\n:param trackWidth: The robot's track width, or distance between left and\n right wheels.\n:param measurementStdDevs: Standard deviations for measurements, in the form\n [x, y, heading, left velocity, right velocity,\n left distance, right distance]\u1d40. Can be omitted\n if no noise is desired. Gyro standard deviations\n of 0.0001 radians, velocity standard deviations\n of 0.05 m/s, and position measurement standard\n deviations of 0.005 meters are a reasonable\n starting point." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "clampInput", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Clamp the input vector such that no element exceeds the battery voltage.\nIf any does, the relative magnitudes of the input will be maintained.\n\n:param u: The input vector.\n\n:returns: The normalized input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + }, + { + "defaultValue": null, + "name": "x", + "type": "numpy.ndarray[numpy.float64[7, 1]]" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "dynamics", + "returnType": "numpy.ndarray[numpy.float64[7, 1]]", + "tooltip": "The differential drive dynamics function.\n\n:param x: The state.\n:param u: The input.\n\n:returns: The state derivative with respect to time." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getCurrentDraw", + "returnType": "wpimath.units.amperes", + "tooltip": "Returns the currently drawn current." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getGearing", + "returnType": "float", + "tooltip": "Returns the current gearing reduction of the drivetrain, as output over\ninput." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getHeading", + "returnType": "wpimath.geometry.Rotation2d", + "tooltip": "Returns the direction the robot is pointing.\n\nNote that this angle is counterclockwise-positive, while most gyros are\nclockwise positive." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getLeftCurrentDraw", + "returnType": "wpimath.units.amperes", + "tooltip": "Returns the currently drawn current for the left side." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getLeftPosition", + "returnType": "wpimath.units.meters", + "tooltip": "Get the left encoder position in meters.\n\n:returns: The encoder position." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getLeftPositionFeet", + "returnType": "wpimath.units.feet", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getLeftPositionInches", + "returnType": "wpimath.units.inches", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getLeftVelocity", + "returnType": "wpimath.units.meters_per_second", + "tooltip": "Get the left encoder velocity in meters per second.\n\n:returns: The encoder velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getLeftVelocityFps", + "returnType": "wpimath.units.feet_per_second", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getPose", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Returns the current pose." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getRightCurrentDraw", + "returnType": "wpimath.units.amperes", + "tooltip": "Returns the currently drawn current for the right side." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getRightPosition", + "returnType": "wpimath.units.meters", + "tooltip": "Get the right encoder position in meters.\n\n:returns: The encoder position." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getRightPositionFeet", + "returnType": "wpimath.units.feet", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getRightPositionInches", + "returnType": "wpimath.units.inches", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getRightVelocity", + "returnType": "wpimath.units.meters_per_second", + "tooltip": "Get the right encoder velocity in meters per second.\n\n:returns: The encoder velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "getRightVelocityFps", + "returnType": "wpimath.units.feet_per_second", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + }, + { + "defaultValue": null, + "name": "newGearing", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "setGearing", + "returnType": "None", + "tooltip": "Sets the gearing reduction on the drivetrain. This is commonly used for\nshifting drivetrains.\n\n:param newGearing: The new gear ratio, as output over input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + }, + { + "defaultValue": null, + "name": "leftVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "rightVoltage", + "type": "wpimath.units.volts" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "setInputs", + "returnType": "None", + "tooltip": "Sets the applied voltage to the drivetrain. Note that positive voltage must\nmake that side of the drivetrain travel forward (+X).\n\n:param leftVoltage: The left voltage.\n:param rightVoltage: The right voltage." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "setPose", + "returnType": "None", + "tooltip": "Sets the system pose.\n\n:param pose: The pose." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + }, + { + "defaultValue": null, + "name": "state", + "type": "numpy.ndarray[numpy.float64[7, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "setState", + "returnType": "None", + "tooltip": "Sets the system state.\n\n:param state: The state." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DifferentialDrivetrainSim" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "update", + "returnType": "None", + "tooltip": "Updates the simulation.\n\n:param dt: The time that's passed since the last Update(units::second_t)\n call." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "motor", + "type": "wpimath.system.plant.DCMotor" + }, + { + "defaultValue": null, + "name": "gearing", + "type": "float" + }, + { + "defaultValue": null, + "name": "wheelSize", + "type": "wpimath.units.meters" + }, + { + "defaultValue": "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(7)]" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "createKitbotSim", + "returnType": "wpilib.simulation.DifferentialDrivetrainSim", + "tooltip": "Create a sim for the standard FRC kitbot.\n\n:param motor: The motors installed in the bot.\n:param gearing: The gearing reduction used.\n:param wheelSize: The wheel size.\n:param measurementStdDevs: Standard deviations for measurements, in the form\n [x, y, heading, left velocity, right velocity, left distance, right\n distance]\u1d40. Can be omitted if no noise is desired. Gyro standard\n deviations of 0.0001 radians, velocity standard deviations of 0.05 m/s, and\n position measurement standard deviations of 0.005 meters are a reasonable\n starting point." + }, + { + "args": [ + { + "defaultValue": null, + "name": "motor", + "type": "wpimath.system.plant.DCMotor" + }, + { + "defaultValue": null, + "name": "gearing", + "type": "float" + }, + { + "defaultValue": null, + "name": "wheelSize", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "J", + "type": "wpimath.units.kilogram_square_meters" + }, + { + "defaultValue": "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(7)]" + } + ], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim", + "functionName": "createKitbotSim", + "returnType": "wpilib.simulation.DifferentialDrivetrainSim", + "tooltip": "Create a sim for the standard FRC kitbot.\n\n:param motor: The motors installed in the bot.\n:param gearing: The gearing reduction used.\n:param wheelSize: The wheel size.\n:param J: The moment of inertia of the drivebase. This can be\n calculated using SysId.\n:param measurementStdDevs: Standard deviations for measurements, in the form\n [x, y, heading, left velocity, right velocity, left distance, right\n distance]\u1d40. Can be omitted if no noise is desired. Gyro standard\n deviations of 0.0001 radians, velocity standard deviations of 0.05 m/s, and\n position measurement standard deviations of 0.005 meters are a reasonable\n starting point." + } + ] + }, + { + "className": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", + "classVariables": [ + { + "name": "k10p71", + "tooltip": "", + "type": "float", + "writable": true + }, + { + "name": "k12p75", + "tooltip": "", + "type": "float", + "writable": true + }, + { + "name": "k5p95", + "tooltip": "", + "type": "float", + "writable": true + }, + { + "name": "k7p31", + "tooltip": "", + "type": "float", + "writable": true + }, + { + "name": "k8p45", + "tooltip": "", + "type": "float", + "writable": true + } + ], + "constructors": [ + { + "args": [], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", + "functionName": "__init__", + "returnType": "wpilib.simulation.DifferentialDrivetrainSim.KitbotGearing", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", + "classVariables": [ + { + "name": "DualCIMPerSide", + "tooltip": "", + "type": "wpimath.system.plant.DCMotor", + "writable": true + }, + { + "name": "DualFalcon500PerSide", + "tooltip": "", + "type": "wpimath.system.plant.DCMotor", + "writable": true + }, + { + "name": "DualMiniCIMPerSide", + "tooltip": "", + "type": "wpimath.system.plant.DCMotor", + "writable": true + }, + { + "name": "DualNEOPerSide", + "tooltip": "", + "type": "wpimath.system.plant.DCMotor", + "writable": true + }, + { + "name": "SingleCIMPerSide", + "tooltip": "", + "type": "wpimath.system.plant.DCMotor", + "writable": true + }, + { + "name": "SingleFalcon500PerSide", + "tooltip": "", + "type": "wpimath.system.plant.DCMotor", + "writable": true + }, + { + "name": "SingleMiniCIMPerSide", + "tooltip": "", + "type": "wpimath.system.plant.DCMotor", + "writable": true + }, + { + "name": "SingleNEOPerSide", + "tooltip": "", + "type": "wpimath.system.plant.DCMotor", + "writable": true + } + ], + "constructors": [ + { + "args": [], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", + "functionName": "__init__", + "returnType": "wpilib.simulation.DifferentialDrivetrainSim.KitbotMotor", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize", + "classVariables": [ + { + "name": "kEightInch", + "tooltip": "", + "type": "float", + "writable": false + }, + { + "name": "kSixInch", + "tooltip": "", + "type": "float", + "writable": false + }, + { + "name": "kTenInch", + "tooltip": "", + "type": "float", + "writable": false + } + ], + "constructors": [ + { + "args": [], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize", + "functionName": "__init__", + "returnType": "wpilib.simulation.DifferentialDrivetrainSim.KitbotWheelSize", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.DifferentialDrivetrainSim.State", + "classVariables": [ + { + "name": "kHeading", + "tooltip": "", + "type": "int", + "writable": false + }, + { + "name": "kLeftPosition", + "tooltip": "", + "type": "int", + "writable": false + }, + { + "name": "kLeftVelocity", + "tooltip": "", + "type": "int", + "writable": false + }, + { + "name": "kRightPosition", + "tooltip": "", + "type": "int", + "writable": false + }, + { + "name": "kRightVelocity", + "tooltip": "", + "type": "int", + "writable": false + }, + { + "name": "kX", + "tooltip": "", + "type": "int", + "writable": false + }, + { + "name": "kY", + "tooltip": "", + "type": "int", + "writable": false + } + ], + "constructors": [ + { + "args": [], + "declaringClassName": "wpilib.simulation.DifferentialDrivetrainSim.State", + "functionName": "__init__", + "returnType": "wpilib.simulation.DifferentialDrivetrainSim.State", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.DigitalPWMSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "digitalOutput", + "type": "wpilib.DigitalOutput" + } + ], + "declaringClassName": "wpilib.simulation.DigitalPWMSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.DigitalPWMSim", + "tooltip": "Constructs from a DigitalOutput object.\n\n:param digitalOutput: DigitalOutput to simulate" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DigitalPWMSim" + } + ], + "declaringClassName": "wpilib.simulation.DigitalPWMSim", + "functionName": "getDutyCycle", + "returnType": "float", + "tooltip": "Read the duty cycle value.\n\n:returns: the duty cycle value of this PWM output" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DigitalPWMSim" + } + ], + "declaringClassName": "wpilib.simulation.DigitalPWMSim", + "functionName": "getInitialized", + "returnType": "bool", + "tooltip": "Check whether this PWM output has been initialized.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DigitalPWMSim" + } + ], + "declaringClassName": "wpilib.simulation.DigitalPWMSim", + "functionName": "getPin", + "returnType": "int", + "tooltip": "Check the pin number.\n\n:returns: the pin number" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DigitalPWMSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DigitalPWMSim", + "functionName": "registerDutyCycleCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the duty cycle value changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DigitalPWMSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DigitalPWMSim", + "functionName": "registerInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when this PWM output is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DigitalPWMSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DigitalPWMSim", + "functionName": "registerPinCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the pin changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DigitalPWMSim" + } + ], + "declaringClassName": "wpilib.simulation.DigitalPWMSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all simulation data." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DigitalPWMSim" + }, + { + "defaultValue": null, + "name": "dutyCycle", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.DigitalPWMSim", + "functionName": "setDutyCycle", + "returnType": "None", + "tooltip": "Set the duty cycle value of this PWM output.\n\n:param dutyCycle: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DigitalPWMSim" + }, + { + "defaultValue": null, + "name": "initialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DigitalPWMSim", + "functionName": "setInitialized", + "returnType": "None", + "tooltip": "Define whether this PWM output has been initialized.\n\n:param initialized: whether this object is initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DigitalPWMSim" + }, + { + "defaultValue": null, + "name": "pin", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DigitalPWMSim", + "functionName": "setPin", + "returnType": "None", + "tooltip": "Change the pin number.\n\n:param pin: the new pin number" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DigitalPWMSim", + "functionName": "createForChannel", + "returnType": "wpilib.simulation.DigitalPWMSim", + "tooltip": "Creates an DigitalPWMSim for a digital I/O channel.\n\n:param channel: DIO channel\n\n:returns: Simulated object\n @throws std::out_of_range if no Digital PWM is configured for that channel" + }, + { + "args": [ + { + "defaultValue": null, + "name": "index", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DigitalPWMSim", + "functionName": "createForIndex", + "returnType": "wpilib.simulation.DigitalPWMSim", + "tooltip": "Creates an DigitalPWMSim for a simulated index.\nThe index is incremented for each simulated DigitalPWM.\n\n:param index: simulator index\n\n:returns: Simulated object" + } + ] + }, + { + "className": "wpilib.simulation.DoubleSolenoidSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "moduleSim", + "type": "wpilib.simulation.PneumaticsBaseSim" + }, + { + "defaultValue": null, + "name": "fwd", + "type": "int" + }, + { + "defaultValue": null, + "name": "rev", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DoubleSolenoidSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.DoubleSolenoidSim", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "module", + "type": "int" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.PneumaticsModuleType" + }, + { + "defaultValue": null, + "name": "fwd", + "type": "int" + }, + { + "defaultValue": null, + "name": "rev", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DoubleSolenoidSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.DoubleSolenoidSim", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "type", + "type": "wpilib.PneumaticsModuleType" + }, + { + "defaultValue": null, + "name": "fwd", + "type": "int" + }, + { + "defaultValue": null, + "name": "rev", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DoubleSolenoidSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.DoubleSolenoidSim", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DoubleSolenoidSim" + } + ], + "declaringClassName": "wpilib.simulation.DoubleSolenoidSim", + "functionName": "get", + "returnType": "wpilib.DoubleSolenoid.Value", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DoubleSolenoidSim" + } + ], + "declaringClassName": "wpilib.simulation.DoubleSolenoidSim", + "functionName": "getModuleSim", + "returnType": "wpilib.simulation.PneumaticsBaseSim", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DoubleSolenoidSim" + }, + { + "defaultValue": null, + "name": "output", + "type": "wpilib.DoubleSolenoid.Value" + } + ], + "declaringClassName": "wpilib.simulation.DoubleSolenoidSim", + "functionName": "set", + "returnType": "None", + "tooltip": "" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.DriverStationSim", + "classVariables": [], + "constructors": [ + { + "args": [], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.DriverStationSim", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [ + { + "args": [], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "getAllianceStationId", + "returnType": "hal.AllianceStationID", + "tooltip": "Get the alliance station ID (color + number).\n\n:returns: the alliance station color and number" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "getAutonomous", + "returnType": "bool", + "tooltip": "Check if the DS is in autonomous.\n\n:returns: true if autonomous" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "getDsAttached", + "returnType": "bool", + "tooltip": "Check if the DS is attached.\n\n:returns: true if attached" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "getEStop", + "returnType": "bool", + "tooltip": "Check if eStop has been activated.\n\n:returns: true if eStopped" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "getEnabled", + "returnType": "bool", + "tooltip": "Check if the DS is enabled.\n\n:returns: true if enabled" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "getFmsAttached", + "returnType": "bool", + "tooltip": "Check if the FMS is connected.\n\n:returns: true if FMS is connected" + }, + { + "args": [ + { + "defaultValue": null, + "name": "stick", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "getJoystickOutputs", + "returnType": "int", + "tooltip": "Gets the joystick outputs.\n\n:param stick: The joystick number\n\n:returns: The joystick outputs" + }, + { + "args": [ + { + "defaultValue": null, + "name": "stick", + "type": "int" + }, + { + "defaultValue": null, + "name": "rumbleNum", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "getJoystickRumble", + "returnType": "int", + "tooltip": "Gets the joystick rumble.\n\n:param stick: The joystick number\n:param rumbleNum: Rumble to get (0=left, 1=right)\n\n:returns: The joystick rumble value" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "getMatchTime", + "returnType": "float", + "tooltip": "Get the current value of the match timer.\n\n:returns: the current match time" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "getTest", + "returnType": "bool", + "tooltip": "Check if the DS is in test.\n\n:returns: true if test" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "notifyNewData", + "returnType": "None", + "tooltip": "Updates DriverStation data so that new values are visible to the user\nprogram." + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "registerAllianceStationIdCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the alliance station ID.\n\n:param callback: the callback that will be called whenever the alliance\n station changes\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "registerAutonomousCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on whether the DS is in autonomous mode.\n\n:param callback: the callback that will be called on autonomous mode\n entrance/exit\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "registerDsAttachedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on whether the DS is connected.\n\n:param callback: the callback that will be called whenever the DS\n connection changes\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "registerEStopCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the eStop state.\n\n:param callback: the callback that will be called whenever the eStop state\n changes\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "registerEnabledCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on whether the DS is enabled.\n\n:param callback: the callback that will be called whenever the enabled\n state is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "registerFmsAttachedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on whether the FMS is connected.\n\n:param callback: the callback that will be called whenever the FMS\n connection changes\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "registerMatchTimeCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on match time.\n\n:param callback: the callback that will be called whenever match time\n changes\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "registerTestCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on whether the DS is in test mode.\n\n:param callback: the callback that will be called whenever the test mode\n is entered or left\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all simulation data for the Driver Station." + }, + { + "args": [ + { + "defaultValue": null, + "name": "allianceStationId", + "type": "hal.AllianceStationID" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setAllianceStationId", + "returnType": "None", + "tooltip": "Change the alliance station.\n\n:param allianceStationId: the new alliance station" + }, + { + "args": [ + { + "defaultValue": null, + "name": "autonomous", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setAutonomous", + "returnType": "None", + "tooltip": "Change whether the DS is in autonomous.\n\n:param autonomous: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "dsAttached", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setDsAttached", + "returnType": "None", + "tooltip": "Change whether the DS is attached.\n\n:param dsAttached: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "eStop", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setEStop", + "returnType": "None", + "tooltip": "Set whether eStop is active.\n\n:param eStop: true to activate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "enabled", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setEnabled", + "returnType": "None", + "tooltip": "Change whether the DS is enabled.\n\n:param enabled: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setEventName", + "returnType": "None", + "tooltip": "Sets the event name.\n\n:param name: the event name" + }, + { + "args": [ + { + "defaultValue": null, + "name": "fmsAttached", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setFmsAttached", + "returnType": "None", + "tooltip": "Change whether the FMS is connected.\n\n:param fmsAttached: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "message", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setGameSpecificMessage", + "returnType": "None", + "tooltip": "Sets the game specific message.\n\n:param message: the game specific message" + }, + { + "args": [ + { + "defaultValue": null, + "name": "stick", + "type": "int" + }, + { + "defaultValue": null, + "name": "axis", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setJoystickAxis", + "returnType": "None", + "tooltip": "Gets the value of the axis on a joystick.\n\n:param stick: The joystick number\n:param axis: The analog axis number\n:param value: The value of the axis on the joystick" + }, + { + "args": [ + { + "defaultValue": null, + "name": "stick", + "type": "int" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setJoystickAxisCount", + "returnType": "None", + "tooltip": "Sets the number of axes for a joystick.\n\n:param stick: The joystick number\n:param count: The number of axes on the indicated joystick" + }, + { + "args": [ + { + "defaultValue": null, + "name": "stick", + "type": "int" + }, + { + "defaultValue": null, + "name": "axis", + "type": "int" + }, + { + "defaultValue": null, + "name": "type", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setJoystickAxisType", + "returnType": "None", + "tooltip": "Sets the types of Axes for a joystick.\n\n:param stick: The joystick number\n:param axis: The target axis\n:param type: The type of axis" + }, + { + "args": [ + { + "defaultValue": null, + "name": "stick", + "type": "int" + }, + { + "defaultValue": null, + "name": "button", + "type": "int" + }, + { + "defaultValue": null, + "name": "state", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setJoystickButton", + "returnType": "None", + "tooltip": "Sets the state of one joystick button. %Button indexes begin at 1.\n\n:param stick: The joystick number\n:param button: The button index, beginning at 1\n:param state: The state of the joystick button" + }, + { + "args": [ + { + "defaultValue": null, + "name": "stick", + "type": "int" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setJoystickButtonCount", + "returnType": "None", + "tooltip": "Sets the number of buttons for a joystick.\n\n:param stick: The joystick number\n:param count: The number of buttons on the indicated joystick" + }, + { + "args": [ + { + "defaultValue": null, + "name": "stick", + "type": "int" + }, + { + "defaultValue": null, + "name": "buttons", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setJoystickButtons", + "returnType": "None", + "tooltip": "Sets the state of all the buttons on a joystick.\n\n:param stick: The joystick number\n:param buttons: The bitmap state of the buttons on the joystick" + }, + { + "args": [ + { + "defaultValue": null, + "name": "stick", + "type": "int" + }, + { + "defaultValue": null, + "name": "isXbox", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setJoystickIsXbox", + "returnType": "None", + "tooltip": "Sets the value of isXbox for a joystick.\n\n:param stick: The joystick number\n:param isXbox: The value of isXbox" + }, + { + "args": [ + { + "defaultValue": null, + "name": "stick", + "type": "int" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setJoystickName", + "returnType": "None", + "tooltip": "Sets the name of a joystick.\n\n:param stick: The joystick number\n:param name: The value of name" + }, + { + "args": [ + { + "defaultValue": null, + "name": "stick", + "type": "int" + }, + { + "defaultValue": null, + "name": "pov", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setJoystickPOV", + "returnType": "None", + "tooltip": "Gets the state of a POV on a joystick.\n\n:param stick: The joystick number\n:param pov: The POV number\n:param value: the angle of the POV in degrees, or -1 for not pressed" + }, + { + "args": [ + { + "defaultValue": null, + "name": "stick", + "type": "int" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setJoystickPOVCount", + "returnType": "None", + "tooltip": "Sets the number of POVs for a joystick.\n\n:param stick: The joystick number\n:param count: The number of POVs on the indicated joystick" + }, + { + "args": [ + { + "defaultValue": null, + "name": "stick", + "type": "int" + }, + { + "defaultValue": null, + "name": "type", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setJoystickType", + "returnType": "None", + "tooltip": "Sets the value of type for a joystick.\n\n:param stick: The joystick number\n:param type: The value of type" + }, + { + "args": [ + { + "defaultValue": null, + "name": "matchNumber", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setMatchNumber", + "returnType": "None", + "tooltip": "Sets the match number.\n\n:param matchNumber: the match number" + }, + { + "args": [ + { + "defaultValue": null, + "name": "matchTime", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setMatchTime", + "returnType": "None", + "tooltip": "Sets the match timer.\n\n:param matchTime: the new match time" + }, + { + "args": [ + { + "defaultValue": null, + "name": "type", + "type": "wpilib.DriverStation.MatchType" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setMatchType", + "returnType": "None", + "tooltip": "Sets the match type.\n\n:param type: the match type" + }, + { + "args": [ + { + "defaultValue": null, + "name": "replayNumber", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setReplayNumber", + "returnType": "None", + "tooltip": "Sets the replay number.\n\n:param replayNumber: the replay number" + }, + { + "args": [ + { + "defaultValue": null, + "name": "shouldSend", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setSendConsoleLine", + "returnType": "None", + "tooltip": "Sets suppression of DriverStation::SendConsoleLine messages.\n\n:param shouldSend: If false then messages will be suppressed." + }, + { + "args": [ + { + "defaultValue": null, + "name": "shouldSend", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setSendError", + "returnType": "None", + "tooltip": "Sets suppression of DriverStation::ReportError and ReportWarning messages.\n\n:param shouldSend: If false then messages will be suppressed." + }, + { + "args": [ + { + "defaultValue": null, + "name": "test", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DriverStationSim", + "functionName": "setTest", + "returnType": "None", + "tooltip": "Change whether the DS is in test.\n\n:param test: the new value" + } + ] + }, + { + "className": "wpilib.simulation.DutyCycleEncoderSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "encoder", + "type": "wpilib.DutyCycleEncoder" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleEncoderSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.DutyCycleEncoderSim", + "tooltip": "Constructs from a DutyCycleEncoder object.\n\n:param encoder: DutyCycleEncoder to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleEncoderSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.DutyCycleEncoderSim", + "tooltip": "Constructs from a digital input channel.\n\n:param channel: digital input channel" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DutyCycleEncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleEncoderSim", + "functionName": "get", + "returnType": "float", + "tooltip": "Get the position.\n\n:returns: The position." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DutyCycleEncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleEncoderSim", + "functionName": "isConnected", + "returnType": "bool", + "tooltip": "Get if the encoder is connected.\n\n:returns: true if the encoder is connected." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DutyCycleEncoderSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleEncoderSim", + "functionName": "set", + "returnType": "None", + "tooltip": "Set the position.\n\n:param value: The position." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DutyCycleEncoderSim" + }, + { + "defaultValue": null, + "name": "isConnected", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleEncoderSim", + "functionName": "setConnected", + "returnType": "None", + "tooltip": "Set if the encoder is connected.\n\n:param isConnected: Whether or not the sensor is connected." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.DutyCycleSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "dutyCycle", + "type": "wpilib.DutyCycle" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.DutyCycleSim", + "tooltip": "Constructs from a DutyCycle object.\n\n:param dutyCycle: DutyCycle to simulate" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DutyCycleSim" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleSim", + "functionName": "getFrequency", + "returnType": "int", + "tooltip": "Measure the frequency.\n\n:returns: the duty cycle frequency" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DutyCycleSim" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleSim", + "functionName": "getInitialized", + "returnType": "bool", + "tooltip": "Check whether this duty cycle input has been initialized.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DutyCycleSim" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleSim", + "functionName": "getOutput", + "returnType": "float", + "tooltip": "Measure the output from this duty cycle port.\n\n:returns: the output value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DutyCycleSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleSim", + "functionName": "registerFrequencyCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the frequency changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DutyCycleSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleSim", + "functionName": "registerInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when this duty cycle input is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DutyCycleSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleSim", + "functionName": "registerOutputCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the output changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DutyCycleSim" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all simulation data for the duty cycle output." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DutyCycleSim" + }, + { + "defaultValue": null, + "name": "frequency", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleSim", + "functionName": "setFrequency", + "returnType": "None", + "tooltip": "Change the duty cycle frequency.\n\n:param frequency: the new frequency" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DutyCycleSim" + }, + { + "defaultValue": null, + "name": "initialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleSim", + "functionName": "setInitialized", + "returnType": "None", + "tooltip": "Define whether this duty cycle input has been initialized.\n\n:param initialized: whether this object is initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.DutyCycleSim" + }, + { + "defaultValue": null, + "name": "output", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleSim", + "functionName": "setOutput", + "returnType": "None", + "tooltip": "Change the duty cycle output.\n\n:param output: the new output value" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleSim", + "functionName": "createForChannel", + "returnType": "wpilib.simulation.DutyCycleSim", + "tooltip": "Creates a DutyCycleSim for a digital input channel.\n\n:param channel: digital input channel\n\n:returns: Simulated object\n @throws std::out_of_range if no DutyCycle is configured for that channel" + }, + { + "args": [ + { + "defaultValue": null, + "name": "index", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.DutyCycleSim", + "functionName": "createForIndex", + "returnType": "wpilib.simulation.DutyCycleSim", + "tooltip": "Creates a DutyCycleSim for a simulated index.\nThe index is incremented for each simulated DutyCycle.\n\n:param index: simulator index\n\n:returns: Simulated object" + } + ] + }, + { + "className": "wpilib.simulation.ElevatorSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_1_2" + }, + { + "defaultValue": null, + "name": "gearbox", + "type": "wpimath.system.plant.DCMotor" + }, + { + "defaultValue": null, + "name": "minHeight", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "maxHeight", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "simulateGravity", + "type": "bool" + }, + { + "defaultValue": null, + "name": "startingHeight", + "type": "wpimath.units.meters" + }, + { + "defaultValue": "[0.0, 0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(2)]" + } + ], + "declaringClassName": "wpilib.simulation.ElevatorSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.ElevatorSim", + "tooltip": "Constructs a simulated elevator mechanism.\n\n:param plant: The linear system that represents the elevator.\n This system can be created with\n LinearSystemId::ElevatorSystem().\n:param gearbox: The type of and number of motors in your\n elevator gearbox.\n:param minHeight: The minimum allowed height of the elevator.\n:param maxHeight: The maximum allowed height of the elevator.\n:param simulateGravity: Whether gravity should be simulated or not.\n:param startingHeight: The starting height of the elevator.\n:param measurementStdDevs: The standard deviation of the measurements." + }, + { + "args": [ + { + "defaultValue": null, + "name": "gearbox", + "type": "wpimath.system.plant.DCMotor" + }, + { + "defaultValue": null, + "name": "gearing", + "type": "float" + }, + { + "defaultValue": null, + "name": "carriageMass", + "type": "wpimath.units.kilograms" + }, + { + "defaultValue": null, + "name": "drumRadius", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "minHeight", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "maxHeight", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "simulateGravity", + "type": "bool" + }, + { + "defaultValue": null, + "name": "startingHeight", + "type": "wpimath.units.meters" + }, + { + "defaultValue": "[0.0, 0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(2)]" + } + ], + "declaringClassName": "wpilib.simulation.ElevatorSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.ElevatorSim", + "tooltip": "Constructs a simulated elevator mechanism.\n\n:param gearbox: The type of and number of motors in your\n elevator gearbox.\n:param gearing: The gearing of the elevator (numbers greater\n than 1 represent reductions).\n:param carriageMass: The mass of the elevator carriage.\n:param drumRadius: The radius of the drum that your cable is\n wrapped around.\n:param minHeight: The minimum allowed height of the elevator.\n:param maxHeight: The maximum allowed height of the elevator.\n:param simulateGravity: Whether gravity should be simulated or not.\n:param startingHeight: The starting height of the elevator.\n:param measurementStdDevs: The standard deviation of the measurements." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ElevatorSim" + } + ], + "declaringClassName": "wpilib.simulation.ElevatorSim", + "functionName": "getCurrentDraw", + "returnType": "wpimath.units.amperes", + "tooltip": "Returns the elevator current draw.\n\n:returns: The elevator current draw." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getInput", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getInput", + "returnType": "float", + "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getOutput", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getOutput", + "returnType": "float", + "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ElevatorSim" + } + ], + "declaringClassName": "wpilib.simulation.ElevatorSim", + "functionName": "getPosition", + "returnType": "wpimath.units.meters", + "tooltip": "Returns the position of the elevator.\n\n:returns: The position of the elevator." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ElevatorSim" + } + ], + "declaringClassName": "wpilib.simulation.ElevatorSim", + "functionName": "getPositionFeet", + "returnType": "wpimath.units.feet", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ElevatorSim" + } + ], + "declaringClassName": "wpilib.simulation.ElevatorSim", + "functionName": "getPositionInches", + "returnType": "wpimath.units.inches", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ElevatorSim" + } + ], + "declaringClassName": "wpilib.simulation.ElevatorSim", + "functionName": "getVelocity", + "returnType": "wpimath.units.meters_per_second", + "tooltip": "Returns the velocity of the elevator.\n\n:returns: The velocity of the elevator." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ElevatorSim" + } + ], + "declaringClassName": "wpilib.simulation.ElevatorSim", + "functionName": "getVelocityFps", + "returnType": "wpimath.units.feet_per_second", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ElevatorSim" + } + ], + "declaringClassName": "wpilib.simulation.ElevatorSim", + "functionName": "hasHitLowerLimit", + "returnType": "bool", + "tooltip": "Returns whether the elevator has hit the lower limit.\n\n:returns: Whether the elevator has hit the lower limit." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ElevatorSim" + } + ], + "declaringClassName": "wpilib.simulation.ElevatorSim", + "functionName": "hasHitUpperLimit", + "returnType": "bool", + "tooltip": "Returns whether the elevator has hit the upper limit.\n\n:returns: Whether the elevator has hit the upper limit." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ElevatorSim" + }, + { + "defaultValue": null, + "name": "voltage", + "type": "wpimath.units.volts" + } + ], + "declaringClassName": "wpilib.simulation.ElevatorSim", + "functionName": "setInputVoltage", + "returnType": "None", + "tooltip": "Sets the input voltage for the elevator.\n\n:param voltage: The input voltage." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ElevatorSim" + }, + { + "defaultValue": null, + "name": "position", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.meters_per_second" + } + ], + "declaringClassName": "wpilib.simulation.ElevatorSim", + "functionName": "setState", + "returnType": "None", + "tooltip": "Sets the elevator's state. The new position will be limited between the\nminimum and maximum allowed heights.\n\n:param position: The new position\n:param velocity: The new velocity" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "update", + "returnType": "None", + "tooltip": "Updates the simulation.\n\n:param dt: The time between updates." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ElevatorSim" + }, + { + "defaultValue": null, + "name": "elevatorHeight", + "type": "wpimath.units.meters" + } + ], + "declaringClassName": "wpilib.simulation.ElevatorSim", + "functionName": "wouldHitLowerLimit", + "returnType": "bool", + "tooltip": "Returns whether the elevator would hit the lower limit.\n\n:param elevatorHeight: The elevator height.\n\n:returns: Whether the elevator would hit the lower limit." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.ElevatorSim" + }, + { + "defaultValue": null, + "name": "elevatorHeight", + "type": "wpimath.units.meters" + } + ], + "declaringClassName": "wpilib.simulation.ElevatorSim", + "functionName": "wouldHitUpperLimit", + "returnType": "bool", + "tooltip": "Returns whether the elevator would hit the upper limit.\n\n:param elevatorHeight: The elevator height.\n\n:returns: Whether the elevator would hit the upper limit." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.EncoderSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "encoder", + "type": "wpilib.Encoder" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.EncoderSim", + "tooltip": "Constructs from an Encoder object.\n\n:param encoder: Encoder to simulate" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "getCount", + "returnType": "int", + "tooltip": "Read the count of the encoder.\n\n:returns: the count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "getDirection", + "returnType": "bool", + "tooltip": "Get the direction of the encoder.\n\n:returns: the direction of the encoder" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "getDistance", + "returnType": "float", + "tooltip": "Read the distance of the encoder.\n\n:returns: the encoder distance" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "getDistancePerPulse", + "returnType": "float", + "tooltip": "Read the distance per pulse of the encoder.\n\n:returns: the encoder distance per pulse" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "getInitialized", + "returnType": "bool", + "tooltip": "Read the Initialized value of the encoder.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "getMaxPeriod", + "returnType": "float", + "tooltip": "Get the max period of the encoder.\n\n:returns: the max period of the encoder" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "getPeriod", + "returnType": "float", + "tooltip": "Read the period of the encoder.\n\n:returns: the encoder period" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "getRate", + "returnType": "float", + "tooltip": "Get the rate of the encoder.\n\n:returns: the rate of change" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "getReset", + "returnType": "bool", + "tooltip": "Check if the encoder has been reset.\n\n:returns: true if reset" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "getReverseDirection", + "returnType": "bool", + "tooltip": "Get the reverse direction of the encoder.\n\n:returns: the reverse direction of the encoder" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "getSamplesToAverage", + "returnType": "int", + "tooltip": "Get the samples-to-average value.\n\n:returns: the samples-to-average value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "registerCountCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the count property of the encoder.\n\n:param callback: the callback that will be called whenever the count\n property is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "registerDirectionCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the direction of the encoder.\n\n:param callback: the callback that will be called whenever the direction\n is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "registerDistancePerPulseCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the distance per pulse value of this encoder.\n\n:param callback: the callback that will be called whenever the\n distance per pulse is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "registerInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the Initialized property of the encoder.\n\n:param callback: the callback that will be called whenever the Initialized\n property is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "registerMaxPeriodCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the max period of the encoder is\nchanged.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "registerPeriodCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the period of the encoder.\n\n:param callback: the callback that will be called whenever the period is\n changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "registerResetCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be called whenever the encoder is reset.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "registerReverseDirectionCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the reverse direction.\n\n:param callback: the callback that will be called whenever the reverse\n direction is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "registerSamplesToAverageCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback on the samples-to-average value of this encoder.\n\n:param callback: the callback that will be called whenever the\n samples-to-average is changed\n:param initialNotify: if true, the callback will be run on the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Resets all simulation data for this encoder." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "setCount", + "returnType": "None", + "tooltip": "Change the count of the encoder.\n\n:param count: the new count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "direction", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "setDirection", + "returnType": "None", + "tooltip": "Set the direction of the encoder.\n\n:param direction: the new direction" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "distance", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "setDistance", + "returnType": "None", + "tooltip": "Change the encoder distance.\n\n:param distance: the new distance" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "distancePerPulse", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "setDistancePerPulse", + "returnType": "None", + "tooltip": "Change the encoder distance per pulse.\n\n:param distancePerPulse: the new distance per pulse" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "initialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "setInitialized", + "returnType": "None", + "tooltip": "Change the Initialized value of the encoder.\n\n:param initialized: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "maxPeriod", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "setMaxPeriod", + "returnType": "None", + "tooltip": "Change the max period of the encoder.\n\n:param maxPeriod: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "period", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "setPeriod", + "returnType": "None", + "tooltip": "Change the encoder period.\n\n:param period: the new period" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "rate", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "setRate", + "returnType": "None", + "tooltip": "Change the rate of the encoder.\n\n:param rate: the new rate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "reset", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "setReset", + "returnType": "None", + "tooltip": "Change the reset property of the encoder.\n\n:param reset: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "reverseDirection", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "setReverseDirection", + "returnType": "None", + "tooltip": "Set the reverse direction.\n\n:param reverseDirection: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.EncoderSim" + }, + { + "defaultValue": null, + "name": "samplesToAverage", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "setSamplesToAverage", + "returnType": "None", + "tooltip": "Set the samples-to-average value.\n\n:param samplesToAverage: the new value" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "createForChannel", + "returnType": "wpilib.simulation.EncoderSim", + "tooltip": "Creates an EncoderSim for a digital input channel. Encoders take two\nchannels, so either one may be specified.\n\n:param channel: digital input channel\n\n:returns: Simulated object\n @throws NoSuchElementException if no Encoder is configured for that channel" + }, + { + "args": [ + { + "defaultValue": null, + "name": "index", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.EncoderSim", + "functionName": "createForIndex", + "returnType": "wpilib.simulation.EncoderSim", + "tooltip": "Creates an EncoderSim for a simulated index.\nThe index is incremented for each simulated Encoder.\n\n:param index: simulator index\n\n:returns: Simulated object" + } + ] + }, + { + "className": "wpilib.simulation.FlywheelSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_1_1_1" + }, + { + "defaultValue": null, + "name": "gearbox", + "type": "wpimath.system.plant.DCMotor" + }, + { + "defaultValue": "[0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(1)]" + } + ], + "declaringClassName": "wpilib.simulation.FlywheelSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.FlywheelSim", + "tooltip": "Creates a simulated flywheel mechanism.\n\n:param plant: The linear system representing the flywheel. This\n system can be created with\n LinearSystemId::FlywheelSystem() or\n LinearSystemId::IdentifyVelocitySystem().\n:param gearbox: The type of and number of motors in the flywheel\n gearbox.\n:param measurementStdDevs: The standard deviation of the measurement noise." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.FlywheelSim" + } + ], + "declaringClassName": "wpilib.simulation.FlywheelSim", + "functionName": "J", + "returnType": "wpimath.units.kilogram_square_meters", + "tooltip": "Returns the moment of inertia" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.FlywheelSim" + } + ], + "declaringClassName": "wpilib.simulation.FlywheelSim", + "functionName": "gearbox", + "returnType": "wpimath.system.plant.DCMotor", + "tooltip": "Returns the gearbox." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.FlywheelSim" + } + ], + "declaringClassName": "wpilib.simulation.FlywheelSim", + "functionName": "gearing", + "returnType": "float", + "tooltip": "Returns the gearing;" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.FlywheelSim" + } + ], + "declaringClassName": "wpilib.simulation.FlywheelSim", + "functionName": "getAngularAcceleration", + "returnType": "wpimath.units.radians_per_second_squared", + "tooltip": "Returns the flywheel's acceleration.\n\n:returns: The flywheel's acceleration" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.FlywheelSim" + } + ], + "declaringClassName": "wpilib.simulation.FlywheelSim", + "functionName": "getAngularVelocity", + "returnType": "wpimath.units.radians_per_second", + "tooltip": "Returns the flywheel's velocity.\n\n:returns: The flywheel's velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.FlywheelSim" + } + ], + "declaringClassName": "wpilib.simulation.FlywheelSim", + "functionName": "getCurrentDraw", + "returnType": "wpimath.units.amperes", + "tooltip": "Returns the flywheel's current draw.\n\n:returns: The flywheel's current draw." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "getInput", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "getInput", + "returnType": "float", + "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.FlywheelSim" + } + ], + "declaringClassName": "wpilib.simulation.FlywheelSim", + "functionName": "getInputVoltage", + "returnType": "wpimath.units.volts", + "tooltip": "Gets the input voltage for the flywheel.\n\n:returns: The flywheel input voltage." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "getOutput", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "getOutput", + "returnType": "float", + "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.FlywheelSim" + } + ], + "declaringClassName": "wpilib.simulation.FlywheelSim", + "functionName": "getTorque", + "returnType": "wpimath.units.newton_meters", + "tooltip": "Returns the flywheel's torque.\n\n:returns: The flywheel's torque" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.FlywheelSim" + }, + { + "defaultValue": null, + "name": "voltage", + "type": "wpimath.units.volts" + } + ], + "declaringClassName": "wpilib.simulation.FlywheelSim", + "functionName": "setInputVoltage", + "returnType": "None", + "tooltip": "Sets the input voltage for the flywheel.\n\n:param voltage: The input voltage." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + }, + { + "defaultValue": null, + "name": "state", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "setState", + "returnType": "None", + "tooltip": "Sets the system state.\n\n:param state: The new state." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.FlywheelSim" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpilib.simulation.FlywheelSim", + "functionName": "setVelocity", + "returnType": "None", + "tooltip": "Sets the flywheel's angular velocity.\n\n:param velocity: The new velocity" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "update", + "returnType": "None", + "tooltip": "Updates the simulation.\n\n:param dt: The time between updates." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.GenericHIDSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "joystick", + "type": "wpilib.interfaces.GenericHID" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.GenericHIDSim", + "tooltip": "Constructs from a GenericHID object.\n\n:param joystick: joystick to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "port", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.GenericHIDSim", + "tooltip": "Constructs from a joystick port number.\n\n:param port: port number" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "outputNumber", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getOutput", + "returnType": "bool", + "tooltip": "Read the output of a button.\n\n:param outputNumber: the button number\n\n:returns: the value of the button (true = pressed)" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getOutputs", + "returnType": "int", + "tooltip": "Get the encoded 16-bit integer that passes button values.\n\n:returns: the button values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.interfaces.GenericHID.RumbleType" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getRumble", + "returnType": "float", + "tooltip": "Get the joystick rumble.\n\n:param type: the rumble to read\n\n:returns: the rumble value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "notifyNewData", + "returnType": "None", + "tooltip": "Updates joystick data so that new values are visible to the user program." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setAxisCount", + "returnType": "None", + "tooltip": "Set the axis count of this device.\n\n:param count: the new axis count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "axis", + "type": "int" + }, + { + "defaultValue": null, + "name": "type", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setAxisType", + "returnType": "None", + "tooltip": "Set the type of an axis.\n\n:param axis: the axis\n:param type: the type" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setButtonCount", + "returnType": "None", + "tooltip": "Set the button count of this device.\n\n:param count: the new button count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setName", + "returnType": "None", + "tooltip": "Set the name of this device.\n\n:param name: the new device name" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "pov", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOV", + "returnType": "None", + "tooltip": "Set the value of a given POV.\n\n:param pov: the POV to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOV", + "returnType": "None", + "tooltip": "Set the value of the default POV (port 0).\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOVCount", + "returnType": "None", + "tooltip": "Set the POV count of this device.\n\n:param count: the new POV count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "axis", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setRawAxis", + "returnType": "None", + "tooltip": "Set the value of a given axis.\n\n:param axis: the axis to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "button", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setRawButton", + "returnType": "None", + "tooltip": "Set the value of a given button.\n\n:param button: the button to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.interfaces.GenericHID.HIDType" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setType", + "returnType": "None", + "tooltip": "Set the type of this device.\n\n:param type: the new device type" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.JoystickSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "joystick", + "type": "wpilib.Joystick" + } + ], + "declaringClassName": "wpilib.simulation.JoystickSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.JoystickSim", + "tooltip": "Constructs from a Joystick object.\n\n:param joystick: joystick to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "port", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.JoystickSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.JoystickSim", + "tooltip": "Constructs from a joystick port number.\n\n:param port: port number" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "outputNumber", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getOutput", + "returnType": "bool", + "tooltip": "Read the output of a button.\n\n:param outputNumber: the button number\n\n:returns: the value of the button (true = pressed)" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getOutputs", + "returnType": "int", + "tooltip": "Get the encoded 16-bit integer that passes button values.\n\n:returns: the button values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.interfaces.GenericHID.RumbleType" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getRumble", + "returnType": "float", + "tooltip": "Get the joystick rumble.\n\n:param type: the rumble to read\n\n:returns: the rumble value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "notifyNewData", + "returnType": "None", + "tooltip": "Updates joystick data so that new values are visible to the user program." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setAxisCount", + "returnType": "None", + "tooltip": "Set the axis count of this device.\n\n:param count: the new axis count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "axis", + "type": "int" + }, + { + "defaultValue": null, + "name": "type", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setAxisType", + "returnType": "None", + "tooltip": "Set the type of an axis.\n\n:param axis: the axis\n:param type: the type" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setButtonCount", + "returnType": "None", + "tooltip": "Set the button count of this device.\n\n:param count: the new button count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setName", + "returnType": "None", + "tooltip": "Set the name of this device.\n\n:param name: the new device name" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "pov", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOV", + "returnType": "None", + "tooltip": "Set the value of a given POV.\n\n:param pov: the POV to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOV", + "returnType": "None", + "tooltip": "Set the value of the default POV (port 0).\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOVCount", + "returnType": "None", + "tooltip": "Set the POV count of this device.\n\n:param count: the new POV count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "axis", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setRawAxis", + "returnType": "None", + "tooltip": "Set the value of a given axis.\n\n:param axis: the axis to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "button", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setRawButton", + "returnType": "None", + "tooltip": "Set the value of a given button.\n\n:param button: the button to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.JoystickSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.JoystickSim", + "functionName": "setThrottle", + "returnType": "None", + "tooltip": "Set the throttle value of the joystick.\n\n:param value: the new throttle value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.JoystickSim" + }, + { + "defaultValue": null, + "name": "state", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.JoystickSim", + "functionName": "setTop", + "returnType": "None", + "tooltip": "Set the top state of the joystick.\n\n:param state: the new state" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.JoystickSim" + }, + { + "defaultValue": null, + "name": "state", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.JoystickSim", + "functionName": "setTrigger", + "returnType": "None", + "tooltip": "Set the trigger value of the joystick.\n\n:param state: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.JoystickSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.JoystickSim", + "functionName": "setTwist", + "returnType": "None", + "tooltip": "Set the twist value of the joystick.\n\n:param value: the new twist value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.interfaces.GenericHID.HIDType" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setType", + "returnType": "None", + "tooltip": "Set the type of this device.\n\n:param type: the new device type" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.JoystickSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.JoystickSim", + "functionName": "setX", + "returnType": "None", + "tooltip": "Set the X value of the joystick.\n\n:param value: the new X value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.JoystickSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.JoystickSim", + "functionName": "setY", + "returnType": "None", + "tooltip": "Set the Y value of the joystick.\n\n:param value: the new Y value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.JoystickSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.JoystickSim", + "functionName": "setZ", + "returnType": "None", + "tooltip": "Set the Z value of the joystick.\n\n:param value: the new Z value" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.LinearSystemSim_1_1_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "system", + "type": "wpimath.system.LinearSystem_1_1_1" + }, + { + "defaultValue": "[0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(1)]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "__init__", + "returnType": "wpilib.simulation.LinearSystemSim_1_1_1", + "tooltip": "Creates a simulated generic linear system.\n\n:param system: The system to simulate.\n:param measurementStdDevs: The standard deviations of the measurements." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "getInput", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "getInput", + "returnType": "float", + "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "getOutput", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "getOutput", + "returnType": "float", + "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + }, + { + "defaultValue": null, + "name": "state", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "setState", + "returnType": "None", + "tooltip": "Sets the system state.\n\n:param state: The new state." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_1" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_1", + "functionName": "update", + "returnType": "None", + "tooltip": "Updates the simulation.\n\n:param dt: The time between updates." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.LinearSystemSim_1_1_2", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "system", + "type": "wpimath.system.LinearSystem_1_1_2" + }, + { + "defaultValue": "[0.0, 0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(2)]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_2", + "functionName": "__init__", + "returnType": "wpilib.simulation.LinearSystemSim_1_1_2", + "tooltip": "Creates a simulated generic linear system.\n\n:param system: The system to simulate.\n:param measurementStdDevs: The standard deviations of the measurements." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_2" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_2", + "functionName": "getInput", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_2", + "functionName": "getInput", + "returnType": "float", + "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_2" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_2", + "functionName": "getOutput", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_2", + "functionName": "getOutput", + "returnType": "float", + "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_2" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_2", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_2", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_2" + }, + { + "defaultValue": null, + "name": "state", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_2", + "functionName": "setState", + "returnType": "None", + "tooltip": "Sets the system state.\n\n:param state: The new state." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_1_1_2" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_1_1_2", + "functionName": "update", + "returnType": "None", + "tooltip": "Updates the simulation.\n\n:param dt: The time between updates." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.LinearSystemSim_2_1_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "system", + "type": "wpimath.system.LinearSystem_2_1_1" + }, + { + "defaultValue": "[0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(1)]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_1", + "functionName": "__init__", + "returnType": "wpilib.simulation.LinearSystemSim_2_1_1", + "tooltip": "Creates a simulated generic linear system.\n\n:param system: The system to simulate.\n:param measurementStdDevs: The standard deviations of the measurements." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_1" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_1", + "functionName": "getInput", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_1" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_1", + "functionName": "getInput", + "returnType": "float", + "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_1" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_1", + "functionName": "getOutput", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_1" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_1", + "functionName": "getOutput", + "returnType": "float", + "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_1", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_1" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_1", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_1" + }, + { + "defaultValue": null, + "name": "state", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_1", + "functionName": "setState", + "returnType": "None", + "tooltip": "Sets the system state.\n\n:param state: The new state." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_1" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_1", + "functionName": "update", + "returnType": "None", + "tooltip": "Updates the simulation.\n\n:param dt: The time between updates." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.LinearSystemSim_2_1_2", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "system", + "type": "wpimath.system.LinearSystem_2_1_2" + }, + { + "defaultValue": "[0.0, 0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(2)]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "__init__", + "returnType": "wpilib.simulation.LinearSystemSim_2_1_2", + "tooltip": "Creates a simulated generic linear system.\n\n:param system: The system to simulate.\n:param measurementStdDevs: The standard deviations of the measurements." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getInput", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getInput", + "returnType": "float", + "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getOutput", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getOutput", + "returnType": "float", + "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "state", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "setState", + "returnType": "None", + "tooltip": "Sets the system state.\n\n:param state: The new state." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "update", + "returnType": "None", + "tooltip": "Updates the simulation.\n\n:param dt: The time between updates." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.LinearSystemSim_2_2_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "system", + "type": "wpimath.system.LinearSystem_2_2_1" + }, + { + "defaultValue": "[0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(1)]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_1", + "functionName": "__init__", + "returnType": "wpilib.simulation.LinearSystemSim_2_2_1", + "tooltip": "Creates a simulated generic linear system.\n\n:param system: The system to simulate.\n:param measurementStdDevs: The standard deviations of the measurements." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_1" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_1", + "functionName": "getInput", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_1" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_1", + "functionName": "getInput", + "returnType": "float", + "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_1" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_1", + "functionName": "getOutput", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_1" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_1", + "functionName": "getOutput", + "returnType": "float", + "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_1", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_1" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_1", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_1" + }, + { + "defaultValue": null, + "name": "state", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_1", + "functionName": "setState", + "returnType": "None", + "tooltip": "Sets the system state.\n\n:param state: The new state." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_1" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_1", + "functionName": "update", + "returnType": "None", + "tooltip": "Updates the simulation.\n\n:param dt: The time between updates." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.LinearSystemSim_2_2_2", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "system", + "type": "wpimath.system.LinearSystem_2_2_2" + }, + { + "defaultValue": "[0.0, 0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(2)]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_2", + "functionName": "__init__", + "returnType": "wpilib.simulation.LinearSystemSim_2_2_2", + "tooltip": "Creates a simulated generic linear system.\n\n:param system: The system to simulate.\n:param measurementStdDevs: The standard deviations of the measurements." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_2" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_2", + "functionName": "getInput", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_2", + "functionName": "getInput", + "returnType": "float", + "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_2" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_2", + "functionName": "getOutput", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_2", + "functionName": "getOutput", + "returnType": "float", + "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_2" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_2", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_2", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_2" + }, + { + "defaultValue": null, + "name": "state", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_2", + "functionName": "setState", + "returnType": "None", + "tooltip": "Sets the system state.\n\n:param state: The new state." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_2_2" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_2_2", + "functionName": "update", + "returnType": "None", + "tooltip": "Updates the simulation.\n\n:param dt: The time between updates." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.PS4ControllerSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "joystick", + "type": "wpilib.PS4Controller" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.PS4ControllerSim", + "tooltip": "Constructs from a PS4Controller object.\n\n:param joystick: controller to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "port", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.PS4ControllerSim", + "tooltip": "Constructs from a joystick port number.\n\n:param port: port number" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "outputNumber", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getOutput", + "returnType": "bool", + "tooltip": "Read the output of a button.\n\n:param outputNumber: the button number\n\n:returns: the value of the button (true = pressed)" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getOutputs", + "returnType": "int", + "tooltip": "Get the encoded 16-bit integer that passes button values.\n\n:returns: the button values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.interfaces.GenericHID.RumbleType" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getRumble", + "returnType": "float", + "tooltip": "Get the joystick rumble.\n\n:param type: the rumble to read\n\n:returns: the rumble value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "notifyNewData", + "returnType": "None", + "tooltip": "Updates joystick data so that new values are visible to the user program." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setAxisCount", + "returnType": "None", + "tooltip": "Set the axis count of this device.\n\n:param count: the new axis count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "axis", + "type": "int" + }, + { + "defaultValue": null, + "name": "type", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setAxisType", + "returnType": "None", + "tooltip": "Set the type of an axis.\n\n:param axis: the axis\n:param type: the type" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setButtonCount", + "returnType": "None", + "tooltip": "Set the button count of this device.\n\n:param count: the new button count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setCircleButton", + "returnType": "None", + "tooltip": "Change the value of the circle button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setCrossButton", + "returnType": "None", + "tooltip": "Change the value of the cross button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setL1Button", + "returnType": "None", + "tooltip": "Change the value of the left trigger 1 button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setL2Axis", + "returnType": "None", + "tooltip": "Change the value of the left trigger 2 axis on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setL2Button", + "returnType": "None", + "tooltip": "Change the value of the left trigger 2 button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setL3Button", + "returnType": "None", + "tooltip": "Change the value of the L3 (left stick) button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setLeftX", + "returnType": "None", + "tooltip": "Change the left X value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setLeftY", + "returnType": "None", + "tooltip": "Change the left Y value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setName", + "returnType": "None", + "tooltip": "Set the name of this device.\n\n:param name: the new device name" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setOptionsButton", + "returnType": "None", + "tooltip": "Change the value of the options button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "pov", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOV", + "returnType": "None", + "tooltip": "Set the value of a given POV.\n\n:param pov: the POV to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOV", + "returnType": "None", + "tooltip": "Set the value of the default POV (port 0).\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOVCount", + "returnType": "None", + "tooltip": "Set the POV count of this device.\n\n:param count: the new POV count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setPSButton", + "returnType": "None", + "tooltip": "Change the value of the PlayStation button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setR1Button", + "returnType": "None", + "tooltip": "Change the value of the right trigger 1 button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setR2Axis", + "returnType": "None", + "tooltip": "Change the value of the right trigger 2 axis on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setR2Button", + "returnType": "None", + "tooltip": "Change the value of the right trigger 2 button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setR3Button", + "returnType": "None", + "tooltip": "Change the value of the R3 (right stick) button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "axis", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setRawAxis", + "returnType": "None", + "tooltip": "Set the value of a given axis.\n\n:param axis: the axis to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "button", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setRawButton", + "returnType": "None", + "tooltip": "Set the value of a given button.\n\n:param button: the button to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setRightX", + "returnType": "None", + "tooltip": "Change the right X value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setRightY", + "returnType": "None", + "tooltip": "Change the right Y value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setShareButton", + "returnType": "None", + "tooltip": "Change the value of the share button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setSquareButton", + "returnType": "None", + "tooltip": "Change the value of the square button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setTouchpadButton", + "returnType": "None", + "tooltip": "Change the value of the touchpad button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS4ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS4ControllerSim", + "functionName": "setTriangleButton", + "returnType": "None", + "tooltip": "Change the value of the triangle button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.interfaces.GenericHID.HIDType" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setType", + "returnType": "None", + "tooltip": "Set the type of this device.\n\n:param type: the new device type" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.PS5ControllerSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "joystick", + "type": "wpilib.PS5Controller" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.PS5ControllerSim", + "tooltip": "Constructs from a PS5Controller object.\n\n:param joystick: controller to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "port", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.PS5ControllerSim", + "tooltip": "Constructs from a joystick port number.\n\n:param port: port number" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "outputNumber", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getOutput", + "returnType": "bool", + "tooltip": "Read the output of a button.\n\n:param outputNumber: the button number\n\n:returns: the value of the button (true = pressed)" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getOutputs", + "returnType": "int", + "tooltip": "Get the encoded 16-bit integer that passes button values.\n\n:returns: the button values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.interfaces.GenericHID.RumbleType" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getRumble", + "returnType": "float", + "tooltip": "Get the joystick rumble.\n\n:param type: the rumble to read\n\n:returns: the rumble value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "notifyNewData", + "returnType": "None", + "tooltip": "Updates joystick data so that new values are visible to the user program." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setAxisCount", + "returnType": "None", + "tooltip": "Set the axis count of this device.\n\n:param count: the new axis count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "axis", + "type": "int" + }, + { + "defaultValue": null, + "name": "type", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setAxisType", + "returnType": "None", + "tooltip": "Set the type of an axis.\n\n:param axis: the axis\n:param type: the type" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setButtonCount", + "returnType": "None", + "tooltip": "Set the button count of this device.\n\n:param count: the new button count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setCircleButton", + "returnType": "None", + "tooltip": "Change the value of the circle button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setCreateButton", + "returnType": "None", + "tooltip": "Change the value of the create button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setCrossButton", + "returnType": "None", + "tooltip": "Change the value of the cross button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setL1Button", + "returnType": "None", + "tooltip": "Change the value of the left trigger 1 button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setL2Axis", + "returnType": "None", + "tooltip": "Change the value of the left trigger 2 axis on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setL2Button", + "returnType": "None", + "tooltip": "Change the value of the left trigger 2 button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setL3Button", + "returnType": "None", + "tooltip": "Change the value of the L3 (left stick) button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setLeftX", + "returnType": "None", + "tooltip": "Change the left X value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setLeftY", + "returnType": "None", + "tooltip": "Change the left Y value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setName", + "returnType": "None", + "tooltip": "Set the name of this device.\n\n:param name: the new device name" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setOptionsButton", + "returnType": "None", + "tooltip": "Change the value of the options button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "pov", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOV", + "returnType": "None", + "tooltip": "Set the value of a given POV.\n\n:param pov: the POV to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOV", + "returnType": "None", + "tooltip": "Set the value of the default POV (port 0).\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOVCount", + "returnType": "None", + "tooltip": "Set the POV count of this device.\n\n:param count: the new POV count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setPSButton", + "returnType": "None", + "tooltip": "Change the value of the PlayStation button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setR1Button", + "returnType": "None", + "tooltip": "Change the value of the right trigger 1 button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setR2Axis", + "returnType": "None", + "tooltip": "Change the value of the right trigger 2 axis on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setR2Button", + "returnType": "None", + "tooltip": "Change the value of the right trigger 2 button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setR3Button", + "returnType": "None", + "tooltip": "Change the value of the R3 (right stick) button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "axis", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setRawAxis", + "returnType": "None", + "tooltip": "Set the value of a given axis.\n\n:param axis: the axis to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "button", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setRawButton", + "returnType": "None", + "tooltip": "Set the value of a given button.\n\n:param button: the button to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setRightX", + "returnType": "None", + "tooltip": "Change the right X value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setRightY", + "returnType": "None", + "tooltip": "Change the right Y value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setSquareButton", + "returnType": "None", + "tooltip": "Change the value of the square button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setTouchpadButton", + "returnType": "None", + "tooltip": "Change the value of the touchpad button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PS5ControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PS5ControllerSim", + "functionName": "setTriangleButton", + "returnType": "None", + "tooltip": "Change the value of the triangle button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.interfaces.GenericHID.HIDType" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setType", + "returnType": "None", + "tooltip": "Set the type of this device.\n\n:param type: the new device type" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.PWMSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "pwm", + "type": "wpilib.PWM" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.PWMSim", + "tooltip": "Constructs from a PWM object.\n\n:param pwm: PWM to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "motorctrl", + "type": "wpilib.PWMMotorController" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.PWMSim", + "tooltip": "Constructs from a PWMMotorController object.\n\n:param motorctrl: PWMMotorController to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.PWMSim", + "tooltip": "Constructs from a PWM channel number.\n\n:param channel: Channel number" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "getInitialized", + "returnType": "bool", + "tooltip": "Check whether the PWM has been initialized.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "getPeriodScale", + "returnType": "int", + "tooltip": "Get the PWM period scale.\n\n:returns: the PWM period scale" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "getPosition", + "returnType": "float", + "tooltip": "Get the PWM position.\n\n:returns: the PWM position (0.0 to 1.0)" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "getPulseMicrosecond", + "returnType": "int", + "tooltip": "Get the PWM pulse microsecond value.\n\n:returns: the PWM pulse microsecond value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "getSpeed", + "returnType": "float", + "tooltip": "Get the PWM speed.\n\n:returns: the PWM speed (-1.0 to 1.0)" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "getZeroLatch", + "returnType": "bool", + "tooltip": "Check whether the PWM is zero latched.\n\n:returns: true if zero latched" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "registerInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the PWM is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "registerPeriodScaleCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the PWM period scale changes.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "registerPositionCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the PWM position changes.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "registerPulseMicrosecondCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the PWM pulse microsecond value changes.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "registerSpeedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the PWM speed changes.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "registerZeroLatchCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the PWM zero latch state changes.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all simulation data." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + }, + { + "defaultValue": null, + "name": "initialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "setInitialized", + "returnType": "None", + "tooltip": "Define whether the PWM has been initialized.\n\n:param initialized: whether this object is initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + }, + { + "defaultValue": null, + "name": "periodScale", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "setPeriodScale", + "returnType": "None", + "tooltip": "Set the PWM period scale.\n\n:param periodScale: the PWM period scale" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + }, + { + "defaultValue": null, + "name": "position", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "setPosition", + "returnType": "None", + "tooltip": "Set the PWM position.\n\n:param position: the PWM position (0.0 to 1.0)" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + }, + { + "defaultValue": null, + "name": "microsecondPulseTime", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "setPulseMicrosecond", + "returnType": "None", + "tooltip": "Set the PWM pulse microsecond value.\n\n:param microsecondPulseTime: the PWM pulse microsecond value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + }, + { + "defaultValue": null, + "name": "speed", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "setSpeed", + "returnType": "None", + "tooltip": "Set the PWM speed.\n\n:param speed: the PWM speed (-1.0 to 1.0)" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PWMSim" + }, + { + "defaultValue": null, + "name": "zeroLatch", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PWMSim", + "functionName": "setZeroLatch", + "returnType": "None", + "tooltip": "Define whether the PWM has been zero latched.\n\n:param zeroLatch: true to indicate zero latched" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.PneumaticsBaseSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "index", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.PneumaticsBaseSim", + "tooltip": "Constructs a PneumaticsBaseSim with the given index.\n\n:param index: The index." + }, + { + "args": [ + { + "defaultValue": null, + "name": "module", + "type": "wpilib.PneumaticsBase" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.PneumaticsBaseSim", + "tooltip": "Constructs a PneumaticsBaseSim for the given module.\n\n:param module: The module." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "getAllSolenoidOutputs", + "returnType": "int", + "tooltip": "Get the current value of all solenoid outputs.\n\n:returns: the solenoid outputs (1 bit per output)" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "getCompressorCurrent", + "returnType": "float", + "tooltip": "Read the compressor current.\n\n:returns: the current of the compressor connected to this module" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "getCompressorOn", + "returnType": "bool", + "tooltip": "Check if the compressor is on.\n\n:returns: true if the compressor is active" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "getInitialized", + "returnType": "bool", + "tooltip": "Check whether the PCM/PH has been initialized.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "getPressureSwitch", + "returnType": "bool", + "tooltip": "Check the value of the pressure switch.\n\n:returns: the pressure switch value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "getSolenoidOutput", + "returnType": "bool", + "tooltip": "Check the solenoid output on a specific channel.\n\n:param channel: the channel to check\n\n:returns: the solenoid output" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "registerCompressorCurrentCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the compressor current changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the :class:`.CallbackStore` object associated with this callback.\n Save a reference to this object; it being deconstructed cancels the\n callback." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "registerCompressorOnCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the compressor activates.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the :class:`.CallbackStore` object associated with this callback.\n Save a reference to this object; it being deconstructed cancels the\n callback." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "registerInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the PCM/PH is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the :class:`.CallbackStore` object associated with this callback.\n Save a reference to this object; it being deconstructed cancels the\n callback." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "registerPressureSwitchCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the pressure switch value changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the initial\n value\n\n:returns: the :class:`.CallbackStore` object associated with this callback.\n Save a reference to this object; it being deconstructed cancels the\n callback." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "registerSolenoidOutputCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the solenoid output on a channel\nchanges.\n\n:param channel: the channel to monitor\n:param callback: the callback\n:param initialNotify: should the callback be run with the initial value\n\n:returns: the :class:`.CallbackStore` object associated with this callback.\n Save a reference to this object; it being deconstructed cancels the\n callback." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all simulation data for this object." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + }, + { + "defaultValue": null, + "name": "outputs", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "setAllSolenoidOutputs", + "returnType": "None", + "tooltip": "Change all of the solenoid outputs.\n\n:param outputs: the new solenoid outputs (1 bit per output)" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + }, + { + "defaultValue": null, + "name": "compressorCurrent", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "setCompressorCurrent", + "returnType": "None", + "tooltip": "Set the compressor current.\n\n:param compressorCurrent: the new compressor current" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + }, + { + "defaultValue": null, + "name": "compressorOn", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "setCompressorOn", + "returnType": "None", + "tooltip": "Set whether the compressor is active.\n\n:param compressorOn: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + }, + { + "defaultValue": null, + "name": "initialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "setInitialized", + "returnType": "None", + "tooltip": "Define whether the PCM/PH has been initialized.\n\n:param initialized: true for initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + }, + { + "defaultValue": null, + "name": "pressureSwitch", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "setPressureSwitch", + "returnType": "None", + "tooltip": "Set the value of the pressure switch.\n\n:param pressureSwitch: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PneumaticsBaseSim" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + }, + { + "defaultValue": null, + "name": "solenoidOutput", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "setSolenoidOutput", + "returnType": "None", + "tooltip": "Change the solenoid output on a specific channel.\n\n:param channel: the channel to check\n:param solenoidOutput: the new solenoid output" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "module", + "type": "int" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.PneumaticsModuleType" + } + ], + "declaringClassName": "wpilib.simulation.PneumaticsBaseSim", + "functionName": "getForType", + "returnType": "wpilib.simulation.PneumaticsBaseSim", + "tooltip": "" + } + ] + }, + { + "className": "wpilib.simulation.PowerDistributionSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": "0", + "name": "module", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.PowerDistributionSim", + "tooltip": "Constructs from a PowerDistribution module number (CAN ID).\n\n:param module: module number" + }, + { + "args": [ + { + "defaultValue": null, + "name": "pdp", + "type": "wpilib.PowerDistribution" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.PowerDistributionSim", + "tooltip": "Constructs from a PowerDistribution object.\n\n:param pdp: PowerDistribution to simulate" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + }, + { + "defaultValue": null, + "name": "length", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "getAllCurrents", + "returnType": "float", + "tooltip": "Read the current of all of the PowerDistribution channels.\n\n:param currents: output array; set to the current in each channel. The\n array must be big enough to hold all the PowerDistribution\n channels\n:param length: length of output array" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "getCurrent", + "returnType": "float", + "tooltip": "Read the current in one of the PowerDistribution channels.\n\n:param channel: the channel to check\n\n:returns: the current in the given channel" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "getInitialized", + "returnType": "bool", + "tooltip": "Check whether the PowerDistribution has been initialized.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "getTemperature", + "returnType": "float", + "tooltip": "Check the temperature of the PowerDistribution.\n\n:returns: the PowerDistribution temperature" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "getVoltage", + "returnType": "float", + "tooltip": "Check the PowerDistribution voltage.\n\n:returns: the PowerDistribution voltage." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "registerCurrentCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the current of a specific channel\nchanges.\n\n:param channel: the channel\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "registerInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the PowerDistribution is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "registerTemperatureCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the PowerDistribution temperature\nchanges.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "registerVoltageCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the PowerDistribution voltage\nchanges.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all PowerDistribution simulation data." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + }, + { + "defaultValue": null, + "name": "currents", + "type": "float" + }, + { + "defaultValue": null, + "name": "length", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "setAllCurrents", + "returnType": "None", + "tooltip": "Change the current in all of the PowerDistribution channels.\n\n:param currents: array containing the current values for each channel. The\n array must be big enough to hold all the PowerDistribution\n channels\n:param length: length of array" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + }, + { + "defaultValue": null, + "name": "current", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "setCurrent", + "returnType": "None", + "tooltip": "Change the current in the given channel.\n\n:param channel: the channel to edit\n:param current: the new current for the channel" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + }, + { + "defaultValue": null, + "name": "initialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "setInitialized", + "returnType": "None", + "tooltip": "Define whether the PowerDistribution has been initialized.\n\n:param initialized: whether this object is initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + }, + { + "defaultValue": null, + "name": "temperature", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "setTemperature", + "returnType": "None", + "tooltip": "Define the PowerDistribution temperature.\n\n:param temperature: the new PowerDistribution temperature" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.PowerDistributionSim" + }, + { + "defaultValue": null, + "name": "voltage", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.PowerDistributionSim", + "functionName": "setVoltage", + "returnType": "None", + "tooltip": "Set the PowerDistribution voltage.\n\n:param voltage: the new PowerDistribution voltage" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.REVPHSim", + "classVariables": [], + "constructors": [ + { + "args": [], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.REVPHSim", + "tooltip": "Constructs with the default PCM module number (CAN ID)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "module", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.REVPHSim", + "tooltip": "Constructs from a PCM module number (CAN ID).\n\n:param module: module number" + }, + { + "args": [ + { + "defaultValue": null, + "name": "pneumatics", + "type": "wpilib.PneumaticsBase" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.REVPHSim", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "getAllSolenoidOutputs", + "returnType": "int", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "getCompressorConfigType", + "returnType": "int", + "tooltip": "Check whether the closed loop compressor control is active.\n\n:returns: compressor config type" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "getCompressorCurrent", + "returnType": "float", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "getCompressorOn", + "returnType": "bool", + "tooltip": "Check if the compressor is on.\n\n:returns: true if the compressor is active" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "getInitialized", + "returnType": "bool", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "getPressureSwitch", + "returnType": "bool", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "getSolenoidOutput", + "returnType": "bool", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "registerCompressorConfigTypeCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the closed loop state changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "registerCompressorCurrentCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "registerCompressorOnCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "registerInitializedCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "registerPressureSwitchCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "registerSolenoidOutputCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + }, + { + "defaultValue": null, + "name": "outputs", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "setAllSolenoidOutputs", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + }, + { + "defaultValue": null, + "name": "compressorConfigType", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "setCompressorConfigType", + "returnType": "None", + "tooltip": "Turn on/off the closed loop control of the compressor.\n\n:param compressorConfigType: compressor config type" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + }, + { + "defaultValue": null, + "name": "compressorCurrent", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "setCompressorCurrent", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + }, + { + "defaultValue": null, + "name": "compressorOn", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "setCompressorOn", + "returnType": "None", + "tooltip": "Set whether the compressor is active.\n\n:param compressorOn: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + }, + { + "defaultValue": null, + "name": "solenoidInitialized", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "setInitialized", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + }, + { + "defaultValue": null, + "name": "pressureSwitch", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "setPressureSwitch", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.REVPHSim" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + }, + { + "defaultValue": null, + "name": "solenoidOutput", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "setSolenoidOutput", + "returnType": "None", + "tooltip": "" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "module", + "type": "int" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.PneumaticsModuleType" + } + ], + "declaringClassName": "wpilib.simulation.REVPHSim", + "functionName": "getForType", + "returnType": "wpilib.simulation.PneumaticsBaseSim", + "tooltip": "" + } + ] + }, + { + "className": "wpilib.simulation.RelaySim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "relay", + "type": "wpilib.Relay" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "__init__", + "returnType": "wpilib.simulation.RelaySim", + "tooltip": "Constructs from a Relay object.\n\n:param relay: Relay to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "__init__", + "returnType": "wpilib.simulation.RelaySim", + "tooltip": "Constructs from a relay channel number.\n\n:param channel: Channel number" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.RelaySim" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "getForward", + "returnType": "bool", + "tooltip": "Check whether the forward direction is active.\n\n:returns: true if active" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.RelaySim" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "getInitializedForward", + "returnType": "bool", + "tooltip": "Check whether the forward direction has been initialized.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.RelaySim" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "getInitializedReverse", + "returnType": "bool", + "tooltip": "Check whether the reverse direction has been initialized.\n\n:returns: true if initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.RelaySim" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "getReverse", + "returnType": "bool", + "tooltip": "Check whether the reverse direction is active.\n\n:returns: true if active" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.RelaySim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "registerForwardCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the forward direction changes state.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.RelaySim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "registerInitializedForwardCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the forward direction is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.RelaySim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "registerInitializedReverseCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the reverse direction is initialized.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.RelaySim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "registerReverseCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the reverse direction changes state.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.RelaySim" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all simulation data." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.RelaySim" + }, + { + "defaultValue": null, + "name": "forward", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "setForward", + "returnType": "None", + "tooltip": "Set whether the forward direction is active.\n\n:param forward: true to make active" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.RelaySim" + }, + { + "defaultValue": null, + "name": "initializedForward", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "setInitializedForward", + "returnType": "None", + "tooltip": "Define whether the forward direction has been initialized.\n\n:param initializedForward: whether this object is initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.RelaySim" + }, + { + "defaultValue": null, + "name": "initializedReverse", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "setInitializedReverse", + "returnType": "None", + "tooltip": "Define whether the reverse direction has been initialized.\n\n:param initializedReverse: whether this object is initialized" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.RelaySim" + }, + { + "defaultValue": null, + "name": "reverse", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RelaySim", + "functionName": "setReverse", + "returnType": "None", + "tooltip": "Set whether the reverse direction is active.\n\n:param reverse: true to make active" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.RoboRioSim", + "classVariables": [], + "constructors": [ + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.RoboRioSim", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [ + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getBrownoutVoltage", + "returnType": "wpimath.units.volts", + "tooltip": "Measure the brownout voltage.\n\n:returns: the brownout voltage" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getCPUTemp", + "returnType": "wpimath.units.celsius", + "tooltip": "Get the cpu temp.\n\n:returns: the cpu temp." + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getComments", + "returnType": "str", + "tooltip": "Get the comments.\n\n:returns: The comments." + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getFPGAButton", + "returnType": "bool", + "tooltip": "Query the state of the FPGA button.\n\n:returns: the FPGA button state" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getRadioLEDState", + "returnType": "wpilib.RadioLEDState", + "tooltip": "Get the state of the radio led.\n\n:returns: The state of the radio led." + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getSerialNumber", + "returnType": "str", + "tooltip": "Get the serial number.\n\n:returns: The serial number." + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getTeamNumber", + "returnType": "int", + "tooltip": "Get the team number.\n\n:returns: the team number." + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getUserActive3V3", + "returnType": "bool", + "tooltip": "Get the 3.3V rail active state.\n\n:returns: true if the 3.3V rail is active" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getUserActive5V", + "returnType": "bool", + "tooltip": "Get the 5V rail active state.\n\n:returns: true if the 5V rail is active" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getUserActive6V", + "returnType": "bool", + "tooltip": "Get the 6V rail active state.\n\n:returns: true if the 6V rail is active" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getUserCurrent3V3", + "returnType": "wpimath.units.amperes", + "tooltip": "Measure the 3.3V rail current.\n\n:returns: the 3.3V rail current" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getUserCurrent5V", + "returnType": "wpimath.units.amperes", + "tooltip": "Measure the 5V rail current.\n\n:returns: the 5V rail current" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getUserCurrent6V", + "returnType": "wpimath.units.amperes", + "tooltip": "Measure the 6V rail current.\n\n:returns: the 6V rail current" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getUserFaults3V3", + "returnType": "int", + "tooltip": "Get the 3.3V rail number of faults.\n\n:returns: number of faults" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getUserFaults5V", + "returnType": "int", + "tooltip": "Get the 5V rail number of faults.\n\n:returns: number of faults" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getUserFaults6V", + "returnType": "int", + "tooltip": "Get the 6V rail number of faults.\n\n:returns: number of faults" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getUserVoltage3V3", + "returnType": "wpimath.units.volts", + "tooltip": "Measure the 3.3V rail voltage.\n\n:returns: the 3.3V rail voltage" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getUserVoltage5V", + "returnType": "wpimath.units.volts", + "tooltip": "Measure the 5V rail voltage.\n\n:returns: the 5V rail voltage" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getUserVoltage6V", + "returnType": "wpimath.units.volts", + "tooltip": "Measure the 6V rail voltage.\n\n:returns: the 6V rail voltage" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getVInCurrent", + "returnType": "wpimath.units.amperes", + "tooltip": "Measure the Vin current.\n\n:returns: the Vin current" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "getVInVoltage", + "returnType": "wpimath.units.volts", + "tooltip": "Measure the Vin voltage.\n\n:returns: the Vin voltage" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerBrownoutVoltageCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the brownout voltage changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerCPUTempCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the cpu temp changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerFPGAButtonCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the FPGA button state changes.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerRadioLEDStateCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the Radio led state changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerTeamNumberCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the team number changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerUserActive3V3Callback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the 3.3V rail active state changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerUserActive5VCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the 5V rail active state changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerUserActive6VCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the 6V rail active state changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerUserCurrent3V3Callback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the 3.3V rail current changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerUserCurrent5VCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the 5V rail current changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerUserCurrent6VCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the 6V rail current changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerUserFaults3V3Callback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the 3.3V rail number of faults\nchanges.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerUserFaults5VCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the 5V rail number of faults\nchanges.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerUserFaults6VCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the 6V rail number of faults\nchanges.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerUserVoltage3V3Callback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the 3.3V rail voltage changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerUserVoltage5VCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the 5V rail voltage changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerUserVoltage6VCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the 6V rail voltage changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerVInCurrentCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the Vin current changes.\n\n:param callback: the callback\n:param initialNotify: whether the callback should be called with the\n initial value\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "registerVInVoltageCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the Vin voltage changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all simulation data." + }, + { + "args": [ + { + "defaultValue": null, + "name": "brownoutVoltage", + "type": "wpimath.units.volts" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setBrownoutVoltage", + "returnType": "None", + "tooltip": "Define the brownout voltage.\n\n:param brownoutVoltage: the new voltage" + }, + { + "args": [ + { + "defaultValue": null, + "name": "cpuTemp", + "type": "wpimath.units.celsius" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setCPUTemp", + "returnType": "None", + "tooltip": "Define the cpu temp.\n\n:param cpuTemp: the new cpu temp." + }, + { + "args": [ + { + "defaultValue": null, + "name": "comments", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setComments", + "returnType": "None", + "tooltip": "Set the comments.\n\n:param comments: The comments." + }, + { + "args": [ + { + "defaultValue": null, + "name": "fPGAButton", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setFPGAButton", + "returnType": "None", + "tooltip": "Define the state of the FPGA button.\n\n:param fPGAButton: the new state" + }, + { + "args": [ + { + "defaultValue": null, + "name": "state", + "type": "wpilib.RadioLEDState" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setRadioLEDState", + "returnType": "None", + "tooltip": "Set the state of the radio led.\n\n:param state: The state of the radio led." + }, + { + "args": [ + { + "defaultValue": null, + "name": "serialNumber", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setSerialNumber", + "returnType": "None", + "tooltip": "Set the serial number.\n\n:param serialNumber: The serial number." + }, + { + "args": [ + { + "defaultValue": null, + "name": "teamNumber", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setTeamNumber", + "returnType": "None", + "tooltip": "Set the team number.\n\n:param teamNumber: the new team number." + }, + { + "args": [ + { + "defaultValue": null, + "name": "userActive3V3", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setUserActive3V3", + "returnType": "None", + "tooltip": "Set the 3.3V rail active state.\n\n:param userActive3V3: true to make rail active" + }, + { + "args": [ + { + "defaultValue": null, + "name": "userActive5V", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setUserActive5V", + "returnType": "None", + "tooltip": "Set the 5V rail active state.\n\n:param userActive5V: true to make rail active" + }, + { + "args": [ + { + "defaultValue": null, + "name": "userActive6V", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setUserActive6V", + "returnType": "None", + "tooltip": "Set the 6V rail active state.\n\n:param userActive6V: true to make rail active" + }, + { + "args": [ + { + "defaultValue": null, + "name": "userCurrent3V3", + "type": "wpimath.units.amperes" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setUserCurrent3V3", + "returnType": "None", + "tooltip": "Define the 3.3V rail current.\n\n:param userCurrent3V3: the new current" + }, + { + "args": [ + { + "defaultValue": null, + "name": "userCurrent5V", + "type": "wpimath.units.amperes" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setUserCurrent5V", + "returnType": "None", + "tooltip": "Define the 5V rail current.\n\n:param userCurrent5V: the new current" + }, + { + "args": [ + { + "defaultValue": null, + "name": "userCurrent6V", + "type": "wpimath.units.amperes" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setUserCurrent6V", + "returnType": "None", + "tooltip": "Define the 6V rail current.\n\n:param userCurrent6V: the new current" + }, + { + "args": [ + { + "defaultValue": null, + "name": "userFaults3V3", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setUserFaults3V3", + "returnType": "None", + "tooltip": "Set the 3.3V rail number of faults.\n\n:param userFaults3V3: number of faults" + }, + { + "args": [ + { + "defaultValue": null, + "name": "userFaults5V", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setUserFaults5V", + "returnType": "None", + "tooltip": "Set the 5V rail number of faults.\n\n:param userFaults5V: number of faults" + }, + { + "args": [ + { + "defaultValue": null, + "name": "userFaults6V", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setUserFaults6V", + "returnType": "None", + "tooltip": "Set the 6V rail number of faults.\n\n:param userFaults6V: number of faults" + }, + { + "args": [ + { + "defaultValue": null, + "name": "userVoltage3V3", + "type": "wpimath.units.volts" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setUserVoltage3V3", + "returnType": "None", + "tooltip": "Define the 3.3V rail voltage.\n\n:param userVoltage3V3: the new voltage" + }, + { + "args": [ + { + "defaultValue": null, + "name": "userVoltage5V", + "type": "wpimath.units.volts" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setUserVoltage5V", + "returnType": "None", + "tooltip": "Define the 5V rail voltage.\n\n:param userVoltage5V: the new voltage" + }, + { + "args": [ + { + "defaultValue": null, + "name": "userVoltage6V", + "type": "wpimath.units.volts" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setUserVoltage6V", + "returnType": "None", + "tooltip": "Define the 6V rail voltage.\n\n:param userVoltage6V: the new voltage" + }, + { + "args": [ + { + "defaultValue": null, + "name": "vInCurrent", + "type": "wpimath.units.amperes" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setVInCurrent", + "returnType": "None", + "tooltip": "Define the Vin current.\n\n:param vInCurrent: the new current" + }, + { + "args": [ + { + "defaultValue": null, + "name": "vInVoltage", + "type": "wpimath.units.volts" + } + ], + "declaringClassName": "wpilib.simulation.RoboRioSim", + "functionName": "setVInVoltage", + "returnType": "None", + "tooltip": "Define the Vin voltage.\n\n:param vInVoltage: the new voltage" + } + ] + }, + { + "className": "wpilib.simulation.SPIAccelerometerSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "index", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.SPIAccelerometerSim", + "tooltip": "Construct a new simulation object.\n\n:param index: the HAL index of the accelerometer" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "getActive", + "returnType": "bool", + "tooltip": "Check whether the accelerometer is active.\n\n:returns: true if active" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "getRange", + "returnType": "int", + "tooltip": "Check the range of this accelerometer.\n\n:returns: the accelerometer range" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "getX", + "returnType": "float", + "tooltip": "Measure the X axis value.\n\n:returns: the X axis measurement" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "getY", + "returnType": "float", + "tooltip": "Measure the Y axis value.\n\n:returns: the Y axis measurement" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "getZ", + "returnType": "float", + "tooltip": "Measure the Z axis value.\n\n:returns: the Z axis measurement" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "registerActiveCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when this accelerometer activates.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "registerRangeCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the range changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "registerXCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the X axis value changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "registerYCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the Y axis value changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "registerZCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run whenever the Z axis value changes.\n\n:param callback: the callback\n:param initialNotify: whether to call the callback with the initial state\n\n:returns: the CallbackStore object associated with this callback" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all simulation data of this object." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + }, + { + "defaultValue": null, + "name": "active", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "setActive", + "returnType": "None", + "tooltip": "Define whether this accelerometer is active.\n\n:param active: the new state" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + }, + { + "defaultValue": null, + "name": "range", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "setRange", + "returnType": "None", + "tooltip": "Change the range of this accelerometer.\n\n:param range: the new accelerometer range" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + }, + { + "defaultValue": null, + "name": "x", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "setX", + "returnType": "None", + "tooltip": "Change the X axis value of the accelerometer.\n\n:param x: the new reading of the X axis" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + }, + { + "defaultValue": null, + "name": "y", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "setY", + "returnType": "None", + "tooltip": "Change the Y axis value of the accelerometer.\n\n:param y: the new reading of the Y axis" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SPIAccelerometerSim" + }, + { + "defaultValue": null, + "name": "z", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.SPIAccelerometerSim", + "functionName": "setZ", + "returnType": "None", + "tooltip": "Change the Z axis value of the accelerometer.\n\n:param z: the new reading of the Z axis" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.SendableChooserSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "path", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.SendableChooserSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.SendableChooserSim", + "tooltip": "Constructs a SendableChooserSim.\n\n:param path: The path where the SendableChooser is published." + }, + { + "args": [ + { + "defaultValue": null, + "name": "inst", + "type": "ntcore.NetworkTableInstance" + }, + { + "defaultValue": null, + "name": "path", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.SendableChooserSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.SendableChooserSim", + "tooltip": "Constructs a SendableChooserSim.\n\n:param inst: The NetworkTables instance.\n:param path: The path where the SendableChooser is published." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SendableChooserSim" + }, + { + "defaultValue": null, + "name": "option", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.SendableChooserSim", + "functionName": "setSelected", + "returnType": "None", + "tooltip": "Set the selected option.\n\n:param option: The option." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.SharpIRSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "sharpIR", + "type": "wpilib.SharpIR" + } + ], + "declaringClassName": "wpilib.simulation.SharpIRSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.SharpIRSim", + "tooltip": "Constructor.\n\n:param sharpIR: The real sensor to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.SharpIRSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.SharpIRSim", + "tooltip": "Constructor.\n\n:param channel: Analog channel for this sensor" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SharpIRSim" + }, + { + "defaultValue": null, + "name": "rng", + "type": "wpimath.units.centimeters" + } + ], + "declaringClassName": "wpilib.simulation.SharpIRSim", + "functionName": "setRange", + "returnType": "None", + "tooltip": "Set the range returned by the distance sensor.\n\n:param rng: range of the target returned by the sensor" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.SimDeviceSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.SimDeviceSim", + "tooltip": "Constructs a SimDeviceSim.\n\n:param name: name of the SimDevice" + }, + { + "args": [ + { + "defaultValue": null, + "name": "name", + "type": "str" + }, + { + "defaultValue": null, + "name": "index", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.SimDeviceSim", + "tooltip": "Constructs a SimDeviceSim.\n\n:param name: name of the SimDevice\n:param index: device index number to append to name" + }, + { + "args": [ + { + "defaultValue": null, + "name": "name", + "type": "str" + }, + { + "defaultValue": null, + "name": "index", + "type": "int" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.SimDeviceSim", + "tooltip": "Constructs a SimDeviceSim.\n\n:param name: name of the SimDevice\n:param index: device index number to append to name\n:param channel: device channel number to append to name" + }, + { + "args": [ + { + "defaultValue": null, + "name": "handle", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.SimDeviceSim", + "tooltip": "Constructs a SimDeviceSim.\n\n:param handle: the low level handle for the corresponding SimDevice." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SimDeviceSim" + } + ], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "enumerateValues", + "returnType": "list[tuple[str, bool]]", + "tooltip": "Returns a list of (name, readonly) tuples of available values for this device" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SimDeviceSim" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "getBoolean", + "returnType": "hal.SimBoolean", + "tooltip": "Retrieves an object that allows you to interact with simulated values\nrepresented as a boolean." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SimDeviceSim" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "getDouble", + "returnType": "hal.SimDouble", + "tooltip": "Retrieves an object that allows you to interact with simulated values\nrepresented as a double." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SimDeviceSim" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "getEnum", + "returnType": "hal.SimEnum", + "tooltip": "Get the property object with the given name.\n\n:param name: the property name\n\n:returns: the property object" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SimDeviceSim" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "getInt", + "returnType": "hal.SimInt", + "tooltip": "Retrieves an object that allows you to interact with simulated values\nrepresented as an integer." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SimDeviceSim" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "getLong", + "returnType": "hal.SimLong", + "tooltip": "Retrieves an object that allows you to interact with simulated values\nrepresented as a long." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SimDeviceSim" + } + ], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "getName", + "returnType": "str", + "tooltip": "Get the name of this object.\n\n:returns: name" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SimDeviceSim" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "getValue", + "returnType": "hal.SimValue", + "tooltip": "Provides a readonly mechanism to retrieve all types of device values" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [ + { + "args": [ + { + "defaultValue": "''", + "name": "prefix", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "enumerateDevices", + "returnType": "list[str]", + "tooltip": "Returns a list of available device names" + }, + { + "args": [ + { + "defaultValue": null, + "name": "val", + "type": "hal.SimEnum" + } + ], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "getEnumOptions", + "returnType": "list[str]", + "tooltip": "Get all options for the given enum.\n\n:param val: the enum\n\n:returns: names of the different values for that enum" + }, + { + "args": [], + "declaringClassName": "wpilib.simulation.SimDeviceSim", + "functionName": "resetData", + "returnType": "None", + "tooltip": "Reset all SimDevice data." + } + ] + }, + { + "className": "wpilib.simulation.SingleJointedArmSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "system", + "type": "wpimath.system.LinearSystem_2_1_2" + }, + { + "defaultValue": null, + "name": "gearbox", + "type": "wpimath.system.plant.DCMotor" + }, + { + "defaultValue": null, + "name": "gearing", + "type": "float" + }, + { + "defaultValue": null, + "name": "armLength", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "minAngle", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "maxAngle", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "simulateGravity", + "type": "bool" + }, + { + "defaultValue": null, + "name": "startingAngle", + "type": "wpimath.units.radians" + }, + { + "defaultValue": "[0.0, 0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(2)]" + } + ], + "declaringClassName": "wpilib.simulation.SingleJointedArmSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.SingleJointedArmSim", + "tooltip": "Creates a simulated arm mechanism.\n\n:param system: The system representing this arm. This system can\n be created with\n LinearSystemId::SingleJointedArmSystem().\n:param gearbox: The type and number of motors on the arm gearbox.\n:param gearing: The gear ratio of the arm (numbers greater than 1\n represent reductions).\n:param armLength: The length of the arm.\n:param minAngle: The minimum angle that the arm is capable of.\n:param maxAngle: The maximum angle that the arm is capable of.\n:param simulateGravity: Whether gravity should be simulated or not.\n:param startingAngle: The initial position of the arm.\n:param measurementStdDevs: The standard deviations of the measurements." + }, + { + "args": [ + { + "defaultValue": null, + "name": "gearbox", + "type": "wpimath.system.plant.DCMotor" + }, + { + "defaultValue": null, + "name": "gearing", + "type": "float" + }, + { + "defaultValue": null, + "name": "moi", + "type": "wpimath.units.kilogram_square_meters" + }, + { + "defaultValue": null, + "name": "armLength", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "minAngle", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "maxAngle", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "simulateGravity", + "type": "bool" + }, + { + "defaultValue": null, + "name": "startingAngle", + "type": "wpimath.units.radians" + }, + { + "defaultValue": "[0.0, 0.0]", + "name": "measurementStdDevs", + "type": "Annotated[list[float], FixedSize(2)]" + } + ], + "declaringClassName": "wpilib.simulation.SingleJointedArmSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.SingleJointedArmSim", + "tooltip": "Creates a simulated arm mechanism.\n\n:param gearbox: The type and number of motors on the arm gearbox.\n:param gearing: The gear ratio of the arm (numbers greater than 1\n represent reductions).\n:param moi: The moment of inertia of the arm. This can be\n calculated from CAD software.\n:param armLength: The length of the arm.\n:param minAngle: The minimum angle that the arm is capable of.\n:param maxAngle: The maximum angle that the arm is capable of.\n:param simulateGravity: Whether gravity should be simulated or not.\n:param startingAngle: The initial position of the arm.\n:param measurementStdDevs: The standard deviation of the measurement noise." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SingleJointedArmSim" + } + ], + "declaringClassName": "wpilib.simulation.SingleJointedArmSim", + "functionName": "getAngle", + "returnType": "wpimath.units.radians", + "tooltip": "Returns the current arm angle.\n\n:returns: The current arm angle." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SingleJointedArmSim" + } + ], + "declaringClassName": "wpilib.simulation.SingleJointedArmSim", + "functionName": "getAngleDegrees", + "returnType": "wpimath.units.degrees", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SingleJointedArmSim" + } + ], + "declaringClassName": "wpilib.simulation.SingleJointedArmSim", + "functionName": "getCurrentDraw", + "returnType": "wpimath.units.amperes", + "tooltip": "Returns the arm current draw.\n\n:returns: The arm current draw." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getInput", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the current input of the plant.\n\n:returns: The current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getInput", + "returnType": "float", + "tooltip": "Returns an element of the current input of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current input of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getOutput", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the current output of the plant.\n\n:returns: The current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "getOutput", + "returnType": "float", + "tooltip": "Returns an element of the current output of the plant.\n\n:param row: The row to return.\n\n:returns: An element of the current output of the plant." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SingleJointedArmSim" + } + ], + "declaringClassName": "wpilib.simulation.SingleJointedArmSim", + "functionName": "getVelocity", + "returnType": "wpimath.units.radians_per_second", + "tooltip": "Returns the current arm velocity.\n\n:returns: The current arm velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SingleJointedArmSim" + } + ], + "declaringClassName": "wpilib.simulation.SingleJointedArmSim", + "functionName": "getVelocityDps", + "returnType": "wpimath.units.degrees_per_second", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SingleJointedArmSim" + } + ], + "declaringClassName": "wpilib.simulation.SingleJointedArmSim", + "functionName": "hasHitLowerLimit", + "returnType": "bool", + "tooltip": "Returns whether the arm has hit the lower limit.\n\n:returns: Whether the arm has hit the lower limit." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SingleJointedArmSim" + } + ], + "declaringClassName": "wpilib.simulation.SingleJointedArmSim", + "functionName": "hasHitUpperLimit", + "returnType": "bool", + "tooltip": "Returns whether the arm has hit the upper limit.\n\n:returns: Whether the arm has hit the upper limit." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs (usually voltages).\n\n:param u: The system inputs." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "row", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "setInput", + "returnType": "None", + "tooltip": "Sets the system inputs.\n\n:param row: The row in the input matrix to set.\n:param value: The value to set the row to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SingleJointedArmSim" + }, + { + "defaultValue": null, + "name": "voltage", + "type": "wpimath.units.volts" + } + ], + "declaringClassName": "wpilib.simulation.SingleJointedArmSim", + "functionName": "setInputVoltage", + "returnType": "None", + "tooltip": "Sets the input voltage for the arm.\n\n:param voltage: The input voltage." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SingleJointedArmSim" + }, + { + "defaultValue": null, + "name": "angle", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpilib.simulation.SingleJointedArmSim", + "functionName": "setState", + "returnType": "None", + "tooltip": "Sets the arm's state. The new angle will be limited between the minimum and\nmaximum allowed limits.\n\n:param angle: The new angle.\n:param velocity: The new angular velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.LinearSystemSim_2_1_2" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpilib.simulation.LinearSystemSim_2_1_2", + "functionName": "update", + "returnType": "None", + "tooltip": "Updates the simulation.\n\n:param dt: The time between updates." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SingleJointedArmSim" + }, + { + "defaultValue": null, + "name": "armAngle", + "type": "wpimath.units.radians" + } + ], + "declaringClassName": "wpilib.simulation.SingleJointedArmSim", + "functionName": "wouldHitLowerLimit", + "returnType": "bool", + "tooltip": "Returns whether the arm would hit the lower limit.\n\n:param armAngle: The arm height.\n\n:returns: Whether the arm would hit the lower limit." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SingleJointedArmSim" + }, + { + "defaultValue": null, + "name": "armAngle", + "type": "wpimath.units.radians" + } + ], + "declaringClassName": "wpilib.simulation.SingleJointedArmSim", + "functionName": "wouldHitUpperLimit", + "returnType": "bool", + "tooltip": "Returns whether the arm would hit the upper limit.\n\n:param armAngle: The arm height.\n\n:returns: Whether the arm would hit the upper limit." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "length", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "mass", + "type": "wpimath.units.kilograms" + } + ], + "declaringClassName": "wpilib.simulation.SingleJointedArmSim", + "functionName": "estimateMOI", + "returnType": "wpimath.units.kilogram_square_meters", + "tooltip": "Calculates a rough estimate of the moment of inertia of an arm given its\nlength and mass.\n\n:param length: The length of the arm.\n:param mass: The mass of the arm.\n\n:returns: The calculated moment of inertia." + } + ] + }, + { + "className": "wpilib.simulation.SolenoidSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "moduleSim", + "type": "wpilib.simulation.PneumaticsBaseSim" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.SolenoidSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.SolenoidSim", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "module", + "type": "int" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.PneumaticsModuleType" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.SolenoidSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.SolenoidSim", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "type", + "type": "wpilib.PneumaticsModuleType" + }, + { + "defaultValue": null, + "name": "channel", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.SolenoidSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.SolenoidSim", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SolenoidSim" + } + ], + "declaringClassName": "wpilib.simulation.SolenoidSim", + "functionName": "getModuleSim", + "returnType": "wpilib.simulation.PneumaticsBaseSim", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SolenoidSim" + } + ], + "declaringClassName": "wpilib.simulation.SolenoidSim", + "functionName": "getOutput", + "returnType": "bool", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SolenoidSim" + }, + { + "defaultValue": null, + "name": "callback", + "type": "Callable[[str, hal.Value], None]" + }, + { + "defaultValue": null, + "name": "initialNotify", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.SolenoidSim", + "functionName": "registerOutputCallback", + "returnType": "wpilib.simulation.CallbackStore", + "tooltip": "Register a callback to be run when the output of this solenoid has changed.\n\n:param callback: the callback\n:param initialNotify: whether to run the callback with the initial state\n\n:returns: the :class:`.CallbackStore` object associated with this callback.\n Save a reference to this object; it being deconstructed cancels the\n callback." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.SolenoidSim" + }, + { + "defaultValue": null, + "name": "output", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.SolenoidSim", + "functionName": "setOutput", + "returnType": "None", + "tooltip": "" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.StadiaControllerSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "joystick", + "type": "wpilib.StadiaController" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.StadiaControllerSim", + "tooltip": "Constructs from a StadiaController object.\n\n:param joystick: controller to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "port", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.StadiaControllerSim", + "tooltip": "Constructs from a joystick port number.\n\n:param port: port number" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "outputNumber", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getOutput", + "returnType": "bool", + "tooltip": "Read the output of a button.\n\n:param outputNumber: the button number\n\n:returns: the value of the button (true = pressed)" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getOutputs", + "returnType": "int", + "tooltip": "Get the encoded 16-bit integer that passes button values.\n\n:returns: the button values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.interfaces.GenericHID.RumbleType" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getRumble", + "returnType": "float", + "tooltip": "Get the joystick rumble.\n\n:param type: the rumble to read\n\n:returns: the rumble value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "notifyNewData", + "returnType": "None", + "tooltip": "Updates joystick data so that new values are visible to the user program." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setAButton", + "returnType": "None", + "tooltip": "Change the value of the A button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setAxisCount", + "returnType": "None", + "tooltip": "Set the axis count of this device.\n\n:param count: the new axis count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "axis", + "type": "int" + }, + { + "defaultValue": null, + "name": "type", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setAxisType", + "returnType": "None", + "tooltip": "Set the type of an axis.\n\n:param axis: the axis\n:param type: the type" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setBButton", + "returnType": "None", + "tooltip": "Change the value of the B button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setButtonCount", + "returnType": "None", + "tooltip": "Set the button count of this device.\n\n:param count: the new button count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setEllipsesButton", + "returnType": "None", + "tooltip": "Change the value of the ellipses button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setFrameButton", + "returnType": "None", + "tooltip": "Change the value of the frame button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setGoogleButton", + "returnType": "None", + "tooltip": "Change the value of the google button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setHamburgerButton", + "returnType": "None", + "tooltip": "Change the value of the hamburger button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setLeftBumperButton", + "returnType": "None", + "tooltip": "Change the value of the left bumper button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setLeftStickButton", + "returnType": "None", + "tooltip": "Change the value of the left stick button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setLeftTriggerButton", + "returnType": "None", + "tooltip": "Change the value of the left trigger button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setLeftX", + "returnType": "None", + "tooltip": "Change the left X value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setLeftY", + "returnType": "None", + "tooltip": "Change the left Y value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setName", + "returnType": "None", + "tooltip": "Set the name of this device.\n\n:param name: the new device name" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "pov", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOV", + "returnType": "None", + "tooltip": "Set the value of a given POV.\n\n:param pov: the POV to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOV", + "returnType": "None", + "tooltip": "Set the value of the default POV (port 0).\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOVCount", + "returnType": "None", + "tooltip": "Set the POV count of this device.\n\n:param count: the new POV count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "axis", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setRawAxis", + "returnType": "None", + "tooltip": "Set the value of a given axis.\n\n:param axis: the axis to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "button", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setRawButton", + "returnType": "None", + "tooltip": "Set the value of a given button.\n\n:param button: the button to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setRightBumperButton", + "returnType": "None", + "tooltip": "Change the value of the right bumper button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setRightStickButton", + "returnType": "None", + "tooltip": "Change the value of the right stick button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setRightTriggerButton", + "returnType": "None", + "tooltip": "Change the value of the right trigger button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setRightX", + "returnType": "None", + "tooltip": "Change the right X value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setRightY", + "returnType": "None", + "tooltip": "Change the right Y value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setStadiaButton", + "returnType": "None", + "tooltip": "Change the value of the stadia button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.interfaces.GenericHID.HIDType" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setType", + "returnType": "None", + "tooltip": "Set the type of this device.\n\n:param type: the new device type" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setXButton", + "returnType": "None", + "tooltip": "Change the value of the X button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.StadiaControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.StadiaControllerSim", + "functionName": "setYButton", + "returnType": "None", + "tooltip": "Change the value of the Y button on the controller.\n\n:param value: the new value" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.UltrasonicSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "ultrasonic", + "type": "wpilib.Ultrasonic" + } + ], + "declaringClassName": "wpilib.simulation.UltrasonicSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.UltrasonicSim", + "tooltip": "Constructor.\n\n:param ultrasonic: The real ultrasonic to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "ping", + "type": "int" + }, + { + "defaultValue": null, + "name": "echo", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.UltrasonicSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.UltrasonicSim", + "tooltip": "Constructor.\n\n:param ping: unused.\n:param echo: the ultrasonic's echo channel." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.UltrasonicSim" + }, + { + "defaultValue": null, + "name": "range", + "type": "wpimath.units.inches" + } + ], + "declaringClassName": "wpilib.simulation.UltrasonicSim", + "functionName": "setRange", + "returnType": "None", + "tooltip": "Sets the range measurement.\n\n:param range: The range." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.UltrasonicSim" + }, + { + "defaultValue": null, + "name": "valid", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.UltrasonicSim", + "functionName": "setRangeValid", + "returnType": "None", + "tooltip": "Sets if the range measurement is valid.\n\n:param valid: True if valid" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.simulation.XboxControllerSim", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "joystick", + "type": "wpilib.XboxController" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.XboxControllerSim", + "tooltip": "Constructs from a XboxController object.\n\n:param joystick: controller to simulate" + }, + { + "args": [ + { + "defaultValue": null, + "name": "port", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "__init__", + "returnType": "wpilib.simulation.XboxControllerSim", + "tooltip": "Constructs from a joystick port number.\n\n:param port: port number" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "outputNumber", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getOutput", + "returnType": "bool", + "tooltip": "Read the output of a button.\n\n:param outputNumber: the button number\n\n:returns: the value of the button (true = pressed)" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getOutputs", + "returnType": "int", + "tooltip": "Get the encoded 16-bit integer that passes button values.\n\n:returns: the button values" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.interfaces.GenericHID.RumbleType" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "getRumble", + "returnType": "float", + "tooltip": "Get the joystick rumble.\n\n:param type: the rumble to read\n\n:returns: the rumble value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "notifyNewData", + "returnType": "None", + "tooltip": "Updates joystick data so that new values are visible to the user program." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setAButton", + "returnType": "None", + "tooltip": "Change the value of the A button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setAxisCount", + "returnType": "None", + "tooltip": "Set the axis count of this device.\n\n:param count: the new axis count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "axis", + "type": "int" + }, + { + "defaultValue": null, + "name": "type", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setAxisType", + "returnType": "None", + "tooltip": "Set the type of an axis.\n\n:param axis: the axis\n:param type: the type" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setBButton", + "returnType": "None", + "tooltip": "Change the value of the B button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setBackButton", + "returnType": "None", + "tooltip": "Change the value of the back button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setButtonCount", + "returnType": "None", + "tooltip": "Set the button count of this device.\n\n:param count: the new button count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setLeftBumperButton", + "returnType": "None", + "tooltip": "Change the value of the left bumper button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setLeftStickButton", + "returnType": "None", + "tooltip": "Change the value of the left stick button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setLeftTriggerAxis", + "returnType": "None", + "tooltip": "Change the value of the left trigger axis on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setLeftX", + "returnType": "None", + "tooltip": "Change the left X value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setLeftY", + "returnType": "None", + "tooltip": "Change the left Y value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setName", + "returnType": "None", + "tooltip": "Set the name of this device.\n\n:param name: the new device name" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "pov", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOV", + "returnType": "None", + "tooltip": "Set the value of a given POV.\n\n:param pov: the POV to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOV", + "returnType": "None", + "tooltip": "Set the value of the default POV (port 0).\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "count", + "type": "int" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setPOVCount", + "returnType": "None", + "tooltip": "Set the POV count of this device.\n\n:param count: the new POV count" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "axis", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setRawAxis", + "returnType": "None", + "tooltip": "Set the value of a given axis.\n\n:param axis: the axis to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "button", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setRawButton", + "returnType": "None", + "tooltip": "Set the value of a given button.\n\n:param button: the button to set\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setRightBumperButton", + "returnType": "None", + "tooltip": "Change the value of the right bumper button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setRightStickButton", + "returnType": "None", + "tooltip": "Change the value of the right stick button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setRightTriggerAxis", + "returnType": "None", + "tooltip": "Change the value of the right trigger axis on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setRightX", + "returnType": "None", + "tooltip": "Change the right X value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setRightY", + "returnType": "None", + "tooltip": "Change the right Y value of the controller's joystick.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setStartButton", + "returnType": "None", + "tooltip": "Change the value of the start button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.GenericHIDSim" + }, + { + "defaultValue": null, + "name": "type", + "type": "wpilib.interfaces.GenericHID.HIDType" + } + ], + "declaringClassName": "wpilib.simulation.GenericHIDSim", + "functionName": "setType", + "returnType": "None", + "tooltip": "Set the type of this device.\n\n:param type: the new device type" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setXButton", + "returnType": "None", + "tooltip": "Change the value of the X button on the controller.\n\n:param value: the new value" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.simulation.XboxControllerSim" + }, + { + "defaultValue": null, + "name": "value", + "type": "bool" + } + ], + "declaringClassName": "wpilib.simulation.XboxControllerSim", + "functionName": "setYButton", + "returnType": "None", + "tooltip": "Change the value of the Y button on the controller.\n\n:param value: the new value" + } + ], + "instanceVariables": [], + "moduleName": "wpilib.simulation", + "staticMethods": [] + }, + { + "className": "wpilib.sysid.SysIdRoutineLog", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "logName", + "type": "str" + } + ], + "declaringClassName": "wpilib.sysid.SysIdRoutineLog", + "functionName": "__init__", + "returnType": "wpilib.sysid.SysIdRoutineLog", + "tooltip": "Create a new logging utility for a SysId test routine.\n\n:param logName: The name for the test routine in the log. Should be unique\n between complete test routines (quasistatic and dynamic, forward and\n reverse). The current state of this test (e.g. \"quasistatic-forward\")\n will appear in WPILog under the \"sysid-test-state-logName\" entry." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.sysid.SysIdRoutineLog" + }, + { + "defaultValue": null, + "name": "motorName", + "type": "str" + } + ], + "declaringClassName": "wpilib.sysid.SysIdRoutineLog", + "functionName": "motor", + "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "tooltip": "Log data from a motor during a SysId routine.\n\n:param motorName: The name of the motor.\n\n:returns: Handle with chainable callbacks to log individual data fields." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.sysid.SysIdRoutineLog" + }, + { + "defaultValue": null, + "name": "state", + "type": "wpilib.sysid.State" + } + ], + "declaringClassName": "wpilib.sysid.SysIdRoutineLog", + "functionName": "recordState", + "returnType": "None", + "tooltip": "Records the current state of the SysId test routine. Should be called once\nper iteration during tests with the type of the current test, and once upon\ntest end with state `none`.\n\n:param state: The current state of the SysId test routine." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.sysid", + "staticMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "state", + "type": "wpilib.sysid.State" + } + ], + "declaringClassName": "wpilib.sysid.SysIdRoutineLog", + "functionName": "stateEnumToString", + "returnType": "str", + "tooltip": "" + } + ] + }, + { + "className": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "classVariables": [], + "constructors": [], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.sysid.SysIdRoutineLog.MotorLog" + }, + { + "defaultValue": null, + "name": "acceleration", + "type": "wpimath.units.meters_per_second_squared" + } + ], + "declaringClassName": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "functionName": "acceleration", + "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "tooltip": "Log the linear acceleration of the motor.\n\nThis is optional; SysId can perform an accurate fit without it.\n\n:param acceleration: The linear acceleration to record.\n\n:returns: The motor log (for call chaining)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.sysid.SysIdRoutineLog.MotorLog" + }, + { + "defaultValue": null, + "name": "acceleration", + "type": "wpimath.units.turns_per_second_squared" + } + ], + "declaringClassName": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "functionName": "angularAcceleration", + "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "tooltip": "Log the angular acceleration of the motor.\n\nThis is optional; SysId can perform an accurate fit without it.\n\n:param acceleration: The angular acceleration to record.\n\n:returns: The motor log (for call chaining)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.sysid.SysIdRoutineLog.MotorLog" + }, + { + "defaultValue": null, + "name": "position", + "type": "wpimath.units.turns" + } + ], + "declaringClassName": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "functionName": "angularPosition", + "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "tooltip": "Log the angular position of the motor.\n\n:param position: The angular position to record.\n\n:returns: The motor log (for call chaining)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.sysid.SysIdRoutineLog.MotorLog" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.turns_per_second" + } + ], + "declaringClassName": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "functionName": "angularVelocity", + "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "tooltip": "Log the angular velocity of the motor.\n\n:param velocity: The angular velocity to record.\n\n:returns: The motor log (for call chaining)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.sysid.SysIdRoutineLog.MotorLog" + }, + { + "defaultValue": null, + "name": "current", + "type": "wpimath.units.amperes" + } + ], + "declaringClassName": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "functionName": "current", + "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "tooltip": "Log the current applied to the motor.\n\nThis is optional; SysId can perform an accurate fit without it.\n\n:param current: The current to record.\n\n:returns: The motor log (for call chaining)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.sysid.SysIdRoutineLog.MotorLog" + }, + { + "defaultValue": null, + "name": "position", + "type": "wpimath.units.meters" + } + ], + "declaringClassName": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "functionName": "position", + "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "tooltip": "Log the linear position of the motor.\n\n:param position: The linear position to record.\n\n:returns: The motor log (for call chaining)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.sysid.SysIdRoutineLog.MotorLog" + }, + { + "defaultValue": null, + "name": "name", + "type": "str" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + }, + { + "defaultValue": null, + "name": "unit", + "type": "str" + } + ], + "declaringClassName": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "functionName": "value", + "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "tooltip": "Log a generic data value from the motor.\n\n:param name: The name of the data field being recorded.\n:param value: The numeric value of the data field.\n:param unit: The unit string of the data field.\n\n:returns: The motor log (for call chaining)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.sysid.SysIdRoutineLog.MotorLog" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.meters_per_second" + } + ], + "declaringClassName": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "functionName": "velocity", + "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "tooltip": "Log the linear velocity of the motor.\n\n:param velocity: The linear velocity to record.\n\n:returns: The motor log (for call chaining)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpilib.sysid.SysIdRoutineLog.MotorLog" + }, + { + "defaultValue": null, + "name": "voltage", + "type": "wpimath.units.volts" + } + ], + "declaringClassName": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "functionName": "voltage", + "returnType": "wpilib.sysid.SysIdRoutineLog.MotorLog", + "tooltip": "Log the voltage applied to the motor.\n\n:param voltage: The voltage to record.\n\n:returns: The motor log (for call chaining)." + } + ], + "instanceVariables": [], + "moduleName": "wpilib.sysid", + "staticMethods": [] + }, + { + "className": "wpimath.controller.ArmFeedforward", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kS", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "kG", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "kV", + "type": "wpimath.units.volt_seconds_per_radian" + }, + { + "defaultValue": "0.0", + "name": "kA", + "type": "wpimath.units.volt_seconds_squared_per_radian" + }, + { + "defaultValue": "0.02", + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.ArmFeedforward", + "functionName": "__init__", + "returnType": "wpimath.controller.ArmFeedforward", + "tooltip": "Creates a new ArmFeedforward with the specified gains.\n\n:param kS: The static gain, in volts.\n:param kG: The gravity gain, in volts.\n:param kV: The velocity gain, in volt seconds per radian.\n:param kA: The acceleration gain, in volt seconds\u00b2 per radian.\n:param dt: The period in seconds.\n @throws IllegalArgumentException for kv < zero.\n @throws IllegalArgumentException for ka < zero.\n @throws IllegalArgumentException for period ≤ zero." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ArmFeedforward" + }, + { + "defaultValue": null, + "name": "currentAngle", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "currentVelocity", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpimath.controller.ArmFeedforward", + "functionName": "calculate", + "returnType": "wpimath.units.volts", + "tooltip": "Calculates the feedforward from the gains and setpoint assuming discrete\ncontrol. Use this method when the velocity does not change.\n\n:param currentAngle: The current angle. This angle should be measured from\n the horizontal (i.e. if the provided angle is 0, the arm should be parallel\n to the floor). If your encoder does not follow this convention, an offset\n should be added.\n:param currentVelocity: The current velocity.\n\n:returns: The computed feedforward in volts." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ArmFeedforward" + }, + { + "defaultValue": null, + "name": "currentAngle", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "currentVelocity", + "type": "wpimath.units.radians_per_second" + }, + { + "defaultValue": null, + "name": "nextVelocity", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpimath.controller.ArmFeedforward", + "functionName": "calculate", + "returnType": "wpimath.units.volts", + "tooltip": "Calculates the feedforward from the gains and setpoints assuming discrete\ncontrol.\n\n:param currentAngle: The current angle. This angle should be measured from\n the horizontal (i.e. if the provided angle is 0, the arm should be parallel\n to the floor). If your encoder does not follow this convention, an offset\n should be added.\n:param currentVelocity: The current velocity.\n:param nextVelocity: The next velocity.\n\n:returns: The computed feedforward in volts." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ArmFeedforward" + } + ], + "declaringClassName": "wpimath.controller.ArmFeedforward", + "functionName": "getKa", + "returnType": "wpimath.units.volt_seconds_squared_per_radian", + "tooltip": "Returns the acceleration gain.\n\n:returns: The acceleration gain." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ArmFeedforward" + } + ], + "declaringClassName": "wpimath.controller.ArmFeedforward", + "functionName": "getKg", + "returnType": "wpimath.units.volts", + "tooltip": "Returns the gravity gain.\n\n:returns: The gravity gain." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ArmFeedforward" + } + ], + "declaringClassName": "wpimath.controller.ArmFeedforward", + "functionName": "getKs", + "returnType": "wpimath.units.volts", + "tooltip": "Returns the static gain.\n\n:returns: The static gain." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ArmFeedforward" + } + ], + "declaringClassName": "wpimath.controller.ArmFeedforward", + "functionName": "getKv", + "returnType": "wpimath.units.volt_seconds_per_radian", + "tooltip": "Returns the velocity gain.\n\n:returns: The velocity gain." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ArmFeedforward" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "angle", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpimath.controller.ArmFeedforward", + "functionName": "maxAchievableAcceleration", + "returnType": "wpimath.units.radians_per_second_squared", + "tooltip": "Calculates the maximum achievable acceleration given a maximum voltage\nsupply, a position, and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the arm.\n:param angle: The angle of the arm. This angle should be measured\n from the horizontal (i.e. if the provided angle is 0,\n the arm should be parallel to the floor). If your\n encoder does not follow this convention, an offset\n should be added.\n:param velocity: The velocity of the arm.\n\n:returns: The maximum possible acceleration at the given velocity and angle." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ArmFeedforward" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "angle", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "acceleration", + "type": "wpimath.units.radians_per_second_squared" + } + ], + "declaringClassName": "wpimath.controller.ArmFeedforward", + "functionName": "maxAchievableVelocity", + "returnType": "wpimath.units.radians_per_second", + "tooltip": "Calculates the maximum achievable velocity given a maximum voltage supply,\na position, and an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the arm.\n:param angle: The angle of the arm. This angle should be measured\n from the horizontal (i.e. if the provided angle is 0,\n the arm should be parallel to the floor). If your\n encoder does not follow this convention, an offset\n should be added.\n:param acceleration: The acceleration of the arm.\n\n:returns: The maximum possible velocity at the given acceleration and angle." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ArmFeedforward" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "angle", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpimath.controller.ArmFeedforward", + "functionName": "minAchievableAcceleration", + "returnType": "wpimath.units.radians_per_second_squared", + "tooltip": "Calculates the minimum achievable acceleration given a maximum voltage\nsupply, a position, and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the arm.\n:param angle: The angle of the arm. This angle should be measured\n from the horizontal (i.e. if the provided angle is 0,\n the arm should be parallel to the floor). If your\n encoder does not follow this convention, an offset\n should be added.\n:param velocity: The velocity of the arm.\n\n:returns: The minimum possible acceleration at the given velocity and angle." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ArmFeedforward" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "angle", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "acceleration", + "type": "wpimath.units.radians_per_second_squared" + } + ], + "declaringClassName": "wpimath.controller.ArmFeedforward", + "functionName": "minAchievableVelocity", + "returnType": "wpimath.units.radians_per_second", + "tooltip": "Calculates the minimum achievable velocity given a maximum voltage supply,\na position, and an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the arm.\n:param angle: The angle of the arm. This angle should be measured\n from the horizontal (i.e. if the provided angle is 0,\n the arm should be parallel to the floor). If your\n encoder does not follow this convention, an offset\n should be added.\n:param acceleration: The acceleration of the arm.\n\n:returns: The minimum possible velocity at the given acceleration and angle." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.BangBangController", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": "inf", + "name": "tolerance", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.BangBangController", + "functionName": "__init__", + "returnType": "wpimath.controller.BangBangController", + "tooltip": "Creates a new bang-bang controller.\n\nAlways ensure that your motor controllers are set to \"coast\" before\nattempting to control them with a bang-bang controller.\n\n:param tolerance: Tolerance for atSetpoint." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.BangBangController" + } + ], + "declaringClassName": "wpimath.controller.BangBangController", + "functionName": "atSetpoint", + "returnType": "bool", + "tooltip": "Returns true if the error is within the tolerance of the setpoint.\n\n:returns: Whether the error is within the acceptable bounds." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.BangBangController" + }, + { + "defaultValue": null, + "name": "measurement", + "type": "float" + }, + { + "defaultValue": null, + "name": "setpoint", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.BangBangController", + "functionName": "calculate", + "returnType": "float", + "tooltip": "Returns the calculated control output.\n\nAlways ensure that your motor controllers are set to \"coast\" before\nattempting to control them with a bang-bang controller.\n\n:param measurement: The most recent measurement of the process variable.\n:param setpoint: The setpoint for the process variable.\n\n:returns: The calculated motor output (0 or 1)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.BangBangController" + }, + { + "defaultValue": null, + "name": "measurement", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.BangBangController", + "functionName": "calculate", + "returnType": "float", + "tooltip": "Returns the calculated control output.\n\n:param measurement: The most recent measurement of the process variable.\n\n:returns: The calculated motor output (0 or 1)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.BangBangController" + } + ], + "declaringClassName": "wpimath.controller.BangBangController", + "functionName": "getError", + "returnType": "float", + "tooltip": "Returns the current error.\n\n:returns: The current error." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.BangBangController" + } + ], + "declaringClassName": "wpimath.controller.BangBangController", + "functionName": "getMeasurement", + "returnType": "float", + "tooltip": "Returns the current measurement of the process variable.\n\n:returns: The current measurement of the process variable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.BangBangController" + } + ], + "declaringClassName": "wpimath.controller.BangBangController", + "functionName": "getSetpoint", + "returnType": "float", + "tooltip": "Returns the current setpoint of the bang-bang controller.\n\n:returns: The current setpoint." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.BangBangController" + } + ], + "declaringClassName": "wpimath.controller.BangBangController", + "functionName": "getTolerance", + "returnType": "float", + "tooltip": "Returns the current tolerance of the controller.\n\n:returns: The current tolerance." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.BangBangController" + }, + { + "defaultValue": null, + "name": "builder", + "type": "wpiutil.SendableBuilder" + } + ], + "declaringClassName": "wpimath.controller.BangBangController", + "functionName": "initSendable", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.BangBangController" + }, + { + "defaultValue": null, + "name": "setpoint", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.BangBangController", + "functionName": "setSetpoint", + "returnType": "None", + "tooltip": "Sets the setpoint for the bang-bang controller.\n\n:param setpoint: The desired setpoint." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.BangBangController" + }, + { + "defaultValue": null, + "name": "tolerance", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.BangBangController", + "functionName": "setTolerance", + "returnType": "None", + "tooltip": "Sets the error within which AtSetpoint will return true.\n\n:param tolerance: Position error which is tolerable." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "f", + "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", + "functionName": "__init__", + "returnType": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", + "tooltip": "Constructs a feedforward with given model dynamics as a function\nof state and input.\n\n:param f: A vector-valued function of x, the state, and\n u, the input, that returns the derivative of\n the state vector. HAS to be control-affine\n (of the form f(x) + Bu).\n:param dt: The timestep between calls of calculate()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "f", + "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", + "functionName": "__init__", + "returnType": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", + "tooltip": "Constructs a feedforward with given model dynamics as a function of state,\nand the plant's B matrix(continuous input matrix).\n\n:param f: A vector-valued function of x, the state,\n that returns the derivative of the state vector.\n:param B: Continuous input matrix of the plant being controlled.\n:param dt: The timestep between calls of calculate()." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", + "functionName": "R", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the current reference vector r.\n\n:returns: The current reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", + "functionName": "R", + "returnType": "float", + "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the current reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Calculate the feedforward with only the desired\nfuture reference. This uses the internally stored \"current\"\nreference.\n\nIf this method is used the initial state of the system is the one set using\nReset(const StateVector&). If the initial state is not\nset it defaults to a zero vector.\n\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1" + }, + { + "defaultValue": null, + "name": "r", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Calculate the feedforward with current and future reference vectors.\n\n:param r: The reference state of the current timestep (k).\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1" + }, + { + "defaultValue": null, + "name": "initialState", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the feedforward with a specified initial state vector.\n\n:param initialState: The initial state vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the feedforward with a zero initial state vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", + "functionName": "uff", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the previously calculated feedforward as an input vector.\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_1_1", + "functionName": "uff", + "returnType": "float", + "tooltip": "Returns an element of the previously calculated feedforward.\n\n:param i: Row of uff.\n\n:returns: The row of the calculated feedforward." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "f", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[2, 1]]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", + "functionName": "__init__", + "returnType": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", + "tooltip": "Constructs a feedforward with given model dynamics as a function\nof state and input.\n\n:param f: A vector-valued function of x, the state, and\n u, the input, that returns the derivative of\n the state vector. HAS to be control-affine\n (of the form f(x) + Bu).\n:param dt: The timestep between calls of calculate()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "f", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", + "functionName": "__init__", + "returnType": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", + "tooltip": "Constructs a feedforward with given model dynamics as a function of state,\nand the plant's B matrix(continuous input matrix).\n\n:param f: A vector-valued function of x, the state,\n that returns the derivative of the state vector.\n:param B: Continuous input matrix of the plant being controlled.\n:param dt: The timestep between calls of calculate()." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", + "functionName": "R", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the current reference vector r.\n\n:returns: The current reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", + "functionName": "R", + "returnType": "float", + "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the current reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Calculate the feedforward with only the desired\nfuture reference. This uses the internally stored \"current\"\nreference.\n\nIf this method is used the initial state of the system is the one set using\nReset(const StateVector&). If the initial state is not\nset it defaults to a zero vector.\n\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1" + }, + { + "defaultValue": null, + "name": "r", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Calculate the feedforward with current and future reference vectors.\n\n:param r: The reference state of the current timestep (k).\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1" + }, + { + "defaultValue": null, + "name": "initialState", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the feedforward with a specified initial state vector.\n\n:param initialState: The initial state vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the feedforward with a zero initial state vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", + "functionName": "uff", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the previously calculated feedforward as an input vector.\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_1", + "functionName": "uff", + "returnType": "float", + "tooltip": "Returns an element of the previously calculated feedforward.\n\n:param i: Row of uff.\n\n:returns: The row of the calculated feedforward." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "f", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", + "functionName": "__init__", + "returnType": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", + "tooltip": "Constructs a feedforward with given model dynamics as a function\nof state and input.\n\n:param f: A vector-valued function of x, the state, and\n u, the input, that returns the derivative of\n the state vector. HAS to be control-affine\n (of the form f(x) + Bu).\n:param dt: The timestep between calls of calculate()." + }, + { + "args": [ + { + "defaultValue": null, + "name": "f", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", + "functionName": "__init__", + "returnType": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", + "tooltip": "Constructs a feedforward with given model dynamics as a function of state,\nand the plant's B matrix(continuous input matrix).\n\n:param f: A vector-valued function of x, the state,\n that returns the derivative of the state vector.\n:param B: Continuous input matrix of the plant being controlled.\n:param dt: The timestep between calls of calculate()." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", + "functionName": "R", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the current reference vector r.\n\n:returns: The current reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", + "functionName": "R", + "returnType": "float", + "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the current reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Calculate the feedforward with only the desired\nfuture reference. This uses the internally stored \"current\"\nreference.\n\nIf this method is used the initial state of the system is the one set using\nReset(const StateVector&). If the initial state is not\nset it defaults to a zero vector.\n\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2" + }, + { + "defaultValue": null, + "name": "r", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Calculate the feedforward with current and future reference vectors.\n\n:param r: The reference state of the current timestep (k).\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2" + }, + { + "defaultValue": null, + "name": "initialState", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the feedforward with a specified initial state vector.\n\n:param initialState: The initial state vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the feedforward with a zero initial state vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", + "functionName": "uff", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the previously calculated feedforward as an input vector.\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.ControlAffinePlantInversionFeedforward_2_2", + "functionName": "uff", + "returnType": "float", + "tooltip": "Returns an element of the previously calculated feedforward.\n\n:param i: Row of uff.\n\n:returns: The row of the calculated feedforward." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.DifferentialDriveAccelerationLimiter", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "system", + "type": "wpimath.system.LinearSystem_2_2_2" + }, + { + "defaultValue": null, + "name": "trackwidth", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "maxLinearAccel", + "type": "wpimath.units.meters_per_second_squared" + }, + { + "defaultValue": null, + "name": "maxAngularAccel", + "type": "wpimath.units.radians_per_second_squared" + } + ], + "declaringClassName": "wpimath.controller.DifferentialDriveAccelerationLimiter", + "functionName": "__init__", + "returnType": "wpimath.controller.DifferentialDriveAccelerationLimiter", + "tooltip": "Constructs a DifferentialDriveAccelerationLimiter.\n\n:param system: The differential drive dynamics.\n:param trackwidth: The distance between the differential drive's left and\n right wheels.\n:param maxLinearAccel: The maximum linear acceleration.\n:param maxAngularAccel: The maximum angular acceleration." + }, + { + "args": [ + { + "defaultValue": null, + "name": "system", + "type": "wpimath.system.LinearSystem_2_2_2" + }, + { + "defaultValue": null, + "name": "trackwidth", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "minLinearAccel", + "type": "wpimath.units.meters_per_second_squared" + }, + { + "defaultValue": null, + "name": "maxLinearAccel", + "type": "wpimath.units.meters_per_second_squared" + }, + { + "defaultValue": null, + "name": "maxAngularAccel", + "type": "wpimath.units.radians_per_second_squared" + } + ], + "declaringClassName": "wpimath.controller.DifferentialDriveAccelerationLimiter", + "functionName": "__init__", + "returnType": "wpimath.controller.DifferentialDriveAccelerationLimiter", + "tooltip": "Constructs a DifferentialDriveAccelerationLimiter.\n\n:param system: The differential drive dynamics.\n:param trackwidth: The distance between the differential drive's left and\n right wheels.\n:param minLinearAccel: The minimum (most negative) linear acceleration.\n:param maxLinearAccel: The maximum (most positive) linear acceleration.\n:param maxAngularAccel: The maximum angular acceleration.\n @throws std::invalid_argument if minimum linear acceleration is greater\n than maximum linear acceleration" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.DifferentialDriveAccelerationLimiter" + }, + { + "defaultValue": null, + "name": "leftVelocity", + "type": "wpimath.units.meters_per_second" + }, + { + "defaultValue": null, + "name": "rightVelocity", + "type": "wpimath.units.meters_per_second" + }, + { + "defaultValue": null, + "name": "leftVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "rightVoltage", + "type": "wpimath.units.volts" + } + ], + "declaringClassName": "wpimath.controller.DifferentialDriveAccelerationLimiter", + "functionName": "calculate", + "returnType": "wpimath.controller.DifferentialDriveWheelVoltages", + "tooltip": "Returns the next voltage pair subject to acceleration constraints.\n\n:param leftVelocity: The left wheel velocity.\n:param rightVelocity: The right wheel velocity.\n:param leftVoltage: The unconstrained left motor voltage.\n:param rightVoltage: The unconstrained right motor voltage.\n\n:returns: The constrained wheel voltages." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.DifferentialDriveWheelVoltages", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": "0", + "name": "left", + "type": "wpimath.units.volts" + }, + { + "defaultValue": "0", + "name": "right", + "type": "wpimath.units.volts" + } + ], + "declaringClassName": "wpimath.controller.DifferentialDriveWheelVoltages", + "functionName": "__init__", + "returnType": "wpimath.controller.DifferentialDriveWheelVoltages", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [], + "instanceVariables": [ + { + "name": "left", + "tooltip": "Left wheel voltage.", + "type": "wpimath.units.volts", + "writable": true + }, + { + "name": "right", + "tooltip": "Right wheel voltage.", + "type": "wpimath.units.volts", + "writable": true + } + ], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.ElevatorFeedforward", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kS", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "kG", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "kV", + "type": "wpimath.units.volt_seconds_per_meter" + }, + { + "defaultValue": "0.0", + "name": "kA", + "type": "wpimath.units.volt_seconds_squared_per_meter" + }, + { + "defaultValue": "0.02", + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.ElevatorFeedforward", + "functionName": "__init__", + "returnType": "wpimath.controller.ElevatorFeedforward", + "tooltip": "Creates a new ElevatorFeedforward with the specified gains.\n\n:param kS: The static gain, in volts.\n:param kG: The gravity gain, in volts.\n:param kV: The velocity gain, in volt seconds per distance.\n:param kA: The acceleration gain, in volt seconds\u00b2 per distance.\n:param dt: The period in seconds.\n @throws IllegalArgumentException for kv < zero.\n @throws IllegalArgumentException for ka < zero.\n @throws IllegalArgumentException for period ≤ zero." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ElevatorFeedforward" + }, + { + "defaultValue": null, + "name": "currentVelocity", + "type": "wpimath.units.meters_per_second" + } + ], + "declaringClassName": "wpimath.controller.ElevatorFeedforward", + "functionName": "calculate", + "returnType": "wpimath.units.volts", + "tooltip": "Calculates the feedforward from the gains and setpoint assuming discrete\ncontrol. Use this method when the setpoint does not change.\n\n:param currentVelocity: The velocity setpoint.\n\n:returns: The computed feedforward, in volts." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ElevatorFeedforward" + }, + { + "defaultValue": null, + "name": "currentVelocity", + "type": "wpimath.units.meters_per_second" + }, + { + "defaultValue": null, + "name": "nextVelocity", + "type": "wpimath.units.meters_per_second" + } + ], + "declaringClassName": "wpimath.controller.ElevatorFeedforward", + "functionName": "calculate", + "returnType": "wpimath.units.volts", + "tooltip": "Calculates the feedforward from the gains and setpoints assuming discrete\ncontrol.\n\nNote this method is inaccurate when the velocity crosses 0.\n\n:param currentVelocity: The current velocity setpoint.\n:param nextVelocity: The next velocity setpoint.\n\n:returns: The computed feedforward, in volts." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ElevatorFeedforward" + } + ], + "declaringClassName": "wpimath.controller.ElevatorFeedforward", + "functionName": "getKa", + "returnType": "wpimath.units.volt_seconds_squared_per_meter", + "tooltip": "Returns the acceleration gain.\n\n:returns: The acceleration gain." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ElevatorFeedforward" + } + ], + "declaringClassName": "wpimath.controller.ElevatorFeedforward", + "functionName": "getKg", + "returnType": "wpimath.units.volts", + "tooltip": "Returns the gravity gain.\n\n:returns: The gravity gain." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ElevatorFeedforward" + } + ], + "declaringClassName": "wpimath.controller.ElevatorFeedforward", + "functionName": "getKs", + "returnType": "wpimath.units.volts", + "tooltip": "Returns the static gain.\n\n:returns: The static gain." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ElevatorFeedforward" + } + ], + "declaringClassName": "wpimath.controller.ElevatorFeedforward", + "functionName": "getKv", + "returnType": "wpimath.units.volt_seconds_per_meter", + "tooltip": "Returns the velocity gain.\n\n:returns: The velocity gain." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ElevatorFeedforward" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.meters_per_second" + } + ], + "declaringClassName": "wpimath.controller.ElevatorFeedforward", + "functionName": "maxAchievableAcceleration", + "returnType": "wpimath.units.meters_per_second_squared", + "tooltip": "Calculates the maximum achievable acceleration given a maximum voltage\nsupply and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the elevator.\n:param velocity: The velocity of the elevator.\n\n:returns: The maximum possible acceleration at the given velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ElevatorFeedforward" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "acceleration", + "type": "wpimath.units.meters_per_second_squared" + } + ], + "declaringClassName": "wpimath.controller.ElevatorFeedforward", + "functionName": "maxAchievableVelocity", + "returnType": "wpimath.units.meters_per_second", + "tooltip": "Calculates the maximum achievable velocity given a maximum voltage supply\nand an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the elevator.\n:param acceleration: The acceleration of the elevator.\n\n:returns: The maximum possible velocity at the given acceleration." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ElevatorFeedforward" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.meters_per_second" + } + ], + "declaringClassName": "wpimath.controller.ElevatorFeedforward", + "functionName": "minAchievableAcceleration", + "returnType": "wpimath.units.meters_per_second_squared", + "tooltip": "Calculates the minimum achievable acceleration given a maximum voltage\nsupply and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the elevator.\n:param velocity: The velocity of the elevator.\n\n:returns: The minimum possible acceleration at the given velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ElevatorFeedforward" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "acceleration", + "type": "wpimath.units.meters_per_second_squared" + } + ], + "declaringClassName": "wpimath.controller.ElevatorFeedforward", + "functionName": "minAchievableVelocity", + "returnType": "wpimath.units.meters_per_second", + "tooltip": "Calculates the minimum achievable velocity given a maximum voltage supply\nand an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the elevator.\n:param acceleration: The acceleration of the elevator.\n\n:returns: The minimum possible velocity at the given acceleration." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.HolonomicDriveController", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "xController", + "type": "wpimath.controller.PIDController" + }, + { + "defaultValue": null, + "name": "yController", + "type": "wpimath.controller.PIDController" + }, + { + "defaultValue": null, + "name": "thetaController", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.HolonomicDriveController", + "functionName": "__init__", + "returnType": "wpimath.controller.HolonomicDriveController", + "tooltip": "Constructs a holonomic drive controller.\n\n:param xController: A PID Controller to respond to error in the\n field-relative x direction.\n:param yController: A PID Controller to respond to error in the\n field-relative y direction.\n:param thetaController: A profiled PID controller to respond to error in\n angle." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.HolonomicDriveController" + } + ], + "declaringClassName": "wpimath.controller.HolonomicDriveController", + "functionName": "atReference", + "returnType": "bool", + "tooltip": "Returns true if the pose error is within tolerance of the reference." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.HolonomicDriveController" + }, + { + "defaultValue": null, + "name": "currentPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "trajectoryPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "desiredLinearVelocity", + "type": "wpimath.units.meters_per_second" + }, + { + "defaultValue": null, + "name": "desiredHeading", + "type": "wpimath.geometry.Rotation2d" + } + ], + "declaringClassName": "wpimath.controller.HolonomicDriveController", + "functionName": "calculate", + "returnType": "wpimath.kinematics.ChassisSpeeds", + "tooltip": "Returns the next output of the holonomic drive controller.\n\n:param currentPose: The current pose, as measured by odometry or pose\n estimator.\n:param trajectoryPose: The desired trajectory pose, as sampled for the\n current timestep.\n:param desiredLinearVelocity: The desired linear velocity.\n:param desiredHeading: The desired heading.\n\n:returns: The next output of the holonomic drive controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.HolonomicDriveController" + }, + { + "defaultValue": null, + "name": "currentPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "desiredState", + "type": "wpimath.trajectory.Trajectory.State" + }, + { + "defaultValue": null, + "name": "desiredHeading", + "type": "wpimath.geometry.Rotation2d" + } + ], + "declaringClassName": "wpimath.controller.HolonomicDriveController", + "functionName": "calculate", + "returnType": "wpimath.kinematics.ChassisSpeeds", + "tooltip": "Returns the next output of the holonomic drive controller.\n\n:param currentPose: The current pose, as measured by odometry or pose\n estimator.\n:param desiredState: The desired trajectory pose, as sampled for the current\n timestep.\n:param desiredHeading: The desired heading.\n\n:returns: The next output of the holonomic drive controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.HolonomicDriveController" + } + ], + "declaringClassName": "wpimath.controller.HolonomicDriveController", + "functionName": "getThetaController", + "returnType": "wpimath.controller.ProfiledPIDControllerRadians", + "tooltip": "Returns the rotation ProfiledPIDController" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.HolonomicDriveController" + } + ], + "declaringClassName": "wpimath.controller.HolonomicDriveController", + "functionName": "getXController", + "returnType": "wpimath.controller.PIDController", + "tooltip": "Returns the X PIDController" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.HolonomicDriveController" + } + ], + "declaringClassName": "wpimath.controller.HolonomicDriveController", + "functionName": "getYController", + "returnType": "wpimath.controller.PIDController", + "tooltip": "Returns the Y PIDController" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.HolonomicDriveController" + }, + { + "defaultValue": null, + "name": "enabled", + "type": "bool" + } + ], + "declaringClassName": "wpimath.controller.HolonomicDriveController", + "functionName": "setEnabled", + "returnType": "None", + "tooltip": "Enables and disables the controller for troubleshooting purposes. When\nCalculate() is called on a disabled controller, only feedforward values\nare returned.\n\n:param enabled: If the controller is enabled or not." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.HolonomicDriveController" + }, + { + "defaultValue": null, + "name": "tolerance", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.controller.HolonomicDriveController", + "functionName": "setTolerance", + "returnType": "None", + "tooltip": "Sets the pose error which is considered tolerable for use with\nAtReference().\n\n:param tolerance: Pose error which is tolerable." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.ImplicitModelFollower_1_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "Aref", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "Bref", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_1_1", + "functionName": "__init__", + "returnType": "wpimath.controller.ImplicitModelFollower_1_1", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Aref: Continuous system matrix whose dynamics should be followed.\n:param Bref: Continuous input matrix whose dynamics should be followed." + }, + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_1_1_1" + }, + { + "defaultValue": null, + "name": "plantRef", + "type": "wpimath.system.LinearSystem_1_1_1" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_1_1", + "functionName": "__init__", + "returnType": "wpimath.controller.ImplicitModelFollower_1_1", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_1_1_2" + }, + { + "defaultValue": null, + "name": "plantRef", + "type": "wpimath.system.LinearSystem_1_1_2" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_1_1", + "functionName": "__init__", + "returnType": "wpimath.controller.ImplicitModelFollower_1_1", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_1_1_3" + }, + { + "defaultValue": null, + "name": "plantRef", + "type": "wpimath.system.LinearSystem_1_1_3" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_1_1", + "functionName": "__init__", + "returnType": "wpimath.controller.ImplicitModelFollower_1_1", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ImplicitModelFollower_1_1" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_1_1", + "functionName": "U", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the control input vector u.\n\n:returns: The control input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ImplicitModelFollower_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_1_1", + "functionName": "U", + "returnType": "float", + "tooltip": "Returns an element of the control input vector u.\n\n:param i: Row of u.\n\n:returns: The row of the control input vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ImplicitModelFollower_1_1" + }, + { + "defaultValue": null, + "name": "x", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_1_1", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.\n:param u: The current input for the original model." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ImplicitModelFollower_1_1" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_1_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the controller." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.ImplicitModelFollower_2_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "Aref", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "Bref", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_1", + "functionName": "__init__", + "returnType": "wpimath.controller.ImplicitModelFollower_2_1", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Aref: Continuous system matrix whose dynamics should be followed.\n:param Bref: Continuous input matrix whose dynamics should be followed." + }, + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_1_1" + }, + { + "defaultValue": null, + "name": "plantRef", + "type": "wpimath.system.LinearSystem_2_1_1" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_1", + "functionName": "__init__", + "returnType": "wpimath.controller.ImplicitModelFollower_2_1", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_1_2" + }, + { + "defaultValue": null, + "name": "plantRef", + "type": "wpimath.system.LinearSystem_2_1_2" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_1", + "functionName": "__init__", + "returnType": "wpimath.controller.ImplicitModelFollower_2_1", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_1_3" + }, + { + "defaultValue": null, + "name": "plantRef", + "type": "wpimath.system.LinearSystem_2_1_3" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_1", + "functionName": "__init__", + "returnType": "wpimath.controller.ImplicitModelFollower_2_1", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ImplicitModelFollower_2_1" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_1", + "functionName": "U", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the control input vector u.\n\n:returns: The control input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ImplicitModelFollower_2_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_1", + "functionName": "U", + "returnType": "float", + "tooltip": "Returns an element of the control input vector u.\n\n:param i: Row of u.\n\n:returns: The row of the control input vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ImplicitModelFollower_2_1" + }, + { + "defaultValue": null, + "name": "x", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_1", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.\n:param u: The current input for the original model." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ImplicitModelFollower_2_1" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the controller." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.ImplicitModelFollower_2_2", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "Aref", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "Bref", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_2", + "functionName": "__init__", + "returnType": "wpimath.controller.ImplicitModelFollower_2_2", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Aref: Continuous system matrix whose dynamics should be followed.\n:param Bref: Continuous input matrix whose dynamics should be followed." + }, + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_2_1" + }, + { + "defaultValue": null, + "name": "plantRef", + "type": "wpimath.system.LinearSystem_2_2_1" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_2", + "functionName": "__init__", + "returnType": "wpimath.controller.ImplicitModelFollower_2_2", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_2_2" + }, + { + "defaultValue": null, + "name": "plantRef", + "type": "wpimath.system.LinearSystem_2_2_2" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_2", + "functionName": "__init__", + "returnType": "wpimath.controller.ImplicitModelFollower_2_2", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_2_3" + }, + { + "defaultValue": null, + "name": "plantRef", + "type": "wpimath.system.LinearSystem_2_2_3" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_2", + "functionName": "__init__", + "returnType": "wpimath.controller.ImplicitModelFollower_2_2", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ImplicitModelFollower_2_2" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_2", + "functionName": "U", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the control input vector u.\n\n:returns: The control input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ImplicitModelFollower_2_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_2", + "functionName": "U", + "returnType": "float", + "tooltip": "Returns an element of the control input vector u.\n\n:param i: Row of u.\n\n:returns: The row of the control input vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ImplicitModelFollower_2_2" + }, + { + "defaultValue": null, + "name": "x", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_2", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.\n:param u: The current input for the original model." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ImplicitModelFollower_2_2" + } + ], + "declaringClassName": "wpimath.controller.ImplicitModelFollower_2_2", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the controller." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.LTVDifferentialDriveController", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_2_2" + }, + { + "defaultValue": null, + "name": "trackwidth", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "Qelems", + "type": "Tuple[float, float, float, float, float]" + }, + { + "defaultValue": null, + "name": "Relems", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LTVDifferentialDriveController", + "functionName": "__init__", + "returnType": "wpimath.controller.LTVDifferentialDriveController", + "tooltip": "Constructs a linear time-varying differential drive controller.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning\nfor how to select the tolerances.\n\n:param plant: The differential drive velocity plant.\n:param trackwidth: The distance between the differential drive's left and\n right wheels.\n:param Qelems: The maximum desired error tolerance for each state.\n:param Relems: The maximum desired control effort for each input.\n:param dt: Discretization timestep.\n @throws std::domain_error if max velocity of plant with 12 V input <= 0 m/s\n or >= 15 m/s." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LTVDifferentialDriveController" + } + ], + "declaringClassName": "wpimath.controller.LTVDifferentialDriveController", + "functionName": "atReference", + "returnType": "bool", + "tooltip": "Returns true if the pose error is within tolerance of the reference." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LTVDifferentialDriveController" + }, + { + "defaultValue": null, + "name": "currentPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "leftVelocity", + "type": "wpimath.units.meters_per_second" + }, + { + "defaultValue": null, + "name": "rightVelocity", + "type": "wpimath.units.meters_per_second" + }, + { + "defaultValue": null, + "name": "poseRef", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "leftVelocityRef", + "type": "wpimath.units.meters_per_second" + }, + { + "defaultValue": null, + "name": "rightVelocityRef", + "type": "wpimath.units.meters_per_second" + } + ], + "declaringClassName": "wpimath.controller.LTVDifferentialDriveController", + "functionName": "calculate", + "returnType": "wpimath.controller.DifferentialDriveWheelVoltages", + "tooltip": "Returns the left and right output voltages of the LTV controller.\n\nThe reference pose, linear velocity, and angular velocity should come from\na drivetrain trajectory.\n\n:param currentPose: The current pose.\n:param leftVelocity: The current left velocity.\n:param rightVelocity: The current right velocity.\n:param poseRef: The desired pose.\n:param leftVelocityRef: The desired left velocity.\n:param rightVelocityRef: The desired right velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LTVDifferentialDriveController" + }, + { + "defaultValue": null, + "name": "currentPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "leftVelocity", + "type": "wpimath.units.meters_per_second" + }, + { + "defaultValue": null, + "name": "rightVelocity", + "type": "wpimath.units.meters_per_second" + }, + { + "defaultValue": null, + "name": "desiredState", + "type": "wpimath.trajectory.Trajectory.State" + } + ], + "declaringClassName": "wpimath.controller.LTVDifferentialDriveController", + "functionName": "calculate", + "returnType": "wpimath.controller.DifferentialDriveWheelVoltages", + "tooltip": "Returns the left and right output voltages of the LTV controller.\n\nThe reference pose, linear velocity, and angular velocity should come from\na drivetrain trajectory.\n\n:param currentPose: The current pose.\n:param leftVelocity: The left velocity.\n:param rightVelocity: The right velocity.\n:param desiredState: The desired pose, linear velocity, and angular velocity\n from a trajectory." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LTVDifferentialDriveController" + }, + { + "defaultValue": null, + "name": "poseTolerance", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "leftVelocityTolerance", + "type": "wpimath.units.meters_per_second" + }, + { + "defaultValue": null, + "name": "rightVelocityTolerance", + "type": "wpimath.units.meters_per_second" + } + ], + "declaringClassName": "wpimath.controller.LTVDifferentialDriveController", + "functionName": "setTolerance", + "returnType": "None", + "tooltip": "Sets the pose error which is considered tolerable for use with\nAtReference().\n\n:param poseTolerance: Pose error which is tolerable.\n:param leftVelocityTolerance: Left velocity error which is tolerable.\n:param rightVelocityTolerance: Right velocity error which is tolerable." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.LTVUnicycleController", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": "9.0", + "name": "maxVelocity", + "type": "wpimath.units.meters_per_second" + } + ], + "declaringClassName": "wpimath.controller.LTVUnicycleController", + "functionName": "__init__", + "returnType": "wpimath.controller.LTVUnicycleController", + "tooltip": "Constructs a linear time-varying unicycle controller with default maximum\ndesired error tolerances of (x = 0.0625 m, y = 0.125 m, heading = 2 rad)\nand default maximum desired control effort of (linear velocity = 1 m/s,\nangular velocity = 2 rad/s).\n\n:param dt: Discretization timestep.\n:param maxVelocity: The maximum velocity for the controller gain lookup\n table.\n @throws std::domain_error if maxVelocity <= 0 m/s or >= 15 m/s." + }, + { + "args": [ + { + "defaultValue": null, + "name": "Qelems", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "Relems", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": "9.0", + "name": "maxVelocity", + "type": "wpimath.units.meters_per_second" + } + ], + "declaringClassName": "wpimath.controller.LTVUnicycleController", + "functionName": "__init__", + "returnType": "wpimath.controller.LTVUnicycleController", + "tooltip": "Constructs a linear time-varying unicycle controller.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning\nfor how to select the tolerances.\n\n:param Qelems: The maximum desired error tolerance for each state (x, y,\n heading).\n:param Relems: The maximum desired control effort for each input (linear\n velocity, angular velocity).\n:param dt: Discretization timestep.\n:param maxVelocity: The maximum velocity for the controller gain lookup\n table.\n @throws std::domain_error if maxVelocity <= 0 m/s or >= 15 m/s." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LTVUnicycleController" + } + ], + "declaringClassName": "wpimath.controller.LTVUnicycleController", + "functionName": "atReference", + "returnType": "bool", + "tooltip": "Returns true if the pose error is within tolerance of the reference." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LTVUnicycleController" + }, + { + "defaultValue": null, + "name": "currentPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "poseRef", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "linearVelocityRef", + "type": "wpimath.units.meters_per_second" + }, + { + "defaultValue": null, + "name": "angularVelocityRef", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpimath.controller.LTVUnicycleController", + "functionName": "calculate", + "returnType": "wpimath.kinematics.ChassisSpeeds", + "tooltip": "Returns the linear and angular velocity outputs of the LTV controller.\n\nThe reference pose, linear velocity, and angular velocity should come from\na drivetrain trajectory.\n\n:param currentPose: The current pose.\n:param poseRef: The desired pose.\n:param linearVelocityRef: The desired linear velocity.\n:param angularVelocityRef: The desired angular velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LTVUnicycleController" + }, + { + "defaultValue": null, + "name": "currentPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "desiredState", + "type": "wpimath.trajectory.Trajectory.State" + } + ], + "declaringClassName": "wpimath.controller.LTVUnicycleController", + "functionName": "calculate", + "returnType": "wpimath.kinematics.ChassisSpeeds", + "tooltip": "Returns the linear and angular velocity outputs of the LTV controller.\n\nThe reference pose, linear velocity, and angular velocity should come from\na drivetrain trajectory.\n\n:param currentPose: The current pose.\n:param desiredState: The desired pose, linear velocity, and angular velocity\n from a trajectory." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LTVUnicycleController" + }, + { + "defaultValue": null, + "name": "enabled", + "type": "bool" + } + ], + "declaringClassName": "wpimath.controller.LTVUnicycleController", + "functionName": "setEnabled", + "returnType": "None", + "tooltip": "Enables and disables the controller for troubleshooting purposes.\n\n:param enabled: If the controller is enabled or not." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LTVUnicycleController" + }, + { + "defaultValue": null, + "name": "poseTolerance", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.controller.LTVUnicycleController", + "functionName": "setTolerance", + "returnType": "None", + "tooltip": "Sets the pose error which is considered tolerable for use with\nAtReference().\n\n:param poseTolerance: Pose error which is tolerable." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.LinearPlantInversionFeedforward_1_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_1_1", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearPlantInversionFeedforward_1_1", + "tooltip": "Constructs a feedforward with the given coefficients.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param dt: Discretization timestep." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_1_1", + "functionName": "R", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the current reference vector r.\n\n:returns: The current reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_1_1", + "functionName": "R", + "returnType": "float", + "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the current reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_1_1", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Calculate the feedforward with only the desired\nfuture reference. This uses the internally stored \"current\"\nreference.\n\nIf this method is used the initial state of the system is the one set using\nReset(const StateVector&). If the initial state is not\nset it defaults to a zero vector.\n\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1" + }, + { + "defaultValue": null, + "name": "r", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_1_1", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Calculate the feedforward with current and future reference vectors.\n\n:param r: The reference state of the current timestep (k).\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1" + }, + { + "defaultValue": null, + "name": "initialState", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_1_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the feedforward with a specified initial state vector.\n\n:param initialState: The initial state vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_1_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the feedforward with a zero initial state vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_1_1", + "functionName": "uff", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the previously calculated feedforward as an input vector.\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_1_1", + "functionName": "uff", + "returnType": "float", + "tooltip": "Returns an element of the previously calculated feedforward.\n\n:param i: Row of uff.\n\n:returns: The row of the calculated feedforward." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.LinearPlantInversionFeedforward_2_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_1", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearPlantInversionFeedforward_2_1", + "tooltip": "Constructs a feedforward with the given coefficients.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param dt: Discretization timestep." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_1", + "functionName": "R", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the current reference vector r.\n\n:returns: The current reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_1", + "functionName": "R", + "returnType": "float", + "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the current reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_1", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Calculate the feedforward with only the desired\nfuture reference. This uses the internally stored \"current\"\nreference.\n\nIf this method is used the initial state of the system is the one set using\nReset(const StateVector&). If the initial state is not\nset it defaults to a zero vector.\n\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1" + }, + { + "defaultValue": null, + "name": "r", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_1", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Calculate the feedforward with current and future reference vectors.\n\n:param r: The reference state of the current timestep (k).\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1" + }, + { + "defaultValue": null, + "name": "initialState", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the feedforward with a specified initial state vector.\n\n:param initialState: The initial state vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the feedforward with a zero initial state vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_1", + "functionName": "uff", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the previously calculated feedforward as an input vector.\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_1", + "functionName": "uff", + "returnType": "float", + "tooltip": "Returns an element of the previously calculated feedforward.\n\n:param i: Row of uff.\n\n:returns: The row of the calculated feedforward." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.LinearPlantInversionFeedforward_2_2", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_2", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearPlantInversionFeedforward_2_2", + "tooltip": "Constructs a feedforward with the given coefficients.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param dt: Discretization timestep." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_2", + "functionName": "R", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the current reference vector r.\n\n:returns: The current reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_2", + "functionName": "R", + "returnType": "float", + "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the current reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_2", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Calculate the feedforward with only the desired\nfuture reference. This uses the internally stored \"current\"\nreference.\n\nIf this method is used the initial state of the system is the one set using\nReset(const StateVector&). If the initial state is not\nset it defaults to a zero vector.\n\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2" + }, + { + "defaultValue": null, + "name": "r", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_2", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Calculate the feedforward with current and future reference vectors.\n\n:param r: The reference state of the current timestep (k).\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2" + }, + { + "defaultValue": null, + "name": "initialState", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_2", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the feedforward with a specified initial state vector.\n\n:param initialState: The initial state vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_2", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the feedforward with a zero initial state vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_2", + "functionName": "uff", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the previously calculated feedforward as an input vector.\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_2_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_2_2", + "functionName": "uff", + "returnType": "float", + "tooltip": "Returns an element of the previously calculated feedforward.\n\n:param i: Row of uff.\n\n:returns: The row of the calculated feedforward." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.LinearPlantInversionFeedforward_3_2", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[3, 3]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[3, 2]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_3_2", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearPlantInversionFeedforward_3_2", + "tooltip": "Constructs a feedforward with the given coefficients.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param dt: Discretization timestep." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_3_2", + "functionName": "R", + "returnType": "numpy.ndarray[numpy.float64[3, 1]]", + "tooltip": "Returns the current reference vector r.\n\n:returns: The current reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_3_2", + "functionName": "R", + "returnType": "float", + "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the current reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[3, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_3_2", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Calculate the feedforward with only the desired\nfuture reference. This uses the internally stored \"current\"\nreference.\n\nIf this method is used the initial state of the system is the one set using\nReset(const StateVector&). If the initial state is not\nset it defaults to a zero vector.\n\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2" + }, + { + "defaultValue": null, + "name": "r", + "type": "numpy.ndarray[numpy.float64[3, 1]]" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[3, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_3_2", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Calculate the feedforward with current and future reference vectors.\n\n:param r: The reference state of the current timestep (k).\n:param nextR: The reference state of the future timestep (k + dt).\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2" + }, + { + "defaultValue": null, + "name": "initialState", + "type": "numpy.ndarray[numpy.float64[3, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_3_2", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the feedforward with a specified initial state vector.\n\n:param initialState: The initial state vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_3_2", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the feedforward with a zero initial state vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_3_2", + "functionName": "uff", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the previously calculated feedforward as an input vector.\n\n:returns: The calculated feedforward." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearPlantInversionFeedforward_3_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearPlantInversionFeedforward_3_2", + "functionName": "uff", + "returnType": "float", + "tooltip": "Returns an element of the previously calculated feedforward.\n\n:param i: Row of uff.\n\n:returns: The row of the calculated feedforward." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.LinearQuadraticRegulator_1_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "Qelems", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "Relems", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_1_1", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning\nfor how to select the tolerances.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Qelems: The maximum desired error tolerance for each state.\n:param Relems: The maximum desired control effort for each input.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "Q", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_1_1", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "Q", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "N", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_1_1", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param N: The state-input cross-term cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "arg0", + "type": "wpimath.system.LinearSystem_1_1_1" + }, + { + "defaultValue": null, + "name": "arg1", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "arg2", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "arg3", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_1_1", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "arg0", + "type": "wpimath.system.LinearSystem_1_1_2" + }, + { + "defaultValue": null, + "name": "arg1", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "arg2", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "arg3", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_1_1", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "arg0", + "type": "wpimath.system.LinearSystem_1_1_3" + }, + { + "defaultValue": null, + "name": "arg1", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "arg2", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "arg3", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_1_1", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_1_1" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "K", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the controller matrix K." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "j", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "K", + "returnType": "float", + "tooltip": "Returns an element of the controller matrix K.\n\n:param i: Row of K.\n:param j: Column of K." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_1_1" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "R", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the reference vector r.\n\n:returns: The reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "R", + "returnType": "float", + "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_1_1" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "U", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the control input vector u.\n\n:returns: The control input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "U", + "returnType": "float", + "tooltip": "Returns an element of the control input vector u.\n\n:param i: Row of u.\n\n:returns: The row of the control input vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_1_1" + }, + { + "defaultValue": null, + "name": "x", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_1_1" + }, + { + "defaultValue": null, + "name": "x", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.\n:param nextR: The next reference vector r." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_1_1" + }, + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_1_1_1" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "inputDelay", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "latencyCompensate", + "returnType": "None", + "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_1_1" + }, + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_1_1_2" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "inputDelay", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "latencyCompensate", + "returnType": "None", + "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_1_1" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_1_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the controller." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.LinearQuadraticRegulator_2_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "Qelems", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "Relems", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_2_1", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning\nfor how to select the tolerances.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Qelems: The maximum desired error tolerance for each state.\n:param Relems: The maximum desired control effort for each input.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "Q", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_2_1", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "Q", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "N", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_2_1", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param N: The state-input cross-term cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "arg0", + "type": "wpimath.system.LinearSystem_2_1_1" + }, + { + "defaultValue": null, + "name": "arg1", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "arg2", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "arg3", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_2_1", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "arg0", + "type": "wpimath.system.LinearSystem_2_1_2" + }, + { + "defaultValue": null, + "name": "arg1", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "arg2", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "arg3", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_2_1", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "arg0", + "type": "wpimath.system.LinearSystem_2_1_3" + }, + { + "defaultValue": null, + "name": "arg1", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "arg2", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "arg3", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_2_1", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_1" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "K", + "returnType": "numpy.ndarray[numpy.float64[1, 2]]", + "tooltip": "Returns the controller matrix K." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "j", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "K", + "returnType": "float", + "tooltip": "Returns an element of the controller matrix K.\n\n:param i: Row of K.\n:param j: Column of K." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_1" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "R", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the reference vector r.\n\n:returns: The reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "R", + "returnType": "float", + "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_1" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "U", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the control input vector u.\n\n:returns: The control input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "U", + "returnType": "float", + "tooltip": "Returns an element of the control input vector u.\n\n:param i: Row of u.\n\n:returns: The row of the control input vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_1" + }, + { + "defaultValue": null, + "name": "x", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_1" + }, + { + "defaultValue": null, + "name": "x", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.\n:param nextR: The next reference vector r." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_1" + }, + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_1_1" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "inputDelay", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "latencyCompensate", + "returnType": "None", + "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_1" + }, + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_1_2" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "inputDelay", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "latencyCompensate", + "returnType": "None", + "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_1" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the controller." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.LinearQuadraticRegulator_2_2", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "Qelems", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "Relems", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_2_2", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning\nfor how to select the tolerances.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Qelems: The maximum desired error tolerance for each state.\n:param Relems: The maximum desired control effort for each input.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "Q", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_2_2", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "Q", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "N", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_2_2", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param N: The state-input cross-term cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "arg0", + "type": "wpimath.system.LinearSystem_2_2_1" + }, + { + "defaultValue": null, + "name": "arg1", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "arg2", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "arg3", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_2_2", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "arg0", + "type": "wpimath.system.LinearSystem_2_2_2" + }, + { + "defaultValue": null, + "name": "arg1", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "arg2", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "arg3", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_2_2", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "arg0", + "type": "wpimath.system.LinearSystem_2_2_3" + }, + { + "defaultValue": null, + "name": "arg1", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "arg2", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "arg3", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_2_2", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_2" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "K", + "returnType": "numpy.ndarray[numpy.float64[2, 2]]", + "tooltip": "Returns the controller matrix K." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "j", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "K", + "returnType": "float", + "tooltip": "Returns an element of the controller matrix K.\n\n:param i: Row of K.\n:param j: Column of K." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_2" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "R", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the reference vector r.\n\n:returns: The reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "R", + "returnType": "float", + "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_2" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "U", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the control input vector u.\n\n:returns: The control input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "U", + "returnType": "float", + "tooltip": "Returns an element of the control input vector u.\n\n:param i: Row of u.\n\n:returns: The row of the control input vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_2" + }, + { + "defaultValue": null, + "name": "x", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_2" + }, + { + "defaultValue": null, + "name": "x", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.\n:param nextR: The next reference vector r." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_2" + }, + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_2_1" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "inputDelay", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "latencyCompensate", + "returnType": "None", + "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_2" + }, + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_2_2" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "inputDelay", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "latencyCompensate", + "returnType": "None", + "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_2_2" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_2_2", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the controller." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.LinearQuadraticRegulator_3_2", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[3, 3]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[3, 2]]" + }, + { + "defaultValue": null, + "name": "Qelems", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "Relems", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_3_2", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning\nfor how to select the tolerances.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Qelems: The maximum desired error tolerance for each state.\n:param Relems: The maximum desired control effort for each input.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[3, 3]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[3, 2]]" + }, + { + "defaultValue": null, + "name": "Q", + "type": "numpy.ndarray[numpy.float64[3, 3]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_3_2", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "A", + "type": "numpy.ndarray[numpy.float64[3, 3]]" + }, + { + "defaultValue": null, + "name": "B", + "type": "numpy.ndarray[numpy.float64[3, 2]]" + }, + { + "defaultValue": null, + "name": "Q", + "type": "numpy.ndarray[numpy.float64[3, 3]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + }, + { + "defaultValue": null, + "name": "N", + "type": "numpy.ndarray[numpy.float64[3, 2]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_3_2", + "tooltip": "Constructs a controller with the given coefficients and plant.\n\n:param A: Continuous system matrix of the plant being controlled.\n:param B: Continuous input matrix of the plant being controlled.\n:param Q: The state cost matrix.\n:param R: The input cost matrix.\n:param N: The state-input cross-term cost matrix.\n:param dt: Discretization timestep.\n @throws std::invalid_argument If the system is unstabilizable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "arg0", + "type": "wpimath.system.LinearSystem_3_2_1" + }, + { + "defaultValue": null, + "name": "arg1", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "arg2", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "arg3", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_3_2", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "arg0", + "type": "wpimath.system.LinearSystem_3_2_2" + }, + { + "defaultValue": null, + "name": "arg1", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "arg2", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "arg3", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_3_2", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "arg0", + "type": "wpimath.system.LinearSystem_3_2_3" + }, + { + "defaultValue": null, + "name": "arg1", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "arg2", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "arg3", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "__init__", + "returnType": "wpimath.controller.LinearQuadraticRegulator_3_2", + "tooltip": "" + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_3_2" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "K", + "returnType": "numpy.ndarray[numpy.float64[2, 3]]", + "tooltip": "Returns the controller matrix K." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_3_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "j", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "K", + "returnType": "float", + "tooltip": "Returns an element of the controller matrix K.\n\n:param i: Row of K.\n:param j: Column of K." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_3_2" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "R", + "returnType": "numpy.ndarray[numpy.float64[3, 1]]", + "tooltip": "Returns the reference vector r.\n\n:returns: The reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_3_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "R", + "returnType": "float", + "tooltip": "Returns an element of the reference vector r.\n\n:param i: Row of r.\n\n:returns: The row of the reference vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_3_2" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "U", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the control input vector u.\n\n:returns: The control input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_3_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "U", + "returnType": "float", + "tooltip": "Returns an element of the control input vector u.\n\n:param i: Row of u.\n\n:returns: The row of the control input vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_3_2" + }, + { + "defaultValue": null, + "name": "x", + "type": "numpy.ndarray[numpy.float64[3, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_3_2" + }, + { + "defaultValue": null, + "name": "x", + "type": "numpy.ndarray[numpy.float64[3, 1]]" + }, + { + "defaultValue": null, + "name": "nextR", + "type": "numpy.ndarray[numpy.float64[3, 1]]" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "calculate", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the next output of the controller.\n\n:param x: The current state x.\n:param nextR: The next reference vector r." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_3_2" + }, + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_3_2_1" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "inputDelay", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "latencyCompensate", + "returnType": "None", + "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_3_2" + }, + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_3_2_2" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "inputDelay", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "latencyCompensate", + "returnType": "None", + "tooltip": "Adjusts LQR controller gain to compensate for a pure time delay in the\ninput.\n\nLinear-Quadratic regulator controller gains tend to be aggressive. If\nsensor measurements are time-delayed too long, the LQR may be unstable.\nHowever, if we know the amount of delay, we can compute the control based\non where the system will be after the time delay.\n\nSee https://file.tavsys.net/control/controls-engineering-in-frc.pdf\nappendix C.4 for a derivation.\n\n:param plant: The plant being controlled.\n:param dt: Discretization timestep.\n:param inputDelay: Input time delay." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.LinearQuadraticRegulator_3_2" + } + ], + "declaringClassName": "wpimath.controller.LinearQuadraticRegulator_3_2", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the controller." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.PIDController", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "Kp", + "type": "float" + }, + { + "defaultValue": null, + "name": "Ki", + "type": "float" + }, + { + "defaultValue": null, + "name": "Kd", + "type": "float" + }, + { + "defaultValue": "0.02", + "name": "period", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "__init__", + "returnType": "wpimath.controller.PIDController", + "tooltip": "Allocates a PIDController with the given constants for Kp, Ki, and Kd.\n\n:param Kp: The proportional coefficient. Must be >= 0.\n:param Ki: The integral coefficient. Must be >= 0.\n:param Kd: The derivative coefficient. Must be >= 0.\n:param period: The period between controller updates in seconds. The\n default is 20 milliseconds. Must be positive." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "atSetpoint", + "returnType": "bool", + "tooltip": "Returns true if the error is within the tolerance of the setpoint.\nThe error tolerance defauls to 0.05, and the error derivative tolerance\ndefaults to \u221e.\n\nThis will return false until at least one input value has been computed." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + }, + { + "defaultValue": null, + "name": "measurement", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "calculate", + "returnType": "float", + "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + }, + { + "defaultValue": null, + "name": "measurement", + "type": "float" + }, + { + "defaultValue": null, + "name": "setpoint", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "calculate", + "returnType": "float", + "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.\n:param setpoint: The new setpoint of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "disableContinuousInput", + "returnType": "None", + "tooltip": "Disables continuous input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + }, + { + "defaultValue": null, + "name": "minimumInput", + "type": "float" + }, + { + "defaultValue": null, + "name": "maximumInput", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "enableContinuousInput", + "returnType": "None", + "tooltip": "Enables continuous input.\n\nRather then using the max and min input range as constraints, it considers\nthem to be the same point and automatically calculates the shortest route\nto the setpoint.\n\n:param minimumInput: The minimum value expected from the input.\n:param maximumInput: The maximum value expected from the input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getAccumulatedError", + "returnType": "float", + "tooltip": "Gets the accumulated error used in the integral calculation of this\ncontroller.\n\n:returns: The accumulated error of this controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getD", + "returnType": "float", + "tooltip": "Gets the differential coefficient.\n\n:returns: differential coefficient" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getError", + "returnType": "float", + "tooltip": "Returns the difference between the setpoint and the measurement." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getErrorDerivative", + "returnType": "float", + "tooltip": "Returns the error derivative." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getErrorDerivativeTolerance", + "returnType": "float", + "tooltip": "Gets the error derivative tolerance of this controller. Defaults to \u221e.\n\n:returns: The error derivative tolerance of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getErrorTolerance", + "returnType": "float", + "tooltip": "Gets the error tolerance of this controller. Defaults to 0.05.\n\n:returns: The error tolerance of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getI", + "returnType": "float", + "tooltip": "Gets the integral coefficient.\n\n:returns: integral coefficient" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getIZone", + "returnType": "float", + "tooltip": "Get the IZone range.\n\n:returns: Maximum magnitude of error to allow integral control." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getP", + "returnType": "float", + "tooltip": "Gets the proportional coefficient.\n\n:returns: proportional coefficient" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getPeriod", + "returnType": "wpimath.units.seconds", + "tooltip": "Gets the period of this controller.\n\n:returns: The period of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getPositionError", + "returnType": "float", + "tooltip": "Returns the difference between the setpoint and the measurement.\n\n:deprecated: Use GetError() instead." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getPositionTolerance", + "returnType": "float", + "tooltip": "Gets the position tolerance of this controller.\n\n:deprecated: Use GetErrorTolerance() instead.\n\n:returns: The position tolerance of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getSetpoint", + "returnType": "float", + "tooltip": "Returns the current setpoint of the PIDController.\n\n:returns: The current setpoint." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getVelocityError", + "returnType": "float", + "tooltip": "Returns the velocity error.\n\n:deprecated: Use GetErrorDerivative() instead." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "getVelocityTolerance", + "returnType": "float", + "tooltip": "Gets the velocity tolerance of this controller.\n\n:deprecated: Use GetErrorDerivativeTolerance() instead.\n\n:returns: The velocity tolerance of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + }, + { + "defaultValue": null, + "name": "builder", + "type": "wpiutil.SendableBuilder" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "initSendable", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "isContinuousInputEnabled", + "returnType": "bool", + "tooltip": "Returns true if continuous input is enabled." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "reset", + "returnType": "None", + "tooltip": "Reset the previous error, the integral term, and disable the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + }, + { + "defaultValue": null, + "name": "Kd", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "setD", + "returnType": "None", + "tooltip": "Sets the differential coefficient of the PID controller gain.\n\n:param Kd: The differential coefficient. Must be >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + }, + { + "defaultValue": null, + "name": "Ki", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "setI", + "returnType": "None", + "tooltip": "Sets the integral coefficient of the PID controller gain.\n\n:param Ki: The integral coefficient. Must be >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + }, + { + "defaultValue": null, + "name": "iZone", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "setIZone", + "returnType": "None", + "tooltip": "Sets the IZone range. When the absolute value of the position error is\ngreater than IZone, the total accumulated error will reset to zero,\ndisabling integral gain until the absolute value of the position error is\nless than IZone. This is used to prevent integral windup. Must be\nnon-negative. Passing a value of zero will effectively disable integral\ngain. Passing a value of infinity disables IZone functionality.\n\n:param iZone: Maximum magnitude of error to allow integral control. Must be\n >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + }, + { + "defaultValue": null, + "name": "minimumIntegral", + "type": "float" + }, + { + "defaultValue": null, + "name": "maximumIntegral", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "setIntegratorRange", + "returnType": "None", + "tooltip": "Sets the minimum and maximum contributions of the integral term.\n\nThe internal integrator is clamped so that the integral term's contribution\nto the output stays between minimumIntegral and maximumIntegral. This\nprevents integral windup.\n\n:param minimumIntegral: The minimum contribution of the integral term.\n:param maximumIntegral: The maximum contribution of the integral term." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + }, + { + "defaultValue": null, + "name": "Kp", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "setP", + "returnType": "None", + "tooltip": "Sets the proportional coefficient of the PID controller gain.\n\n:param Kp: The proportional coefficient. Must be >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + }, + { + "defaultValue": null, + "name": "Kp", + "type": "float" + }, + { + "defaultValue": null, + "name": "Ki", + "type": "float" + }, + { + "defaultValue": null, + "name": "Kd", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "setPID", + "returnType": "None", + "tooltip": "Sets the PID Controller gain parameters.\n\nSets the proportional, integral, and differential coefficients.\n\n:param Kp: The proportional coefficient. Must be >= 0.\n:param Ki: The integral coefficient. Must be >= 0.\n:param Kd: The differential coefficient. Must be >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + }, + { + "defaultValue": null, + "name": "setpoint", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "setSetpoint", + "returnType": "None", + "tooltip": "Sets the setpoint for the PIDController.\n\n:param setpoint: The desired setpoint." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.PIDController" + }, + { + "defaultValue": null, + "name": "errorTolerance", + "type": "float" + }, + { + "defaultValue": "inf", + "name": "errorDerivativeTolerance", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.PIDController", + "functionName": "setTolerance", + "returnType": "None", + "tooltip": "Sets the error which is considered tolerable for use with AtSetpoint().\n\n:param errorTolerance: error which is tolerable.\n:param errorDerivativeTolerance: error derivative which is tolerable." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.ProfiledPIDController", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "Kp", + "type": "float" + }, + { + "defaultValue": null, + "name": "Ki", + "type": "float" + }, + { + "defaultValue": null, + "name": "Kd", + "type": "float" + }, + { + "defaultValue": null, + "name": "constraints", + "type": "wpimath.trajectory.TrapezoidProfile.Constraints" + }, + { + "defaultValue": "0.02", + "name": "period", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "__init__", + "returnType": "wpimath.controller.ProfiledPIDController", + "tooltip": "Allocates a ProfiledPIDController with the given constants for Kp, Ki, and\nKd. Users should call reset() when they first start running the controller\nto avoid unwanted behavior.\n\n:param Kp: The proportional coefficient. Must be >= 0.\n:param Ki: The integral coefficient. Must be >= 0.\n:param Kd: The derivative coefficient. Must be >= 0.\n:param constraints: Velocity and acceleration constraints for goal.\n:param period: The period between controller updates in seconds. The\n default is 20 milliseconds. Must be positive." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "atGoal", + "returnType": "bool", + "tooltip": "Returns true if the error is within the tolerance of the error.\n\nThis will return false until at least one input value has been computed." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "atSetpoint", + "returnType": "bool", + "tooltip": "Returns true if the error is within the tolerance of the error.\n\nCurrently this just reports on target as the actual value passes through\nthe setpoint. Ideally it should be based on being within the tolerance for\nsome period of time.\n\nThis will return false until at least one input value has been computed." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "measurement", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "calculate", + "returnType": "float", + "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "measurement", + "type": "float" + }, + { + "defaultValue": null, + "name": "goal", + "type": "wpimath.trajectory.TrapezoidProfile.State" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "calculate", + "returnType": "float", + "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.\n:param goal: The new goal of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "measurement", + "type": "float" + }, + { + "defaultValue": null, + "name": "goal", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "calculate", + "returnType": "float", + "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.\n:param goal: The new goal of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "measurement", + "type": "float" + }, + { + "defaultValue": null, + "name": "goal", + "type": "float" + }, + { + "defaultValue": null, + "name": "constraints", + "type": "wpimath.trajectory.TrapezoidProfile.Constraints" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "calculate", + "returnType": "float", + "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.\n:param goal: The new goal of the controller.\n:param constraints: Velocity and acceleration constraints for goal." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "disableContinuousInput", + "returnType": "None", + "tooltip": "Disables continuous input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "minimumInput", + "type": "float" + }, + { + "defaultValue": null, + "name": "maximumInput", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "enableContinuousInput", + "returnType": "None", + "tooltip": "Enables continuous input.\n\nRather then using the max and min input range as constraints, it considers\nthem to be the same point and automatically calculates the shortest route\nto the setpoint.\n\n:param minimumInput: The minimum value expected from the input.\n:param maximumInput: The maximum value expected from the input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "getAccumulatedError", + "returnType": "float", + "tooltip": "Gets the accumulated error used in the integral calculation of this\ncontroller.\n\n:returns: The accumulated error of this controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "getConstraints", + "returnType": "wpimath.trajectory.TrapezoidProfile.Constraints", + "tooltip": "Get the velocity and acceleration constraints for this controller.\n\n:returns: Velocity and acceleration constraints." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "getD", + "returnType": "float", + "tooltip": "Gets the differential coefficient.\n\n:returns: differential coefficient" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "getGoal", + "returnType": "wpimath.trajectory.TrapezoidProfile.State", + "tooltip": "Gets the goal for the ProfiledPIDController." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "getI", + "returnType": "float", + "tooltip": "Gets the integral coefficient.\n\n:returns: integral coefficient" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "getIZone", + "returnType": "float", + "tooltip": "Get the IZone range.\n\n:returns: Maximum magnitude of error to allow integral control." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "getP", + "returnType": "float", + "tooltip": "Gets the proportional coefficient.\n\n:returns: proportional coefficient" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "getPeriod", + "returnType": "wpimath.units.seconds", + "tooltip": "Gets the period of this controller.\n\n:returns: The period of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "getPositionError", + "returnType": "float", + "tooltip": "Returns the difference between the setpoint and the measurement.\n\n:returns: The error." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "getPositionTolerance", + "returnType": "float", + "tooltip": "Gets the position tolerance of this controller.\n\n:returns: The position tolerance of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "getSetpoint", + "returnType": "wpimath.trajectory.TrapezoidProfile.State", + "tooltip": "Returns the current setpoint of the ProfiledPIDController.\n\n:returns: The current setpoint." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "getVelocityError", + "returnType": "wpimath.units.units_per_second", + "tooltip": "Returns the change in error per second." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "getVelocityTolerance", + "returnType": "float", + "tooltip": "Gets the velocity tolerance of this controller.\n\n:returns: The velocity tolerance of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "builder", + "type": "wpiutil.SendableBuilder" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "initSendable", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "measurement", + "type": "wpimath.trajectory.TrapezoidProfile.State" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "reset", + "returnType": "None", + "tooltip": "Reset the previous error and the integral term.\n\n:param measurement: The current measured State of the system." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "measuredPosition", + "type": "float" + }, + { + "defaultValue": null, + "name": "measuredVelocity", + "type": "wpimath.units.units_per_second" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "reset", + "returnType": "None", + "tooltip": "Reset the previous error and the integral term.\n\n:param measuredPosition: The current measured position of the system.\n:param measuredVelocity: The current measured velocity of the system." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "measuredPosition", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "reset", + "returnType": "None", + "tooltip": "Reset the previous error and the integral term.\n\n:param measuredPosition: The current measured position of the system. The\n velocity is assumed to be zero." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "constraints", + "type": "wpimath.trajectory.TrapezoidProfile.Constraints" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "setConstraints", + "returnType": "None", + "tooltip": "Set velocity and acceleration constraints for goal.\n\n:param constraints: Velocity and acceleration constraints for goal." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "Kd", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "setD", + "returnType": "None", + "tooltip": "Sets the differential coefficient of the PID controller gain.\n\n:param Kd: The differential coefficient. Must be >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "goal", + "type": "wpimath.trajectory.TrapezoidProfile.State" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "setGoal", + "returnType": "None", + "tooltip": "Sets the goal for the ProfiledPIDController.\n\n:param goal: The desired unprofiled setpoint." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "goal", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "setGoal", + "returnType": "None", + "tooltip": "Sets the goal for the ProfiledPIDController.\n\n:param goal: The desired unprofiled setpoint." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "Ki", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "setI", + "returnType": "None", + "tooltip": "Sets the integral coefficient of the PID controller gain.\n\n:param Ki: The integral coefficient. Must be >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "iZone", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "setIZone", + "returnType": "None", + "tooltip": "Sets the IZone range. When the absolute value of the position error is\ngreater than IZone, the total accumulated error will reset to zero,\ndisabling integral gain until the absolute value of the position error is\nless than IZone. This is used to prevent integral windup. Must be\nnon-negative. Passing a value of zero will effectively disable integral\ngain. Passing a value of infinity disables IZone functionality.\n\n:param iZone: Maximum magnitude of error to allow integral control. Must be\n >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "minimumIntegral", + "type": "float" + }, + { + "defaultValue": null, + "name": "maximumIntegral", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "setIntegratorRange", + "returnType": "None", + "tooltip": "Sets the minimum and maximum contributions of the integral term.\n\nThe internal integrator is clamped so that the integral term's contribution\nto the output stays between minimumIntegral and maximumIntegral. This\nprevents integral windup.\n\n:param minimumIntegral: The minimum contribution of the integral term.\n:param maximumIntegral: The maximum contribution of the integral term." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "Kp", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "setP", + "returnType": "None", + "tooltip": "Sets the proportional coefficient of the PID controller gain.\n\n:param Kp: The proportional coefficient. Must be >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "Kp", + "type": "float" + }, + { + "defaultValue": null, + "name": "Ki", + "type": "float" + }, + { + "defaultValue": null, + "name": "Kd", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "setPID", + "returnType": "None", + "tooltip": "Sets the PID Controller gain parameters.\n\nSets the proportional, integral, and differential coefficients.\n\n:param Kp: The proportional coefficient. Must be >= 0.\n:param Ki: The integral coefficient. Must be >= 0.\n:param Kd: The differential coefficient. Must be >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDController" + }, + { + "defaultValue": null, + "name": "positionTolerance", + "type": "float" + }, + { + "defaultValue": "inf", + "name": "velocityTolerance", + "type": "wpimath.units.units_per_second" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDController", + "functionName": "setTolerance", + "returnType": "None", + "tooltip": "Sets the error which is considered tolerable for use with\nAtSetpoint().\n\n:param positionTolerance: Position error which is tolerable.\n:param velocityTolerance: Velocity error which is tolerable." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.ProfiledPIDControllerRadians", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "Kp", + "type": "float" + }, + { + "defaultValue": null, + "name": "Ki", + "type": "float" + }, + { + "defaultValue": null, + "name": "Kd", + "type": "float" + }, + { + "defaultValue": null, + "name": "constraints", + "type": "wpimath.trajectory.TrapezoidProfileRadians.Constraints" + }, + { + "defaultValue": "0.02", + "name": "period", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "__init__", + "returnType": "wpimath.controller.ProfiledPIDControllerRadians", + "tooltip": "Allocates a ProfiledPIDController with the given constants for Kp, Ki, and\nKd. Users should call reset() when they first start running the controller\nto avoid unwanted behavior.\n\n:param Kp: The proportional coefficient. Must be >= 0.\n:param Ki: The integral coefficient. Must be >= 0.\n:param Kd: The derivative coefficient. Must be >= 0.\n:param constraints: Velocity and acceleration constraints for goal.\n:param period: The period between controller updates in seconds. The\n default is 20 milliseconds. Must be positive." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "atGoal", + "returnType": "bool", + "tooltip": "Returns true if the error is within the tolerance of the error.\n\nThis will return false until at least one input value has been computed." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "atSetpoint", + "returnType": "bool", + "tooltip": "Returns true if the error is within the tolerance of the error.\n\nCurrently this just reports on target as the actual value passes through\nthe setpoint. Ideally it should be based on being within the tolerance for\nsome period of time.\n\nThis will return false until at least one input value has been computed." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "measurement", + "type": "wpimath.units.radians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "calculate", + "returnType": "float", + "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "measurement", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "goal", + "type": "wpimath.trajectory.TrapezoidProfileRadians.State" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "calculate", + "returnType": "float", + "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.\n:param goal: The new goal of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "measurement", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "goal", + "type": "wpimath.units.radians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "calculate", + "returnType": "float", + "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.\n:param goal: The new goal of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "measurement", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "goal", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "constraints", + "type": "wpimath.trajectory.TrapezoidProfileRadians.Constraints" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "calculate", + "returnType": "float", + "tooltip": "Returns the next output of the PID controller.\n\n:param measurement: The current measurement of the process variable.\n:param goal: The new goal of the controller.\n:param constraints: Velocity and acceleration constraints for goal." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "disableContinuousInput", + "returnType": "None", + "tooltip": "Disables continuous input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "minimumInput", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "maximumInput", + "type": "wpimath.units.radians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "enableContinuousInput", + "returnType": "None", + "tooltip": "Enables continuous input.\n\nRather then using the max and min input range as constraints, it considers\nthem to be the same point and automatically calculates the shortest route\nto the setpoint.\n\n:param minimumInput: The minimum value expected from the input.\n:param maximumInput: The maximum value expected from the input." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "getAccumulatedError", + "returnType": "float", + "tooltip": "Gets the accumulated error used in the integral calculation of this\ncontroller.\n\n:returns: The accumulated error of this controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "getConstraints", + "returnType": "wpimath.trajectory.TrapezoidProfileRadians.Constraints", + "tooltip": "Get the velocity and acceleration constraints for this controller.\n\n:returns: Velocity and acceleration constraints." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "getD", + "returnType": "float", + "tooltip": "Gets the differential coefficient.\n\n:returns: differential coefficient" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "getGoal", + "returnType": "wpimath.trajectory.TrapezoidProfileRadians.State", + "tooltip": "Gets the goal for the ProfiledPIDController." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "getI", + "returnType": "float", + "tooltip": "Gets the integral coefficient.\n\n:returns: integral coefficient" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "getIZone", + "returnType": "float", + "tooltip": "Get the IZone range.\n\n:returns: Maximum magnitude of error to allow integral control." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "getP", + "returnType": "float", + "tooltip": "Gets the proportional coefficient.\n\n:returns: proportional coefficient" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "getPeriod", + "returnType": "wpimath.units.seconds", + "tooltip": "Gets the period of this controller.\n\n:returns: The period of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "getPositionError", + "returnType": "wpimath.units.radians", + "tooltip": "Returns the difference between the setpoint and the measurement.\n\n:returns: The error." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "getPositionTolerance", + "returnType": "float", + "tooltip": "Gets the position tolerance of this controller.\n\n:returns: The position tolerance of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "getSetpoint", + "returnType": "wpimath.trajectory.TrapezoidProfileRadians.State", + "tooltip": "Returns the current setpoint of the ProfiledPIDController.\n\n:returns: The current setpoint." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "getVelocityError", + "returnType": "wpimath.units.radians_per_second", + "tooltip": "Returns the change in error per second." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "getVelocityTolerance", + "returnType": "float", + "tooltip": "Gets the velocity tolerance of this controller.\n\n:returns: The velocity tolerance of the controller." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "builder", + "type": "wpiutil.SendableBuilder" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "initSendable", + "returnType": "None", + "tooltip": "" + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "measurement", + "type": "wpimath.trajectory.TrapezoidProfileRadians.State" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "reset", + "returnType": "None", + "tooltip": "Reset the previous error and the integral term.\n\n:param measurement: The current measured State of the system." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "measuredPosition", + "type": "wpimath.units.radians" + }, + { + "defaultValue": null, + "name": "measuredVelocity", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "reset", + "returnType": "None", + "tooltip": "Reset the previous error and the integral term.\n\n:param measuredPosition: The current measured position of the system.\n:param measuredVelocity: The current measured velocity of the system." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "measuredPosition", + "type": "wpimath.units.radians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "reset", + "returnType": "None", + "tooltip": "Reset the previous error and the integral term.\n\n:param measuredPosition: The current measured position of the system. The\n velocity is assumed to be zero." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "constraints", + "type": "wpimath.trajectory.TrapezoidProfileRadians.Constraints" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "setConstraints", + "returnType": "None", + "tooltip": "Set velocity and acceleration constraints for goal.\n\n:param constraints: Velocity and acceleration constraints for goal." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "Kd", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "setD", + "returnType": "None", + "tooltip": "Sets the differential coefficient of the PID controller gain.\n\n:param Kd: The differential coefficient. Must be >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "goal", + "type": "wpimath.trajectory.TrapezoidProfileRadians.State" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "setGoal", + "returnType": "None", + "tooltip": "Sets the goal for the ProfiledPIDController.\n\n:param goal: The desired unprofiled setpoint." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "goal", + "type": "wpimath.units.radians" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "setGoal", + "returnType": "None", + "tooltip": "Sets the goal for the ProfiledPIDController.\n\n:param goal: The desired unprofiled setpoint." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "Ki", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "setI", + "returnType": "None", + "tooltip": "Sets the integral coefficient of the PID controller gain.\n\n:param Ki: The integral coefficient. Must be >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "iZone", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "setIZone", + "returnType": "None", + "tooltip": "Sets the IZone range. When the absolute value of the position error is\ngreater than IZone, the total accumulated error will reset to zero,\ndisabling integral gain until the absolute value of the position error is\nless than IZone. This is used to prevent integral windup. Must be\nnon-negative. Passing a value of zero will effectively disable integral\ngain. Passing a value of infinity disables IZone functionality.\n\n:param iZone: Maximum magnitude of error to allow integral control. Must be\n >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "minimumIntegral", + "type": "float" + }, + { + "defaultValue": null, + "name": "maximumIntegral", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "setIntegratorRange", + "returnType": "None", + "tooltip": "Sets the minimum and maximum contributions of the integral term.\n\nThe internal integrator is clamped so that the integral term's contribution\nto the output stays between minimumIntegral and maximumIntegral. This\nprevents integral windup.\n\n:param minimumIntegral: The minimum contribution of the integral term.\n:param maximumIntegral: The maximum contribution of the integral term." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "Kp", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "setP", + "returnType": "None", + "tooltip": "Sets the proportional coefficient of the PID controller gain.\n\n:param Kp: The proportional coefficient. Must be >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "Kp", + "type": "float" + }, + { + "defaultValue": null, + "name": "Ki", + "type": "float" + }, + { + "defaultValue": null, + "name": "Kd", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "setPID", + "returnType": "None", + "tooltip": "Sets the PID Controller gain parameters.\n\nSets the proportional, integral, and differential coefficients.\n\n:param Kp: The proportional coefficient. Must be >= 0.\n:param Ki: The integral coefficient. Must be >= 0.\n:param Kd: The differential coefficient. Must be >= 0." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.ProfiledPIDControllerRadians" + }, + { + "defaultValue": null, + "name": "positionTolerance", + "type": "wpimath.units.radians" + }, + { + "defaultValue": "inf", + "name": "velocityTolerance", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpimath.controller.ProfiledPIDControllerRadians", + "functionName": "setTolerance", + "returnType": "None", + "tooltip": "Sets the error which is considered tolerable for use with\nAtSetpoint().\n\n:param positionTolerance: Position error which is tolerable.\n:param velocityTolerance: Velocity error which is tolerable." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.RamseteController", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "b", + "type": "float" + }, + { + "defaultValue": null, + "name": "zeta", + "type": "float" + } + ], + "declaringClassName": "wpimath.controller.RamseteController", + "functionName": "__init__", + "returnType": "wpimath.controller.RamseteController", + "tooltip": "Construct a Ramsete unicycle controller.\n\n:deprecated: Use LTVUnicycleController instead.\n\n:param b: Tuning parameter (b > 0 rad\u00b2/m\u00b2) for which larger values make\n convergence more aggressive like a proportional term.\n:param zeta: Tuning parameter (0 rad\u207b\u00b9 < zeta < 1 rad\u207b\u00b9) for which larger\n values provide more damping in response." + }, + { + "args": [], + "declaringClassName": "wpimath.controller.RamseteController", + "functionName": "__init__", + "returnType": "wpimath.controller.RamseteController", + "tooltip": "Construct a Ramsete unicycle controller. The default arguments for\nb and zeta of 2.0 rad\u00b2/m\u00b2 and 0.7 rad\u207b\u00b9 have been well-tested to produce\ndesirable results.\n\n:deprecated: Use LTVUnicycleController instead." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.RamseteController" + } + ], + "declaringClassName": "wpimath.controller.RamseteController", + "functionName": "atReference", + "returnType": "bool", + "tooltip": "Returns true if the pose error is within tolerance of the reference." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.RamseteController" + }, + { + "defaultValue": null, + "name": "currentPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "poseRef", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "linearVelocityRef", + "type": "wpimath.units.meters_per_second" + }, + { + "defaultValue": null, + "name": "angularVelocityRef", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpimath.controller.RamseteController", + "functionName": "calculate", + "returnType": "wpimath.kinematics.ChassisSpeeds", + "tooltip": "Returns the next output of the Ramsete controller.\n\nThe reference pose, linear velocity, and angular velocity should come from\na drivetrain trajectory.\n\n:param currentPose: The current pose.\n:param poseRef: The desired pose.\n:param linearVelocityRef: The desired linear velocity.\n:param angularVelocityRef: The desired angular velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.RamseteController" + }, + { + "defaultValue": null, + "name": "currentPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "desiredState", + "type": "wpimath.trajectory.Trajectory.State" + } + ], + "declaringClassName": "wpimath.controller.RamseteController", + "functionName": "calculate", + "returnType": "wpimath.kinematics.ChassisSpeeds", + "tooltip": "Returns the next output of the Ramsete controller.\n\nThe reference pose, linear velocity, and angular velocity should come from\na drivetrain trajectory.\n\n:param currentPose: The current pose.\n:param desiredState: The desired pose, linear velocity, and angular velocity\n from a trajectory." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.RamseteController" + }, + { + "defaultValue": null, + "name": "enabled", + "type": "bool" + } + ], + "declaringClassName": "wpimath.controller.RamseteController", + "functionName": "setEnabled", + "returnType": "None", + "tooltip": "Enables and disables the controller for troubleshooting purposes.\n\n:param enabled: If the controller is enabled or not." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.RamseteController" + }, + { + "defaultValue": null, + "name": "poseTolerance", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.controller.RamseteController", + "functionName": "setTolerance", + "returnType": "None", + "tooltip": "Sets the pose error which is considered tolerable for use with\nAtReference().\n\n:param poseTolerance: Pose error which is tolerable." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.SimpleMotorFeedforwardMeters", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kS", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "kV", + "type": "wpimath.units.volt_seconds_per_meter" + }, + { + "defaultValue": "0.0", + "name": "kA", + "type": "wpimath.units.volt_seconds_squared_per_meter" + }, + { + "defaultValue": "0.02", + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardMeters", + "functionName": "__init__", + "returnType": "wpimath.controller.SimpleMotorFeedforwardMeters", + "tooltip": "Creates a new SimpleMotorFeedforward with the specified gains.\n\n:param kS: The static gain, in volts.\n:param kV: The velocity gain, in volt seconds per distance.\n:param kA: The acceleration gain, in volt seconds\u00b2 per distance.\n:param dt: The period in seconds.\n @throws IllegalArgumentException for kv < zero.\n @throws IllegalArgumentException for ka < zero.\n @throws IllegalArgumentException for period ≤ zero." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardMeters" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.meters_per_second" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardMeters", + "functionName": "calculate", + "returnType": "wpimath.units.volts", + "tooltip": "Calculates the feedforward from the gains and velocity setpoint assuming\ndiscrete control. Use this method when the velocity setpoint does not\nchange.\n\n:param velocity: The velocity setpoint.\n\n:returns: The computed feedforward, in volts." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardMeters" + }, + { + "defaultValue": null, + "name": "currentVelocity", + "type": "wpimath.units.meters_per_second" + }, + { + "defaultValue": null, + "name": "nextVelocity", + "type": "wpimath.units.meters_per_second" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardMeters", + "functionName": "calculate", + "returnType": "wpimath.units.volts", + "tooltip": "Calculates the feedforward from the gains and setpoints assuming discrete\ncontrol.\n\nNote this method is inaccurate when the velocity crosses 0.\n\n:param currentVelocity: The current velocity setpoint.\n:param nextVelocity: The next velocity setpoint.\n\n:returns: The computed feedforward, in volts." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardMeters" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardMeters", + "functionName": "getDt", + "returnType": "wpimath.units.seconds", + "tooltip": "Returns the period.\n\n:returns: The period." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardMeters" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardMeters", + "functionName": "getKa", + "returnType": "wpimath.units.volt_seconds_squared_per_meter", + "tooltip": "Returns the acceleration gain.\n\n:returns: The acceleration gain." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardMeters" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardMeters", + "functionName": "getKs", + "returnType": "wpimath.units.volts", + "tooltip": "Returns the static gain.\n\n:returns: The static gain." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardMeters" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardMeters", + "functionName": "getKv", + "returnType": "wpimath.units.volt_seconds_per_meter", + "tooltip": "Returns the velocity gain.\n\n:returns: The velocity gain." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardMeters" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.meters_per_second" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardMeters", + "functionName": "maxAchievableAcceleration", + "returnType": "wpimath.units.meters_per_second_squared", + "tooltip": "Calculates the maximum achievable acceleration given a maximum voltage\nsupply and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param velocity: The velocity of the motor.\n\n:returns: The maximum possible acceleration at the given velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardMeters" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "acceleration", + "type": "wpimath.units.meters_per_second_squared" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardMeters", + "functionName": "maxAchievableVelocity", + "returnType": "wpimath.units.meters_per_second", + "tooltip": "Calculates the maximum achievable velocity given a maximum voltage supply\nand an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param acceleration: The acceleration of the motor.\n\n:returns: The maximum possible velocity at the given acceleration." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardMeters" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.meters_per_second" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardMeters", + "functionName": "minAchievableAcceleration", + "returnType": "wpimath.units.meters_per_second_squared", + "tooltip": "Calculates the minimum achievable acceleration given a maximum voltage\nsupply and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param velocity: The velocity of the motor.\n\n:returns: The minimum possible acceleration at the given velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardMeters" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "acceleration", + "type": "wpimath.units.meters_per_second_squared" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardMeters", + "functionName": "minAchievableVelocity", + "returnType": "wpimath.units.meters_per_second", + "tooltip": "Calculates the minimum achievable velocity given a maximum voltage supply\nand an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param acceleration: The acceleration of the motor.\n\n:returns: The minimum possible velocity at the given acceleration." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.controller.SimpleMotorFeedforwardRadians", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kS", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "kV", + "type": "wpimath.units.volt_seconds_per_radian" + }, + { + "defaultValue": "0.0", + "name": "kA", + "type": "wpimath.units.volt_seconds_squared_per_radian" + }, + { + "defaultValue": "0.02", + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardRadians", + "functionName": "__init__", + "returnType": "wpimath.controller.SimpleMotorFeedforwardRadians", + "tooltip": "Creates a new SimpleMotorFeedforward with the specified gains.\n\n:param kS: The static gain, in volts.\n:param kV: The velocity gain, in volt seconds per distance.\n:param kA: The acceleration gain, in volt seconds\u00b2 per distance.\n:param dt: The period in seconds.\n @throws IllegalArgumentException for kv < zero.\n @throws IllegalArgumentException for ka < zero.\n @throws IllegalArgumentException for period ≤ zero." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardRadians" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardRadians", + "functionName": "calculate", + "returnType": "wpimath.units.volts", + "tooltip": "Calculates the feedforward from the gains and velocity setpoint assuming\ndiscrete control. Use this method when the velocity setpoint does not\nchange.\n\n:param velocity: The velocity setpoint.\n\n:returns: The computed feedforward, in volts." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardRadians" + }, + { + "defaultValue": null, + "name": "currentVelocity", + "type": "wpimath.units.radians_per_second" + }, + { + "defaultValue": null, + "name": "nextVelocity", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardRadians", + "functionName": "calculate", + "returnType": "wpimath.units.volts", + "tooltip": "Calculates the feedforward from the gains and setpoints assuming discrete\ncontrol.\n\nNote this method is inaccurate when the velocity crosses 0.\n\n:param currentVelocity: The current velocity setpoint.\n:param nextVelocity: The next velocity setpoint.\n\n:returns: The computed feedforward, in volts." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardRadians" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardRadians", + "functionName": "getDt", + "returnType": "wpimath.units.seconds", + "tooltip": "Returns the period.\n\n:returns: The period." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardRadians" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardRadians", + "functionName": "getKa", + "returnType": "wpimath.units.volt_seconds_squared_per_radian", + "tooltip": "Returns the acceleration gain.\n\n:returns: The acceleration gain." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardRadians" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardRadians", + "functionName": "getKs", + "returnType": "wpimath.units.volts", + "tooltip": "Returns the static gain.\n\n:returns: The static gain." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardRadians" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardRadians", + "functionName": "getKv", + "returnType": "wpimath.units.volt_seconds_per_radian", + "tooltip": "Returns the velocity gain.\n\n:returns: The velocity gain." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardRadians" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardRadians", + "functionName": "maxAchievableAcceleration", + "returnType": "wpimath.units.radians_per_second_squared", + "tooltip": "Calculates the maximum achievable acceleration given a maximum voltage\nsupply and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param velocity: The velocity of the motor.\n\n:returns: The maximum possible acceleration at the given velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardRadians" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "acceleration", + "type": "wpimath.units.radians_per_second_squared" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardRadians", + "functionName": "maxAchievableVelocity", + "returnType": "wpimath.units.radians_per_second", + "tooltip": "Calculates the maximum achievable velocity given a maximum voltage supply\nand an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param acceleration: The acceleration of the motor.\n\n:returns: The maximum possible velocity at the given acceleration." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardRadians" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "velocity", + "type": "wpimath.units.radians_per_second" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardRadians", + "functionName": "minAchievableAcceleration", + "returnType": "wpimath.units.radians_per_second_squared", + "tooltip": "Calculates the minimum achievable acceleration given a maximum voltage\nsupply and a velocity. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the velocity constraint, and this will give you\na simultaneously-achievable acceleration constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param velocity: The velocity of the motor.\n\n:returns: The minimum possible acceleration at the given velocity." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.controller.SimpleMotorFeedforwardRadians" + }, + { + "defaultValue": null, + "name": "maxVoltage", + "type": "wpimath.units.volts" + }, + { + "defaultValue": null, + "name": "acceleration", + "type": "wpimath.units.radians_per_second_squared" + } + ], + "declaringClassName": "wpimath.controller.SimpleMotorFeedforwardRadians", + "functionName": "minAchievableVelocity", + "returnType": "wpimath.units.radians_per_second", + "tooltip": "Calculates the minimum achievable velocity given a maximum voltage supply\nand an acceleration. Useful for ensuring that velocity and\nacceleration constraints for a trapezoidal profile are simultaneously\nachievable - enter the acceleration constraint, and this will give you\na simultaneously-achievable velocity constraint.\n\n:param maxVoltage: The maximum voltage that can be supplied to the motor.\n:param acceleration: The acceleration of the motor.\n\n:returns: The minimum possible velocity at the given acceleration." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.controller", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.DifferentialDrivePoseEstimator", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.DifferentialDriveKinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "leftDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "rightDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator", + "functionName": "__init__", + "returnType": "wpimath.estimator.DifferentialDrivePoseEstimator", + "tooltip": "Constructs a DifferentialDrivePoseEstimator with default standard\ndeviations for the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.02 meters for x, 0.02 meters for y, and 0.01 radians for heading.\nThe default standard deviations of the vision measurements are\n0.1 meters for x, 0.1 meters for y, and 0.1 radians for heading.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The gyro angle of the robot.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n:param initialPose: The estimated initial pose." + }, + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.DifferentialDriveKinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "leftDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "rightDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator", + "functionName": "__init__", + "returnType": "wpimath.estimator.DifferentialDrivePoseEstimator", + "tooltip": "Constructs a DifferentialDrivePoseEstimator.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The gyro angle of the robot.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n:param initialPose: The estimated initial pose.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "leftDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "rightDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\n:param gyroAngle: The current gyro angle.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation2d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation2d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose2d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "leftDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "rightDistance", + "type": "wpimath.units.meters" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator", + "functionName": "update", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n\n:returns: The estimated pose of the robot." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "leftDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "rightDistance", + "type": "wpimath.units.meters" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n\n:returns: The estimated pose of the robot." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.DifferentialDrivePoseEstimator3d", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.DifferentialDriveKinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "leftDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "rightDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3d", + "functionName": "__init__", + "returnType": "wpimath.estimator.DifferentialDrivePoseEstimator3d", + "tooltip": "Constructs a DifferentialDrivePoseEstimator3d with default standard\ndeviations for the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.02 meters for x, 0.02 meters for y, 0.02 meters for z, and 0.01 radians\nfor angle. The default standard deviations of the vision measurements are\n0.1 meters for x, 0.1 meters for y, 0.1 meters for z, and 0.1 radians for\nangle.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The gyro angle of the robot.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n:param initialPose: The estimated initial pose." + }, + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.DifferentialDriveKinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "leftDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "rightDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3d", + "functionName": "__init__", + "returnType": "wpimath.estimator.DifferentialDrivePoseEstimator3d", + "tooltip": "Constructs a DifferentialDrivePoseEstimator3d.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The gyro angle of the robot.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n:param initialPose: The estimated initial pose.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, z position in meters, and angle in\n radians). Increase these numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, z position in\n meters, and angle in radians). Increase these numbers to trust the vision\n pose measurement less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3d" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "leftDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "rightDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3d", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\n:param gyroAngle: The current gyro angle.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation3d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation3d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose3d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3d" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "leftDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "rightDistance", + "type": "wpimath.units.meters" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3d", + "functionName": "update", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n\n:returns: The estimated pose of the robot." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3d" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "leftDistance", + "type": "wpimath.units.meters" + }, + { + "defaultValue": null, + "name": "rightDistance", + "type": "wpimath.units.meters" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3d", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param leftDistance: The distance traveled by the left encoder.\n:param rightDistance: The distance traveled by the right encoder.\n\n:returns: The estimated pose of the robot." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.DifferentialDriveKinematicsBase" + }, + { + "defaultValue": null, + "name": "odometry", + "type": "wpimath.kinematics.DifferentialDriveOdometry3dBase" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "__init__", + "returnType": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "tooltip": "Constructs a PoseEstimator3d.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and z position\n in meters, and angle in radians). Increase these numbers to trust the\n vision pose measurement less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.DifferentialDriveWheelPositions" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation3d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation3d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose3d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.DifferentialDriveWheelPositions" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.DifferentialDriveWheelPositions" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimator3dBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.DifferentialDriveKinematicsBase" + }, + { + "defaultValue": null, + "name": "odometry", + "type": "wpimath.kinematics.DifferentialDriveOdometryBase" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "__init__", + "returnType": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "tooltip": "Constructs a PoseEstimator.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.DifferentialDriveWheelPositions" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation2d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation2d" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose2d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.DifferentialDriveWheelPositions" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.DifferentialDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.DifferentialDriveWheelPositions" + } + ], + "declaringClassName": "wpimath.estimator.DifferentialDrivePoseEstimatorBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "f", + "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]" + }, + { + "defaultValue": null, + "name": "h", + "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "measurementStdDevs", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "functionName": "__init__", + "returnType": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "tooltip": "Constructs an extended Kalman filter.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param f: A vector-valued function of x and u that returns\n the derivative of the state vector.\n:param h: A vector-valued function of x and u that returns\n the measurement vector.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param dt: Nominal discretization timestep." + }, + { + "args": [ + { + "defaultValue": null, + "name": "f", + "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]" + }, + { + "defaultValue": null, + "name": "h", + "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "measurementStdDevs", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "residualFuncY", + "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]" + }, + { + "defaultValue": null, + "name": "addFuncX", + "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "functionName": "__init__", + "returnType": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "tooltip": "Constructs an extended Kalman filter.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param f: A vector-valued function of x and u that returns\n the derivative of the state vector.\n:param h: A vector-valued function of x and u that returns\n the measurement vector.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param residualFuncY: A function that computes the residual of two\n measurement vectors (i.e. it subtracts them.)\n:param addFuncX: A function that adds two state vectors.\n:param dt: Nominal discretization timestep." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "functionName": "P", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the error covariance matrix P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "j", + "type": "int" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "functionName": "P", + "returnType": "float", + "tooltip": "Returns an element of the error covariance matrix P.\n\n:param i: Row of P.\n:param j: Column of P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "y", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "functionName": "correct", + "returnType": "None", + "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "y", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "functionName": "correct", + "returnType": "None", + "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\nThis is useful for when the measurement noise covariances vary.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.\n:param R: Continuous measurement noise covariance matrix." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "functionName": "predict", + "returnType": "None", + "tooltip": "Project the model into the future with a new control input u.\n\n:param u: New control input from controller.\n:param dt: Timestep for prediction." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the observer." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "P", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "functionName": "setP", + "returnType": "None", + "tooltip": "Set the current error covariance matrix P.\n\n:param P: The error covariance matrix P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "xHat", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "functionName": "setXhat", + "returnType": "None", + "tooltip": "Set initial state estimate x-hat.\n\n:param xHat: The state estimate x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "functionName": "setXhat", + "returnType": "None", + "tooltip": "Set an element of the initial state estimate x-hat.\n\n:param i: Row of x-hat.\n:param value: Value for element of x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "functionName": "xhat", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the state estimate x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_1_1_1", + "functionName": "xhat", + "returnType": "float", + "tooltip": "Returns an element of the state estimate x-hat.\n\n:param i: Row of x-hat." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "f", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[2, 1]]]" + }, + { + "defaultValue": null, + "name": "h", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "measurementStdDevs", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "functionName": "__init__", + "returnType": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "tooltip": "Constructs an extended Kalman filter.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param f: A vector-valued function of x and u that returns\n the derivative of the state vector.\n:param h: A vector-valued function of x and u that returns\n the measurement vector.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param dt: Nominal discretization timestep." + }, + { + "args": [ + { + "defaultValue": null, + "name": "f", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[2, 1]]]" + }, + { + "defaultValue": null, + "name": "h", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "measurementStdDevs", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "residualFuncY", + "type": "Callable[[numpy.ndarray[numpy.float64[1, 1]], numpy.ndarray[numpy.float64[1, 1]]], numpy.ndarray[numpy.float64[1, 1]]]" + }, + { + "defaultValue": null, + "name": "addFuncX", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "functionName": "__init__", + "returnType": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "tooltip": "Constructs an extended Kalman filter.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param f: A vector-valued function of x and u that returns\n the derivative of the state vector.\n:param h: A vector-valued function of x and u that returns\n the measurement vector.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param residualFuncY: A function that computes the residual of two\n measurement vectors (i.e. it subtracts them.)\n:param addFuncX: A function that adds two state vectors.\n:param dt: Nominal discretization timestep." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "functionName": "P", + "returnType": "numpy.ndarray[numpy.float64[2, 2]]", + "tooltip": "Returns the error covariance matrix P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "j", + "type": "int" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "functionName": "P", + "returnType": "float", + "tooltip": "Returns an element of the error covariance matrix P.\n\n:param i: Row of P.\n:param j: Column of P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "y", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "functionName": "correct", + "returnType": "None", + "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "y", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "functionName": "correct", + "returnType": "None", + "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\nThis is useful for when the measurement noise covariances vary.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.\n:param R: Continuous measurement noise covariance matrix." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "functionName": "predict", + "returnType": "None", + "tooltip": "Project the model into the future with a new control input u.\n\n:param u: New control input from controller.\n:param dt: Timestep for prediction." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the observer." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "P", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "functionName": "setP", + "returnType": "None", + "tooltip": "Set the current error covariance matrix P.\n\n:param P: The error covariance matrix P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "xHat", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "functionName": "setXhat", + "returnType": "None", + "tooltip": "Set initial state estimate x-hat.\n\n:param xHat: The state estimate x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "functionName": "setXhat", + "returnType": "None", + "tooltip": "Set an element of the initial state estimate x-hat.\n\n:param i: Row of x-hat.\n:param value: Value for element of x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "functionName": "xhat", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the state estimate x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_1_1", + "functionName": "xhat", + "returnType": "float", + "tooltip": "Returns an element of the state estimate x-hat.\n\n:param i: Row of x-hat." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "f", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]" + }, + { + "defaultValue": null, + "name": "h", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "measurementStdDevs", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "functionName": "__init__", + "returnType": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "tooltip": "Constructs an extended Kalman filter.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param f: A vector-valued function of x and u that returns\n the derivative of the state vector.\n:param h: A vector-valued function of x and u that returns\n the measurement vector.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param dt: Nominal discretization timestep." + }, + { + "args": [ + { + "defaultValue": null, + "name": "f", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]" + }, + { + "defaultValue": null, + "name": "h", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "measurementStdDevs", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "residualFuncY", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]" + }, + { + "defaultValue": null, + "name": "addFuncX", + "type": "Callable[[numpy.ndarray[numpy.float64[2, 1]], numpy.ndarray[numpy.float64[2, 1]]], numpy.ndarray[numpy.float64[2, 1]]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "functionName": "__init__", + "returnType": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "tooltip": "Constructs an extended Kalman filter.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param f: A vector-valued function of x and u that returns\n the derivative of the state vector.\n:param h: A vector-valued function of x and u that returns\n the measurement vector.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param residualFuncY: A function that computes the residual of two\n measurement vectors (i.e. it subtracts them.)\n:param addFuncX: A function that adds two state vectors.\n:param dt: Nominal discretization timestep." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "functionName": "P", + "returnType": "numpy.ndarray[numpy.float64[2, 2]]", + "tooltip": "Returns the error covariance matrix P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "j", + "type": "int" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "functionName": "P", + "returnType": "float", + "tooltip": "Returns an element of the error covariance matrix P.\n\n:param i: Row of P.\n:param j: Column of P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "y", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "functionName": "correct", + "returnType": "None", + "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "y", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "functionName": "correct", + "returnType": "None", + "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\nThis is useful for when the measurement noise covariances vary.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.\n:param R: Continuous measurement noise covariance matrix." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "functionName": "predict", + "returnType": "None", + "tooltip": "Project the model into the future with a new control input u.\n\n:param u: New control input from controller.\n:param dt: Timestep for prediction." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the observer." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "P", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "functionName": "setP", + "returnType": "None", + "tooltip": "Set the current error covariance matrix P.\n\n:param P: The error covariance matrix P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "xHat", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "functionName": "setXhat", + "returnType": "None", + "tooltip": "Set initial state estimate x-hat.\n\n:param xHat: The state estimate x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "functionName": "setXhat", + "returnType": "None", + "tooltip": "Set an element of the initial state estimate x-hat.\n\n:param i: Row of x-hat.\n:param value: Value for element of x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "functionName": "xhat", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the state estimate x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.ExtendedKalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.estimator.ExtendedKalmanFilter_2_2_2", + "functionName": "xhat", + "returnType": "float", + "tooltip": "Returns an element of the state estimate x-hat.\n\n:param i: Row of x-hat." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.KalmanFilter_1_1_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_1_1_1" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "measurementStdDevs", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", + "functionName": "__init__", + "returnType": "wpimath.estimator.KalmanFilter_1_1_1", + "tooltip": "Constructs a Kalman filter with the given plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param plant: The plant used for the prediction step.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param dt: Nominal discretization timestep.\n @throws std::invalid_argument If the system is undetectable." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_1_1_1" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", + "functionName": "P", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the error covariance matrix P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "j", + "type": "int" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", + "functionName": "P", + "returnType": "float", + "tooltip": "Returns an element of the error covariance matrix P.\n\n:param i: Row of P.\n:param j: Column of P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "y", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", + "functionName": "correct", + "returnType": "None", + "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "y", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", + "functionName": "correct", + "returnType": "None", + "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\nThis is useful for when the measurement noise covariances vary.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.\n:param R: Continuous measurement noise covariance matrix." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", + "functionName": "predict", + "returnType": "None", + "tooltip": "Project the model into the future with a new control input u.\n\n:param u: New control input from controller.\n:param dt: Timestep for prediction." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_1_1_1" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the observer." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "P", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", + "functionName": "setP", + "returnType": "None", + "tooltip": "Set the current error covariance matrix P.\n\n:param P: The error covariance matrix P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "xHat", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", + "functionName": "setXhat", + "returnType": "None", + "tooltip": "Set initial state estimate x-hat.\n\n:param xHat: The state estimate x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", + "functionName": "setXhat", + "returnType": "None", + "tooltip": "Set an element of the initial state estimate x-hat.\n\n:param i: Row of x-hat.\n:param value: Value for element of x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_1_1_1" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", + "functionName": "xhat", + "returnType": "numpy.ndarray[numpy.float64[1, 1]]", + "tooltip": "Returns the state estimate x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_1_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_1_1_1", + "functionName": "xhat", + "returnType": "float", + "tooltip": "Returns an element of the state estimate x-hat.\n\n:param i: Row of x-hat." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.KalmanFilter_2_1_1", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_1_1" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "measurementStdDevs", + "type": "Tuple[float]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", + "functionName": "__init__", + "returnType": "wpimath.estimator.KalmanFilter_2_1_1", + "tooltip": "Constructs a Kalman filter with the given plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param plant: The plant used for the prediction step.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param dt: Nominal discretization timestep.\n @throws std::invalid_argument If the system is undetectable." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_1_1" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", + "functionName": "P", + "returnType": "numpy.ndarray[numpy.float64[2, 2]]", + "tooltip": "Returns the error covariance matrix P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "j", + "type": "int" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", + "functionName": "P", + "returnType": "float", + "tooltip": "Returns an element of the error covariance matrix P.\n\n:param i: Row of P.\n:param j: Column of P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "y", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", + "functionName": "correct", + "returnType": "None", + "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "y", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", + "functionName": "correct", + "returnType": "None", + "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\nThis is useful for when the measurement noise covariances vary.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.\n:param R: Continuous measurement noise covariance matrix." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[1, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", + "functionName": "predict", + "returnType": "None", + "tooltip": "Project the model into the future with a new control input u.\n\n:param u: New control input from controller.\n:param dt: Timestep for prediction." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_1_1" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the observer." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "P", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", + "functionName": "setP", + "returnType": "None", + "tooltip": "Set the current error covariance matrix P.\n\n:param P: The error covariance matrix P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "xHat", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", + "functionName": "setXhat", + "returnType": "None", + "tooltip": "Set initial state estimate x-hat.\n\n:param xHat: The state estimate x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", + "functionName": "setXhat", + "returnType": "None", + "tooltip": "Set an element of the initial state estimate x-hat.\n\n:param i: Row of x-hat.\n:param value: Value for element of x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_1_1" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", + "functionName": "xhat", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the state estimate x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_1_1" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_1_1", + "functionName": "xhat", + "returnType": "float", + "tooltip": "Returns an element of the state estimate x-hat.\n\n:param i: Row of x-hat." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.KalmanFilter_2_2_2", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_2_2_2" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "measurementStdDevs", + "type": "Tuple[float, float]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", + "functionName": "__init__", + "returnType": "wpimath.estimator.KalmanFilter_2_2_2", + "tooltip": "Constructs a Kalman filter with the given plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param plant: The plant used for the prediction step.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param dt: Nominal discretization timestep.\n @throws std::invalid_argument If the system is undetectable." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_2_2" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", + "functionName": "P", + "returnType": "numpy.ndarray[numpy.float64[2, 2]]", + "tooltip": "Returns the error covariance matrix P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "j", + "type": "int" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", + "functionName": "P", + "returnType": "float", + "tooltip": "Returns an element of the error covariance matrix P.\n\n:param i: Row of P.\n:param j: Column of P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "y", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", + "functionName": "correct", + "returnType": "None", + "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "y", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", + "functionName": "correct", + "returnType": "None", + "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\nThis is useful for when the measurement noise covariances vary.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.\n:param R: Continuous measurement noise covariance matrix." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", + "functionName": "predict", + "returnType": "None", + "tooltip": "Project the model into the future with a new control input u.\n\n:param u: New control input from controller.\n:param dt: Timestep for prediction." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_2_2" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the observer." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "P", + "type": "numpy.ndarray[numpy.float64[2, 2]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", + "functionName": "setP", + "returnType": "None", + "tooltip": "Set the current error covariance matrix P.\n\n:param P: The error covariance matrix P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "xHat", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", + "functionName": "setXhat", + "returnType": "None", + "tooltip": "Set initial state estimate x-hat.\n\n:param xHat: The state estimate x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", + "functionName": "setXhat", + "returnType": "None", + "tooltip": "Set an element of the initial state estimate x-hat.\n\n:param i: Row of x-hat.\n:param value: Value for element of x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_2_2" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", + "functionName": "xhat", + "returnType": "numpy.ndarray[numpy.float64[2, 1]]", + "tooltip": "Returns the state estimate x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_2_2_2" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_2_2_2", + "functionName": "xhat", + "returnType": "float", + "tooltip": "Returns an element of the state estimate x-hat.\n\n:param i: Row of x-hat." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.KalmanFilter_3_2_3", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "plant", + "type": "wpimath.system.LinearSystem_3_2_3" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "measurementStdDevs", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", + "functionName": "__init__", + "returnType": "wpimath.estimator.KalmanFilter_3_2_3", + "tooltip": "Constructs a Kalman filter with the given plant.\n\nSee\nhttps://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-observers.html#process-and-measurement-noise-covariance-matrices\nfor how to select the standard deviations.\n\n:param plant: The plant used for the prediction step.\n:param stateStdDevs: Standard deviations of model states.\n:param measurementStdDevs: Standard deviations of measurements.\n:param dt: Nominal discretization timestep.\n @throws std::invalid_argument If the system is undetectable." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_3_2_3" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", + "functionName": "P", + "returnType": "numpy.ndarray[numpy.float64[3, 3]]", + "tooltip": "Returns the error covariance matrix P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_3_2_3" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "j", + "type": "int" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", + "functionName": "P", + "returnType": "float", + "tooltip": "Returns an element of the error covariance matrix P.\n\n:param i: Row of P.\n:param j: Column of P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_3_2_3" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "y", + "type": "numpy.ndarray[numpy.float64[3, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", + "functionName": "correct", + "returnType": "None", + "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_3_2_3" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "y", + "type": "numpy.ndarray[numpy.float64[3, 1]]" + }, + { + "defaultValue": null, + "name": "R", + "type": "numpy.ndarray[numpy.float64[3, 3]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", + "functionName": "correct", + "returnType": "None", + "tooltip": "Correct the state estimate x-hat using the measurements in y.\n\nThis is useful for when the measurement noise covariances vary.\n\n:param u: Same control input used in the predict step.\n:param y: Measurement vector.\n:param R: Continuous measurement noise covariance matrix." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_3_2_3" + }, + { + "defaultValue": null, + "name": "u", + "type": "numpy.ndarray[numpy.float64[2, 1]]" + }, + { + "defaultValue": null, + "name": "dt", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", + "functionName": "predict", + "returnType": "None", + "tooltip": "Project the model into the future with a new control input u.\n\n:param u: New control input from controller.\n:param dt: Timestep for prediction." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_3_2_3" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", + "functionName": "reset", + "returnType": "None", + "tooltip": "Resets the observer." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_3_2_3" + }, + { + "defaultValue": null, + "name": "P", + "type": "numpy.ndarray[numpy.float64[3, 3]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", + "functionName": "setP", + "returnType": "None", + "tooltip": "Set the current error covariance matrix P.\n\n:param P: The error covariance matrix P." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_3_2_3" + }, + { + "defaultValue": null, + "name": "xHat", + "type": "numpy.ndarray[numpy.float64[3, 1]]" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", + "functionName": "setXhat", + "returnType": "None", + "tooltip": "Set initial state estimate x-hat.\n\n:param xHat: The state estimate x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_3_2_3" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + }, + { + "defaultValue": null, + "name": "value", + "type": "float" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", + "functionName": "setXhat", + "returnType": "None", + "tooltip": "Set an element of the initial state estimate x-hat.\n\n:param i: Row of x-hat.\n:param value: Value for element of x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_3_2_3" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", + "functionName": "xhat", + "returnType": "numpy.ndarray[numpy.float64[3, 1]]", + "tooltip": "Returns the state estimate x-hat." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.KalmanFilter_3_2_3" + }, + { + "defaultValue": null, + "name": "i", + "type": "int" + } + ], + "declaringClassName": "wpimath.estimator.KalmanFilter_3_2_3", + "functionName": "xhat", + "returnType": "float", + "tooltip": "Returns an element of the state estimate x-hat.\n\n:param i: Row of x-hat." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.MecanumDrivePoseEstimator", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.MecanumDriveKinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator", + "functionName": "__init__", + "returnType": "wpimath.estimator.MecanumDrivePoseEstimator", + "tooltip": "Constructs a MecanumDrivePoseEstimator with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, and 0.1 radians for heading.\nThe default standard deviations of the vision measurements are\n0.45 meters for x, 0.45 meters for y, and 0.45 radians for heading.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distance measured by each wheel.\n:param initialPose: The starting pose estimate." + }, + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.MecanumDriveKinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator", + "functionName": "__init__", + "returnType": "wpimath.estimator.MecanumDrivePoseEstimator", + "tooltip": "Constructs a MecanumDrivePoseEstimator.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distance measured by each wheel.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation2d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation2d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose2d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.MecanumDrivePoseEstimator3d", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.MecanumDriveKinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3d", + "functionName": "__init__", + "returnType": "wpimath.estimator.MecanumDrivePoseEstimator3d", + "tooltip": "Constructs a MecanumDrivePoseEstimator3d with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, 0.1 meters for z, and 0.1 radians for\nangle. The default standard deviations of the vision measurements are 0.45\nmeters for x, 0.45 meters for y, 0.45 meters for z, and 0.45 radians for\nangle.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distance measured by each wheel.\n:param initialPose: The starting pose estimate." + }, + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.MecanumDriveKinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3d", + "functionName": "__init__", + "returnType": "wpimath.estimator.MecanumDrivePoseEstimator3d", + "tooltip": "Constructs a MecanumDrivePoseEstimator3d.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distance measured by each wheel.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, z position in meters, and angle in\n radians). Increase these numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, z position in\n meters, and angle in radians). Increase these numbers to trust the vision\n pose measurement less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation3d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation3d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose3d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.MecanumDriveKinematicsBase" + }, + { + "defaultValue": null, + "name": "odometry", + "type": "wpimath.kinematics.MecanumDriveOdometry3dBase" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "__init__", + "returnType": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "tooltip": "Constructs a PoseEstimator3d.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and z position\n in meters, and angle in radians). Increase these numbers to trust the\n vision pose measurement less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation3d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation3d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose3d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimator3dBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.MecanumDriveKinematicsBase" + }, + { + "defaultValue": null, + "name": "odometry", + "type": "wpimath.kinematics.MecanumDriveOdometryBase" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "__init__", + "returnType": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "tooltip": "Constructs a PoseEstimator.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation2d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation2d" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose2d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.MecanumDrivePoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "wpimath.kinematics.MecanumDriveWheelPositions" + } + ], + "declaringClassName": "wpimath.estimator.MecanumDrivePoseEstimatorBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive2PoseEstimator", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive2Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive2PoseEstimator", + "tooltip": "Constructs a SwerveDrivePoseEstimator with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, and 0.1 radians for heading.\nThe default standard deviations of the vision measurements are\n0.9 meters for x, 0.9 meters for y, and 0.9 radians for heading.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate." + }, + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive2Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive2PoseEstimator", + "tooltip": "Constructs a SwerveDrivePoseEstimator.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose2d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive2PoseEstimator3d", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive2Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3d", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive2PoseEstimator3d", + "tooltip": "Constructs a SwerveDrivePoseEstimator3d with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, 0.1 meters for z, and 0.1 radians for\nangle. The default standard deviations of the vision measurements are 0.9\nmeters for x, 0.9 meters for y, 0.9 meters for z, and 0.9 radians for\nangle.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate." + }, + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive2Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3d", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive2PoseEstimator3d", + "tooltip": "Constructs a SwerveDrivePoseEstimator3d.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose3d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive2KinematicsBase" + }, + { + "defaultValue": null, + "name": "odometry", + "type": "wpimath.kinematics.SwerveDrive2Odometry3dBase" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "tooltip": "Constructs a PoseEstimator3d.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and z position\n in meters, and angle in radians). Increase these numbers to trust the\n vision pose measurement less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose3d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimator3dBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive2KinematicsBase" + }, + { + "defaultValue": null, + "name": "odometry", + "type": "wpimath.kinematics.SwerveDrive2OdometryBase" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "tooltip": "Constructs a PoseEstimator.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose2d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive2PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive2PoseEstimatorBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive3PoseEstimator", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive3Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive3PoseEstimator", + "tooltip": "Constructs a SwerveDrivePoseEstimator with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, and 0.1 radians for heading.\nThe default standard deviations of the vision measurements are\n0.9 meters for x, 0.9 meters for y, and 0.9 radians for heading.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate." + }, + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive3Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive3PoseEstimator", + "tooltip": "Constructs a SwerveDrivePoseEstimator.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose2d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive3PoseEstimator3d", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive3Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3d", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive3PoseEstimator3d", + "tooltip": "Constructs a SwerveDrivePoseEstimator3d with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, 0.1 meters for z, and 0.1 radians for\nangle. The default standard deviations of the vision measurements are 0.9\nmeters for x, 0.9 meters for y, 0.9 meters for z, and 0.9 radians for\nangle.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate." + }, + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive3Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3d", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive3PoseEstimator3d", + "tooltip": "Constructs a SwerveDrivePoseEstimator3d.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose3d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive3KinematicsBase" + }, + { + "defaultValue": null, + "name": "odometry", + "type": "wpimath.kinematics.SwerveDrive3Odometry3dBase" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "tooltip": "Constructs a PoseEstimator3d.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and z position\n in meters, and angle in radians). Increase these numbers to trust the\n vision pose measurement less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose3d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimator3dBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive3KinematicsBase" + }, + { + "defaultValue": null, + "name": "odometry", + "type": "wpimath.kinematics.SwerveDrive3OdometryBase" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "tooltip": "Constructs a PoseEstimator.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose2d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive3PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive3PoseEstimatorBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive4PoseEstimator", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive4Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive4PoseEstimator", + "tooltip": "Constructs a SwerveDrivePoseEstimator with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, and 0.1 radians for heading.\nThe default standard deviations of the vision measurements are\n0.9 meters for x, 0.9 meters for y, and 0.9 radians for heading.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate." + }, + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive4Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive4PoseEstimator", + "tooltip": "Constructs a SwerveDrivePoseEstimator.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose2d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive4PoseEstimator3d", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive4Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3d", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive4PoseEstimator3d", + "tooltip": "Constructs a SwerveDrivePoseEstimator3d with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, 0.1 meters for z, and 0.1 radians for\nangle. The default standard deviations of the vision measurements are 0.9\nmeters for x, 0.9 meters for y, 0.9 meters for z, and 0.9 radians for\nangle.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate." + }, + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive4Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3d", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive4PoseEstimator3d", + "tooltip": "Constructs a SwerveDrivePoseEstimator3d.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose3d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive4KinematicsBase" + }, + { + "defaultValue": null, + "name": "odometry", + "type": "wpimath.kinematics.SwerveDrive4Odometry3dBase" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "tooltip": "Constructs a PoseEstimator3d.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and z position\n in meters, and angle in radians). Increase these numbers to trust the\n vision pose measurement less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose3d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimator3dBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive4KinematicsBase" + }, + { + "defaultValue": null, + "name": "odometry", + "type": "wpimath.kinematics.SwerveDrive4OdometryBase" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "tooltip": "Constructs a PoseEstimator.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose2d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive4PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive4PoseEstimatorBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive6PoseEstimator", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive6Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive6PoseEstimator", + "tooltip": "Constructs a SwerveDrivePoseEstimator with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, and 0.1 radians for heading.\nThe default standard deviations of the vision measurements are\n0.9 meters for x, 0.9 meters for y, and 0.9 radians for heading.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate." + }, + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive6Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive6PoseEstimator", + "tooltip": "Constructs a SwerveDrivePoseEstimator.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose2d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive6PoseEstimator3d", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive6Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3d", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive6PoseEstimator3d", + "tooltip": "Constructs a SwerveDrivePoseEstimator3d with default standard deviations\nfor the model and vision measurements.\n\nThe default standard deviations of the model states are\n0.1 meters for x, 0.1 meters for y, 0.1 meters for z, and 0.1 radians for\nangle. The default standard deviations of the vision measurements are 0.9\nmeters for x, 0.9 meters for y, 0.9 meters for z, and 0.9 radians for\nangle.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate." + }, + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive6Kinematics" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "modulePositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "initialPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3d", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive6PoseEstimator3d", + "tooltip": "Constructs a SwerveDrivePoseEstimator3d.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param gyroAngle: The current gyro angle.\n:param modulePositions: The current distance and rotation measurements of\n the swerve modules.\n:param initialPose: The starting pose estimate.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose3d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive6KinematicsBase" + }, + { + "defaultValue": null, + "name": "odometry", + "type": "wpimath.kinematics.SwerveDrive6Odometry3dBase" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "tooltip": "Constructs a PoseEstimator3d.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and z position\n in meters, and angle in radians). Increase these numbers to trust the\n vision pose measurement less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose3d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetFPGATimestamp(). This means that you should use\n frc::Timer::GetFPGATimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation3d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose3d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation3d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimator3dBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose3d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "kinematics", + "type": "wpimath.kinematics.SwerveDrive6KinematicsBase" + }, + { + "defaultValue": null, + "name": "odometry", + "type": "wpimath.kinematics.SwerveDrive6OdometryBase" + }, + { + "defaultValue": null, + "name": "stateStdDevs", + "type": "Tuple[float, float, float]" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "__init__", + "returnType": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "tooltip": "Constructs a PoseEstimator.\n\n@warning The initial pose estimate will always be the default pose,\nregardless of the odometry's current pose.\n\n:param kinematics: A correctly-configured kinematics object for your\n drivetrain.\n:param odometry: A correctly-configured odometry object for your drivetrain.\n:param stateStdDevs: Standard deviations of the pose estimate (x position in\n meters, y position in meters, and heading in radians). Increase these\n numbers to trust your state estimate less.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + } + ], + "enums": [], + "instanceMethods": [ + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionRobotPose", + "type": "wpimath.geometry.Pose2d" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "addVisionMeasurement", + "returnType": "None", + "tooltip": "Adds a vision measurement to the Kalman Filter. This will correct\nthe odometry pose estimate while still accounting for measurement noise.\n\nThis method can be called as infrequently as you want, as long as you are\ncalling Update() every loop.\n\nTo promote stability of the pose estimate and make it robust to bad vision\ndata, we recommend only adding vision measurements that are already within\none meter or so of the current pose estimate.\n\nNote that the vision measurement standard deviations passed into this\nmethod will continue to apply to future measurements until a subsequent\ncall to SetVisionMeasurementStdDevs() or this method.\n\n:param visionRobotPose: The pose of the robot as measured by the vision\n camera.\n:param timestamp: The timestamp of the vision measurement in seconds. Note\n that if you don't use your own time source by calling UpdateWithTime(),\n then you must use a timestamp with an epoch since FPGA startup (i.e.,\n the epoch of this timestamp is the same epoch as\n frc::Timer::GetTimestamp(). This means that you should use\n frc::Timer::GetTimestamp() as your time source in this case.\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "getEstimatedPosition", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Gets the estimated robot pose.\n\n:returns: The estimated robot pose in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "resetPose", + "returnType": "None", + "tooltip": "Resets the robot's pose.\n\n:param pose: The pose to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + }, + { + "defaultValue": null, + "name": "pose", + "type": "wpimath.geometry.Pose2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "resetPosition", + "returnType": "None", + "tooltip": "Resets the robot's position on the field.\n\nThe gyroscope angle does not need to be reset in the user's robot code.\nThe library automatically takes care of offsetting the gyro angle.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n:param pose: The estimated pose of the robot on the field." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "rotation", + "type": "wpimath.geometry.Rotation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "resetRotation", + "returnType": "None", + "tooltip": "Resets the robot's rotation.\n\n:param rotation: The rotation to reset to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "translation", + "type": "wpimath.geometry.Translation2d" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "resetTranslation", + "returnType": "None", + "tooltip": "Resets the robot's translation.\n\n:param translation: The pose to translation to." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "timestamp", + "type": "wpimath.units.seconds" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "sampleAt", + "returnType": "Optional[wpimath.geometry.Pose2d]", + "tooltip": "Return the pose at a given timestamp, if the buffer is not empty.\n\n:param timestamp: The pose's timestamp.\n\n:returns: The pose at the given timestamp (or std::nullopt if the buffer is\n empty)." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "visionMeasurementStdDevs", + "type": "Tuple[float, float, float]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "setVisionMeasurementStdDevs", + "returnType": "None", + "tooltip": "Sets the pose estimator's trust in vision measurements. This might be used\nto change trust in vision measurements after the autonomous period, or to\nchange trust as distance to a vision target increases.\n\n:param visionMeasurementStdDevs: Standard deviations of the vision pose\n measurement (x position in meters, y position in meters, and heading in\n radians). Increase these numbers to trust the vision pose measurement\n less." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "update", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + }, + { + "args": [ + { + "defaultValue": null, + "name": "self", + "type": "wpimath.estimator.SwerveDrive6PoseEstimatorBase" + }, + { + "defaultValue": null, + "name": "currentTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": null, + "name": "gyroAngle", + "type": "wpimath.geometry.Rotation2d" + }, + { + "defaultValue": null, + "name": "wheelPositions", + "type": "Tuple[wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition, wpimath.kinematics.SwerveModulePosition]" + } + ], + "declaringClassName": "wpimath.estimator.SwerveDrive6PoseEstimatorBase", + "functionName": "updateWithTime", + "returnType": "wpimath.geometry.Pose2d", + "tooltip": "Updates the pose estimator with wheel encoder and gyro information. This\nshould be called every loop.\n\n:param currentTime: The time at which this method was called.\n:param gyroAngle: The current gyro angle.\n:param wheelPositions: The distances traveled by the encoders.\n\n:returns: The estimated pose of the robot in meters." + } + ], + "instanceVariables": [], + "moduleName": "wpimath.estimator", + "staticMethods": [] + }, + { + "className": "wpimath.filter.Debouncer", + "classVariables": [], + "constructors": [ + { + "args": [ + { + "defaultValue": null, + "name": "debounceTime", + "type": "wpimath.units.seconds" + }, + { + "defaultValue": "
Type | \nInput Buffer Size | \nOutput Buffer Size | \n
---|---|---|
Unspecified | \nsize of ``ffGains`` | \nsize of ``fbGains`` | \n
Single Pole IIR | \n1 | \n1 | \n
High-Pass | \n2 | \n1 | \n
Moving Average | \n``taps`` | \n0 | \n
Finite Difference | \nsize of ``stencil`` | \n0 | \n
Backward Finite Difference | \n``Samples`` | \n0 | \n
{@code\nShuffleboardLayout myList = Shuffleboard::GetTab(\"My Tab\")\n.GetLayout(BuiltinLayouts::kList, \"My List\");\n}\n\nMembers:\n\n kList : Groups components in a vertical list. New widgets added to the layout will\nbe placed at the bottom of the list. \nCustom properties:
Name | Type | Default Value | Notes |
---|---|---|---|
Label position | String | \"BOTTOM\" | \nThe position of component labels inside the grid. One of\n``[\"TOP\", \"LEFT\", \"BOTTOM\", \"RIGHT\", \"HIDDEN\"`` |
Name | Type | Default Value | Notes |
---|---|---|---|
Number of columns | Number | 3 | Must be in the\nrange [1,15] | \n
Number of rows | Number | 3 | Must be in the\nrange [1,15] |
Label position | String | \n\"BOTTOM\" | \nThe position of component labels inside the grid.\nOne of ``[\"TOP\", \"LEFT\", \"BOTTOM\", \"RIGHT\", \"HIDDEN\"`` | \n
{@code\nNetworkTableEntry example = Shuffleboard.getTab(\"My Tab\")\n.add(\"My Number\", 0)\n.withWidget(BuiltInWidgets.kNumberSlider)\n.getEntry();\n}\n\nEach value in this enum goes into detail on what data types that widget\ncan support, as well as the custom properties that widget uses.\n\nMembers:\n\n kTextView : Displays a value with a simple text field.\nSupported types:\n\n- String\n- Number\n- Boolean\n\nThis widget has no custom properties.\n\n kNumberSlider : Displays a number with a controllable slider.\nSupported types:\n\n- Number\n\nCustom properties:\n
Name | Type | Default Value | Notes |
---|---|---|---|
Min | Number | -1.0 | The minimum value of the\nslider |
Max | Number | 1.0 | The maximum\nvalue of the slider |
Block\nincrement | Number | 0.0625 | How much to move the\nslider by with the arrow keys |
Name | Type | Default Value | Notes |
---|---|---|---|
Min | Number | -1.0 | The minimum value of the\nbar |
Max | Number | 1.0 | The maximum\nvalue of the bar |
Center | Number | 0 | The center (\"zero\") value\nof the bar |
Name | Type | Default Value | Notes |
---|---|---|---|
Min | Number | 0 | The minimum value of the\ndial |
Max | Number | 100 | The maximum\nvalue of the dial |
Show\nvalue | Boolean | true | Whether or not to show the\nvalue as text |
Name | Type | Default Value | Notes |
---|---|---|---|
Visible time | Number | 30 | \nHow long, in seconds, should past data be visible for |
Name | Type | Default Value | Notes |
---|---|---|---|
Color when true | Color | \"green\" | \nCan be specified as a string (``\"#00FF00\"``) or a rgba integer\n(``0x00FF0000``)\n |
Color when false | Color | \"red\" | \nCan be specified as a string or a number |
Name | Type | Default Value | Notes |
---|---|---|---|
Min | Number | 0 | The minimum value of the\nbar |
Max | Number | 5 | The maximum\nvalue of the bar |
Center | Number | 0 | The center (\"zero\") value\nof the bar |
Orientation | String | \"HORIZONTAL\" | \nThe orientation of the bar. One of {@code [\"HORIZONTAL\",\n\"VERTICAL\"]} |
Number of tick\nmarks | Number | 5 | The number of discrete ticks on the\nbar |
Name | Type | Default Value | Notes |
---|---|---|---|
Show voltage and current values | Boolean | true | \nWhether or not to display the voltage and current draw |
Name | Type | Default Value | Notes |
---|---|---|---|
Orientation | String | \"HORIZONTAL\" | \nOne of ``[\"HORIZONTAL\", \"VERTICAL\"]`` |
Name | Type | Default Value | Notes |
---|---|---|---|
Min | Number | -1 | \nThe minimum acceleration value to display |
Max | Number | 1 | \nThe maximum acceleration value to display |
Show text | Boolean | true | \nShow or hide the acceleration values |
Precision | Number | 2 | \nHow many numbers to display after the decimal point |
Show tick marks | Boolean | false | \nShow or hide the tick marks on the number bars |
Name | Type | Default Value | Notes |
---|---|---|---|
Range | Range | k16G | The accelerometer\nrange |
Show value | Boolean | true | \nShow or hide the acceleration values |
Precision | Number | 2 | \nHow many numbers to display after the decimal point |
Show tick marks | Boolean | false | \nShow or hide the tick marks on the number bars |
Name | Type | Default Value | Notes |
---|---|---|---|
Major tick\nspacing | Number | 45 | Degrees |
Starting angle | Number | 180 | \nHow far to rotate the entire dial, in degrees |
Show tick mark ring | Boolean | true |
Name | Type | Default Value | Notes |
---|---|---|---|
Number of wheels | Number | 4 | Must be a\npositive even integer\n |
Wheel diameter | Number | 80 | Pixels |
Show velocity vectors | Boolean | true |
Name | Type | Default Value | Notes |
---|---|---|---|
Show velocity vectors | Boolean | true |
Name | Type | Default Value | Notes |
---|---|---|---|
Show crosshair | Boolean | true | \nShow or hide a crosshair on the image |
Crosshair color | Color | \"white\" | \nCan be a string or a rgba integer |
Show controls | Boolean | true | Show or hide the\nstream controls\n |
Rotation | String | \"NONE\" | \nRotates the displayed image. One of {@code [\"NONE\", \"QUARTER_CW\",\n\"QUARTER_CCW\", \"HALF\"]}\n |