|
34 | 34 | #include <string>
|
35 | 35 | #include <vector>
|
36 | 36 | #include <cassert>
|
| 37 | +#include <iomanip> |
37 | 38 |
|
38 | 39 | #include <g3log/g3log.hpp>
|
39 | 40 |
|
@@ -179,29 +180,31 @@ void SimplePingResult<Ping_t>::dump() const {
|
179 | 180 | LOG(DEBUG) << "--------------";
|
180 | 181 | SimpleFireMsg_t::dump();
|
181 | 182 |
|
182 |
| - LOG(DEBUG) << " Ping ID: " << this->ping()->pingId; |
183 |
| - LOG(DEBUG) << " Status: " << this->ping()->status; |
184 |
| - LOG(DEBUG) << " Ping start time: " << this->ping()->pingStartTime; |
| 183 | + LOG(DEBUG) << " Ping ID: " << this->ping()->pingId; |
| 184 | + LOG(DEBUG) << " Status: " << this->ping()->status; |
| 185 | + LOG(DEBUG) << " Ping start time: " << this->ping()->pingStartTime; |
185 | 186 |
|
186 |
| - LOG(DEBUG) << " Frequency: " << this->ping()->frequency; |
187 |
| - LOG(DEBUG) << " Temperature: " << this->ping()->temperature; |
188 |
| - LOG(DEBUG) << " Pressure: " << this->ping()->pressure; |
189 |
| - LOG(DEBUG) << "Spd of Sound: " << this->ping()->speedOfSoundUsed; |
190 |
| - LOG(DEBUG) << " Range res: " << this->ping()->rangeResolution << " m"; |
| 187 | + LOG(DEBUG) << " Frequency: " << this->ping()->frequency; |
| 188 | + LOG(DEBUG) << " Temperature: " << this->ping()->temperature; |
| 189 | + LOG(DEBUG) << " Pressure: " << this->ping()->pressure; |
| 190 | + LOG(DEBUG) << "Spd of Sound used: " << this->ping()->speedOfSoundUsed; |
| 191 | + LOG(DEBUG) << " Range res: " << this->ping()->rangeResolution << " m"; |
191 | 192 |
|
192 | 193 | if (this->flags().getRangeAsMeters()) {
|
193 |
| - LOG(DEBUG) << " Calc range: " << this->ping()->rangeResolution*this->ping()->nRanges << " m"; |
194 |
| - } else { |
| 194 | + LOG(DEBUG) << " Calc range: " << this->ping()->rangeResolution*this->ping()->nRanges << " m"; |
| 195 | + } else { |
195 | 196 | LOG(DEBUG) << " Pct range: " << this->ping()->rangeResolution*this->ping()->nRanges;
|
196 | 197 | }
|
197 | 198 |
|
198 |
| - LOG(DEBUG) << " Num range: " << this->ping()->nRanges; |
199 |
| - LOG(DEBUG) << " Num beams: " << this->ping()->nBeams; |
| 199 | + LOG(DEBUG) << " Num range: " << this->ping()->nRanges; |
| 200 | + LOG(DEBUG) << " Num beams: " << this->ping()->nBeams; |
| 201 | + LOG(DEBUG) << "Azimuth range: " << std::setprecision(4) << bearings().front() << " - " << bearings().back(); |
| 202 | + |
200 | 203 |
|
201 | 204 | LOG(DEBUG) << " Image size: " << this->ping()->imageSize;
|
202 |
| - LOG(DEBUG) << "Image offset: " << this->ping()->imageOffset; |
203 |
| - LOG(DEBUG) << " Data size: " << DataSizeToString(this->ping()->dataSize); |
204 |
| - LOG(DEBUG) << "Message size: " << this->ping()->messageSize; |
| 205 | + LOG(DEBUG) << " Image offset: " << this->ping()->imageOffset; |
| 206 | + LOG(DEBUG) << " Data size: " << DataSizeToString(this->ping()->dataSize); |
| 207 | + LOG(DEBUG) << " Message size: " << this->ping()->messageSize; |
205 | 208 | LOG(DEBUG) << "--------------";
|
206 | 209 | }
|
207 | 210 |
|
|
0 commit comments