mirror of https://github.com/ArduPilot/ardupilot
AP_ICEngine: add support for starter relay
This commit is contained in:
parent
ab0755d0d8
commit
86a199c1bf
|
@ -622,6 +622,13 @@ void AP_ICEngine::set_starter(bool on)
|
||||||
#if AP_ICENGINE_TCA9554_STARTER_ENABLED
|
#if AP_ICENGINE_TCA9554_STARTER_ENABLED
|
||||||
tca9554_starter.set_starter(on);
|
tca9554_starter.set_starter(on);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if AP_RELAY_ENABLED
|
||||||
|
AP_Relay *relay = AP::relay();
|
||||||
|
if (relay != nullptr) {
|
||||||
|
relay->set(AP_Relay_Params::FUNCTION::ICE_STARTER, on);
|
||||||
|
}
|
||||||
|
#endif // AP_RELAY_ENABLED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue