mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
OP-984 Updated vtolpathfollower to handle PID banks
This commit is contained in:
parent
e4bcd87ddd
commit
d625242a45
@ -135,6 +135,7 @@ int32_t StabilizationInitialize()
|
|||||||
{
|
{
|
||||||
// Initialize variables
|
// Initialize variables
|
||||||
StabilizationSettingsInitialize();
|
StabilizationSettingsInitialize();
|
||||||
|
StabilizationBankInitialize();
|
||||||
ActuatorDesiredInitialize();
|
ActuatorDesiredInitialize();
|
||||||
#ifdef DIAG_RATEDESIRED
|
#ifdef DIAG_RATEDESIRED
|
||||||
RateDesiredInitialize();
|
RateDesiredInitialize();
|
||||||
|
@ -65,6 +65,7 @@
|
|||||||
#include "nedaccel.h"
|
#include "nedaccel.h"
|
||||||
#include "stabilizationdesired.h"
|
#include "stabilizationdesired.h"
|
||||||
#include "stabilizationsettings.h"
|
#include "stabilizationsettings.h"
|
||||||
|
#include "stabilizationbank.h"
|
||||||
#include "systemsettings.h"
|
#include "systemsettings.h"
|
||||||
#include "velocitydesired.h"
|
#include "velocitydesired.h"
|
||||||
#include "velocitystate.h"
|
#include "velocitystate.h"
|
||||||
@ -575,7 +576,7 @@ static void updateVtolDesiredAttitude(bool yaw_attitude)
|
|||||||
StabilizationDesiredData stabDesired;
|
StabilizationDesiredData stabDesired;
|
||||||
AttitudeStateData attitudeState;
|
AttitudeStateData attitudeState;
|
||||||
NedAccelData nedAccel;
|
NedAccelData nedAccel;
|
||||||
StabilizationSettingsData stabSettings;
|
StabilizationBankData stabSettings;
|
||||||
SystemSettingsData systemSettings;
|
SystemSettingsData systemSettings;
|
||||||
|
|
||||||
float northError;
|
float northError;
|
||||||
@ -593,7 +594,7 @@ static void updateVtolDesiredAttitude(bool yaw_attitude)
|
|||||||
StabilizationDesiredGet(&stabDesired);
|
StabilizationDesiredGet(&stabDesired);
|
||||||
VelocityDesiredGet(&velocityDesired);
|
VelocityDesiredGet(&velocityDesired);
|
||||||
AttitudeStateGet(&attitudeState);
|
AttitudeStateGet(&attitudeState);
|
||||||
StabilizationSettingsGet(&stabSettings);
|
StabilizationBankGet(&stabSettings);
|
||||||
NedAccelGet(&nedAccel);
|
NedAccelGet(&nedAccel);
|
||||||
|
|
||||||
float northVel = 0, eastVel = 0, downVel = 0;
|
float northVel = 0, eastVel = 0, downVel = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user