UCI-UAVForge / GroundStation

8 stars 20 forks source link

Design an API Independent Mapping Interface for bridging our C++ and JS code. #117

Closed JordanD2 closed 7 years ago

JordanD2 commented 7 years ago

The update to Qt 5.7 required us to heavily change our C++/JS bridge. The new system uses the MapWidget class to send signals to a JavaScript file called Cbridge.js. Cbridge.js then links these signals to various JS functions in our mapping program (also in JS). The ideal solution will define a set of signals for MapWidget and functions in Cbridge that can be used to interface with our mapping script. Each mapping script (GoogleMaps, Leaflet, etc) will have to implement the functions in Cbridge to complete the C++/JavaScript bridge. A pull request that updates the signals in the MapWidget header and the WebSocket code in Cbridge.js is sufficient to close this pull request.