diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-06-30 09:59:45 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-06-30 09:59:45 +0200 |
commit | 857b843d445f59f2dc393e4d5f879fc56f77a0e0 (patch) | |
tree | a5167e5c336b4f8fcb1550317c7e26da7bfedbfe /src/modules/fw_pos_control_l1/landingslope.cpp | |
parent | 28a31708f98eefa4ceb04617f2da3dd7892c99fa (diff) | |
parent | 92adbe9216c96c53d1baa4eb1e14b4ede272c080 (diff) | |
download | px4-firmware-857b843d445f59f2dc393e4d5f879fc56f77a0e0.tar.gz px4-firmware-857b843d445f59f2dc393e4d5f879fc56f77a0e0.tar.bz2 px4-firmware-857b843d445f59f2dc393e4d5f879fc56f77a0e0.zip |
Merge pull request #1095 from DonLakeFlyer/CompilerWarnings
Fix compiler warnings
Diffstat (limited to 'src/modules/fw_pos_control_l1/landingslope.cpp')
-rw-r--r-- | src/modules/fw_pos_control_l1/landingslope.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/fw_pos_control_l1/landingslope.cpp b/src/modules/fw_pos_control_l1/landingslope.cpp index 8ce465fe8..42e00da05 100644 --- a/src/modules/fw_pos_control_l1/landingslope.cpp +++ b/src/modules/fw_pos_control_l1/landingslope.cpp @@ -46,16 +46,16 @@ #include <unistd.h> #include <mathlib/mathlib.h> -void Landingslope::update(float landing_slope_angle_rad, - float flare_relative_alt, - float motor_lim_relative_alt, - float H1_virt) +void Landingslope::update(float landing_slope_angle_rad_new, + float flare_relative_alt_new, + float motor_lim_relative_alt_new, + float H1_virt_new) { - _landing_slope_angle_rad = landing_slope_angle_rad; - _flare_relative_alt = flare_relative_alt; - _motor_lim_relative_alt = motor_lim_relative_alt; - _H1_virt = H1_virt; + _landing_slope_angle_rad = landing_slope_angle_rad_new; + _flare_relative_alt = flare_relative_alt_new; + _motor_lim_relative_alt = motor_lim_relative_alt_new; + _H1_virt = H1_virt_new; calculateSlopeValues(); } |