Skip to content

Commit

Permalink
add target
Browse files Browse the repository at this point in the history
  • Loading branch information
tmori committed Jun 11, 2024
1 parent 7664f40 commit 8ba1517
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hakoniwa/python/control_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ def main(input_file):
ts_result = "OK" if T_s is not None and T_s <= TARGET_TS else "NG"

# Output results
print(f"{cs_result} : c(Steady state value) : {c:.3f} m")
print(f"{tr_result} : T_r(Rise time) : {T_r:.3f} seconds")
print(f"{td_result} : T_d(Delay time) : {T_d:.3f} seconds")
print(f"{os_result} : O_s(Maximum overshoot) : {O_s:.3f} m")
print(f"{ts_result} : T_s(5% settling time) : {T_s:.3f} seconds")
print(f"{cs_result} c(Steady state value) : {c:.3f} m (Target: {TARGET_HEIGHT}±{TARGET_HEIGHT * TARGET_CV:.3f} m)")
print(f"{tr_result} T_r(Rise time) : {T_r:.3f} s (Target: ≤ {TARGET_TR:.3f} s)")
print(f"{td_result} T_d(Delay time) : {T_d:.3f} s (Target: ≤ {TARGET_TD:.3f} s)")
print(f"{os_result} O_s(Maximum overshoot) : {O_s:.3f} m (Target: ≤ {TARGET_OS:.3f} m)")
print(f"{ts_result} T_s(5% settling time) : {T_s:.3f} s (Target: ≤ {TARGET_TS:.3f} s)")


if __name__ == "__main__":
Expand Down

0 comments on commit 8ba1517

Please sign in to comment.