text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1777],{3187:function(t,s,a){"use strict";a.r(s);var e=a(19),n=Object(e.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"ulog-stream-ack-uorb-message"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ulog-stream-ack-uorb-message"}},[t._v("#")]),t._v(" ulog_stream_ack (UORB message)")]),t._v(" "),a("p",[t._v("Ack a previously sent ulog_stream message that had the NEED_ACK flag set")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/PX4/PX4-Autopilot/blob/master/msg/ulog_stream_ack.msg",target:"_blank",rel:"noopener noreferrer"}},[t._v("source file"),a("OutboundLink")],1)]),t._v(" "),a("div",{staticClass:"language-c extra-class"},[a("pre",{pre:!0,attrs:{class:"language-c"}},[a("code",[a("span",{pre:!0,attrs:{class:"token macro property"}},[a("span",{pre:!0,attrs:{class:"token directive-hash"}},[t._v("#")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token expression"}},[t._v("Ack a previously sent ulog_stream message that had")])]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token macro property"}},[a("span",{pre:!0,attrs:{class:"token directive-hash"}},[t._v("#")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token directive keyword"}},[t._v("the")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token expression"}},[t._v("NEED_ACK flag set")])]),t._v("\n\nuint64 timestamp        # time since system "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("start")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("microseconds"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\nint32 ACK_TIMEOUT "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),t._v("      # timeout waiting "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("for")]),t._v(" an ack until we retry to send the message "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("ms"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\nint32 ACK_MAX_TRIES "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),t._v("    # maximum amount of tries "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("to")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("re"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("send a message"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" each time waiting ACK_TIMEOUT ms\n\nuint16 msg_sequence\n\n")])])])])}),[],!1,null,null,null);s.default=n.exports}}]);