mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 23:23:33 +08:00
fw_att_control: proper struct initialization
This commit is contained in:
@@ -295,15 +295,15 @@ FixedwingAttitudeControl::FixedwingAttitudeControl() :
|
|||||||
_setpoint_valid(false)
|
_setpoint_valid(false)
|
||||||
{
|
{
|
||||||
/* safely initialize structs */
|
/* safely initialize structs */
|
||||||
_att = {0};
|
_att = {};
|
||||||
_accel = {0};
|
_accel = {};
|
||||||
_att_sp = {0};
|
_att_sp = {};
|
||||||
_manual = {0};
|
_manual = {};
|
||||||
_airspeed = {0};
|
_airspeed = {};
|
||||||
_vcontrol_mode = {0};
|
_vcontrol_mode = {};
|
||||||
_actuators = {0};
|
_actuators = {};
|
||||||
_actuators_airframe = {0};
|
_actuators_airframe = {};
|
||||||
_global_pos = {0};
|
_global_pos = {};
|
||||||
|
|
||||||
|
|
||||||
_parameter_handles.tconst = param_find("FW_ATT_TC");
|
_parameter_handles.tconst = param_find("FW_ATT_TC");
|
||||||
|
|||||||
Reference in New Issue
Block a user