How to get MAV_AUTOPILOT?

I am trying to implement support for both ArduPilot and PX4 using MAVSDK, and some parameters are different on those so I would like to know which autopilot is running currently. Ideally I would just get MAV_AUTOPILOT but haven’t found out how to get that

System::autopilot_type()

See usage example here

Oh thank you that seems what I am looking for.

However I don’t think this is exposed in the MAVSDK-Java, I guess I should make an issue on the MAVSDK-Java repo. Unless I don’t know how to search haha