diff --git a/python/sliders_cartesian.py b/python/sliders_cartesian.py index 906b33b..8977f9a 100644 --- a/python/sliders_cartesian.py +++ b/python/sliders_cartesian.py @@ -84,7 +84,7 @@ def cartesian_to_angles(x, y, z): alpha2 = theta2 * 180 / math.pi alpha3 = theta3 * 180 / math.pi log_serial(f"Angles: {alpha1:.2f}, {alpha2:.2f}, {alpha3:.2f}", "blue") - return [alpha1, alpha2, alpha3] + return [alpha1, alpha2, alpha3] # in degree except ValueError as e: print(f"Error in cartesian_to_angles: {e}") raise e diff --git a/src/main.cpp b/src/main.cpp index 8db26b9..393e774 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -97,18 +97,6 @@ unsigned long lastUpdate = 0; // Last time the position was updated const int updateInterval = 0; // Update interval in milliseconds int newTarget = 0; -int potValue1 = 0; -int potValue2 = 0; -int potValue3 = 0; -int potValue4 = 0; -int potValue5 = 0; -int potValue6 = 0; -int targetPosition1 = 0; -int targetPosition2 = 0; -int targetPosition3 = 0; -int targetPosition4 = 0; -int targetPosition5 = 0; -int targetPosition6 = 0; void setup() { Serial.begin(9600);