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

    Function enumValue

    • Returns the value a dialect entry name stands for, whichever enumeration it belongs to.

      MAVLink writes each enum value's name with its enumeration in front, such as MAV_TYPE_QUADROTOR, and the names are unique across the dialect, so the name alone is enough.

      Parameters

      • entry: string

        The entry's name, such as MAV_CMD_COMPONENT_ARM_DISARM.

      Returns number

      The value, ready to set on a field.

      If no entry of any dialect enumeration has that name.

      const heartbeat = message('HEARTBEAT')
      heartbeat.set('type', enumValue('MAV_TYPE_GCS'))