kopia lustrzana https://github.com/cyoung/stratux
Merge pull request #170 from AvSquirrel/gps-fixes
Delay start of UART reads. Link dev logs to web UI.pull/182/head^2
commit
1960167909
|
@ -259,8 +259,11 @@ func initGPSSerial() bool {
|
|||
cfg[19] = 0x00 //pad.
|
||||
|
||||
p.Write(makeUBXCFG(0x06, 0x00, 20, cfg))
|
||||
// time.Sleep(100* time.Millisecond) // pause and wait for the GPS to finish configuring itself before closing / reopening the port
|
||||
p.Close()
|
||||
|
||||
|
||||
time.Sleep(250*time.Millisecond)
|
||||
// Re-open port at 38400 baud so we can read messages
|
||||
serialConfig = &serial.Config{Name: device, Baud: 38400}
|
||||
p, err = serial.OpenPort(serialConfig)
|
||||
|
|
|
@ -7,11 +7,17 @@
|
|||
<i class="fa fa-cloud feature-icon text-primary"></i>
|
||||
</div>
|
||||
<div>
|
||||
this space reserved to display the various logs
|
||||
<a href="../logs/stratux.log">stratux.log</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="../logs/stratux/">SDR, AHRS, and GPS logs</a>
|
||||
</div>
|
||||
<div>
|
||||
(Enable device logging on "Settings" page)
|
||||
</dib>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<pre>{{userAgent}}</pre>
|
||||
<pre>{{deviceViewport}}</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Ładowanie…
Reference in New Issue