pamoja for TypeScript - v0.1.17
    Preparing search index...

    Function message

    • Creates a message with every field zero.

      Parameters

      • shape: string | number | MessageSchema

        The shape to build, or the id or name of a message the engine types.

      Returns MavlinkMessage

      The zeroed message, ready for its fields to be set.

      const heartbeat = message('HEARTBEAT')
      heartbeat.set('type', 18)
      heartbeat.set('system_status', 4)
      const frame = heartbeat.toFrame({ systemId: 1, componentId: 1, sequence: 0 })