Browse Source

AP_HAL_SITL: Remove unused check

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
master
Patrick José Pereira 7 years ago committed by Francisco Ferreira
parent
commit
fb7c46bda0
  1. 4
      libraries/AP_HAL_SITL/SITL_State.cpp

4
libraries/AP_HAL_SITL/SITL_State.cpp

@ -399,10 +399,6 @@ void SITL_State::_simulator_servos(struct sitl_input &input) @@ -399,10 +399,6 @@ void SITL_State::_simulator_servos(struct sitl_input &input)
// never allow negative wind velocity
wind_speed = MAX(wind_speed, 0);
}
if (altitude < 0) {
altitude = 0;
}
input.wind.speed = wind_speed;
input.wind.direction = wind_direction;

Loading…
Cancel
Save