mirror of https://github.com/ArduPilot/ardupilot
SITL: fixed running example firmwares
don't call model update with no sitl instance
This commit is contained in:
parent
7b5b1ba59f
commit
9428e41301
|
@ -607,7 +607,11 @@ void Aircraft::update_home()
|
||||||
void Aircraft::update_model(const struct sitl_input &input)
|
void Aircraft::update_model(const struct sitl_input &input)
|
||||||
{
|
{
|
||||||
local_ground_level = 0.0f;
|
local_ground_level = 0.0f;
|
||||||
update(input);
|
if (sitl != nullptr) {
|
||||||
|
update(input);
|
||||||
|
} else {
|
||||||
|
time_advance();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue