AP_HAL_SITL: Remove unused check

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2018-06-28 11:04:56 -03:00 committed by Francisco Ferreira
parent 10ffd89a0c
commit fb7c46bda0

View File

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