convert_io_value
Convert an I/O channel's bin, fraction, or physical value into the other representations using registered device units and physical range; returns bin, fraction, value, and unit.
Instructions
Convert one I/O channel's z bin, fraction or physical value into the others (read-only).
Pass exactly one of bin, fraction (0..1) or value. The bin rule is FEAGI's own
coder (feagi_rust_py_libs) bound to the unit the agent's device registration states
for the area, for OPU and IPU areas and every percentage variant it supports; this is the
same rule build_stance_relative_mapping and send_motor_command use. The physical
value comes only from the channel's registered physical_range; without one the
answer has value null and unit unknown, and a value input is an error.
A registered controller is needed (no registration, no coding variant).
Args:
area: OPU or IPU area id or exact display name.
channel: Channel index (the x position of the channel in the area).
bin: z bin to convert (0..depth-1).
fraction: Decoded fraction 0..1 to convert to the nearest bin.
value: Physical value to convert (needs the registered physical_range; clamped).
agent_id: Agent whose registration states the unit; when omitted, the one registered
agent that drives the area is used (several differing agents is an error).
Returns:
variant, depth, physical_range, bin, fraction (what the bin decodes
to), value and unit; a fraction or value input also returns
requested_fraction / requested_value. Two-lobe variants return z_positive /
z_negative instead of one bin. An Incremental servo area (coding_behavior of the
area) is not a position: it returns framing and semantics step, p (the
column magnitude; fraction repeats it), columns (role, x, step_fraction =
+/-p*step, step_value), step_size_0_1 and step_size_source, with value
and unit null. Incremental pointer areas add framing and semantics velocity.
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": {
"area": "<area>",
"channel": "<channel>"
},
"name": "convert_io_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bin | No | ||
| area | Yes | ||
| value | No | ||
| channel | Yes | ||
| agent_id | No | ||
| fraction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||