Prototyp V2
Dependencies: PM2_Libary
Diff: main.cpp
- Branch:
- michi
- Revision:
- 61:2ff627973f2c
- Parent:
- 60:b2e9958f2298
- Child:
- 62:188f3a8ebf49
diff -r b2e9958f2298 -r 2ff627973f2c main.cpp --- a/main.cpp Wed Apr 20 11:30:16 2022 +0200 +++ b/main.cpp Wed Apr 20 11:31:15 2022 +0200 @@ -119,7 +119,7 @@ // PARAM: end_deg = new position of the arm in degree 0 <= value >=360 // PARAM: current_rotations = the current rotation of the Motor (Motor.getRotation()) // RETURN: new_partial_rotation = new deg value in rotations -float turn_to_abs_in_deg(float end_deg, float current_rotations) +float turn_absolut_deg(float end_deg, float current_rotations) { int full_rotations = current_rotations; int new_partial_rotation = current_rotations + start_deg_arm/360;