mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AC_PrecLand: stop ignoring return values on methods
This commit is contained in:
parent
71d16557fa
commit
dd62489f5e
@ -131,7 +131,10 @@ void SIM_Precland::update(const Location &loc, const Vector3f &position)
|
|||||||
static_cast<int32_t>(_origin_height),
|
static_cast<int32_t>(_origin_height),
|
||||||
Location::AltFrame::ABOVE_HOME);
|
Location::AltFrame::ABOVE_HOME);
|
||||||
Vector2f center;
|
Vector2f center;
|
||||||
origin_center.get_vector_xy_from_origin_NE(center);
|
if (!origin_center.get_vector_xy_from_origin_NE(center)) {
|
||||||
|
_healthy = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
center = center * 0.01f; // cm to m
|
center = center * 0.01f; // cm to m
|
||||||
|
|
||||||
switch (_type) {
|
switch (_type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user