This commit is contained in:
2024-09-04 04:01:15 +03:00
parent ff754d60a6
commit b962cbb419
11 changed files with 174 additions and 116 deletions

View File

@ -40,8 +40,8 @@ typedef struct Current {
Current current;
extern uint8_t Vz1;
extern uint8_t Vz2;
extern int16_t Vz1;
extern int16_t Vz2;
void doShot(Shot* shot){
SetServo(0, shot->rotationHorizontal);
SetServo(1, shot->rotationVertical);
@ -89,7 +89,8 @@ void startShooting(){
void stopShooting(){
isShooting = 0;
isPause = 0;
setScrewkSpeed(0);
setRollersSpeed(100,100);
setPosDefault();
Vz1 = 100;
Vz2 = 100;