Loading [MathJax]/extensions/MathMenu.js
  • <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>

  • DriveWorks SDK Reference
    5.6.215 Release
    For Test and Development only

    All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    Data Sensor Sample

    Description

    The Data Sensor sample reads file/socket data and prints the timestamp and size of the received packet.

    Running the Sample

    The sample requires the driver and parameters of the data sensor. It accepts the following arguments:

    ./sample_datasensor --driver=[data.virtual|data.socket]
                        --params=[comma/separated/key/value/pairs]
    

    Where:

    --driver=[data.virtual|data.socket]
        Allows to specify which data sensor driver to use.
        Default value: data.virtual
    
    --params=[comma/separated/key/value/pairs]
        Different parameters are available for each data sensor driver.
        Default value: file=path/to/data/samples/sensors/data/data_packet.bin
    
    Note
    For a full list of key/value pairs that can be passed to –params see Sensor Enumeration Sample .

    Output

    For every valid data sensor packet, the sample prints to the console data such as:

    [1588118153011907] received frame of size: 6
    [1588118154913607] received frame of size: 6
    [1588118156872613] received frame of size: 6
    [1588118158846329] received frame of size: 6
    [1588118163976672] received frame of size: 6
    人人超碰97caoporen国产