mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 02:36:37 +08:00
uORB generated header use full name in C define
This commit is contained in:
committed by
Lorenz Meier
parent
27e75920bd
commit
a6883c3a0d
@@ -57,6 +57,7 @@ import gencpp
|
||||
from px_generate_uorb_topic_helper import * # this is in Tools/
|
||||
|
||||
uorb_struct = '%s_s'%spec.short_name
|
||||
uorb_struct_upper = spec.short_name.upper()
|
||||
topic_name = spec.short_name
|
||||
}@
|
||||
|
||||
@@ -83,7 +84,7 @@ for field in spec.parsed_fields():
|
||||
@# Constants c style
|
||||
#ifndef __cplusplus
|
||||
@[for constant in spec.constants]@
|
||||
#define @(constant.name) @(int(constant.val))
|
||||
#define @(uorb_struct_upper)_@(constant.name) @(int(constant.val))
|
||||
@[end for]
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user