Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Adds support for the home long press to recenter event #2888

Merged
merged 1 commit into from
Mar 9, 2020

Conversation

keianhzo
Copy link
Contributor

Adds support for the home long press to recenter event

@keianhzo keianhzo added this to the #10 features milestone Feb 27, 2020
@keianhzo keianhzo self-assigned this Feb 27, 2020
@keianhzo keianhzo requested a review from bluemarvin February 27, 2020 16:43
Copy link
Contributor

@bluemarvin bluemarvin left a comment

Choose a reason for hiding this comment

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

I don't think this is working correctly. STR:

  1. Look up and long press.
  2. Look forward and long press.

expected:
Window is in front of user.

actual:
Window is under the user.

@bluemarvin
Copy link
Contributor

I should say, this was on the G2. I think the issue is that Pico recenter doesn't just recenter the heading, they recenter the pitch of the head too. I'll test on the Neo 2.

@bluemarvin
Copy link
Contributor

It does work as expected on the Neo2. I guess I should compare how it works on the Go.

@bluemarvin
Copy link
Contributor

The Go works like I expected where only the heading is re-centered. So re-centered the pitch is something unique to the pico G2. I'm not sure what the correct solution for this is.

@keianhzo keianhzo force-pushed the v10/pico_recenter branch from 6b85332 to 2768159 Compare March 9, 2020 10:16
Comment on lines -289 to 293
// Until we can get the new heading don't reset it on the Neo 2
if (m.type != kTypeNeo2) {
// m.reorientMatrix = aMatrix;
if (m.type == kTypeNeo2) {
m.reorientMatrix = aMatrix;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I just disabled it for the G2 and I think it all works as expected.

@bluemarvin bluemarvin merged commit d659400 into master Mar 9, 2020
@bluemarvin bluemarvin deleted the v10/pico_recenter branch March 9, 2020 21:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants