-
Notifications
You must be signed in to change notification settings - Fork 0
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
Engine ReCrank Max Try Rebased for CxPilot-7 #193
Conversation
2403a58
to
177753a
Compare
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.
3f03b98
to
4c1c2a6
Compare
There was a problem hiding this 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"); |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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
Closing this. We'll reopen something with the upstream gets merged. |
No description provided.