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.
|
cfg[19] = 0x00 //pad.
|
||||||
|
|
||||||
p.Write(makeUBXCFG(0x06, 0x00, 20, cfg))
|
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()
|
p.Close()
|
||||||
|
|
||||||
|
|
||||||
|
time.Sleep(250*time.Millisecond)
|
||||||
// Re-open port at 38400 baud so we can read messages
|
// Re-open port at 38400 baud so we can read messages
|
||||||
serialConfig = &serial.Config{Name: device, Baud: 38400}
|
serialConfig = &serial.Config{Name: device, Baud: 38400}
|
||||||
p, err = serial.OpenPort(serialConfig)
|
p, err = serial.OpenPort(serialConfig)
|
||||||
|
|
|
@ -7,8 +7,14 @@
|
||||||
<i class="fa fa-cloud feature-icon text-primary"></i>
|
<i class="fa fa-cloud feature-icon text-primary"></i>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
this space reserved to display the various logs
|
<a href="../logs/stratux.log">stratux.log</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<a href="../logs/stratux/">SDR, AHRS, and GPS logs</a>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
(Enable device logging on "Settings" page)
|
||||||
|
</dib>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
|
|
Ładowanie…
Reference in New Issue