FlightTask Auto: Adapt to new message and rename variable

This commit is contained in:
Simone Guscetti
2018-11-06 15:21:31 +01:00
committed by Dennis Mannhart
parent 82d4cd6dfa
commit be7416c823
2 changed files with 2 additions and 2 deletions
@@ -224,7 +224,7 @@ bool FlightTaskAuto::_evaluateTriplets()
if (triplet_update || (_current_state != previous_state)) {
_updateInternalWaypoints();
_updateAvoidanceWaypoints();
_deploy_gear = _sub_triplet_setpoint->get().current.deploy_gear;
_mission_gear = _sub_triplet_setpoint->get().current.landing_gear;
}
if (MPC_OBS_AVOID.get() && _sub_vehicle_status->get().is_rotary_wing) {
@@ -103,7 +103,7 @@ protected:
State _current_state{State::none};
float _target_acceptance_radius = 0.0f; /**< Acceptances radius of the target */
bool _deploy_gear = false;
int _mission_gear = landing_gear_s::GEAR_KEEP;
DEFINE_PARAMETERS_CUSTOM_PARENT(FlightTask,
(ParamFloat<px4::params::MPC_XY_CRUISE>) MPC_XY_CRUISE,