land detector FW uniform initialization

This commit is contained in:
Daniel Agar
2017-08-31 22:49:44 -04:00
parent 90819b2852
commit 18d29d5a73
2 changed files with 22 additions and 41 deletions
@@ -41,28 +41,15 @@
#include <px4_config.h>
#include <px4_defines.h>
#include <cmath>
#include <drivers/drv_hrt.h>
#include "FixedwingLandDetector.h"
namespace land_detector
{
FixedwingLandDetector::FixedwingLandDetector() :
_paramHandle(),
_params(),
_controlStateSub(-1),
_armingSub(-1),
_airspeedSub(-1),
_controlState{},
_arming{},
_airspeed{},
_velocity_xy_filtered(0.0f),
_velocity_z_filtered(0.0f),
_airspeed_filtered(0.0f),
_accel_horz_lp(0.0f)
FixedwingLandDetector::FixedwingLandDetector()
{
_paramHandle.maxVelocity = param_find("LNDFW_VEL_XY_MAX");
_paramHandle.maxClimbRate = param_find("LNDFW_VEL_Z_MAX");