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

    Function fromObject

    • Builds a message from plain values, keyed by field name.

      A field left out stays zero, which is what a sender filling in part of a message wants.

      Parameters

      Returns mavlink.MavlinkMessage

      The message.

      If a name is not a field of the message, or a value does not fit its field.

      const position = schemaFor('GLOBAL_POSITION_INT')
      const report = fromObject(position, { lat: -33856780, lon: 151215300, hdg: 18000 })