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

Rotwing guidance bank fix #3271

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Dennis-Wijngaarden
Copy link
Contributor

  • Limit lateral acceleration in guidance_indi_hybrid
  • Fix bank angle in WLS outer loop(s)

@EwoudSmeur, please verify

Comment on lines +46 to +50
#ifdef PREFLIGHT_CHECK_BYPASS
bool preflight_bypass = PREFLIGHT_CHECK_BYPASS;
#else
bool preflight_bypass = FALSE;
#endif
Copy link
Member

Choose a reason for hiding this comment

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

For coherence, can it be written like this ?

Suggested change
#ifdef PREFLIGHT_CHECK_BYPASS
bool preflight_bypass = PREFLIGHT_CHECK_BYPASS;
#else
bool preflight_bypass = FALSE;
#endif
#ifndef PREFLIGHT_CHECK_BYPASS
#define PREFLIGHT_CHECK_BYPASS FALSE
#endif
bool preflight_bypass = PREFLIGHT_CHECK_BYPASS;

@@ -118,7 +118,7 @@ struct FloatMat33 Ga_inv;
struct FloatVect3 control_increment; // [dtheta, dphi, dthrust]

float filter_cutoff = GUIDANCE_INDI_FILTER_CUTOFF;
float guidance_indi_max_bank = GUIDANCE_H_MAX_BANK;
float guidance_indi_max_bank = DegOfRad(GUIDANCE_H_MAX_BANK);
Copy link
Member

Choose a reason for hiding this comment

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

I don't see why this should be converted to degrees, to convert it again to radians later

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.

None yet

3 participants