Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Engine ReCrank Max Try Rebased for CxPilot-7 #193

Conversation

loki077
Copy link
Contributor

@loki077 loki077 commented Sep 6, 2024

No description provided.

loki077 and others added 3 commits September 17, 2024 11:46
Added Param MAX_RETRY which If set 0 or less, 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.
@robertlong13 robertlong13 force-pushed the feature/SW-314-limits-on-cranking-retries-when-engine-failure branch from 3f03b98 to 4c1c2a6 Compare September 17, 2024 01:48
Copy link
Collaborator

@robertlong13 robertlong13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

state = ICE_STARTING;
// check if we should retry starting the engine
if (max_crank_retry <= 0 || crank_retry_ct < max_crank_retry) {
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Starting engine");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A suggestion - if we can display the attempt count on GCS, might help to check when max_crank_retry is high number
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Starting engine - attempt %d", crank_retry_ct);

@@ -175,6 +175,13 @@ const AP_Param::GroupInfo AP_ICEngine::var_info[] = {
// @Values: 0:Forward,1:Reverse
AP_GROUPINFO("CRANK_DIR", 19, AP_ICEngine, crank_direction, 0),

// @Param: STRT_MX_RTRY
// @DisplayName: Maximum number of retries
// @Description: 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if 0, then Engine max crank attempts reached

@Pradeep-Carbonix Pradeep-Carbonix marked this pull request as draft September 24, 2024 02:35
@robertlong13
Copy link
Collaborator

Closing this. We'll reopen something with the upstream gets merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants