Skip to content

Commit

Permalink
Increased number of GPS waypoints allowed to be displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
artzha committed Nov 13, 2024
1 parent 6c41bde commit cb66057
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
bin
build
lib
lib
**/.vscode/**
2 changes: 1 addition & 1 deletion src/websocket/websocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class QWebSocketServer;
class QWebSocket;

#define ROUTE_HEADER_SIZE (size_t) 1
#define MAX_ROUTE_NODES (size_t) 30
#define MAX_ROUTE_NODES (size_t) 120
#define NODE_SIZE (size_t) 3
#define MAX_ROUTE_SIZE (ROUTE_HEADER_SIZE+MAX_ROUTE_NODES*NODE_SIZE)

Expand Down
4 changes: 2 additions & 2 deletions webviz.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ <h1>UT AUTOmata Web Interface</h1>
readGPSGoals() {
let gps_goals = []
gps_goals.push(this.readFloat32()); // num_goals
for (let i = 0; i < 30; ++i) { // Figure out a better way to synchronize this with websocket.h
for (let i = 0; i < 120; ++i) { // Figure out a better way to synchronize this with websocket.h
gps_goals.push(this.readGPS());
}
return gps_goals;
Expand Down Expand Up @@ -1012,7 +1012,7 @@ <h1>UT AUTOmata Web Interface</h1>
}

// Remove the oldest marker if we already have 10 markers
if (gpsMarkersDict[key].length >= 10) {
if (gpsMarkersDict[key].length >= 1) {
const oldestMarker = gpsMarkersDict[key].shift();
osm_map.removeLayer(oldestMarker);
}
Expand Down

0 comments on commit cb66057

Please sign in to comment.