Dominik Diedrich
/
drone_quado_x
code to fly a quadrocopter
PID/PID_pitch.h
- Committer:
- DD1993
- Date:
- 2020-05-05
- Revision:
- 0:b0f9c5ac0305
File content as of revision 0:b0f9c5ac0305:
#ifndef PID_PITCH_H #define PID_PITCH_H #include "mbed.h" class PID_PITCH_Class { public: PID_PITCH_Class(float AngleKp,float AngleKi, float RateKp, float RateKd); float update_pitch(float Setpoint, float CurrentPosition, float Rate, float dt); private: float Angle_Kp,Angle_Ki,Rate_Kp,Rate_Kd; float AngleError,RateError; float Angle_I,Rate_D; float Output,WindUp; float PreviousError; }; #endif