Project

General

Profile

Revision 68b23184

ID68b23184aa0f17dabaef999c99dd25e009fb3af5

Added by viki over 11 years ago

Scoutsim: Added Sonar Toggle

Sonar display can now be toggled via Menu->Sim->Sonar

View differences:

scout/scoutsim/src/sim_frame.h
73 73
#define ID_TELEOP_NONE 7
74 74
#define ID_TELEOP_PRECISE 8
75 75
#define ID_TELEOP_FLUID 9
76
#define ID_SONAR 10
76 77

  
77 78
#define TELEOP_PRECISE_SPEED 30
78 79
#define TELEOP_FLUID_MAX_SPEED 80
......
102 103
            void stopTeleop(wxCommandEvent& event);
103 104
            void startTeleopPrecise(wxCommandEvent& event);
104 105
            void startTeleopFluid(wxCommandEvent& event);
106
	    void showSonar(wxCommandEvent& event);
105 107

  
106 108
            DECLARE_EVENT_TABLE()
107 109

  
......
164 166
            float width_in_meters;
165 167
            float height_in_meters;
166 168

  
169
	    bool sonar_on;
170

  
167 171
            std::string map_base_name;
168 172
            std::string map_lines_name;
169 173
            std::string map_walls_name;

Also available in: Unified diff