programm works

This commit is contained in:
2024-09-22 21:38:17 +03:00
parent b98846eac1
commit 5b4db505c2
6 changed files with 263 additions and 117 deletions

View File

@ -106,8 +106,8 @@ typedef struct __attribute__((packed)) {
} HardwareInit_t;
typedef struct __attribute__((packed)) {
uint32_t totalShots;
uint32_t totalPrograms;
uint32_t shotsInShot;
uint32_t shotsInProgram;
uint32_t totalMacros;
} Statistics;

View File

@ -36,14 +36,16 @@ typedef enum State{
typedef struct CurrentShot {
uint8_t index;
uint16_t currentRepeatCount;
uint16_t currentBallCount;
Shot shot;
} CurrentShot;
typedef struct CurrentProgram {
uint8_t index;
Program program;
uint8_t shot_index;
CurrentShot currentShot;
uint8_t programShotId;
uint16_t currentBallCount;
} CurrentProgram;
typedef struct CurrentMacro {
@ -75,7 +77,7 @@ void BallEXT();
void RobotTick();
uint8_t prepareShot(uint8_t number);
//uint8_t prepareProgramm(uint8_t number);
uint8_t prepareProgramm(uint8_t number);
//uint8_t prepareMacro(uint8_t number);