pylabrobot.brooks.precise_flex.PreciseFlex.set_axis_parameter#

async PreciseFlex.set_axis_parameter(data_id: int, axis: Axis, value, robot_number: int = 1) None#

Change one joint’s element of a per-axis parameter array (pc).

Per-axis DataIDs (motor current limits, hard-stop homing envelope, joint limits) hold one value per joint; this writes a single joint’s element and leaves the rest untouched. axis is the controller’s 1-based array index (Axis.GRIPPER -> 5), cast to int at the wire boundary; reads of the same DataID come back in this order (see _parse_per_axis).

Parameters:
  • data_id (int) – the per-axis DataID to change.

  • axis (Axis) – which joint’s element to write.

  • value – the new value for that element.

  • robot_number (int) – unit number, the robot (1 - N_ROB).

Return type:

None

Note

Volatile until a save-to-flash (DataID 901); a power cycle otherwise restores the flashed value.