mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
msg: don't implement print_message for fmu-v2
This saves about 3.4k of flash for fmu-v2.
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
@# - md5sum (String) MD5Sum of the .msg specification
|
||||
@# - search_path (dict) search paths for genmsg
|
||||
@# - topics (List of String) multi-topic names
|
||||
@# - constrained_flash set to true if flash is constrained
|
||||
@# - ids (List) list of all RTPS msg ids
|
||||
@###############################################
|
||||
/****************************************************************************
|
||||
@@ -82,9 +83,14 @@ ORB_DEFINE(@multi_topic, struct @uorb_struct, @(struct_size-padding_end_size), _
|
||||
|
||||
void print_message(const @uorb_struct& message)
|
||||
{
|
||||
@[if constrained_flash]
|
||||
(void)message;
|
||||
PX4_INFO_RAW("Not implemented on flash constrained hardware\n");
|
||||
@[else]
|
||||
PX4_INFO_RAW(" @(uorb_struct)\n");
|
||||
@[for field in sorted_fields]@
|
||||
@( print_field(field) )@
|
||||
@[end for]@
|
||||
@[end if]@
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user