Mavlink STATUSTEXT messages

Hello!
I was wondering if there’s a way to see all possible status messages for all severity levels. I assume there isn’t a convenient file containing all of them, how would one go about gathering them all (Both text and severity number)?

Hi @Kryga, STATUSTEXT is generic, it can have whatever the interconnected systems want to share.

If you limit your range to PX4, then the easiest way to find them that I know is to download the PX4 source code, open it with an IDE and search where the following functions get called:

Location: src/modules/mavlink/mavlink_main.cpp/

void
Mavlink::send_statustext_info(const char *string)
{
	mavlink_log_info(&_mavlink_log_pub, "%s", string);
}

void
Mavlink::send_statustext_critical(const char *string)
{
	mavlink_log_critical(&_mavlink_log_pub, "%s", string);
}

void
Mavlink::send_statustext_emergency(const char *string)
{
	mavlink_log_emergency(&_mavlink_log_pub, "%s", string);
}

Example: search send_statustext_critical to get all the calls PX4 does to generate a STATUSTEXT message with critical level