Changeset 66 in pacpussensors


Ignore:
Timestamp:
Sep 25, 2014, 4:35:35 PM (10 years ago)
Author:
DHERBOMEZ Gérald
Message:

Modifications:

  • migration of alasca component to pacpus framework 0.1.X
  • new component for Velodyne HDL64E sensor
  • addition of xml example files for alasca, gps, cangateway and velodyne
Location:
trunk
Files:
9 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Alasca/AlascaComponent.cpp

    r2 r66  
    5353    pendingBytes.time = 0;
    5454    pendingBytes.previousData = false;
    55     recording = false;
     55        setRecording(false);
    5656    // default values
    5757    host_ = "172.17.130.205";
     
    7474    //generator = new AlascaDataGenerator(this);
    7575    A_socket->connectToServer(host_, port_);
    76     if (recording) {
     76        if (isRecording()) {
    7777        try {
    7878            dbtFile_.open(kAlaskaDbtFileName, WriteMode, ALASCA_XT, sizeof(AlascaXT));
     
    106106{
    107107    A_socket->closeSocket();
    108     if (recording) {
     108    if (isRecording()) {
    109109        dbtFile_.close();
    110110        dataFile_.close();
     
    119119ComponentBase::COMPONENT_CONFIGURATION AlascaComponent::configureComponent(XmlComponentConfig config)
    120120{
    121     if (param.getProperty("recording") != QString::null)
    122         recording = param.getProperty("recording").toInt();
    123     if (param.getProperty("alascaIP") != QString::null)
    124         host_ = param.getProperty("alascaIP");
    125     if (param.getProperty("alascaPort") != QString::null)
    126         port_ = param.getProperty("alascaPort").toInt();
     121    if (config.getProperty("recording") != QString::null)
     122        setRecording ( config.getProperty("recording").toInt() );
     123    if (config.getProperty("alascaIP") != QString::null)
     124        host_ = config.getProperty("alascaIP");
     125    if (config.getProperty("alascaPort") != QString::null)
     126        port_ = config.getProperty("alascaPort").toInt();
    127127
    128128    return ComponentBase::CONFIGURED_OK;
     
    489489            setState(ComponentBase::MONITOR_OK);
    490490            // write data on the disk
    491             if (recording) writeData();
     491            if (isRecording()) writeData();
    492492            // push data in shared memory
    493493            shmem_->write(&alascaData, sizeof(alascaData));
Note: See TracChangeset for help on using the changeset viewer.