flight tasks: refactor BlockParam -> Param and handle param updates

This commit is contained in:
Beat Küng
2018-04-11 07:47:06 +02:00
parent 2e620cf1d4
commit 0eaa6222a2
19 changed files with 89 additions and 86 deletions
@@ -40,14 +40,6 @@
using namespace matrix;
FlightTaskManualAltitude::FlightTaskManualAltitude(control::SuperBlock *parent, const char *name) :
FlightTaskManualStabilized(parent, name),
_vel_max_down(parent, "MPC_Z_VEL_MAX_DN", false),
_vel_max_up(parent, "MPC_Z_VEL_MAX_UP", false),
_vel_hold_thr_z(parent, "MPC_HOLD_MAX_Z", false)
{}
void FlightTaskManualAltitude::_scaleSticks()
{
/* Reuse same scaling as for stabilized */