-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Walksnail Serial gimbal and headtracker support #10109
Conversation
Needs plumbing so we have a gimbal task running to send gumbal updates
Keep it out of F722 for testing builds, for now.
Start plumbing task. Still need initialization
Time to wire things up and test.
I meant hardware to do headtracking? Like anything that communicates with the radio (wirelessly maybe) to mix it into the rc link |
Will this work on any gimbal with a UART? I would like to use this one. |
I have only tested the walksnail one. If it is is the same, it should work. |
Okay, thanks. Just out of curiosity and since I cant find this information elsewhere, how do the goggles transmit the head tracking data to the aircraft? I am assuming it is through the vtx? Can the vtx transmit the pwm signal to the FC so that you can just use pwm signal instead? |
The built in head tracking is sent from the goggles to the VTX, VTX has a cable that goes to the gimbal and the commands are passed. The goggles also have head tracking out via 3.5mm jack, that can be used like normal head tracking sent to the FC via radio link, and in return can be sent to the gimbal if you directly connect the pwm cables, bypassing the VTX option. Adding the option for UART control instead of pwm would simplify the wiring as well as allow you to set parameters via CLI and a host of other possibilities. |
Are you on firmware 3.2 for the GM3 gimbal? I’m curious if this has been tested since they released the new firmware. I’ve have this working on the old firmware but don’t know if upgrading will still work. There is a parameter settings file on the gimbal that may need backed up and restored after upgrading. |
Upgrading to 3.2 will break it. We are working with walksnail for a solution. |
@Jonbuckles if anyone comes across this, you can track progress of the fix here #10302 We expect this to be fixed by caddx, but we may eventually need to do small changes on INAV's side before 8.0 release. |
XF C-20T FPV GIMBAL supports "Carrier AHRS Fusion". Is it possible to implement this on inav? |
This is some exciting work. I hope gimbal roll can be be captured, that's one thing really missing from the PWM modes. |
Nice, I finally found where to set the channels for pitch/yaw/roll. I would be nice to have channels for sensitivity and mode vs static settings, but this is moving in the right direction. |
I just got my C-20T gimbal going as well and using a uart really simplifies the wiring. I too would like to see the ability to set the channels for mode and sensitivity. Or is the sensitivity in inav not a channel assignment but a percentage? |
My Goggles X doesn’t out the roll via ppm, so it might be a Walksnail hardware/firmware issue? |
T
It looks like when using uart, you can map a channel to roll, but not when using PWM. |
Near as I can tell, you can set a static value for sensitivity, not sure what the range is, but it defaults to 0. When using PWM it's between 1000 and 2000 us. I don't see anything for mode, but maybe it's picking FPV. |
I'm an idiot... The modes are right there in the modes tab in inav in the gimbal section! They are gimbal level tilt, gimbal level roll, gimbal headtracker and gimbal center. Like the flight modes in inav, when nothing is selected it's the default mode (the FPV follow mode) when the Gimbal Level Tilt is selected, it locks the Pitch. When the Gimbal Level Roll is selected it locks the Roll. I used Gimbal Center as my "Gimbal Lock" mode. |
GM3 serial gimbal work fine, but headtracker is totaly not. While without FC headtracking are okay. FCs: Matek F722SE, KakuteF7 V1.5 What i make wrong? |
Hey, I finally managed to fix it I don't know how, but after double checking everything and especially wiring (on my avatar v2 vtx, the tx wire is the one on the outer side of the USB connector, the Rx one being next to it on the inside, and I even wired the ground wire on the port), it works with a diy gimbal. The headtracker debug output doesn't show "usable" values in the Sensor Tab on the configurator, but after correctly configuring the mixer with the 2 servos of my gimbal, it's working in PTZ mode. If you need any details hit me up. |
How to invert a channel for pitch in inav? |
Maybe just do it on your radio? |
As a solution, I made it on the RC. But I would like to invert it in the inav itself. |
我没看懂这个翻译的“万向节”是什么。。。 |
If you configure a headtracker in INAV, you can use the headtracker as input in the mixer tab, to control a servo. |
Don't use PPM. PPM will output PPM on the 3.5 plug. Use one of the other headtracking modes. If you want to pass it through INAV, you need to set it up like you do for goggles headtracking. |
Inav is behaving like your gimbal.
|
Support for Walksnail serial gimbal and headtracker.
Headtracker can be used with serial gimbal or in the mixer.
Saves a few pwm outputs in exchange for a UART.
Headtracker information can be read from VTX via UART and gimbal can be controlled via uart.
Configurator changes:
iNavFlight/inav-configurator#2106
Features for a follow up PR:
Demo:
https://youtu.be/GDTD14OQr-c