programa final
Diff: AttitudeController/AttitudeController.h
- Revision:
- 2:54fabc943f25
- Parent:
- 0:3871dc7bedf7
- Child:
- 8:1ad52489f6f3
diff -r 579511e9f0b8 -r 54fabc943f25 AttitudeController/AttitudeController.h --- a/AttitudeController/AttitudeController.h Wed Oct 10 11:19:54 2018 +0000 +++ b/AttitudeController/AttitudeController.h Tue Oct 16 21:57:19 2018 +0000 @@ -31,10 +31,13 @@ void control(float phi_r, float theta_r, float psi_r, float phi, float theta, float psi); // Torques (N.m) float tau_phi, tau_theta, tau_psi; + private : // Control torque of a single axis given reference angles and current angles and angular velocities ( with given gains and /or time constants and moments of inertia ) float single_axis_control(float angle_r, float angle, float K_angle, float K_rate , float I, float last_erro_angle); + float last_erro_phi, last_erro_theta, last_erro_psi; + float last_erro; }; # endif