Project

General

Profile

Revision 093a1aea

ID093a1aea09c86c812a439f1b4145c3e38123f651
Parent 43811241
Child 34a600c5

Added by Alex Zirbel about 4 years ago

"Fixed" the sonar bug.

Turns out the sonar just wasn't set to on by default, so nothing was being visualized.
Changed it so the sonar is on by default.
We should probably make it more clear when the sonar is off.

View differences:

scout/scoutsim/src/scout.h
139 139
                                     unsigned char g,
140 140
                                     unsigned char b);
141 141
            unsigned int trace_sonar(const wxImage& walls_image, int x, int y,
142
                                   double robot_theta, int sonar_pos,
143
                                    wxMemoryDC& sonar_dc);
142
                                     double robot_theta, int sonar_pos,
143
                                     wxMemoryDC& sonar_dc);
144 144

  
145 145
            void update_sonar(const wxImage& walls_image, int x, int y,
146 146
                              double robot_theta, wxMemoryDC& sonar_dc);

Also available in: Unified diff