mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 14:23:34 +08:00
add matrix copyTo
This commit is contained in:
committed by
Lorenz Meier
parent
f43f3baa02
commit
ecb2511a7b
@@ -1001,10 +1001,7 @@ FixedwingAttitudeControl::task_main()
|
||||
_att_sp.thrust = _manual.z;
|
||||
|
||||
Quatf q(Eulerf(_att_sp.roll_body, _att_sp.pitch_body, _att_sp.yaw_body));
|
||||
_att_sp.q_d[0] = q(0);
|
||||
_att_sp.q_d[1] = q(1);
|
||||
_att_sp.q_d[2] = q(2);
|
||||
_att_sp.q_d[3] = q(3);
|
||||
q.copyTo(_att_sp.q_d);
|
||||
_att_sp.q_d_valid = true;
|
||||
|
||||
int instance;
|
||||
|
||||
Reference in New Issue
Block a user