Files
Embedded-Hacking/0x001da_cb/include/state_machine.h
T

28 lines
525 B
C

/**
* @file state_machine.h
* @brief Operation Broken Wing Firmware
* @author Kevin Thomas
* @date 2026
*
* MIT License
* Copyright (c) 2026 Kevin Thomas
*/
#ifndef STATE_MACHINE_H
#define STATE_MACHINE_H
#define STATE_IDLE 0
#define STATE_ARMED 1
typedef struct {
int current_state;
int current_altitude;
} drone_state_t;
extern drone_state_t drone;
/**
* @brief Process the payload state machine for one cycle.
*
* @param void No parameters.
* @return void
*/
void process_payload_state(void);
#endif