mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-05 21:52:10 +01:00
OP-984 Modified manualcontrol to use PID bank data object
This commit is contained in:
parent
fddf61377e
commit
f523ba949d
@ -37,42 +37,6 @@ enum { ROLL, PITCH, YAW, MAX_AXES };
|
|||||||
|
|
||||||
int32_t StabilizationInitialize();
|
int32_t StabilizationInitialize();
|
||||||
|
|
||||||
typedef struct stab_rate_pid{
|
|
||||||
float Kp;
|
|
||||||
float Ki;
|
|
||||||
float Kd;
|
|
||||||
float ILimit;
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct stab_att_pid{
|
|
||||||
float Kp;
|
|
||||||
float Ki;
|
|
||||||
float ILimit;
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct stab_rpy{
|
|
||||||
float Roll;
|
|
||||||
float Pitch;
|
|
||||||
float Yaw;
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct stab_bank {
|
|
||||||
float RollMax;
|
|
||||||
float PitchMax;
|
|
||||||
float YawMax;
|
|
||||||
struct{
|
|
||||||
float Roll;
|
|
||||||
float Pitch;
|
|
||||||
float Yaw;
|
|
||||||
};
|
|
||||||
float ManualRate;
|
|
||||||
float iAccumulator;
|
|
||||||
float lastErr;
|
|
||||||
float lastDer;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif // STABILIZATION_H
|
#endif // STABILIZATION_H
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user