mirror of
https://github.com/LinoSchmidt/RoboterArm.git
synced 2026-03-21 02:31:16 +01:00
added Autoplay void
This commit is contained in:
@@ -211,6 +211,10 @@ void joystickButtonPress(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Autoplay(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
int joystick_position(int joystick, int joystick_middle, int joystick_min, int joystick_max){
|
int joystick_position(int joystick, int joystick_middle, int joystick_min, int joystick_max){
|
||||||
if(joystick <= joystick_middle - joystick_Empfindlichkeit)
|
if(joystick <= joystick_middle - joystick_Empfindlichkeit)
|
||||||
return(-map(joystick, joystick_middle - joystick_Empfindlichkeit, joystick_min, joystick_MinSpeed, joystick_MaxSpeed));
|
return(-map(joystick, joystick_middle - joystick_Empfindlichkeit, joystick_min, joystick_MinSpeed, joystick_MaxSpeed));
|
||||||
@@ -275,7 +279,10 @@ void loop(){
|
|||||||
Hand.write(HandPos);
|
Hand.write(HandPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(offtime >= TimeToDetach){
|
if(offtime >= TimeToAutoplay){
|
||||||
|
Autoplay();
|
||||||
|
}
|
||||||
|
else if(offtime >= TimeToDetach){
|
||||||
Drehung.detach();
|
Drehung.detach();
|
||||||
Arm.detach();
|
Arm.detach();
|
||||||
Oberarm.detach();
|
Oberarm.detach();
|
||||||
|
|||||||
Reference in New Issue
Block a user