PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <Landingslope.hpp>
Public Member Functions | |
Landingslope ()=default | |
~Landingslope ()=default | |
float | getLandingSlopeRelativeAltitude (float wp_landing_distance) |
float | getLandingSlopeRelativeAltitudeSave (float wp_landing_distance, float bearing_lastwp_currwp, float bearing_airplane_currwp) |
float | getFlareCurveRelativeAltitudeSave (float wp_landing_distance, float bearing_lastwp_currwp, float bearing_airplane_currwp) |
void | update (float landing_slope_angle_rad_new, float flare_relative_alt_new, float motor_lim_relative_alt_new, float H1_virt_new) |
float | landing_slope_angle_rad () |
float | flare_relative_alt () |
float | motor_lim_relative_alt () |
float | flare_length () |
float | horizontal_slope_displacement () |
Static Public Member Functions | |
static float | getLandingSlopeRelativeAltitude (float wp_landing_distance, float horizontal_slope_displacement, float landing_slope_angle_rad) |
static float | getLandingSlopeAbsoluteAltitude (float wp_landing_distance, float wp_landing_altitude, float horizontal_slope_displacement, float landing_slope_angle_rad) |
static float | getLandingSlopeWPDistance (float slope_altitude, float wp_landing_altitude, float horizontal_slope_displacement, float landing_slope_angle_rad) |
Private Member Functions | |
void | calculateSlopeValues () |
Private Attributes | |
float | _landing_slope_angle_rad {0.0f} |
phi in the plot More... | |
float | _flare_relative_alt {0.0f} |
h_flare,rel in the plot More... | |
float | _motor_lim_relative_alt {0.0f} |
float | _H1_virt {0.0f} |
H1 in the plot. More... | |
float | _H0 {0.0f} |
h_flare,rel + H1 in the plot More... | |
float | _d1 {0.0f} |
d1 in the plot More... | |
float | _flare_constant {0.0f} |
float | _flare_length {0.0f} |
d1 + delta d in the plot More... | |
float | _horizontal_slope_displacement {0.0f} |
delta d in the plot More... | |
Definition at line 45 of file Landingslope.hpp.
|
default |
|
default |
|
private |
Definition at line 59 of file Landingslope.cpp.
References _d1, _flare_constant, _flare_length, _flare_relative_alt, _H0, _H1_virt, _horizontal_slope_displacement, and _landing_slope_angle_rad.
Referenced by update().
|
inline |
Definition at line 112 of file Landingslope.hpp.
References _flare_length.
Referenced by FixedwingPositionControl::control_landing(), and FixedwingPositionControl::landing_status_publish().
|
inline |
Definition at line 110 of file Landingslope.hpp.
References _flare_relative_alt.
Referenced by FixedwingPositionControl::control_landing().
float Landingslope::getFlareCurveRelativeAltitudeSave | ( | float | wp_landing_distance, |
float | bearing_lastwp_currwp, | ||
float | bearing_airplane_currwp | ||
) |
Definition at line 89 of file Landingslope.cpp.
References _flare_constant, _flare_length, _H0, _H1_virt, f(), math::max(), and math::radians().
Referenced by FixedwingPositionControl::control_landing().
|
static |
Definition at line 116 of file Landingslope.cpp.
References getLandingSlopeRelativeAltitude().
Referenced by MissionFeasibilityChecker::checkFixedWingLanding().
float Landingslope::getLandingSlopeRelativeAltitude | ( | float | wp_landing_distance | ) |
Definition at line 69 of file Landingslope.cpp.
References _horizontal_slope_displacement, and _landing_slope_angle_rad.
Referenced by getLandingSlopeAbsoluteAltitude(), and getLandingSlopeRelativeAltitudeSave().
|
static |
Definition at line 105 of file Landingslope.cpp.
float Landingslope::getLandingSlopeRelativeAltitudeSave | ( | float | wp_landing_distance, |
float | bearing_lastwp_currwp, | ||
float | bearing_airplane_currwp | ||
) |
Definition at line 76 of file Landingslope.cpp.
References f(), getLandingSlopeRelativeAltitude(), and math::radians().
Referenced by FixedwingPositionControl::control_landing().
|
static |
Definition at line 127 of file Landingslope.cpp.
References horizontal_slope_displacement().
Referenced by MissionFeasibilityChecker::checkFixedWingLanding().
|
inline |
Definition at line 113 of file Landingslope.hpp.
References _horizontal_slope_displacement.
Referenced by getLandingSlopeWPDistance(), and FixedwingPositionControl::landing_status_publish().
|
inline |
Definition at line 109 of file Landingslope.hpp.
References _landing_slope_angle_rad.
Referenced by FixedwingPositionControl::landing_status_publish().
|
inline |
Definition at line 111 of file Landingslope.hpp.
References _motor_lim_relative_alt.
Referenced by FixedwingPositionControl::control_landing().
void Landingslope::update | ( | float | landing_slope_angle_rad_new, |
float | flare_relative_alt_new, | ||
float | motor_lim_relative_alt_new, | ||
float | H1_virt_new | ||
) |
Definition at line 45 of file Landingslope.cpp.
References _flare_relative_alt, _H1_virt, _landing_slope_angle_rad, _motor_lim_relative_alt, and calculateSlopeValues().
Referenced by FixedwingPositionControl::init().
|
private |
d1 in the plot
Definition at line 54 of file Landingslope.hpp.
Referenced by calculateSlopeValues().
|
private |
Definition at line 55 of file Landingslope.hpp.
Referenced by calculateSlopeValues(), and getFlareCurveRelativeAltitudeSave().
|
private |
d1 + delta d in the plot
Definition at line 56 of file Landingslope.hpp.
Referenced by calculateSlopeValues(), flare_length(), and getFlareCurveRelativeAltitudeSave().
|
private |
h_flare,rel in the plot
Definition at line 50 of file Landingslope.hpp.
Referenced by calculateSlopeValues(), flare_relative_alt(), and update().
|
private |
h_flare,rel + H1 in the plot
Definition at line 53 of file Landingslope.hpp.
Referenced by calculateSlopeValues(), and getFlareCurveRelativeAltitudeSave().
|
private |
H1 in the plot.
Definition at line 52 of file Landingslope.hpp.
Referenced by calculateSlopeValues(), getFlareCurveRelativeAltitudeSave(), and update().
|
private |
delta d in the plot
Definition at line 57 of file Landingslope.hpp.
Referenced by calculateSlopeValues(), getLandingSlopeRelativeAltitude(), and horizontal_slope_displacement().
|
private |
phi in the plot
Definition at line 49 of file Landingslope.hpp.
Referenced by calculateSlopeValues(), getLandingSlopeRelativeAltitude(), landing_slope_angle_rad(), and update().
|
private |
Definition at line 51 of file Landingslope.hpp.
Referenced by motor_lim_relative_alt(), and update().