It runs whatever you flash to it. Since you are on the ArduPilot forum, I’ll assume you’ve flashed ArduPilot, whose codebase can be found here:
And documentation here:
https://ardupilot.org/ardupilot/
Instead of posting a mile a minute on the forum, perhaps do some searching in those locations.