led and rc

This commit is contained in:
2024-09-30 00:26:00 +03:00
parent 7095a09a1d
commit 6c3af6fbb5
15 changed files with 634 additions and 221 deletions

View File

@ -22,7 +22,7 @@ typedef enum ServoMap{
SERVO_VERTICAL = 2
}ServoMap;
typedef enum CurrentMode {
typedef enum Mode {
NoneMode, ShotMode, ProgramMode, MacroMode,
} Mode;
@ -58,11 +58,6 @@ typedef struct CurrentMacro {
uint16_t doneCount;
} CurrentMacro;
//typedef struct CurrentState {
// uint8_t isPause;
// uint8_t isShooting;
//} CurrentState;
typedef struct CurrentInfo {
Mode mode;
State state;
@ -72,6 +67,8 @@ typedef struct CurrentInfo {
uint32_t startDelay;
} CurrentInfo;
extern CurrentInfo currentInfo;
void Robot_INIT();
void shotApply(CurrentShot*);