Create a calculation helper
create_calculationScaffold a stateless helper class to centralize math calculations, removing logic from OpMode and subsystem files.
Instructions
Scaffold a stateless static-only helper class (e.g. live trajectory math) that any OpMode or subsystem can call. Keeps math out of subsystem/OpMode files.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "create_calculation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Class name, e.g. TrajectorySolver | |
| group | No | Package group (default: util) | |
| dryRun | No | Validate and return the generated Java without writing any files | |
| overwrite | No | ||
| description | No | ||
| projectPath | No | Path to the FtcRobotController SDK project. Defaults to $FTC_TOOLCHAIN_PROJECT_DIR, then the workspace clone made by create_project. |