Initial commit

This commit is contained in:
Radzhab Bisultanov
2026-02-17 19:10:09 +03:00
commit eecf8f2cc2
34 changed files with 27181 additions and 0 deletions

26
Source/Control/Inc/pid.h Normal file
View File

@@ -0,0 +1,26 @@
#ifndef PID_H
#define PID_H
#include "stm32g431xx.h"
typedef struct
{
float kp;
float ki;
float kd;
float integral;
float prev_error;
} pid_t;
typedef struct
{
float roll;
float pitch;
float yaw;
} control_channels_t;
float pid_update(pid_t* pid, float error, float gyro_rate, float dt);
#endif