Changeset 61 in pacpussensors for trunk/Sick/SickLMSSensor.cpp
- Timestamp:
- Jul 22, 2014, 4:36:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Sick/SickLMSSensor.cpp
r42 r61 201 201 void SickLMSSensor::configure(){ 202 202 // Start measuring 203 // S_socket->sendToServer(QString((u _int32_t)0x0020));203 // S_socket->sendToServer(QString((uint32_t)0x0020)); 204 204 205 205 // LOG_TRACE(this->name_ +" configured."); … … 592 592 593 593 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)); 595 595 } 596 596 … … 602 602 603 603 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)); 605 605 } 606 606 … … 612 612 613 613 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)); 615 615 } 616 616 … … 622 622 623 623 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)); 625 625 } 626 626 … … 632 632 633 633 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)); 635 635 } 636 636 … … 642 642 643 643 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)); 645 645 } 646 646 … … 652 652 653 653 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)); 655 655 } 656 656
Note:
See TracChangeset
for help on using the changeset viewer.