Revision e5ac3afb scout/scoutsim/src/scout.cpp

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