mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
FlightTaskManual: replace yaw with yaw_sp for rotation
This commit is contained in:
committed by
Beat Küng
parent
ec79b2f8c8
commit
017576262c
@@ -94,8 +94,8 @@ void FlightTaskManualAltitude::_updateSetpoints()
|
||||
* thrust along xy is required. The maximum thrust along xy depends on the thrust
|
||||
* setpoint along z-direction, which is computed in PositionControl.cpp.
|
||||
*/
|
||||
matrix::Vector3f sp{_sticks(0), _sticks(1), 0.0f};
|
||||
sp = (matrix::Dcmf(matrix::Eulerf(0.0f, 0.0f, _yaw)) * sp);
|
||||
Vector3f sp{_sticks(0), _sticks(1), 0.0f};
|
||||
sp = (Dcmf(Eulerf(0.0f, 0.0f, _yaw_sp)) * sp);
|
||||
|
||||
if (sp.length() > 1.0f) {
|
||||
sp.normalize();
|
||||
|
||||
Reference in New Issue
Block a user