Take a look at https://github.com/ArduPilot/binary/
Switch commits history and download desired firmware