Raphael Schmidt
/
GrannyStepper
Projekt
Diff: main.cpp
- Revision:
- 38:ba15402d9c94
- Parent:
- 37:3c427322799d
- Child:
- 39:c0c2e33a2181
diff -r 3c427322799d -r ba15402d9c94 main.cpp --- a/main.cpp Wed Apr 06 11:34:41 2022 +0200 +++ b/main.cpp Wed Apr 06 11:48:51 2022 +0200 @@ -55,14 +55,14 @@ float speed_counter; switch (counter_user_button){ case 1: - speed_counter = 0.5f; + speed_counter = 1.0f; break; case 2: - speed_counter = 0.0f; + speed_counter = 0.5f; break; } - speedController_M1.setDesiredSpeedRPS(speed_counter); - printf( "counter %d stopp %d button %d \n",counter_user_button, counter_stopp, !user_button.read()); + pwm_M1.write(speed_counter); + printf( "counter %d stopp %d button %d speed %f \n",counter_user_button, counter_stopp, !user_button.read(), speed_counter); } }