Project

General

Profile

Revision e5ac3afb

IDe5ac3afb4a1336c4fbb2d881223759a17d6a9721
Parent 321961ca
Child 391cd472, 18d28a5f

Added by Alex Zirbel over 11 years ago

Updated sonar so it broadcasts readings in mm as specified.

View differences:

scout/scoutsim/src/scout.cpp
323 323
            }
324 324
        }
325 325

  
326
        return d;
326
        // Convert from pixels to mm and return
327
        return (unsigned int) (1000 * d / PIX_PER_METER);
327 328
    }
328 329

  
329 330
    // x and y is current position of the sonar

Also available in: Unified diff