主要内容

mapulog

Map PX4 ULOG messages to signals

Since R2025a

    Description

    mapulog(mapper,signalName,messageName,fieldName) maps the specified field fieldName of the specified message messageName from a PX4® ULOG file to the signalName. For a list of preconfigured signals, see Predefined Signals.

    mapulog(___,Name=Value) specifies options using one or more name-value arguments in addition to the input arguments from the previous syntax.

    Input Arguments

    collapse all

    Flight log signal mapping, specified as a flightLogSignalMapping object. The object must have been configured at creation to map PX4 ULOG files by using the flightLogSignalMapping("ulog") syntax.

    Signal to which you want to map the message fields, specified as a string scalar or character vector. For a list of preconfigured signals, see Predefined Signals.

    Data Types: string

    Message to map to the signal, specified as a string scalar or character vector. The specified message much contain the fields you want to map to the signal.

    Data Types: string

    Field to map, specified as either a string scalar, a character vector, a 1xN vector of strings, or a 1xN cell array of character vectors where N is the number of fields that you want to map.

    Example: mapulog(mapper,"EstimatorStatusTestRatio", "EstimatorStatus","hdg_test_ratio",VarNames=["Heading"]) maps the hdg_test_ratio field of the EstimatorStatus message to the Heading field of the EstimatorStatusTestRatio signal.

    Data Types: string

    Name-Value Arguments

    collapse all

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Example: mapulog(mapper,"EstimatorStatusGPSCheckFail", "EstimatorStatus","gps_check_fail_flags",BitmaskExpansions=3,VarNames=["GPS_CHECK_FAIL_GPS_FIX","GPS_CHECK_FAIL_MIN_SAT_COUNT","GPS_CHECK_FAIL_MAX_PDOP"]) maps the first three bits of the gps_check_fail_flags field of the EstimatorStatus message to the GPS_CHECK_FAIL_GPS_FIX ,GPS_CHECK_FAIL_MIN_SAT_COUNT, and GPS_CHECK_FAIL_MAX_PDOP fields of the EstimatorStatusGPSCheckFail signal.

    Message instance identifier, specified as an integer. Specify this argument to select the message instance that you want to map.

    Bitmask expansion, specified as a 1xN vector of integers. Specify this argument to select the number of bits in each message field that you want to extract.

    Signal fields to which you want to map the message fields, specified as either a string scalar, a character vector, a 1xN vector of strings, or a 1xN cell array of character vectors where N is the number of fields that you want to map.

    Units of the signal fields to which you want to map the message fields, specified as either a string scalar, a character vector, a 1xN vector of strings, or a 1xN cell array of character vectors where N is the number of fields that you want to map.

    More About

    collapse all

    Version History

    Introduced in R2025a

    See Also

    |