diff --git a/libraries/AP_Mount/AP_Mount.cpp b/libraries/AP_Mount/AP_Mount.cpp index 206130ef5d84a..03caeeb29f74b 100644 --- a/libraries/AP_Mount/AP_Mount.cpp +++ b/libraries/AP_Mount/AP_Mount.cpp @@ -470,13 +470,19 @@ void AP_Mount::init() // init new instance if (_backends[instance] != nullptr) { - _backends[instance]->init(); if (!primary_set) { _primary = instance; primary_set = true; } } } + + // init each instance, do it after all instances were created, so that they all know things + for (uint8_t instance=0; instanceinit(); + } + } } // update - give mount opportunity to update servos. should be called at 10hz or higher