-
Notifications
You must be signed in to change notification settings - Fork 18k
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
Adjust slope terminology #29087
base: master
Are you sure you want to change the base?
Adjust slope terminology #29087
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,23 +88,23 @@ const AP_Param::Info Plane::var_info[] = { | |
// @User: Advanced | ||
GSCALAR(stab_pitch_down, "STAB_PITCH_DOWN", 2.0f), | ||
|
||
// @Param: GLIDE_SLOPE_MIN | ||
// @DisplayName: Glide slope minimum | ||
// @Description: This controls the minimum altitude change for a waypoint before a glide slope will be used instead of an immediate altitude change. The default value is 15 meters, which helps to smooth out waypoint missions where small altitude changes happen near waypoints. If you don't want glide slopes to be used in missions then you can set this to zero, which will disable glide slope calculations. Otherwise you can set it to a minimum number of meters of altitude error to the destination waypoint before a glide slope will be used to change altitude. | ||
// @Param: ALT_SLOPE_MIN | ||
// @DisplayName: Altitude slope minimum | ||
// @Description: This controls the minimum altitude change for a waypoint before an altitude slope will be used instead of an immediate altitude change. The default value is 15 meters, which helps to smooth out waypoint missions where small altitude changes happen near waypoints. If you don't want altitude slopes to be used in missions then you can set this to zero, which will disable altitude slope calculations. Otherwise you can set it to a minimum number of meters of altitude error to the destination waypoint before an altitude slope will be used to change altitude. | ||
// @Range: 0 1000 | ||
// @Increment: 1 | ||
// @Units: m | ||
// @User: Advanced | ||
GSCALAR(glide_slope_min, "GLIDE_SLOPE_MIN", 15), | ||
GSCALAR(alt_slope_min, "ALT_SLOPE_MIN", 15), | ||
|
||
// @Param: GLIDE_SLOPE_THR | ||
// @DisplayName: Glide slope threshold | ||
// @Description: This controls the height above the glide slope the plane may be before rebuilding a glide slope. This is useful for smoothing out an autotakeoff | ||
// @Param: ALT_SLOPE_THRESH | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe ALT_ERROR_THRESH ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. docs should also make it clear it is only when above, not below There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. definitely not ALT_ERROR_THRESH that could mean any ALT error that has nothing to do with this slope functionality. IMO it would be confusing. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ALT_SLOPE_MAXHGT? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO that doesn't convey what the parameter does. ALT_SLOPE_RECALC is the best I can think of, and the display name could be "Altitude slope recalculation threshold". I think the description already makes it clear that this only applies when above the slope but maybe it should be a part of the display name too There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps, but I think ALT_SLOPE_MAXHGT does convey what it refers to. Specifically its height (not altitude) and its above (but not below) the altitude slope, which triggers the recalculation. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It does make sense, I agree. Is there anything else in the display name or description that you think should be changed? |
||
// @DisplayName: Altitude slope threshold | ||
// @Description: This controls the height above the altitude slope the plane may be before rebuilding it. This is useful for smoothing out an auto-takeoff. | ||
// @Range: 0 100 | ||
// @Increment: 1 | ||
// @Units: m | ||
// @User: Advanced | ||
GSCALAR(glide_slope_threshold, "GLIDE_SLOPE_THR", 5.0), | ||
GSCALAR(alt_slope_threshold, "ALT_SLOPE_THRESH", 5.0), | ||
|
||
// @Param: STICK_MIXING | ||
// @DisplayName: Stick Mixing | ||
|
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.
maybe ALT_DELTA_MIN is better? The problem with "SLOPE" is it sounds like an angle
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.
Sure but if you read the description, the word "slope" appears multiple times as it describes what the functionality is - altitude slope calculations.
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.
I agree that we cannot omit the ALT_SLOPE_* prefix
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.
ALT_SLOPE_DELTA?
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.
Yes