Changeset 61 in pacpussensors for trunk/Sick/SickLMSSensor.cpp


Ignore:
Timestamp:
Jul 22, 2014, 4:36:25 PM (10 years ago)
Author:
DHERBOMEZ Gérald
Message:

commit after experiments on track
Issue with GPS receiver, no data recorded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Sick/SickLMSSensor.cpp

    r42 r61  
    201201void SickLMSSensor::configure(){
    202202    // Start measuring
    203     // S_socket->sendToServer(QString((u_int32_t)0x0020));
     203    // S_socket->sendToServer(QString((uint32_t)0x0020));
    204204
    205205    // LOG_TRACE(this->name_ +" configured.");
     
    592592
    593593        for (unsigned int i = 0 ; i < msg.data.dist_len1; ++i) {
    594             dataFile_.write(reinterpret_cast<char*>(&(msg.data.dist1[i])), sizeof(u_int16_t));
     594            dataFile_.write(reinterpret_cast<char*>(&(msg.data.dist1[i])), sizeof(uint16_t));
    595595        }
    596596
     
    602602
    603603        for (unsigned int i = 0 ; i < msg.data.dist_len2; ++i) {
    604             dataFile_.write(reinterpret_cast<char*>(&(msg.data.dist2[i])), sizeof(u_int16_t));
     604            dataFile_.write(reinterpret_cast<char*>(&(msg.data.dist2[i])), sizeof(uint16_t));
    605605        }
    606606
     
    612612
    613613        for (unsigned int i = 0 ; i < msg.data.dist_len3; ++i) {
    614             dataFile_.write(reinterpret_cast<char*>(&(msg.data.dist3[i])), sizeof(u_int16_t));
     614            dataFile_.write(reinterpret_cast<char*>(&(msg.data.dist3[i])), sizeof(uint16_t));
    615615        }
    616616
     
    622622
    623623        for (unsigned int i = 0 ; i < msg.data.dist_len4; ++i) {
    624             dataFile_.write(reinterpret_cast<char*>(&(msg.data.dist4[i])), sizeof(u_int16_t));
     624            dataFile_.write(reinterpret_cast<char*>(&(msg.data.dist4[i])), sizeof(uint16_t));
    625625        }
    626626
     
    632632
    633633        for (unsigned int i = 0 ; i < msg.data.dist_len5; ++i) {
    634             dataFile_.write(reinterpret_cast<char*>(&(msg.data.dist5[i])), sizeof(u_int16_t));
     634            dataFile_.write(reinterpret_cast<char*>(&(msg.data.dist5[i])), sizeof(uint16_t));
    635635        }
    636636
     
    642642
    643643        for (unsigned int i = 0 ; i < msg.data.rssi_len1; ++i) {
    644             dataFile_.write(reinterpret_cast<char*>(&(msg.data.rssi1[i])), sizeof(u_int16_t));
     644            dataFile_.write(reinterpret_cast<char*>(&(msg.data.rssi1[i])), sizeof(uint16_t));
    645645        }
    646646
     
    652652
    653653        for (unsigned int i = 0 ; i < msg.data.rssi_len2; ++i) {
    654             dataFile_.write(reinterpret_cast<char*>(&(msg.data.rssi2[i])), sizeof(u_int16_t));
     654            dataFile_.write(reinterpret_cast<char*>(&(msg.data.rssi2[i])), sizeof(uint16_t));
    655655        }
    656656
Note: See TracChangeset for help on using the changeset viewer.