49 #define MAVLINK_LOG_MAXLEN 50 54 __EXPORT void mavlink_vasprintf(
int severity,
orb_advert_t *mavlink_log_pub,
const char *fmt, ...);
59 #define _MSG_PRIO_DEBUG 7 60 #define _MSG_PRIO_INFO 6 61 #define _MSG_PRIO_NOTICE 5 62 #define _MSG_PRIO_WARNING 4 63 #define _MSG_PRIO_ERROR 3 64 #define _MSG_PRIO_CRITICAL 2 65 #define _MSG_PRIO_ALERT 1 66 #define _MSG_PRIO_EMERGENCY 0 81 #define mavlink_log_info(_pub, _text, ...) mavlink_vasprintf(_MSG_PRIO_INFO, _pub, _text, ##__VA_ARGS__); 89 #define mavlink_log_warning(_pub, _text, ...) \ 91 mavlink_vasprintf(_MSG_PRIO_WARNING, _pub, _text, ##__VA_ARGS__); \ 92 PX4_WARN(_text, ##__VA_ARGS__); \ 101 #define mavlink_log_emergency(_pub, _text, ...) \ 103 mavlink_vasprintf(_MSG_PRIO_EMERGENCY, _pub, _text, ##__VA_ARGS__); \ 104 PX4_ERR(_text, ##__VA_ARGS__); \ 113 #define mavlink_log_critical(_pub, _text, ...) \ 115 mavlink_vasprintf(_MSG_PRIO_CRITICAL, _pub, _text, ##__VA_ARGS__); \ 116 PX4_WARN(_text, ##__VA_ARGS__); \ 125 #define mavlink_and_console_log_info(_pub, _text, ...) \ 127 mavlink_log_info(_pub, _text, ##__VA_ARGS__); \ 128 PX4_INFO(_text, ##__VA_ARGS__); \ 133 unsigned char severity;
Definition: mavlink_log.h:136
__BEGIN_DECLS typedef void * orb_advert_t
ORB topic advertiser handle.
Definition: uORB.h:134
API for the uORB lightweight object broker.
#define MAVLINK_LOG_MAXLEN
The maximum string length supported.
Definition: mavlink_log.h:49
Definition: mavlink_log.h:131