log_message increase queue depth 2->4

This commit is contained in:
Daniel Agar 2021-01-08 12:29:14 -05:00
parent d42e57a066
commit c6af260a41
2 changed files with 3 additions and 1 deletions

View File

@ -4,3 +4,5 @@ uint64 timestamp # time since system start (microseconds)
uint8 severity # log level (same as in the linux kernel, starting with 0)
char[127] text
uint8 ORB_QUEUE_LENGTH = 4

View File

@ -66,7 +66,7 @@ void px4_log_initialize(void)
log_message.severity = 6; //info
strcpy((char *)log_message.text, "initialized uORB logging");
orb_log_message_pub = orb_advertise_queue(ORB_ID(log_message), &log_message, 2);
orb_log_message_pub = orb_advertise_queue(ORB_ID(log_message), &log_message, log_message_s::ORB_QUEUE_LENGTH);
if (!orb_log_message_pub) {
PX4_ERR("failed to advertise log_message");