Project

General

Profile

Revision c06735bb

IDc06735bb88dabe4b24ed45d57ea52b9a5329bec0

Added by Hui Jun Tay almost 5 years ago

Removed headers, sonar uses custom timestamp, added code to manually update timestamp

View differences:

scout/libscout/src/SonarControl.cpp
87 87

  
88 88
    readings[msg->pos] = msg->distance0;
89 89
    readings[msg->pos + 24] = msg->distance1;
90
    timestamps[msg->pos] = msg->header.stamp;
91
    timestamps[msg->pos + 24] = msg->header.stamp;
90
    timestamps[msg->pos] = msg->stamp;
91
    timestamps[msg->pos + 24] = msg->stamp;
92 92
}
93 93

  
94 94
/**

Also available in: Unified diff