Browse Source

HAL_SITL: fixed SITL engine mul error

expression without get() was treated as int
master
Andrew Tridgell 9 years ago
parent
commit
4d01cb1716
  1. 2
      libraries/AP_HAL_SITL/SITL_State.cpp

2
libraries/AP_HAL_SITL/SITL_State.cpp

@ -375,7 +375,7 @@ void SITL_State::_simulator_servos(SITL::Aircraft::sitl_input &input) @@ -375,7 +375,7 @@ void SITL_State::_simulator_servos(SITL::Aircraft::sitl_input &input)
last_pwm_output[i] = pwm_output[i];
}
float engine_mul = _sitl?_sitl->engine_mul:1;
float engine_mul = _sitl?_sitl->engine_mul.get():1;
bool motors_on = false;
if (_vehicle == ArduPlane) {

Loading…
Cancel
Save