Revision 093a1aea
"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.
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