pamoja for TypeScript - v0.2.0
    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', enumValue('MAV_TYPE_ONBOARD_CONTROLLER'))
      heartbeat.set('system_status', enumValue('MAV_STATE_ACTIVE'))
      const frame = heartbeat.toFrame({ systemId: 1, componentId: 1, sequence: 0 })