Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional priority attribute for messages #67

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Finally working
  • Loading branch information
podhrmic committed Nov 30, 2017
commit 1ba10f19566a65c5691a4bb658ba2ec95bc16ed2
2 changes: 1 addition & 1 deletion message_definitions/v1.0/messages.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- messages from modem or sim to server -->
<msg_class name="telemetry" id="1">

<message name="AUTOPILOT_VERSION" id="1" priority="2">
<message name="AUTOPILOT_VERSION" id="1">
<field name="version" type="uint32">version encoded as: MAJOR * 10000 + MINOR * 100 + PATCH</field>
<field name="desc" type="char[]">version description as string from paparazzi_version</field>
</message>
Expand Down
2 changes: 1 addition & 1 deletion tools/generator/gen_messages_v2_0_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def generate_one(directory, xml, m):

#endif // _VAR_MESSAGES_${class_name}_${msg_name}_H_

''', {'msg_name' : m.msg_name, 'description' : m.description ,'class_id' : xml.class_id, 'class_name' : xml.class_name, 'id' : m.id, 'fields' : m.fields, 'message' : xml.message})
''', {'msg_name' : m.msg_name, 'description' : m.description ,'class_id' : xml.class_id, 'class_name' : xml.class_name, 'id' : m.id, 'fields' : m.fields, 'message' : xml.message, 'msg_priority': m.msg_priority})


def generate(output, xml):
Expand Down