Skip to content
Snippets Groups Projects
Verified Commit 82ef7ec9 authored by Christian Dreher's avatar Christian Dreher
Browse files

fix: Calculate absolute value for range of motion loss or gain in outputs

parent 707ac32c
No related branches found
No related tags found
No related merge requests found
......@@ -306,8 +306,8 @@ class Calibration:
rof_loss_rad = degree_to_rad(rom_reference_degree) - rof_rad
loss_or_gain = "loss" if rof_loss_degree >= 0 else "gain"
degree_loss_info = f", {loss_or_gain} of {rof_loss_degree:.3f}°"
rad_loss_info = f", {loss_or_gain} of {rof_loss_rad:.3f} rad"
degree_loss_info = f", {loss_or_gain} of {abs(rof_loss_degree):.3f}°"
rad_loss_info = f", {loss_or_gain} of {abs(rof_loss_rad):.3f} rad"
print(f" {lo_degree:.3f}° to {hi_degree:.3f}° "
f"(RoM: {rof_degree:.3f}°{degree_loss_info})")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment