|
|
|
@ -147,7 +147,7 @@ void AP_Avoidance::init(void)
@@ -147,7 +147,7 @@ void AP_Avoidance::init(void)
|
|
|
|
|
|
|
|
|
|
if (_obstacles == nullptr) { |
|
|
|
|
// dynamic RAM allocation of _obstacles[] failed, disable gracefully
|
|
|
|
|
hal.console->printf("Unable to initialize Avoidance obstacle list\n"); |
|
|
|
|
DEV_PRINTF("Unable to initialize Avoidance obstacle list\n"); |
|
|
|
|
// disable ourselves to avoid repeated allocation attempts
|
|
|
|
|
_enabled.set(0); |
|
|
|
|
return; |
|
|
|
|