mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-10-13 03:07:28 +02:00
Audit-clean C standard across all 5 cb challenges: fix 3 functions over 8 exec lines; rebuild bins; update CB-0x03 and CB-0x05 guides; verify all guides against new bins
This commit is contained in:
1 parent
4ade66738f
commit
23b9f628ef
51 files changed
+3744
-7904
No files matched your search
@@ -10,7 +10,25 @@
|
||||
|
||||
#ifndef PWM_CTRL_H
|
||||
#define PWM_CTRL_H
|
||||
/**
|
||||
* @brief Initialize the servo PWM output.
|
||||
*
|
||||
* @param void No parameters.
|
||||
* @return void
|
||||
*/
|
||||
void init_servo(void);
|
||||
/**
|
||||
* @brief Deploy the payload via servo actuation.
|
||||
*
|
||||
* @param void No parameters.
|
||||
* @return void
|
||||
*/
|
||||
void deploy_payload(void);
|
||||
/**
|
||||
* @brief Lock the payload at the given altitude.
|
||||
*
|
||||
* @param altitude Altitude at which to lock the payload.
|
||||
* @return void
|
||||
*/
|
||||
void lock_payload(int altitude);
|
||||
#endif
|
||||
@@ -17,5 +17,11 @@ typedef struct {
|
||||
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
|
||||
Reference in new issue
Block a user