mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
Plane: fix typo, check wp_nav is initialized
This commit is contained in:
parent
a91da2e803
commit
0d1e50b50b
@ -435,7 +435,7 @@ bool QuadPlane::setup(void)
|
||||
}
|
||||
AP_Param::load_object_from_eeprom(pos_control, pos_control->var_info);
|
||||
wp_nav = new AC_WPNav(inertial_nav, ahrs, *pos_control, *attitude_control);
|
||||
if (!pos_control) {
|
||||
if (!wp_nav) {
|
||||
hal.console->printf("%s wp_nav\n", strUnableToAllocate);
|
||||
goto failed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user