Invntr
Source

All instruments

servo_control

Generic closed-loop PID electromechanical actuator simulator (RK4) with torque saturation, anti-windup, viscous damping, and load torque: computes rise time, 2% settling time, percent overshoot, steady-state error, peak torque, and mechanical energy. Writes response.csv and plot.png.

Field
Dynamics and control
Version
0.1.0
Runs as
Compiled (Rust)
Typical run
0.05 s

Compiled from source: run sh packs/install.sh once before admitting it.

A real run

Step response to a 1 rad targetr0003 · response.csv
00.511.5200.511.5t (s)position (rad)settled 0.177 s
rise time
0.103 s
settling (2 %)
0.177 s
overshoot
1.7e-05 %
damping ratio
0.98

Known answers it must pass

Admission replayservo_control 0.1.0 · files 9a2d69d32ab5…0bca
  1. r0001critically damped PD (J=1, kp=100, kd=20 -> wn=10, zeta=1.0): 0% overshoot, exact settlingpassed

    closed_loop_wn_rad_s10 ± 1e-0910lockedunder 0.01 % of the tolerance used
    closed_loop_zeta1 ± 1e-091lockedunder 0.01 % of the tolerance used
    overshoot_pct0 ± 1e-060lockedunder 0.01 % of the tolerance used
    steady_state_error_rad0 ± 1e-054.32842e-08locked0.43 % of the tolerance used
  2. r0002underdamped PD (zeta=0.5) matches exact analytical overshoot exp(-pi/sqrt(3)) = 16.303%passed

    closed_loop_zeta0.5 ± 1e-090.5lockedunder 0.01 % of the tolerance used
    overshoot_pct16.3033 ± 0.0516.3033locked0.087 % of the tolerance used
2 of 2 cases passed · sandbox macos-seatbeltrecorded from the kernel in a fresh lab

Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.

Inputs

NameUnitDefaultMeaning
inertia_kg_m2kg m^20.005
viscous_damping_Nm_s_per_radN m s/rad0.01
kp15.0
ki10.0
kd10.3
max_torque_NmN m1000.0
load_torque_NmN m0.0
target_radrad1.0
duration_ss2.0
dt_ss0.0005

Readings

NameUnitMeaning
final_position_radrad
steady_state_error_radrad
overshoot_pct%
rise_time_ss
settling_time_2pct_ss
peak_torque_NmN m
saturation_pct%
mechanical_energy_JJ
closed_loop_wn_rad_srad/s
closed_loop_zeta1
response.csv
plot.png

Try the call

Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.

Terminal
MCP call