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

Unable to determine board type #90

Closed dlktdr closed 2 years ago

dlktdr commented 2 years ago

Note: You will also see this message if you have not uploaded firmware to the board on every version (Choose Firmware -> Upload Firmware) first.

There is a serial issue where the initial firmware request message is cut short when sent from the board causing the GUI to to be able to tell what try of board is attached.

For now just reconnect. Pertains to version 2.2 only here.

This was caused by the addition of the GIT sha to the firmware.

Edit: Underlying issues with serial CDC, looking into Zephyr's async

dlktdr commented 2 years ago

https://github.com/dlktdr/HeadTracker/blob/b0aa6237b075268291e168dc3823f5edfd663a54/firmware/src/src/targets/nrf52/serial.cpp#L148

Change this line to 128 size for now.

gcmcnutt commented 2 years ago

I have also had success with requesting the FW command twice at startup. e.g. the first one is more of a buffer flush in the client PC and the second one is for real data.