Arduino with APM firmware

Hello, anyone knows if i can use an Arduino Mega with APM firmware for controlling a rover?
i couldn’t find anyone that did it.

Why would you want to do that, with 32bit flightcontrollers available for 50€ or less?

to learn how the flight controller works, and i have all the modules that composes the commercial flight controller.
I wanna know if anyone already did it