-
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
ArduPlane: add climb before turn to AUTOLAND #29142
base: master
Are you sure you want to change the base?
Conversation
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 think that's it just _m on values in meters.
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.
Could we reuse RTL_CLIMB_MIN
?
388f4c8
to
f29f06d
Compare
@@ -152,14 +167,41 @@ bool ModeAutoLand::_enter() | |||
void ModeAutoLand::update() | |||
{ | |||
plane.calc_nav_roll(); | |||
|
|||
// check if initial climb before turn altitude has been reached | |||
const float altitude = plane.relative_ground_altitude(false,false); |
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.
why is this an above home alt? why not use the terrain alt if available?
// @User: Standard | ||
AP_GROUPINFO("OPTIONS", 4, ModeAutoLand, options, 0), | ||
|
||
// @Param: CLIMB | ||
// @DisplayName: Climb before turning altitude | ||
// @Description: Vehicle will climb with limited turn ability (LEVEL_ROLL_LIMIT) upon mode entry to this altitude, before proceeding to loiter-to-alt and landing legs. If a value less than AUTOLAND_WP_ALT is entered, AUTOLAND_WP_ALT will be used. |
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.
we need to specify what type of altitude it is using
Alternate to #29135
After test flying using a TX GCS to change climb to altitudes, I agree with Tim that this is easier to use then options in #29135...and it actually uses less flash so I am closing #29135