navigator: use new Param class

This commit is contained in:
Beat Küng
2018-03-13 17:35:15 +01:00
parent 32eaf278ad
commit f2dddc65a5
30 changed files with 172 additions and 207 deletions
+4 -14
View File
@@ -59,26 +59,16 @@
#define STATE_TIMEOUT 10000000 // [us] Maximum time to spend in any state
PrecLand::PrecLand(Navigator *navigator, const char *name) :
MissionBlock(navigator, name),
PrecLand::PrecLand(Navigator *navigator) :
MissionBlock(navigator),
ModuleParams(navigator),
_targetPoseSub(0),
_target_pose_valid(false),
_state_start_time(0),
_search_cnt(0),
_approach_alt(0),
_param_timeout(this, "PLD_BTOUT", false),
_param_hacc_rad(this, "PLD_HACC_RAD", false),
_param_final_approach_alt(this, "PLD_FAPPR_ALT", false),
_param_search_alt(this, "PLD_SRCH_ALT", false),
_param_search_timeout(this, "PLD_SRCH_TOUT", false),
_param_max_searches(this, "PLD_MAX_SRCH", false),
_param_acceleration_hor(this, "MPC_ACC_HOR", false),
_param_xy_vel_cruise(this, "MPC_XY_CRUISE", false)
_approach_alt(0)
{
/* load initial params */
updateParams();
}
PrecLand::~PrecLand()