Skip to content
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

Automatic download of Goggle and VTX firmware via WiFi Module #334

Closed
wants to merge 15 commits into from

Conversation

SumolX
Copy link
Contributor

@SumolX SumolX commented Aug 22, 2023

This PR introduces the ability to automatically download the latest official releases from github for both the goggle and vtx firmwares. The vertical menu will notify the user of a firmware update via an exclamation point. The user can then enter the page and highlight either VTX or GOGGLE entries and use the right function button to review the release notes associated with downloaded release. Once reviewed the exclamation point will be removed from the firmware menu entry and is marked read. Below are a few screenshots of what is to be expected when a new release is encountered. In order to make use of this functionality the user must remove any bin files such as HDZERO_TX.bin and HDZERO_GOGGLE.bin from the root of the SD Card. This legacy way of flashing firmware was NOT removed due to user requiring recovery of their goggles.

This PR requires extensive testing... and help would be greatly appreciated to report issues I have yet to encounter. Tested flashing for both VTX and Goggles but its always good to get a few people to try it out as well.

Firmware notification:
image

Notes describing the use of the function button for both Update VTX and Update GOGGLE:
image

Reviewing VTX Release Notes (press function button to view):
image

Reviewing GOGGLE Release Notes (press function button to view):
image

Notice how the Firmware notification icon has now disappeared... this was due to reading the release notes of the goggles.

Updating VTX Firmware:
image

Updating GOGGLE Firmware:
image

As you can see we now have the ability to backout and cancel a firmware update as well.

Legacy VTX or Goggle Flashing:
image
image

Notice how both report the firmware is located in the SD Card and the notes notify the user to remove these files from the root of the SD Card in order to download the latest firmware.

Lastly, the notes you see above are only presented when the user has the wifi module enabled. Otherwise, the notes are left empty for non-wifi users.

@tmunsch
Copy link

tmunsch commented Aug 26, 2023

This is going to be amazing! Thanks for the good work!

@SumolX
Copy link
Contributor Author

SumolX commented Aug 26, 2023

Added zip handling for both vtx and goggles. This allows github repo to publish compressed files if they choose to for goggles.

@SumolX
Copy link
Contributor Author

SumolX commented Aug 26, 2023

Final update unless an issue or bug is detected. Both VTX and Goggle have been tested with these latest changes. Feedback appreciated.

@ligenxxxx ligenxxxx linked an issue Sep 6, 2023 that may be closed by this pull request
@SumolX
Copy link
Contributor Author

SumolX commented Sep 6, 2023

Accidentally merged other branches into this one... a new PR has been created: #346

@SumolX SumolX closed this Sep 6, 2023
@SumolX SumolX deleted the online_update branch September 6, 2023 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatic download&update goggle/vtx fw from github via wifi client
3 participants