dlktdr / HeadTracker

This project is built to record the orientation a FPV headset to allow the camera on your RC to follow your head movements.
GNU General Public License v3.0
378 stars 90 forks source link

Centering button #116

Closed AndersN76 closed 2 years ago

AndersN76 commented 2 years ago

Is it possible to make an internal button in the transmitter act as a centering button instead of having an external one?

dlktdr commented 2 years ago

No unfortunately not, it's hardwired to the chip reset. and can't override it.

kobelev-tech commented 2 years ago

It may happen that Anders was speaking about some button in the RC transmitter. Anders, can you please clarify your request?

gcmcnutt commented 2 years ago

Well, @dlktdr and I have discussed how to have bi-directional link communication between HT and Transmitter just for this. So, there is some work to do to get this working on all the various link techs.

For me, I want to develop it for BlueTooth connection. But others are certainly possible.

dlktdr commented 2 years ago

@AndersN76 - Sorry, I see what you actually mean.

Some working options are,

Works, but I would do a lot of ground testing before I flew with it.

Ideas, most of these require software changes on the radio. They will be limited to open source radio firmware. Both of these can monitor a channel on the Head Tracker to cause a reset.

Others ideas not radio dependent,

The wireless module code from above, https://github.com/dlktdr/BTWifiModule - Code and binaries here. https://github.com/dlktdr/BTWifiModule/blob/8bea9db7534ea96a0483e6965628af2f1c132c39/src/terminal.c#L148-L154 & this patch to EdgeTx 2.7.1 https://github.com/dlktdr/edgetx/tree/Bluetooth-Mods_27 https://github.com/dlktdr/edgetx/blob/2f4d390349f5d619b386751876f8160300b09d06/radio/src/bluetooth.cpp#L477-L484 EdgeTX271_Blutooth_HTReset_BTWifiModule.zip