66 TransitionToFixedWing = 1,
67 TransitionToMulticopter = 2,
79 Eigen::Vector3f computeAccelerationSetpointDuringTransition(
80 std::optional<float> back_transition_deceleration_m_s2 = std::nullopt);
82 State getCurrentState()
const {
return _current_state; }
86 rclcpp::Publisher<px4_msgs::msg::VehicleCommand>::SharedPtr _vehicle_command_pub;
87 rclcpp::Subscription<px4_msgs::msg::VtolVehicleStatus>::SharedPtr _vtol_vehicle_status_sub;
88 SharedSubscriptionCallbackInstance _vehicle_local_position_cb;
89 rclcpp::Time _last_command_sent;
90 rclcpp::Time _last_vtol_vehicle_status_received{0, 0, _node.get_clock()->get_clock_type()};
91 rclcpp::Time _last_pitch_integrator_update{0, 0, _node.get_clock()->get_clock_type()};
93 float _vehicle_heading{NAN};
94 float _decel_error_bt_int{0.f};
96 Eigen::Vector2f _vehicle_acceleration_xy{NAN, NAN};
98 State _current_state{State::Undefined};
100 float computePitchSetpointDuringBacktransition(
101 std::optional<float> back_transition_deceleration_m_s2 = std::nullopt);