mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-05 16:00:34 +08:00
FlightTaskManualStabilized make reset counter for heading static
This commit is contained in:
committed by
Lorenz Meier
parent
68dd2d739a
commit
a0c3c80b37
@@ -40,6 +40,7 @@
|
||||
#include <float.h>
|
||||
|
||||
using namespace matrix;
|
||||
uint8_t FlightTaskManualStabilized::_heading_reset_counter = 0;
|
||||
|
||||
bool FlightTaskManualStabilized::initializeSubscriptions(SubscriptionArray &subscription_array)
|
||||
{
|
||||
@@ -92,7 +93,6 @@ void FlightTaskManualStabilized::_updateHeadingSetpoints()
|
||||
_yaw_setpoint += matrix::Eulerf(matrix::Quatf(_sub_attitude->get().delta_q_reset)).psi();
|
||||
_heading_reset_counter = _sub_attitude->get().quat_reset_counter;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user