I am fairly new to the ardupilot codebase and I want to try something with the AP_MotorsMatrix.cpp class.
However, for my code I want to access the current flight mode of my drone and do a case-check to only do certain operations on e.g. Land mode.
Is there a way to access the flight-mode to see in which mode the drone is currently operating?
Thanks a lot!