mirror of
https://github.com/DashyFox/StackSport.git
synced 2025-06-28 05:09:32 +00:00
Working UART
This commit is contained in:
@ -17,6 +17,39 @@ typedef enum ServoMap{
|
||||
SERVO_VERTICAL = 2
|
||||
}ServoMap;
|
||||
|
||||
typedef enum CurrentMode {
|
||||
NoneMode, ShotMode, ProgramMode, MacroMode,
|
||||
} Mode;
|
||||
|
||||
typedef struct CurrentShot {
|
||||
uint8_t index;
|
||||
Shot shot;
|
||||
} CurrentShot;
|
||||
|
||||
typedef struct CurrentProgram {
|
||||
uint8_t index;
|
||||
Program program;
|
||||
uint8_t shot_index;
|
||||
} CurrentProgram;
|
||||
|
||||
typedef struct CurrentMacro {
|
||||
uint8_t index;
|
||||
Macro macro;
|
||||
uint8_t program_index;
|
||||
} CurrentMacro;
|
||||
|
||||
typedef struct CurrentState {
|
||||
uint8_t isPause;
|
||||
uint8_t isShooting;
|
||||
} CurrentState;
|
||||
|
||||
typedef struct CurrentInfo {
|
||||
Mode mode;
|
||||
CurrentState state;
|
||||
CurrentShot shot;
|
||||
CurrentProgram program;
|
||||
CurrentMacro macro;
|
||||
} CurrentInfo;
|
||||
|
||||
|
||||
void doShot(Shot*);
|
||||
|
Reference in New Issue
Block a user