Any commands that I can find out the mode the flight controller is in? The data that comes out of mavproxy isn’t telling me that.
Mavproxy knows the flight mode and displays it in the mavproxy GUI (console pannel)
Hi, Yes but I am designing a autonomous drone so I won’t be able to see it on the console. I saw that mission planner is able to tell the mode change. Wonder if anyway which I can find out using mavlink.
within heartbeat messages you can get the current mode(base_mode) of FC https://mavlink.io/en/messages/common.html#HEARTBEAT
if you are using pymavlink you can get the current mode by receiving heartbeat messages from the FC, from this link checkout Receive data and filter by message type to implement that https://www.ardusub.com/developers/pymavlink.html
Thanks Got it. I managed to get the base_code and custom_code