-
Notifications
You must be signed in to change notification settings - Fork 77
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
Implement Head Tracking #94
Conversation
erff, seems github is refusing to rebase because of "too many changes". |
23d5d0f
to
177b821
Compare
Rebased and pushed, with whitespace fixes. |
- extract functions from ht.c to math.[ch]
I've not had chance to try this functionality but I noticed something in the description I thought worth commenting on.
This is good, but ideally you'd want a quick way to do this reset as you might have to do it mid flight. Maybe a long click on the right button of the goggles if the Headtracker is enabled? (short click remaining as being record on/off) |
As far as i can tell, this works nicely. The bars on the tx follow the goggles movement. Would be good to have somebody with an gimbal try it too tho. For button interaction: long press of the right button is currently used to modify the top fan speed (quick de-fog). Feel like it might be a better idea to get this merged and take stock of the button interactions in another PR, potentially also implementing #27 |
My test of the Headtracker. In conclusion it worked fine. |
Implementation of Head Tracking.
The head tracker in the HDZero goggles outputs the PPM signal on the HT port on the goggles with the following channel layout
Setup
In the goggles "Head Tracking" page the "Tracking" option should be set to "On", the the goggles should be resting on a level surface and the "Calibrate" option should be selected. I find that resting them on a book on the left and right side, with the face plate above the desk gives the best results.
The "Max Angle" option is used to set the angular limits for the head tracker, i.e. how far your head moves to reach full deflection on the PPM signal. The best way to do this is to first get you head in natural resting position when flying and set the centre point using the "Set Center" option, then select the "Max Angle" option and adjust the value while moving your head left/right, up&down until you get the desired range on the PPM bars at the bottom of the screen.
Usage
When you use the head tracking function, you need to enter the "Head Tracking" page and select the "Set Center" option. This will reset the centre/home point for the goggles, so you need to do this when facing the direction and holding you head in you natural resting position when flying.