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

Flightcomputer TGT orientation now correct - fixes #69 #72

Closed

Conversation

Peppie84
Copy link
Member

@Peppie84 Peppie84 commented Jun 1, 2014

No description provided.

@@ -254,7 +254,7 @@ private void OnAttitudeClick(int state)
if (!mFlightComputer.InputAllowed)
return;
mAttitude = (state < 0) ? 0 : state;
if (mMode < 4)
if (mMode < 3)
Copy link
Contributor

Choose a reason for hiding this comment

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

Wow, that turned out to be simple. Though at some point we should probably replace these integer flags with proper enums.

Discussion question: in both Cilph's and Peppie23's version of the code, the flight computer will stay in CUSTOM mode (mMode = 7) when you click an attitude button. This basically amounts to the GRD+/- buttons having no effect until you manually change to a different mode. Is this desired behavior?

Copy link
Contributor

Choose a reason for hiding this comment

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

This bugs the hell out of me, so I'd say no, and it should be scheduled for a fix after 1.4.0

@wms wms added this to the 1.4.0 milestone Jun 1, 2014
@wms
Copy link
Contributor

wms commented Jun 2, 2014

@wms wms added the Staged label Jun 2, 2014
@wms wms mentioned this pull request Jun 2, 2014
@erendrake
Copy link
Member

Merged as part of #78

@erendrake erendrake closed this Jun 5, 2014
@Peppie84 Peppie84 deleted the fix-issue-69 branch June 6, 2014 21:56
Peppie84 added a commit that referenced this pull request Jan 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants