Refactor CB 3, 4, 5 with complex modular source code and compiled UF2/BIN files

This commit is contained in:
Kevin Thomas committed 2026-10-09 15:23:55 -04:00
1 parent 0b5353ac50
commit 95ab2e0e8d
24 files changed
+584 -62

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
/**
* @file pwm_ctrl.h
* @brief Operation Broken Wing Firmware
* @author Kevin Thomas
* @date 2026
*
* MIT License
* Copyright (c) 2026 Kevin Thomas
*/
#ifndef PWM_CTRL_H
#define PWM_CTRL_H
void init_servo(void);
void deploy_payload(void);
void lock_payload(int altitude);
#endif
+21
View File
@@ -0,0 +1,21 @@
/**
* @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;
void process_payload_state(void);
#endif