Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add information on status solution #64

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions web_app/static/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,12 @@ function Chart() {
}

function updateCoordinateGrid(msg) {
// status
$("#status_value").html("<span>" + msg['solution status'] + "</span>");
$("#mode_value").html("<span>" + msg['positioning mode'] + "</span>");
//Sat
$("#sat_rover").html("<span>" + msg['# of satellites rover'] + "</span>");
$("#sat_valid_rover").html("<span>" + msg['# of valid satellites'] + "</span>");
// coordinates
var coordinates = (typeof(msg['pos llh single (deg,m) rover']) == 'undefined') ? '000' : msg['pos llh single (deg,m) rover'].split(',');

Expand Down
7 changes: 6 additions & 1 deletion web_app/templates/status.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
<div class="col py-3 border bg-light"><b>Longitude: </b><span id="lon_value"></span></div>
<div class="col py-3 border bg-light"><b>Height: </b><span id="height_value"></span></div>
</div>
<div class="row">
<div class="col py-3 border bg-light"><b>Mode: </b><span id="mode_value"></span></div>
<div class="col py-3 border bg-light"><b>Status: </b><span id="status_value"></span></div>
<div class="col py-3 border bg-light"><b>Satellite (used/ in view): </b><span id="sat_valid_rover"></span><n> / </n><span id="sat_rover"></span></div>
</div>

<div id="map" style="height: 420px; margin-top: 2em; margin-bottom: 2em;">

Expand All @@ -30,4 +35,4 @@
<script type="text/javascript" src="{{ url_for('static', filename='lib/leaflet.js') }}" charset="utf-8"></script>
<script type="text/javascript" src="{{ url_for('static', filename='status.js') }}" charset="utf-8"></script>

{% endblock %}
{% endblock %}