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

  • DriveWorks SDK Reference
    5.10.90 Release
    For Test and Development only

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

    Description

    The GPS Plugin sample implements a sensor driver for a CAN-based GPS using the comprehensive sensor plugin framework. This uses a DriveWorks CAN Bus sensor to provide raw data.

    Running the sample

    This sample compiles as a shared library (.so) that can be used with the DriveWorks Sensor Abstraction Layer (SAL).

    This plugin can be used in conjunction with the GPS Location Logger Sample to test and verify functionality:

    ./sample_gps_logger --driver=gps.custom
                        --params=decoder-path=[path_to_decoder.so],
                                 can-proto=[can.virtual|can.socket],
                                 [file=<path_to_can_recording.bin>|device=<can_device>]
                        --timestamp-trace=[true|false]
    

    For playing back GPS data recorded with a custom plugin, the following command line can be used:

    ./sample_gps_logger --driver=gps.virtual
                        --params=file=[path_to_recording.bin],
                                 decoder-path=[path_to_decoder.so]
    
    Note
    The precompiled decoder library is called libsample_gps_plugin.so.

    Additional Information

    For more information, please refer to Custom GPSs (Comprehensive).

    人人超碰97caoporen国产