Project

General

Profile

Revision dd065971

IDdd06597107703ab49d87799b117d5bc3d81c6c21

Added by Alex Zirbel over 11 years ago

Fixed sonar out of range bug. Max range now at 9.144 m.

View differences:

scout/scoutsim/src/scout_constants.h
76 76
    // @todo Inaccurate. Update
77 77
    const float ENCODER_TICKS_PER_METER = 363.78;
78 78

  
79
    const unsigned int SONAR_MAX_RANGE = 255;
79
    // @todo Update this
80
    const float SONAR_MAX_RANGE_M = 9.144;
81
    const unsigned int SONAR_MAX_RANGE_PIX = (unsigned int)
82
        (SONAR_MAX_RANGE_M * PIX_PER_METER);
80 83

  
81 84
    // Time it takes for the sonar to spin from position 0 to position 23
82 85
    const float SONAR_HALF_SPIN_TIME = 0.5;

Also available in: Unified diff