ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Param for Max Retrial of Engine Cranking.

Open loki077 opened this issue 1 year ago • 1 comments

As we use a common battery for Avionics and Engine Cranking we would like to have an option to limit the number of retrials so that it doesn't drain that battery completely. Obvious choice is to separate the batteries but I still think there could be some use of this feature.

My Implementation is by adding Param MAX_RETRY which If set 0 then there is no limit to retrials. If set to a value greater than 0 then the engine will retry starting the engine this many times before giving up. Also the counter to track retrials resets to zero on disarm (could be done only on power cycle rather than disarm). If needed to be override can be done by setting the param to 0.

I would like to get more ideas on the method of its implementation. I have not yest tested this code.

Other ways to implement this is by just keep increasing the time between retrials.

loki077 avatar Aug 26 '24 02:08 loki077

@peterbarker @tridge FYI

loki077 avatar Aug 26 '24 02:08 loki077