mirror of https://github.com/ArduPilot/ardupilot
AP_Arming: Add support for AP_Generator frontend
This commit is contained in:
parent
66285b65ce
commit
2dc684622e
|
@ -31,7 +31,7 @@
|
|||
#include <AP_AHRS/AP_AHRS.h>
|
||||
#include <AP_Baro/AP_Baro.h>
|
||||
#include <AP_RangeFinder/AP_RangeFinder.h>
|
||||
#include <AP_Generator/AP_Generator_RichenPower.h>
|
||||
#include <AP_Generator/AP_Generator.h>
|
||||
#include <AP_Terrain/AP_Terrain.h>
|
||||
#include <AP_ADSB/AP_ADSB.h>
|
||||
#include <AP_Scripting/AP_Scripting.h>
|
||||
|
@ -1090,7 +1090,7 @@ bool AP_Arming::aux_auth_checks(bool display_failure)
|
|||
bool AP_Arming::generator_checks(bool display_failure) const
|
||||
{
|
||||
#if GENERATOR_ENABLED
|
||||
const AP_Generator_RichenPower *generator = AP::generator();
|
||||
const AP_Generator *generator = AP::generator();
|
||||
if (generator == nullptr) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue