mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 05:13:34 +08:00
clang-tidy remove redundant init
This commit is contained in:
@@ -53,9 +53,7 @@ namespace control
|
||||
Block::Block(SuperBlock *parent, const char *name) :
|
||||
_name(name),
|
||||
_parent(parent),
|
||||
_dt(0),
|
||||
_subscriptions(),
|
||||
_params()
|
||||
_dt(0)
|
||||
{
|
||||
if (getParent() != nullptr) {
|
||||
getParent()->getChildren().add(this);
|
||||
|
||||
@@ -103,11 +103,7 @@ class __EXPORT SuperBlock :
|
||||
public:
|
||||
friend class Block;
|
||||
// methods
|
||||
SuperBlock(SuperBlock *parent, const char *name) :
|
||||
Block(parent, name),
|
||||
_children()
|
||||
{
|
||||
}
|
||||
SuperBlock(SuperBlock *parent, const char *name) : Block(parent, name) {}
|
||||
virtual ~SuperBlock() {};
|
||||
virtual void setDt(float dt);
|
||||
virtual void updateParams()
|
||||
|
||||
@@ -59,7 +59,6 @@ RunwayTakeoff::RunwayTakeoff() :
|
||||
_init_yaw(0),
|
||||
_climbout(false),
|
||||
_throttle_ramp_time(2 * 1e6),
|
||||
_start_wp(),
|
||||
_runway_takeoff_enabled(this, "TKOFF"),
|
||||
_heading_mode(this, "HDG"),
|
||||
_nav_alt(this, "NAV_ALT"),
|
||||
|
||||
Reference in New Issue
Block a user