half work

This commit is contained in:
2024-09-25 01:57:33 +03:00
parent b95af34bfd
commit 31a74305f6
11 changed files with 810 additions and 652 deletions

View File

@ -34,23 +34,25 @@ typedef enum State{
}State;
typedef struct CurrentShot {
uint8_t index;
uint8_t indexGlobal;
uint16_t currentBallCount;
Shot shot;
} CurrentShot;
typedef struct CurrentProgram {
uint8_t index;
uint8_t indexGlobal;
Program program;
CurrentShot currentShot;
uint8_t programShotId;
uint8_t currentShotIndexLocal;
uint16_t currentBallCount;
} CurrentProgram;
typedef struct CurrentMacro {
uint8_t index;
uint8_t indexGlobal;
Macro macro;
uint8_t program_index;
CurrentProgram currentProgram;
uint8_t currentProgramIndexLocal;
uint16_t currentBallCount;
} CurrentMacro;
//typedef struct CurrentState {
@ -69,7 +71,7 @@ typedef struct CurrentInfo {
void Robot_INIT();
void shotApply(Shot*);
void shotApply(CurrentShot*);
void doShotForever(uint8_t number);
void BallEXT();
@ -77,7 +79,7 @@ void RobotTick();
uint8_t prepareShot(uint8_t number);
uint8_t prepareProgramm(uint8_t number);
//uint8_t prepareMacro(uint8_t number);
uint8_t prepareMacro(uint8_t number);
void startShooting(uint32_t delayTime);