mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 07:23:33 +08:00
stop ignoring Wmissing-field-initializers and fix (#9912)
This commit is contained in:
@@ -429,16 +429,12 @@ void AttitudeEstimatorQ::task_main()
|
||||
last_time = now;
|
||||
|
||||
if (update(dt)) {
|
||||
vehicle_attitude_s att = {
|
||||
.timestamp = sensors.timestamp,
|
||||
.rollspeed = _rates(0),
|
||||
.pitchspeed = _rates(1),
|
||||
.yawspeed = _rates(2),
|
||||
|
||||
.q = {_q(0), _q(1), _q(2), _q(3)},
|
||||
.delta_q_reset = {},
|
||||
.quat_reset_counter = 0,
|
||||
};
|
||||
vehicle_attitude_s att = {};
|
||||
att.timestamp = sensors.timestamp;
|
||||
att.rollspeed = _rates(0);
|
||||
att.pitchspeed = _rates(1);
|
||||
att.yawspeed = _rates(2);
|
||||
_q.copyTo(att.q);
|
||||
|
||||
/* the instance count is not used here */
|
||||
int att_inst;
|
||||
|
||||
Reference in New Issue
Block a user