Skip to content

Commit

Permalink
Add time paramter
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-pian committed Jun 17, 2022
1 parent 0ec7911 commit ee9750d
Show file tree
Hide file tree
Showing 7 changed files with 9,116 additions and 1,612 deletions.
3,336 changes: 3,336 additions & 0 deletions console/win/brdc

Large diffs are not rendered by default.

1,608 changes: 0 additions & 1,608 deletions console/win/brdc.21n

This file was deleted.

Binary file modified console/win/gps_sdr_sim.exe
Binary file not shown.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
纬度: <input type="text" id="lat">
经度: <input type="text" id="lng"><br>
海拔/m: <input type="number" min="0" id="height" value="100">
时间/s(0-3000): <input type="number" min="0" id="time" value="300">
<label id="start">生成文件</label>

</div>
Expand Down
10 changes: 9 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,16 @@ document.getElementById("start").onclick = function() {
var lat = select("lat").value;
var lng = select("lng").value;
var height = select("height").value;
var time = select("time").value;
if (time === "") {
time = 300
}
if (time < 0 || time > 3000) {
alert("时间范围不正确")
return;
}
if (lat != "" && lng != ""){
runExec(lat, lng, height);
runExec(lat, lng, height, time);
}

}
Expand Down
Loading

0 comments on commit ee9750d

Please sign in to comment.