fix logic

This commit is contained in:
2024-09-27 17:28:49 +03:00
parent e4cc2cecf5
commit 3424b775aa
5 changed files with 45 additions and 21 deletions

View File

@ -37,6 +37,7 @@ typedef struct CurrentShot {
uint8_t indexGlobal;
uint16_t currentBallCount;
Shot shot;
uint16_t doneCount;
} CurrentShot;
typedef struct CurrentProgram {
@ -45,6 +46,7 @@ typedef struct CurrentProgram {
CurrentShot currentShot;
uint8_t currentShotIndexLocal;
uint16_t currentBallCount;
uint16_t doneCount;
} CurrentProgram;
typedef struct CurrentMacro {
@ -53,6 +55,7 @@ typedef struct CurrentMacro {
CurrentProgram currentProgram;
uint8_t currentProgramIndexLocal;
uint16_t currentBallCount;
uint16_t doneCount;
} CurrentMacro;
//typedef struct CurrentState {
@ -82,6 +85,7 @@ uint8_t prepareProgramm(uint8_t number);
uint8_t prepareMacro(uint8_t number);
void startShooting(uint32_t delayTime);
void stopShooting();