mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_HAL_SITL: Remove unused check
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
10ffd89a0c
commit
fb7c46bda0
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user