Skip to content

Conversation

@shellixyz
Copy link
Collaborator

Should only control pitch and throttle when nav stateFlags & NAV_CTL_ALT
Needed for upcoming CRUISE 2D mode

Should only control pitch and throttle when nav stateFlags & NAV_CTL_ALT
Needed for upcoming CRUISE 2D mode
rollCorrection = constrain(rollCorrection, -DEGREES_TO_DECIDEGREES(navConfig()->fw.max_bank_angle), DEGREES_TO_DECIDEGREES(navConfig()->fw.max_bank_angle));
rcCommand[ROLL] = pidAngleToRcCommand(rollCorrection, pidProfile()->max_angle_inclination[FD_ROLL]);
}
// Speed controller - only apply in POS mode when NOT NAV_CTL_LAND
Copy link
Member

Choose a reason for hiding this comment

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

Now this is applied only if both ALT and POS controllers are active, while previously speed guard only required POS which is reasonable. Why change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For the moment all nav states using POS also use ALT so it won't change anything for those but for cruise 2D we need manual throttle control (no ALT) and we can't have both manual throttle control and min speed applied.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, you convinced me 😄

@digitalentity digitalentity added this to the 2.0 milestone May 31, 2018
@fiam fiam merged commit 99cbb3f into iNavFlight:development Jun 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants