Skip to content

Commit

Permalink
[mavlink] use register_periodic_telemetry for all messages
Browse files Browse the repository at this point in the history
- if a mavlink process is specified in the telemetry file, use that, otherwise fall back to fixed message periods
- print warning if telemety file has no mavlink process
- fix code style
  • Loading branch information
flixr committed Nov 30, 2015
1 parent 9f4c58c commit 20fae10
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 91 deletions.
30 changes: 28 additions & 2 deletions conf/telemetry/default_rotorcraft_mavlink.xml
Expand Up @@ -4,8 +4,34 @@

<process name="Mavlink" type="mavlink">
<mode name="default">
<message name="HEARTBEAT" period="1.0"/>
<message name="SYS_STATUS" period="1.2"/>
<message name="HEARTBEAT" period="0.5"/>
<message name="AUTOPILOT_VERSION" period="11.1"/>
<message name="SYS_STATUS" period="1.2"/>
<message name="SYSTEM_TIME" period="2.0"/>
<message name="ATTITUDE" period="0.5"/>
<message name="ATTITUDE_QUATERNION" period="1.5"/>
<message name="LOCAL_POSITION_NED" period="0.8"/>
<message name="GLOBAL_POSITION_INT" period="0.9"/>
<message name="BATTERY_STATUS" period="4.0"/>
<message name="GPS_GLOBAL_ORIGIN" period="5.1"/>
<message name="VFR_HUD" period="1.3"/>
</mode>
<mode name="RC">
<message name="HEARTBEAT" period="0.5"/>
<message name="SYS_STATUS" period="1.2"/>
<message name="ATTITUDE" period="0.5"/>
<message name="GLOBAL_POSITION_INT" period="0.9"/>
<message name="BATTERY_STATUS" period="4.0"/>
<message name="RC_CHANNELS" period="1.2"/>
</mode>
<mode name="GPS">
<message name="HEARTBEAT" period="0.5"/>
<message name="SYS_STATUS" period="1.2"/>
<message name="ATTITUDE" period="0.5"/>
<message name="GLOBAL_POSITION_INT" period="0.9"/>
<message name="GPS_RAW_INT" period="1.0"/>
<message name="GPS_GLOBAL_ORIGIN" period="5.1"/>
<message name="GPS_STATUS" period="2.3"/>
</mode>
</process>

Expand Down

0 comments on commit 20fae10

Please sign in to comment.