mirror of
https://github.com/DashyFox/StackSport.git
synced 2025-06-27 20:59:36 +00:00
half work
This commit is contained in:
@ -108,7 +108,7 @@ typedef struct __attribute__((packed)) {
|
||||
typedef struct __attribute__((packed)) {
|
||||
uint32_t shotsInShot;
|
||||
uint32_t shotsInProgram;
|
||||
uint32_t totalMacros;
|
||||
uint32_t shotInMacro;
|
||||
} Statistics;
|
||||
|
||||
typedef struct __attribute__((packed)) {
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user