Changeset 104 in pacpussensors for trunk/Sick


Ignore:
Timestamp:
Nov 22, 2015, 11:00:29 PM (9 years ago)
Author:
xuphilip
Message:

Updated I/O for Sick LDMRS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Sick/SickLDMRSData.h

    r71 r104  
    1717#include "Pacpus/kernel/cstdint.h"
    1818#include "Pacpus/kernel/road_time.h"
     19#include <QVector>
    1920
    2021// Export macro for SickLDMRS DLL for Windows only
     
    8384    uint64_t endNtpTime;   //!< NTP time last measurement
    8485    uint16_t ticksPerRot;  //!< Angle ticks per rotation (used to compute the real angle of a point)
    85     int16_t startAngle;     //!< Angle of the first measured value
    86     int16_t endAngle;       //!< Angle of the last measured value
     86    int16_t  startAngle;     //!< Angle of the first measured value
     87    int16_t  endAngle;       //!< Angle of the last measured value
    8788    uint16_t numPoints;    //!< Number of scanned points during this scan @see ScanPoint
    8889
     
    124125 * Data type 0x2221 @see DataHeader
    125126 */
     127
    126128struct SICKLDMRS_API ScanObject{
    127129    // TODO
     
    136138typedef struct
    137139{
    138     uint64_t timeStartFromSensor;  //!< NTP time (creation of the message on sensor).
     140    uint64_t timeStartFromSensor;   //!< NTP time (creation of the message on sensor).
    139141    ScanHeader hScan;               //!< General information about points recorded. @see ScanHeader
    140142    road_time_t time;               //!< DBT timestamp.
     
    142144    int32_t dataPos;                //!< The position of the data in the binary file associated to the dbt file (utc file).
    143145} SickLDMRS_dbt;
     146
     147/*!
     148 * \brief The Sick LDMRS scan struct
     149 *
     150 * Used to describe one complete scan
     151 * @see DataHeader
     152 */
     153struct SICKLDMRS_API SickLDMRSScan{
     154    uint64_t timeStartFromSensor;   //!< NTP time (creation of the message on sensor).
     155    ScanHeader header;              //!< General information about points recorded.
     156    QVector<ScanPoint> points;      //!< Scan point cloud
     157    road_time_t time;               //!< DBT timestamp.
     158    road_timerange_t timerange;     //!< DBT timerange.
     159};
    144160
    145161#ifdef SICKLDMRS_SH_MEM
Note: See TracChangeset for help on using the changeset viewer.