They already have Open GoPro: https://gopro.com/en/us/info/open-gopro
Idk if the firmware is open source, but there's a whole SDK you can use to implement stuff like that